/* =========================================================
   Дизайн-токены. Основной цвет — RAL 7016 (Anthracite Grey, #293133).
   Акцент — белый для hover/focus/«сегодня».
   ========================================================= */
:root {
  /* Колонка контента */
  --layout-max-width: 1180px;
  --layout-padding-x: clamp(16px, 3.5vw, 28px);
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Палитра RAL 7016 — антрацит */
  --ink-900: #0e1213;     /* самый глубокий */
  --ink-800: #161b1d;     /* фон страницы — низ */
  --ink-700: #1a2022;     /* основные карточки (тёмные) */
  --ink-600: #232a2c;     /* приподнятые поверхности */
  --ink-500: #2c3437;     /* мягкая граница / hover */
  --ink-400: #6b7780;     /* подписи на светлом (не используется почти) */
  --ink-300: #9aa3a8;     /* серебристо-серый */
  --ink-200: rgba(255, 255, 255, 0.14);   /* разделители на тёмном */
  --ink-150: rgba(255, 255, 255, 0.08);   /* бордеры карточек */
  --ink-100: #232a2c;     /* фоновые подложки */
  --ink-050: #1f2628;     /* «почти фон» */
  --paper:   #1a2022;     /* тёмная «бумага» — поверхность карточек */

  /* Тёмный фон страницы с белыми «лучами» */
  --bg-page:
    radial-gradient(60% 50% at 80% 0%, rgba(255, 255, 255, 0.10) 0%, transparent 65%),
    radial-gradient(60% 70% at 0% 100%, rgba(255, 255, 255, 0.05) 0%, transparent 65%),
    linear-gradient(180deg, #161b1d 0%, #0e1213 100%);

  /* Тексты (адаптированы под тёмный фон) */
  --text-strong: #f4f6f7;
  --text-base:   #e5e8ea;
  --text-muted:  rgba(255, 255, 255, 0.62);
  --text-dim:    rgba(255, 255, 255, 0.42);

  /* Текст на тёмном (шапка/тёмные карточки) */
  --on-dark:        rgba(255, 255, 255, 0.92);
  --on-dark-muted:  rgba(255, 255, 255, 0.62);
  --on-dark-dim:    rgba(255, 255, 255, 0.42);

  /* Белый акцент (как в шапке/календаре) */
  --accent:        #ffffff;
  --accent-soft:   #ffffff;
  --accent-deep:   #ffffff;
  --accent-text:   #1a2022;   /* читаемый тёмный на светлом */
  --accent-glow:   rgba(255, 255, 255, 0.42);
  --accent-glow-s: rgba(255, 255, 255, 0.18);

  /* Совместимость со старыми именами (используются JS/календарём) */
  --glass-today-border: var(--accent);
  --glass-today-glow:   var(--accent-glow);
  --glass-today-tag:    var(--accent-soft);
  --header-text:        var(--on-dark);
  --header-text-dim:    var(--on-dark-muted);

  /* Тёмное «стекло» (шапка, выпадашка) */
  --dark-glass: linear-gradient(
    155deg,
    rgba(53, 62, 65, 0.96) 0%,
    rgba(41, 49, 51, 0.94) 55%,
    rgba(31, 38, 40, 0.96) 100%
  );
  --dark-glass-border: rgba(255, 255, 255, 0.10);
  --dark-glass-border-soft: rgba(255, 255, 255, 0.06);


  /* Тени (усилены под тёмную тему) */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 8px 22px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-3: 0 16px 40px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.35);
  --shadow-deep: 0 24px 56px rgba(0, 0, 0, 0.65), 0 6px 16px rgba(0, 0, 0, 0.45);

  /* Радиусы */
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
}

@font-face {
  font-family: "Proxima Nova";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/proxima-nova/proxima-nova-400.woff2") format("woff2");
}

@font-face {
  font-family: "Proxima Nova";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/proxima-nova/proxima-nova-700.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    "Proxima Nova",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  background: var(--bg-page);
  color: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Шапка — floating glass pill (единый дизайн)
   ========================================================= */
.site-header {
  position: sticky;
  top: clamp(8px, 1.4vw, 14px);
  z-index: 1000;
  margin: clamp(8px, 1.4vw, 14px) clamp(10px, 2.4vw, 22px) 0;
  pointer-events: none;
}

.site-header__inner {
  pointer-events: auto;
  position: relative;
  box-sizing: border-box;
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 6px 6px clamp(20px, 2.6vw, 28px);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  background: linear-gradient(
    155deg,
    rgba(58, 67, 70, 0.66) 0%,
    rgba(34, 41, 43, 0.74) 100%
  );
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 14px 42px -10px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Тонкая золотистая «волосинка» по верхнему краю капсулы */
.site-header__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(240, 215, 140, 0.40) 0%,
    rgba(255, 255, 255, 0.10) 20%,
    transparent 50%,
    rgba(212, 180, 74, 0.08) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.site-header__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.022em;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 6px 4px;
  transition: color 0.25s var(--ease-out), letter-spacing 0.25s var(--ease-out);
}

.site-header__brand:hover {
  color: #f7e0a1;
  letter-spacing: -0.018em;
}

.site-header__brand:focus-visible {
  outline: 2px solid rgba(240, 215, 140, 0.75);
  outline-offset: 4px;
  border-radius: 8px;
}

.site-header__nav {
  display: flex;
}

.site-header__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-header__list li {
  margin: 0;
}

.site-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition:
    color 0.22s var(--ease-out),
    background 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.site-header__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.site-header__link:focus-visible {
  outline: 2px solid rgba(240, 215, 140, 0.75);
  outline-offset: 2px;
}

/* Активная страница — янтарная пилюля */
.site-header__link[aria-current="page"],
.site-header__dropdown-toggle[aria-current="page"] {
  color: #f7e0a1;
  background: linear-gradient(
    140deg,
    rgba(212, 180, 74, 0.20) 0%,
    rgba(212, 180, 74, 0.06) 100%
  );
  border-color: rgba(212, 180, 74, 0.48);
  box-shadow:
    0 0 20px -4px rgba(212, 180, 74, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-weight: 500;
}

.site-header__link[aria-current="page"]:hover,
.site-header__dropdown-toggle[aria-current="page"]:hover {
  color: #fff7d8;
  background: linear-gradient(
    140deg,
    rgba(212, 180, 74, 0.28) 0%,
    rgba(212, 180, 74, 0.10) 100%
  );
}

/* Дропдаун «Служения» */
.site-header__dropdown {
  position: relative;
}

.site-header__dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  margin: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.012em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    color 0.22s var(--ease-out),
    background 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.site-header__dropdown-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.site-header__dropdown-toggle:focus {
  outline: none;
}

.site-header__dropdown-toggle:focus-visible {
  outline: 2px solid rgba(240, 215, 140, 0.75);
  outline-offset: 2px;
}

.site-header__dropdown-chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.55;
  margin-left: 2px;
  transition: transform 0.28s var(--ease-out), opacity 0.25s var(--ease-out);
}

.site-header__dropdown-toggle[aria-expanded="true"] .site-header__dropdown-chevron,
.site-header__dropdown.is-submenu-open .site-header__dropdown-chevron,
.site-header__dropdown:hover .site-header__dropdown-chevron,
.site-header__dropdown:focus-within .site-header__dropdown-chevron {
  transform: rotate(-135deg) translateY(1px);
  opacity: 0.95;
}

/* Гамбургер → крест при открытом меню */
.site-header__menu-btn[aria-expanded="true"] {
  background: rgba(240, 215, 140, 0.12);
  border-color: rgba(240, 215, 140, 0.48);
  box-shadow: 0 0 18px -4px rgba(212, 180, 74, 0.40);
}

.site-header__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  margin-top: 14px;
  background: linear-gradient(
    155deg,
    rgba(54, 63, 66, 0.92) 0%,
    rgba(32, 39, 41, 0.94) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 8px;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  z-index: 20;
}

/* Невидимый «мост» для непрерывного hover между пунктом и подменю */
.site-header__submenu::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.site-header__submenu[aria-expanded="true"],
.site-header__dropdown:focus-within .site-header__submenu,
.site-header__dropdown:hover .site-header__submenu,
.site-header__dropdown.is-submenu-open .site-header__submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: siteHeaderSubmenuIn 0.22s var(--ease-out);
}

@keyframes siteHeaderSubmenuIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Тонкий «хвостик» от пункта к подменю */
.site-header__submenu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(54, 63, 66, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-right: none;
  border-bottom: none;
  border-radius: 3px 0 0 0;
}

.site-header__submenu-link {
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    padding-left 0.22s var(--ease-out);
}

.site-header__submenu-link:hover {
  background: linear-gradient(
    140deg,
    rgba(212, 180, 74, 0.18) 0%,
    rgba(212, 180, 74, 0.04) 100%
  );
  border-color: rgba(212, 180, 74, 0.34);
  color: #fff7d8;
  padding-left: 18px;
}

.site-header__submenu-link[aria-current="page"] {
  color: #f7e0a1;
  font-weight: 600;
}

.site-header__submenu-link:focus-visible {
  outline: 2px solid rgba(240, 215, 140, 0.75);
  outline-offset: 2px;
}

/* Мобильная кнопка-гамбургер */
.site-header__menu-btn {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.92);
  transition:
    background 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out),
    transform 0.22s var(--ease-out);
}

.site-header__menu-btn:hover {
  background: rgba(240, 215, 140, 0.10);
  border-color: rgba(240, 215, 140, 0.42);
  box-shadow: 0 0 22px -4px rgba(212, 180, 74, 0.40);
}

.site-header__menu-btn:active {
  transform: scale(0.96);
}

.site-header__menu-btn:focus-visible {
  outline: 2px solid rgba(240, 215, 140, 0.75);
  outline-offset: 3px;
}

.site-header__menu-icon {
  position: absolute;
  left: 50%;
  top: calc(50% - 0.8px);
  width: 18px;
  height: 1.6px;
  margin-left: -9px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.3s var(--ease-out);
}

.site-header__menu-icon::before,
.site-header__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease-out),
    top 0.3s var(--ease-out);
}

.site-header__menu-icon::before {
  top: -7.6px;
}

.site-header__menu-icon::after {
  top: 7.6px;
}

.site-header__menu-btn[aria-expanded="true"] .site-header__menu-icon {
  background: transparent;
}

.site-header__menu-btn[aria-expanded="true"] .site-header__menu-icon::before,
.site-header__menu-btn[aria-expanded="true"] .site-header__menu-icon::after {
  top: 0;
}

.site-header__menu-btn[aria-expanded="true"] .site-header__menu-icon::before {
  transform: rotate(45deg);
}

.site-header__menu-btn[aria-expanded="true"] .site-header__menu-icon::after {
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .site-header {
    top: 8px;
    margin: 8px 10px 0;
  }

  .site-header__inner {
    min-height: 54px;
    padding: 5px 5px 5px clamp(16px, 4vw, 20px);
    justify-content: space-between;
  }

  .site-header__menu-btn {
    display: flex;
  }

  .site-header__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    padding: 10px;
    background: linear-gradient(
      155deg,
      rgba(58, 67, 70, 0.96) 0%,
      rgba(34, 41, 43, 0.98) 100%
    );
    backdrop-filter: saturate(180%) blur(28px);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 10;
    justify-content: center;
  }

  html.is-site-nav-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  html.is-site-nav-open body {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  /* sticky ломается при position:fixed на body — шапка остаётся у верха экрана */
  html.is-site-nav-open .site-header {
    position: fixed;
    top: calc(8px + var(--tg-safe-top, 0px));
    left: 10px;
    right: 10px;
    margin: 0;
    width: auto;
  }

  .site-header__nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    max-height: calc(100dvh - 72px);
    max-height: calc(100svh - 72px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 180, 74, 0.35) transparent;
  }

  .site-header__nav.is-open::-webkit-scrollbar {
    width: 4px;
  }

  .site-header__nav.is-open::-webkit-scrollbar-thumb {
    background: rgba(212, 180, 74, 0.35);
    border-radius: 4px;
  }

  .site-header__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  .site-header__link {
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.82);
    height: auto;
    min-height: 46px;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .site-header__link[aria-current="page"],
  .site-header__dropdown-toggle[aria-current="page"] {
    border-radius: 14px;
  }

  .site-header__dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .site-header__dropdown:hover .site-header__submenu,
  .site-header__dropdown:focus-within .site-header__submenu {
    display: none;
  }

  .site-header__dropdown:hover .site-header__dropdown-chevron,
  .site-header__dropdown:focus-within .site-header__dropdown-chevron {
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.55;
  }

  .site-header__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 14px;
    height: auto;
    min-height: 46px;
    text-align: left;
  }

  .site-header__dropdown-toggle .site-header__dropdown-chevron {
    flex-shrink: 0;
    margin-left: 8px;
  }

  .site-header__submenu {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 4px;
    transform: none;
    border-radius: 14px;
    padding: 6px;
    display: none;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }

  .site-header__submenu::before,
  .site-header__submenu::after {
    display: none;
  }

  .site-header__submenu-link {
    justify-content: flex-start;
    text-align: left;
    padding: 10px 16px;
    transition:
      background 0.2s var(--ease-out),
      color 0.2s var(--ease-out),
      border-color 0.2s var(--ease-out);
  }

  .site-header__submenu-link:hover {
    padding-left: 18px;
  }

  .site-header__dropdown.is-submenu-open .site-header__submenu,
  .site-header__dropdown.is-submenu-open:hover .site-header__submenu,
  .site-header__dropdown.is-submenu-open:focus-within .site-header__submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: none;
    transform: none;
    opacity: 1;
  }

  .site-header__dropdown.is-submenu-open .site-header__dropdown-chevron,
  .site-header__dropdown.is-submenu-open:hover .site-header__dropdown-chevron {
    transform: rotate(-135deg) translateY(1px);
    opacity: 0.95;
  }
}

/* =========================================================
   Каркас контента
   ========================================================= */
.home-main {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) var(--layout-padding-x) clamp(40px, 6vw, 72px);
}

.home-main--inner {
  display: block;
}

.home-main__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(18px, 2.4vw, 28px);
  row-gap: clamp(28px, 4vw, 44px);
  align-items: stretch;
}

.home-main__section {
  grid-column: 1 / -1;
  min-width: 0;
}

.home-section__title {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-strong);
}

.home-section__title--eyebrow {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.home-section__title--nav {
  font-size: 17px;
  margin-bottom: 14px;
}

/* =========================================================
   Hero (главный экран с интро и календарём)
   ========================================================= */
.home-main__intro {
  grid-column: 1 / span 7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  position: relative;
  padding: clamp(32px, 4vw, 48px) clamp(28px, 3vw, 40px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  background:
    /* Белые полоски */
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 22px
    ),
    /* Тёплое свечение в правом верхнем углу */
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.10) 35%, transparent 70%),
    /* Базовый тёмный градиент (приподнят относительно фона страницы) */
    linear-gradient(145deg, #2a3133 0%, #1a2022 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-3);
}

.home-main__intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 36em;
  flex: 1 1 auto;
  justify-content: center;
}

.home-main__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-pill);
}

.home-main__eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.home-main__title {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
}

.home-main__text {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 32em;
}

.home-main__text code {
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

.home-main__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* =========================================================
   Кнопки
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    transform 0.15s var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.btn--primary {
  color: #1a2022;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.28);
}

.btn--primary:hover {
  color: #0e1213;
  background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.35);
}

.btn--ghost-dark {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--ghost-dark:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 14px var(--accent-glow-s);
}

.btn--ghost {
  color: var(--text-strong);
  background: var(--paper);
  border-color: var(--ink-150);
  box-shadow: var(--shadow-1);
}

.btn--ghost:hover {
  border-color: #ffffff;
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 14px var(--accent-glow-s);
}

/* =========================================================
   Универсальная карточка
   ========================================================= */
.card {
  background: var(--paper);
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

.card--pad {
  padding: clamp(20px, 2.4vw, 28px);
}

/* =========================================================
   О церкви
   ========================================================= */
.home-about {
  position: relative;
}

.home-about__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(18px, 2.4vw, 28px);
  row-gap: 22px;
  align-items: stretch;
}

.home-about__column--text {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--paper);
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

.home-about__copy {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-base);
}

.home-about__copy p {
  margin: 0 0 1em;
}

.home-about__copy p:last-child {
  margin-bottom: 0;
}

.home-about__copy strong {
  color: var(--text-strong);
  font-weight: 600;
}

.home-about__figure {
  margin: 0;
}

.home-about__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 16 / 9;
  background: var(--ink-100);
  box-shadow: var(--shadow-1);
}

.home-about__column--video {
  grid-column: 8 / span 5;
  min-width: 0;
  display: flex;
}

.home-video-slot {
  flex: 1 1 auto;
  width: 100%;
  min-height: 240px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--ink-200);
  background:
    repeating-linear-gradient(135deg, rgba(41, 49, 51, 0.02) 0 14px, transparent 14px 28px),
    var(--ink-050);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  text-align: center;
  box-sizing: border-box;
}

.home-video-slot__hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* =========================================================
   Сетка «Служения» — карточки направлений
   ========================================================= */
.home-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.home-services__item {
  grid-column: span 4;
  min-width: 0;
}

.home-services__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 22px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-1);
  transition:
    transform 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.home-services__card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}

.home-services__card:hover {
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}

.home-services__card:hover::after {
  opacity: 1;
}

.home-services__card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.home-services__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--ink-700) 0%, var(--ink-600) 100%);
  color: var(--accent-soft);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, var(--shadow-1);
}

.home-services__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--text-strong);
}

.home-services__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.home-services__more {
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent-soft);
}

.home-services__card:hover .home-services__more {
  color: var(--accent);
}

.home-services__more::after {
  content: "→";
  transition: transform 0.2s var(--ease-out);
}

.home-services__card:hover .home-services__more::after {
  transform: translateX(3px);
}

/* =========================================================
   О церкви — компонент заголовка + карточки ценностей
   (используются на главной и /services/homeless/)
   ========================================================= */
.home-about__heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.home-about__lead {
  margin: 8px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

.home-about__lead strong {
  color: #f0d78c;
  font-weight: 700;
}

/* Hero-карточка с цитатой из Писания */
.home-about__hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  border: 1px solid rgba(212, 180, 74, 0.28);
  border-radius: var(--radius-xl);
  background: #1b1e20;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  isolation: isolate;
}

.home-about__hero-quote {
  position: relative;
  margin: 0;
  max-width: 24ch;
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: #fff;
  text-wrap: balance;
}

.home-about__hero-mark {
  display: block;
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 400;
  line-height: 0.6;
  color: #f0d78c;
  text-shadow: 0 0 24px rgba(212, 180, 74, 0.42);
}

.home-about__hero-ref {
  margin: clamp(18px, 2vw, 24px) 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0d78c;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-about__hero-ref::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, #d4b44a 0%, transparent 100%);
}

/* Сетка карточек ценностей / шагов */
.home-about__values {
  list-style: none;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-about__value {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.home-about__value::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #d4b44a 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.home-about__value:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 180, 74, 0.55);
  box-shadow:
    0 12px 28px -16px rgba(0, 0, 0, 0.6),
    0 0 18px -4px rgba(212, 180, 74, 0.42);
}

.home-about__value:hover::before { opacity: 1; }

.home-about__value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(212, 180, 74, 0.18) 0%, rgba(212, 180, 74, 0.06) 100%);
  border: 1px solid rgba(212, 180, 74, 0.30);
  color: #f0d78c;
  flex-shrink: 0;
}

.home-about__value-icon svg { display: block; }

.home-about__value-title {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #fff;
}

.home-about__value-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

/* =========================================================
   Подзаголовок раздела на внутренних страницах (h2)
   ========================================================= */
.page-section__title {
  margin: clamp(28px, 4vw, 40px) 0 16px;
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--text-strong);
}

/* =========================================================
   In-page роутер: главная ↔ кормление бездомных
   ========================================================= */
.page-view[hidden] { display: none !important; }

html[data-view="home"]     [data-page="homeless"] { display: none !important; }
html[data-view="homeless"] [data-page="home"]     { display: none !important; }

/* Пока JS не загружен — если в URL уже стоит #homeless, не показываем главную */
html[data-view="homeless"] [data-page="homeless"][hidden] { display: block !important; }

/* =========================================================
   Кормление бездомных — вьюшка #homeless (внутри index.html)
   Янтарная палитра по brand-accents
   ========================================================= */
.home-feeding {
  --feed-amber:        #d4b44a;
  --feed-amber-soft:   #f0d78c;
  --feed-amber-deep:   #7a6518;
  --feed-amber-ink:    #5c4a12;
  --feed-amber-glow:   rgba(212, 180, 74, 0.42);
  --feed-amber-glow-s: rgba(212, 180, 74, 0.18);
  --feed-amber-tint:   rgba(212, 180, 74, 0.10);
  --feed-amber-tint-2: rgba(212, 180, 74, 0.18);

  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vw, 28px);
}

.feeding-page__crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
  font-size: 13px;
  color: var(--on-dark-muted);
}

.feeding-page__crumbs a {
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.feeding-page__crumbs a:hover {
  color: var(--feed-amber-soft);
}

.feeding-page__crumbs-sep {
  opacity: 0.5;
}

.feeding-page__crumbs-current {
  color: #ffffff;
}

.feeding-page__back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--on-dark);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 180, 74, 0.32);
  border-radius: var(--radius-pill);
  transition:
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.feeding-page__back:hover {
  color: var(--feed-amber-soft);
  border-color: rgba(212, 180, 74, 0.65);
  background: rgba(212, 180, 74, 0.10);
  box-shadow: 0 0 14px rgba(212, 180, 74, 0.22);
}

.feeding-page__back:focus-visible {
  outline: 2px solid rgba(212, 180, 74, 0.75);
  outline-offset: 3px;
}

/* ----- HERO ----- */
.home-feeding__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px) clamp(22px, 3vw, 40px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212, 180, 74, 0.22);
  background:
    radial-gradient(circle at 8% 0%, rgba(212, 180, 74, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(212, 180, 74, 0.14) 0%, transparent 55%),
    linear-gradient(155deg, #2a3133 0%, #1a2022 100%);
  box-shadow:
    var(--shadow-3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.home-feeding__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-feeding__hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.home-feeding__hero-glow--a {
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(212, 180, 74, 0.55) 0%, transparent 65%);
}

.home-feeding__hero-glow--b {
  bottom: -200px;
  right: -160px;
  background: radial-gradient(circle, rgba(240, 215, 140, 0.40) 0%, transparent 65%);
}

.home-feeding__hero-grain {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 22px
    );
  opacity: 0.6;
  mix-blend-mode: overlay;
}

.home-feeding__hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 22px);
  max-width: 64em;
}

.home-feeding__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin: 0;
  padding: 6px 14px 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--feed-amber-soft);
  background: rgba(212, 180, 74, 0.12);
  border: 1px solid rgba(212, 180, 74, 0.45);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 14px rgba(212, 180, 74, 0.18);
}

.home-feeding__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--feed-amber);
  box-shadow: 0 0 8px var(--feed-amber-glow);
}

.home-feeding__title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: #ffffff;
  background:
    linear-gradient(180deg, #ffffff 0%, #f0d78c 130%);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-feeding__lead {
  margin: 0;
  max-width: 38em;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.6;
  color: var(--on-dark-muted);
}

/* ----- Факты (когда / где / с какого года) ----- */
.home-feeding__facts {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-feeding__fact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 180, 74, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.home-feeding__fact:hover {
  border-color: rgba(212, 180, 74, 0.55);
  background: rgba(212, 180, 74, 0.08);
  box-shadow: 0 0 18px rgba(212, 180, 74, 0.18);
  transform: translateY(-1px);
}

.home-feeding__fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(212, 180, 74, 0.22) 0%, rgba(240, 215, 140, 0.10) 100%);
  border: 1px solid rgba(212, 180, 74, 0.42);
  color: var(--feed-amber-soft);
}

.home-feeding__fact-icon svg {
  width: 20px;
  height: 20px;
}

.home-feeding__fact-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-feeding__fact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

.home-feeding__fact-value {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: #ffffff;
}

/* ----- Стих ----- */
.home-feeding__verse {
  position: relative;
  margin: 0;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 44px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(212, 180, 74, 0.10) 0%, rgba(212, 180, 74, 0.02) 100%);
  border: 1px solid rgba(212, 180, 74, 0.28);
  border-left: 3px solid var(--feed-amber);
  color: var(--text-base);
  overflow: hidden;
}

.home-feeding__verse::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 180, 74, 0.30) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.home-feeding__verse-mark {
  position: absolute;
  top: 4px;
  left: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(60px, 8vw, 96px);
  line-height: 1;
  color: var(--feed-amber);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.home-feeding__verse-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(16px, 1.85vw, 20px);
  line-height: 1.6;
  color: #ffffff;
}

.home-feeding__verse-ref {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--feed-amber-soft);
}

/* ----- Сетка панелей (шаги / помощь) ----- */
.home-feeding__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.home-feeding__panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--ink-150);
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}

.home-feeding__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--feed-amber) 0%, var(--feed-amber-soft) 100%);
  opacity: 0.7;
}

.home-feeding__panel-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-feeding__panel-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--feed-amber-soft);
}

.home-feeding__panel-title {
  margin: 0;
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-strong);
}

/* ----- Шаги ----- */
.home-feeding__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.home-feeding__step {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 14px 0;
}

.home-feeding__step + .home-feeding__step {
  border-top: 1px dashed rgba(212, 180, 74, 0.22);
}

.home-feeding__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 50px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(180deg, rgba(212, 180, 74, 0.45) 0%, rgba(212, 180, 74, 0.0) 100%);
  pointer-events: none;
}

.home-feeding__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--feed-amber) 0%, var(--feed-amber-soft) 100%);
  color: var(--feed-amber-ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow:
    0 0 0 1px rgba(212, 180, 74, 0.5),
    0 0 18px rgba(212, 180, 74, 0.28);
}

.home-feeding__step-body {
  min-width: 0;
}

.home-feeding__step-title {
  margin: 4px 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.014em;
  color: var(--text-strong);
}

.home-feeding__step-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ----- Помощь ----- */
.home-feeding__help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-feeding__help-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.home-feeding__help-item:hover {
  border-color: rgba(212, 180, 74, 0.42);
  background: rgba(212, 180, 74, 0.08);
  transform: translateX(2px);
}

.home-feeding__help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(212, 180, 74, 0.20) 0%, rgba(240, 215, 140, 0.08) 100%);
  border: 1px solid rgba(212, 180, 74, 0.36);
  color: var(--feed-amber-soft);
  flex: 0 0 auto;
}

.home-feeding__help-icon svg {
  width: 22px;
  height: 22px;
}

.home-feeding__help-body {
  min-width: 0;
}

.home-feeding__help-title {
  margin: 2px 0 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.014em;
  color: var(--text-strong);
}

.home-feeding__help-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ----- CTA ----- */
.home-feeding__cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 50%, rgba(212, 180, 74, 0.16) 0%, transparent 60%),
    linear-gradient(135deg, #1f262a 0%, #1a2022 100%);
  border: 1px solid rgba(212, 180, 74, 0.30);
  box-shadow: var(--shadow-2);
}

.home-feeding__cta-text {
  min-width: 0;
}

.home-feeding__cta-title {
  margin: 0 0 6px;
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.home-feeding__cta-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-dark-muted);
  max-width: 42em;
}

.home-feeding__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.home-feeding__cta-btn {
  min-height: 46px;
  padding: 10px 22px;
}

/* Янтарная окраска для primary-кнопки внутри секции */
.home-feeding .btn--primary {
  color: var(--feed-amber-ink);
  background: linear-gradient(180deg, var(--feed-amber-soft) 0%, var(--feed-amber) 100%);
  border-color: rgba(212, 180, 74, 0.55);
  box-shadow: 0 8px 22px rgba(212, 180, 74, 0.32);
}

.home-feeding .btn--primary:hover {
  color: #3e3208;
  background: linear-gradient(180deg, #f7e1a0 0%, #e0c25a 100%);
  border-color: rgba(212, 180, 74, 0.75);
  box-shadow: 0 10px 28px rgba(212, 180, 74, 0.42);
}

.home-feeding .btn--ghost-dark:hover {
  border-color: rgba(212, 180, 74, 0.55);
  color: var(--feed-amber-soft);
  box-shadow: 0 0 14px rgba(212, 180, 74, 0.22);
}

.home-feeding .btn:focus-visible {
  outline: 2px solid rgba(212, 180, 74, 0.75);
  outline-offset: 3px;
}

/* ----- Адаптация под планшеты ----- */
@media (max-width: 960px) {
  .home-feeding__grid {
    grid-template-columns: 1fr;
  }

  .home-feeding__facts {
    grid-template-columns: 1fr;
  }

  .home-feeding__cta {
    grid-template-columns: 1fr;
  }

  .home-feeding__cta-actions {
    justify-content: flex-start;
  }
}

/* ----- Адаптация под телефон ----- */
@media (max-width: 640px) {
  .home-feeding__hero {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }

  .home-feeding__title {
    font-size: clamp(26px, 7vw, 32px);
  }

  .home-feeding__lead {
    font-size: 15px;
  }

  .home-feeding__verse {
    padding: 22px 20px 22px 22px;
  }

  .home-feeding__verse-mark {
    top: -2px;
    left: 8px;
    font-size: 64px;
  }

  .home-feeding__verse-text {
    font-size: 16px;
  }

  .home-feeding__step {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .home-feeding__step-num {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .home-feeding__step:not(:last-child)::after {
    left: 17px;
    top: 46px;
  }

  .home-feeding__help-item {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .home-feeding__help-icon {
    width: 36px;
    height: 36px;
  }

  .home-feeding__help-icon svg {
    width: 20px;
    height: 20px;
  }

  .home-feeding__cta {
    padding: 20px 18px;
  }

  .home-feeding__cta-actions {
    width: 100%;
  }

  .home-feeding__cta-btn {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    min-width: 0;
  }

  .home-feeding__fact {
    padding: 12px 14px;
  }
}

/* =========================================================
   Кормление бездомных — компонент home-spasai
   (используется на /services/homeless/)
   Заголовки согласованы с остальным сайтом:
     h1 = clamp(36px,4.5vw,52px) / 800 (как home-main__title)
     h2 = clamp(20px,2.3vw,26px) / 700  (как home-section__title)
     h3 = 17px / 700
   ========================================================= */

/* ── Обёртка страницы ─────────────────────────────────────── */
.home-spasai__page {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 24px);
}

/* ── Герой ────────────────────────────────────────────────── */
.home-spasai__hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #2a3133 0%, #1a2022 100%);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  isolation: isolate;
}

.home-spasai__hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.home-spasai__hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.home-spasai__hero-glow--a {
  width: 340px;
  height: 260px;
  top: -60px;
  right: 10%;
  background: rgba(212, 180, 74, 0.16);
}

.home-spasai__hero-glow--b {
  width: 240px;
  height: 200px;
  bottom: -40px;
  left: 5%;
  background: rgba(212, 180, 74, 0.08);
}

.home-spasai__hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.home-spasai__hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Надпись над заголовком ───────────────────────────────── */
.home-spasai__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0d78c;
}

.home-spasai__eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4b44a;
  box-shadow: 0 0 8px rgba(212, 180, 74, 0.6);
  flex-shrink: 0;
}

/* ── H1 — согласован с home-main__title / recovery hero ──── */
.home-spasai__title {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
}

/* ── Описательный текст героя ─────────────────────────────── */
.home-spasai__lead {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.home-spasai__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Ключевые факты ───────────────────────────────────────── */
.home-spasai__facts {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.home-spasai__fact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-spasai__fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #f0d78c;
  flex-shrink: 0;
}

.home-spasai__fact-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.home-spasai__fact-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.home-spasai__fact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.home-spasai__fact-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* ── CTA кнопки ───────────────────────────────────────────── */
.home-spasai__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* ── Панели / секции ──────────────────────────────────────── */
.home-spasai__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 44px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.home-spasai__panel--voices {
  background: linear-gradient(135deg, rgba(212, 180, 74, 0.07) 0%, rgba(212, 180, 74, 0.02) 100%);
  border-color: rgba(212, 180, 74, 0.22);
}

.home-spasai__panel--contacts {
  background: rgba(255, 255, 255, 0.04);
}

.home-spasai__panel-head {
  margin-bottom: clamp(16px, 2.5vw, 28px);
}

.home-spasai__panel-eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4b44a;
}

/* ── H2 — согласован с home-section__title ────────────────── */
.home-spasai__panel-title {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-strong);
}

.home-spasai__panel-lead {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Цитата ───────────────────────────────────────────────── */
.home-spasai__voices {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-spasai__voice {
  position: relative;
}

.home-spasai__voice-mark {
  display: block;
  margin-bottom: -8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 400;
  line-height: 0.6;
  color: #f0d78c;
  text-shadow: 0 0 20px rgba(212, 180, 74, 0.42);
}

.home-spasai__voice-text {
  margin: 0;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.home-spasai__voice-author {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-spasai__voice-author::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, #d4b44a 0%, transparent 100%);
  flex-shrink: 0;
}

.home-spasai__voice-name {
  font-size: 13px;
  font-weight: 700;
  color: #f0d78c;
}

.home-spasai__voice-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Шаги процесса ────────────────────────────────────────── */
.home-spasai__partner {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.home-spasai__partner-card {
  position: relative;
  padding: 20px 20px 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    transform 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    background 0.22s var(--ease-out);
}

.home-spasai__partner-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(212, 180, 74, 0.45);
}

.home-spasai__partner-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #d4b44a;
  margin-bottom: 2px;
}

/* ── H3 — шаги ────────────────────────────────────────────── */
.home-spasai__partner-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #fff;
}

.home-spasai__partner-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Список помощи ────────────────────────────────────────── */
.home-spasai__help {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.home-spasai__help-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  transition:
    transform 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    background 0.22s var(--ease-out);
}

.home-spasai__help-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(212, 180, 74, 0.45);
}

.home-spasai__help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(212, 180, 74, 0.18) 0%, rgba(212, 180, 74, 0.06) 100%);
  border: 1px solid rgba(212, 180, 74, 0.28);
  color: #f0d78c;
  flex-shrink: 0;
}

.home-spasai__help-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.home-spasai__help-body {
  flex: 1 1 0;
  min-width: 0;
}

/* ── H3 — помощь ──────────────────────────────────────────── */
.home-spasai__help-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #fff;
}

.home-spasai__help-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Контакты ─────────────────────────────────────────────── */
.home-spasai__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-spasai__contact {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition:
    transform 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    background 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.home-spasai__contact:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 180, 74, 0.5);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
}

.home-spasai__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(212, 180, 74, 0.18) 0%, rgba(212, 180, 74, 0.06) 100%);
  border: 1px solid rgba(212, 180, 74, 0.28);
  color: #f0d78c;
  flex-shrink: 0;
}

.home-spasai__contact-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.home-spasai__contact-body {
  flex: 1 1 0;
  min-width: 0;
}

.home-spasai__contact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.home-spasai__contact-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Адаптация: планшет ───────────────────────────────────── */
@media (max-width: 960px) {
  .home-spasai__partner {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .home-spasai__help {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* ── Адаптация: телефон ───────────────────────────────────── */
@media (max-width: 640px) {
  .home-spasai__hero {
    min-height: 0;
    padding: 28px 18px 32px;
    align-items: flex-start;
    border-radius: var(--radius-lg);
  }

  .home-spasai__title {
    font-size: clamp(26px, 8vw, 34px);
  }

  .home-spasai__panel {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }

  .home-spasai__partner {
    grid-template-columns: 1fr 1fr;
  }

  .home-spasai__help {
    grid-template-columns: 1fr;
  }

  .home-spasai__contact {
    flex-basis: 100%;
  }
}

/* =========================================================
   Контакты
   ========================================================= */
.home-contacts {
  background: linear-gradient(160deg, #2a3133 0%, #1a2022 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 32px);
  color: var(--on-dark);
  box-shadow: var(--shadow-deep);
  position: relative;
  overflow: hidden;
}

.home-contacts::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(closest-side, var(--accent-glow-s), transparent 70%);
  pointer-events: none;
}

.home-contacts .home-section__title {
  color: #fff;
  position: relative;
}

.home-contacts__body {
  margin: 0;
  font-style: normal;
  position: relative;
}

.home-contacts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 24px;
}

.home-contacts__item {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.home-contacts__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.home-contacts__label::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.home-contacts__value {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
  word-break: break-word;
}

.home-contacts__link {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
  text-decoration: none;
  word-break: break-word;
  border-radius: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.home-contacts__link:hover {
  color: var(--accent-soft);
  border-color: #ffffff;
}

.home-contacts__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

/* =========================================================
   Нижняя навигация по разделам
   ========================================================= */
.home-bottom-nav {
  padding-top: 4px;
}

.home-bottom-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.home-bottom-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text-strong);
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-150);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.home-bottom-nav__link:hover {
  border-color: #ffffff;
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 14px var(--accent-glow-s);
}

.home-bottom-nav__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.home-bottom-nav__item--services {
  width: 100%;
}

.home-bottom-nav__details {
  margin: 0;
  padding: 0;
  border: 0;
}

.home-bottom-nav__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text-strong);
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-150);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.home-bottom-nav__summary::-webkit-details-marker {
  display: none;
}

.home-bottom-nav__summary::marker {
  content: "";
}

.home-bottom-nav__details[open] .home-bottom-nav__summary {
  border-color: #ffffff;
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.10);
}

.home-bottom-nav__summary:hover {
  border-color: #ffffff;
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.10);
}

.home-bottom-nav__summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.home-bottom-nav__submenu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 4px 0;
}

.home-bottom-nav__submenu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text-strong);
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-150);
  background: var(--ink-050);
  box-shadow: var(--shadow-1);
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.home-bottom-nav__submenu-link:hover {
  border-color: #ffffff;
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 0 12px var(--accent-glow-s);
}

.home-bottom-nav__submenu-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

/* =========================================================
   Внутренние страницы
   ========================================================= */
.inner-page {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

.inner-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-pill);
}

.inner-page__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-strong);
}

.inner-page__lead {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
}

.inner-page__para {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-base);
}

.inner-page__para:last-of-type {
  margin-bottom: 0;
}

.inner-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.inner-page__back:hover {
  color: var(--accent);
  border-color: #ffffff;
}

.inner-page__back:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

.inner-page__sublinks {
  list-style: none;
  margin: 4px 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.inner-page__sublinks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-strong);
  text-decoration: none;
  background: var(--ink-050);
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-md);
  transition:
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out),
    transform 0.15s var(--ease-out);
}

.inner-page__sublinks a::after {
  content: "→";
  color: var(--accent-soft);
  transition: transform 0.2s var(--ease-out);
}

.inner-page__sublinks a:hover {
  color: var(--accent-soft);
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

.inner-page__sublinks a:hover::after {
  transform: translateX(3px);
}

.inner-page__sublinks a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

/* ----- Раздел «Ресурсы» (ширина как на главной) ----- */
.resources-page__header {
  margin-bottom: clamp(22px, 3vw, 32px);
}

.resources-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-pill);
}

.resources-page__eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4b44a;
  box-shadow: 0 0 8px rgba(212, 180, 74, 0.42);
}

.resources-page__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-strong);
}

.resources-page__lead {
  margin: 0;
  max-width: 42em;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.55;
  color: var(--text-muted);
}

.resources-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: clamp(24px, 3vw, 34px);
  font-size: 15px;
  font-weight: 600;
  color: #f0d78c;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 180, 74, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.resources-page__back:hover {
  color: #fff;
  border-color: #d4b44a;
}

.resources-page__back:focus-visible {
  outline: 2px solid rgba(212, 180, 74, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

.resource-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 16px);
}

.resource-card {
  --resource-glow: rgba(212, 180, 74, 0.22);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  padding: clamp(20px, 2.2vw, 26px) clamp(18px, 2vw, 24px) clamp(18px, 2vw, 22px);
  background:
    radial-gradient(circle at 100% 0%, var(--resource-glow) 0%, transparent 58%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  color: var(--text-strong);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    background 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out);
}

.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #d4b44a 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
}

.resource-card::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--resource-glow) 0%, transparent 68%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.resource-card:hover,
.resource-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(212, 180, 74, 0.58);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 180, 74, 0.28) 0%, transparent 62%),
    linear-gradient(165deg, rgba(212, 180, 74, 0.12) 0%, rgba(212, 180, 74, 0.03) 100%);
  box-shadow:
    0 18px 40px -20px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(212, 180, 74, 0.28);
  outline: none;
}

.resource-card:hover::before,
.resource-card:focus-visible::before {
  opacity: 1;
}

.resource-card:hover::after,
.resource-card:focus-visible::after {
  opacity: 0.85;
  transform: scale(1.08);
}

.resource-card--museum { --resource-glow: rgba(240, 215, 140, 0.2); }
.resource-card--telegram { --resource-glow: rgba(212, 180, 74, 0.18); }
.resource-card--books { --resource-glow: rgba(212, 180, 74, 0.26); }

.resource-card__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: #f0d78c;
  background: linear-gradient(145deg, rgba(212, 180, 74, 0.24) 0%, rgba(212, 180, 74, 0.06) 100%);
  border: 1px solid rgba(212, 180, 74, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(240, 215, 140, 0.2),
    0 8px 18px -12px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
  transition: transform 0.32s var(--ease-out), background 0.32s var(--ease-out);
}

.resource-card:hover .resource-card__icon,
.resource-card:focus-visible .resource-card__icon {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(145deg, rgba(212, 180, 74, 0.34) 0%, rgba(212, 180, 74, 0.12) 100%);
}

.resource-card__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.resource-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.resource-card__tag {
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0d78c;
  background: transparent;
  border: 1px solid rgba(212, 180, 74, 0.62);
  border-radius: var(--radius-pill);
  box-shadow:
    0 0 12px rgba(212, 180, 74, 0.22),
    inset 0 0 10px rgba(212, 180, 74, 0.06);
  text-shadow: 0 0 12px rgba(212, 180, 74, 0.5);
  transition:
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    text-shadow 0.25s var(--ease-out);
}

.resource-card:hover .resource-card__tag,
.resource-card:focus-visible .resource-card__tag {
  color: #fff8dc;
  border-color: #d4b44a;
  box-shadow:
    0 0 18px rgba(212, 180, 74, 0.45),
    0 0 6px rgba(240, 215, 140, 0.35),
    inset 0 0 14px rgba(212, 180, 74, 0.1);
  text-shadow: 0 0 18px rgba(240, 215, 140, 0.75);
}

.resource-card__title {
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.015em;
}

.resource-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
}

.resource-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.resource-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0d78c;
  text-shadow: 0 0 14px rgba(212, 180, 74, 0.4);
  transition: color 0.25s var(--ease-out), text-shadow 0.25s var(--ease-out);
}

.resource-card:hover .resource-card__meta,
.resource-card:focus-visible .resource-card__meta {
  color: #fff8dc;
  text-shadow: 0 0 20px rgba(240, 215, 140, 0.65);
}

.resource-card__meta svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.resource-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  color: #f0d78c;
  background: transparent;
  border: 1.5px solid rgba(212, 180, 74, 0.68);
  box-shadow:
    0 0 14px rgba(212, 180, 74, 0.3),
    inset 0 0 10px rgba(212, 180, 74, 0.08);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.resource-card:hover .resource-card__arrow,
.resource-card:focus-visible .resource-card__arrow {
  transform: translateX(3px);
  color: #fff8dc;
  border-color: #f0d78c;
  box-shadow:
    0 0 22px rgba(212, 180, 74, 0.52),
    0 0 8px rgba(240, 215, 140, 0.42),
    inset 0 0 14px rgba(212, 180, 74, 0.12);
}

.resource-card:focus-visible {
  outline: 2px solid rgba(212, 180, 74, 0.75);
  outline-offset: 3px;
}

.inner-page__stub {
  margin: 20px 0 0;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  background: rgba(212, 180, 74, 0.08);
  border: 1px dashed rgba(212, 180, 74, 0.35);
  border-radius: var(--radius-md);
}

/* ----- Раздел «Филиалы» ----- */
.branches-page__header {
  margin-bottom: clamp(22px, 3vw, 32px);
}

.branches-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-pill);
}

.branches-page__eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glass-today-border, #d4b44a);
  box-shadow: 0 0 8px var(--glass-today-glow, rgba(212, 180, 74, 0.42));
}

.branches-page__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-strong);
}

.branches-page__lead {
  margin: 0;
  max-width: 42em;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.55;
  color: var(--text-muted);
}

.branches-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: clamp(24px, 3vw, 34px);
  font-size: 15px;
  font-weight: 600;
  color: #f0d78c;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 180, 74, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.branches-page__back:hover {
  color: #fff;
  border-color: var(--glass-today-border, #d4b44a);
}

.branches-page__back:focus-visible {
  outline: 2px solid rgba(212, 180, 74, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

.branch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.branch-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 148px;
  margin: 0;
  padding: clamp(18px, 2.4vw, 22px) clamp(18px, 2.4vw, 24px);
  text-align: left;
  font: inherit;
  color: var(--text-strong);
  cursor: pointer;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 180, 74, 0.12), transparent 55%),
    var(--ink-050);
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition:
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out),
    transform 0.15s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.branch-card:hover {
  color: var(--text-strong);
  border-color: var(--glass-today-border, #d4b44a);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 180, 74, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px -16px rgba(0, 0, 0, 0.45),
    0 0 14px rgba(212, 180, 74, 0.18);
}

.branch-card:focus-visible {
  outline: 2px solid rgba(212, 180, 74, 0.75);
  outline-offset: 3px;
}

.branch-card__tag {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c4a12;
  background: linear-gradient(180deg, #d4b44a 0%, #f0d78c 100%);
  border-radius: var(--radius-pill);
}

.branch-card__title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.branch-card__hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.branch-card__action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #7a6518;
}

.branch-card:hover .branch-card__action {
  color: var(--glass-today-border, #d4b44a);
}

.branch-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2.4vw, 24px);
  background: rgba(15, 18, 21, 0.62);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out);
}

.branch-modal[hidden] {
  display: none !important;
}

.branch-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.branch-modal__card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - clamp(16px, 4vw, 48px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #3d464a 0%, #262c2f 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-deep);
  color: #fff;
  transform: translateY(12px) scale(0.985);
  transition: transform 0.24s var(--ease-out);
  overflow: hidden;
}

.branch-modal.is-open .branch-modal__card {
  transform: translateY(0) scale(1);
}

.branch-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.branch-modal__meta {
  min-width: 0;
}

.branch-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glass-today-tag, #f0d78c);
}

.branch-modal__title {
  margin: 0;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.branch-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.branch-modal__close:hover {
  border-color: var(--glass-today-border, #d4b44a);
  box-shadow: 0 0 14px rgba(212, 180, 74, 0.18);
}

.branch-modal__close:focus-visible {
  outline: 2px solid rgba(212, 180, 74, 0.75);
  outline-offset: 2px;
}

.branch-modal__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px 22px;
}

.branch-modal__row {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.branch-modal__row:last-child {
  margin-bottom: 0;
}

.branch-modal__label {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.branch-modal__address {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}

.branch-modal__stub {
  margin: 4px 0 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(212, 180, 74, 0.1);
  border: 1px dashed rgba(212, 180, 74, 0.35);
  border-radius: var(--radius-md);
}

body.is-branch-modal-open {
  overflow: hidden;
}

/* =========================================================
   Календарь — «Градиентное свечение» (Вариант 3, точная копия из demo)
   ========================================================= */
.events-panel {
  --cal-ink: #ffffff;
  --cal-ink-secondary: rgba(255, 255, 255, 0.65);
  --cal-ink-tertiary: rgba(255, 255, 255, 0.3);

  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  font-family:
    "Proxima Nova",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  letter-spacing: -0.012em;
  isolation: isolate;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.events-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.events-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  flex-shrink: 0;
}

.events-panel__dates {
  text-align: right;
  flex: 0 1 auto;
  min-width: 0;
}

.events-panel__months {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.events-panel__range {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.events-panel__list {
  display: flex;
}

.events-panel__list-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.event-row {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.event-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(255, 255, 255, 0.2);
}

.event-row--today {
  border-left-color: #d4b44a;
  background: linear-gradient(90deg, rgba(212, 180, 74, 0.18) 0%, rgba(212, 180, 74, 0.02) 100%);
}

.event-row--today:hover {
  background: linear-gradient(90deg, rgba(212, 180, 74, 0.26) 0%, rgba(212, 180, 74, 0.05) 100%);
}

.event-row__date-col {
  text-align: center;
  min-width: 28px;
  flex-shrink: 0;
}

.event-row__num {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.event-row--today .event-row__num,
.event-row--today .event-row__wd {
  color: #f0d78c;
}

.event-row__date--past .event-row__num {
  color: rgba(255, 255, 255, 0.35);
}

.event-row__wd {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
  letter-spacing: 0.08em;
}

.event-row__date--weekend .event-row__wd {
  color: #ff8a8a;
}

.event-row__date--past .event-row__wd {
  color: rgba(255, 255, 255, 0.22);
}

.event-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-row__empty {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  height: 28px;
  display: flex;
  align-items: center;
}

.event-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-item + .event-item {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.event-item__time {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-soft);
  line-height: 1.2;
}

.event-item__main {
  min-width: 0;
}

.event-item__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
}

.event-item__place {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.event-paused-badge {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  white-space: nowrap;
}

.event-item--paused .event-item__time {
  color: rgba(255, 255, 255, 0.35);
}

.event-item--paused .event-item__title,
.event-item--paused .event-item__place {
  color: rgba(255, 255, 255, 0.42);
}

.event-paused-badge--panel {
  display: block;
  margin-top: 3px;
}

/* =========================================================
   Адаптация под планшеты и мобильные
   ========================================================= */
@media (max-width: 960px) {
  .home-main__intro {
    grid-column: 1 / -1;
    min-height: 280px;
  }

  .events-panel {
    grid-column: 1 / -1;
  }

  .home-about__column--text {
    grid-column: 1 / span 7;
  }

  .home-about__column--video {
    grid-column: 8 / span 5;
  }

  .home-services__item {
    grid-column: span 6;
  }

  .home-contacts__item {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .home-main {
    padding: 22px var(--layout-padding-x) 40px;
  }

  .home-main__grid {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 24px;
  }

  .home-main__intro {
    grid-column: 1 / -1;
    order: -1;
    justify-content: flex-start;
    padding: 24px 0;
    min-height: 0;
  }

  .home-main__intro-content {
    align-items: flex-start;
  }

  .home-main__eyebrow {
    font-size: 9px;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
  }

  .home-main__title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .home-main__text {
    font-size: clamp(15px, 4vw, 16px);
  }

  .home-main__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .home-main__cta .btn {
    width: 100%;
  }

  .events-panel {
    grid-column: 1 / -1;
    order: 0;
    padding: 24px 20px 20px;
  }

  .event-row {
    gap: 12px;
    padding: 10px;
  }

  .home-about__inner {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  .home-about__column--text,
  .home-about__column--video {
    grid-column: 1 / -1;
  }

  .home-about__column--text {
    padding: 18px 18px;
  }

  .home-video-slot {
    min-height: 200px;
  }

  .home-services__list {
    gap: 12px;
  }

  .home-services__item {
    grid-column: 1 / -1;
  }

  .home-about__values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-about__value {
    padding: 18px 18px 16px;
  }

  .home-about__value-icon {
    width: 40px;
    height: 40px;
  }

  .home-contacts {
    padding: 22px 20px;
  }

  .home-contacts__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .home-contacts__item {
    grid-column: 1 / -1;
  }

  .home-bottom-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .home-bottom-nav__link {
    width: 100%;
    justify-content: center;
  }

  .home-bottom-nav__summary {
    width: 100%;
    justify-content: center;
  }

  .home-bottom-nav__submenu {
    flex-direction: column;
    align-items: stretch;
  }

  .home-bottom-nav__submenu-link {
    width: 100%;
    justify-content: center;
  }

  .inner-page__sublinks {
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .branch-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .branch-card {
    min-height: 140px;
    padding: 18px 16px 16px;
  }

  .resource-card {
    min-height: 200px;
    padding: 18px 16px 16px;
  }

  .resource-card__icon {
    width: 46px;
    height: 46px;
  }

  .resource-card__icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 420px) {
  .site-header__brand {
    font-size: 14px;
  }

  .home-section__title {
    font-size: 20px;
  }

  .home-about__values {
    grid-template-columns: 1fr;
  }

  .resource-cards {
    grid-template-columns: 1fr;
  }

  .branch-cards {
    grid-template-columns: 1fr;
  }

  .branch-card {
    min-height: 0;
  }

  .resource-card {
    min-height: 0;
  }

  .page-section__title {
    font-size: 19px;
  }
}

/* =========================================================
   Юридические страницы и подвал
   ========================================================= */
.legal-page {
  max-width: 860px;
}

.legal-page__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.legal-page__nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-soft);
  text-decoration: none;
  background: rgba(212, 180, 74, 0.08);
  border: 1px solid rgba(212, 180, 74, 0.32);
  border-radius: var(--radius-pill);
  transition:
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.legal-page__nav a:hover,
.legal-page__nav a:focus-visible {
  color: #f0d78c;
  border-color: var(--glass-today-border, #d4b44a);
  box-shadow: 0 0 14px rgba(212, 180, 74, 0.18);
}

.legal-page__nav a:focus-visible {
  outline: 2px solid rgba(212, 180, 74, 0.75);
  outline-offset: 2px;
}

.legal-doc {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-150);
}

.legal-doc:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-doc__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-strong);
}

.legal-doc__meta {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.legal-doc h3 {
  margin: 22px 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-strong);
}

.legal-doc p,
.legal-doc li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-base);
}

.legal-doc p {
  margin: 0 0 12px;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 14px;
  padding-left: 1.35em;
}

.legal-doc li {
  margin-bottom: 6px;
}

.legal-doc li:last-child {
  margin-bottom: 0;
}

.legal-doc a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: rgba(212, 180, 74, 0.45);
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease-out);
}

.legal-doc a:hover,
.legal-doc a:focus-visible {
  color: #f0d78c;
}

.legal-doc a:focus-visible {
  outline: 2px solid rgba(212, 180, 74, 0.75);
  outline-offset: 2px;
  border-radius: 2px;
}

.external-link-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
}

.external-link-hint a {
  color: rgba(240, 215, 140, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 180, 74, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.external-link-hint a:hover,
.external-link-hint a:focus-visible {
  color: #f0d78c;
  border-color: var(--glass-today-border, #d4b44a);
}

.external-link-hint a:focus-visible {
  outline: 2px solid rgba(212, 180, 74, 0.75);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 28px) clamp(16px, 4vw, 32px) clamp(32px, 5vw, 48px);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__brand-block {
  flex: 1 1 auto;
  min-width: min(100%, 280px);
  max-width: 100%;
}

.site-footer__copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
}

.site-footer__legal {
  margin: 4px 0 0;
  max-width: 42em;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.34);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(240, 215, 140, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 180, 74, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #f0d78c;
  border-color: var(--glass-today-border, #d4b44a);
}

.site-footer__links a:focus-visible {
  outline: 2px solid rgba(212, 180, 74, 0.75);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 560px) {
  .legal-page__nav {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-page__nav a {
    justify-content: center;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Telegram Mini App — адаптация safe-area-insets
   ========================================================= */

/* Переменные по умолчанию (вне Telegram равны 0) */
:root {
  --tg-safe-top:    0px;
  --tg-safe-bottom: 0px;
  --tg-safe-left:   0px;
  --tg-safe-right:  0px;
}

/* Шапка сдвигается вниз на величину верхнего safe-area */
.site-header {
  padding-top: calc(var(--tg-safe-top) + 0px);
}

/* Нижний отступ страницы, чтобы контент не прятался за nav-бар */
body {
  padding-bottom: var(--tg-safe-bottom);
}
