/* Главная — один цельный герой + спокойные секции */

/* Стрелки «между разделами» на главной выглядят как слайдер — скрываем */
body:has(#home-hero-wrap) .premium-page-arrows {
  display: none !important;
}

.home-hero {
  --home-hero-ink: #f8f6f1;
  --home-hero-gold: #ecc978;
  position: relative;
  isolation: isolate;
  min-height: min(62vh, 520px);
  display: flex;
  align-items: center;
  margin: 0;
  overflow: hidden;
  background: #152033;
  color: var(--home-hero-ink);
}

.home-hero[hidden] {
  display: none !important;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.home-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 18%;
  transform: scale(1.04);
  animation: homeKen 18s ease-out both;
}

.home-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(8, 14, 26, 0.92) 0%,
      rgba(8, 14, 26, 0.72) 28%,
      rgba(8, 14, 26, 0.38) 52%,
      rgba(8, 14, 26, 0.12) 72%,
      rgba(8, 14, 26, 0.04) 100%
    ),
    linear-gradient(
      to top,
      rgba(8, 14, 26, 0.88) 0%,
      rgba(8, 14, 26, 0.45) 42%,
      rgba(8, 14, 26, 0.12) 68%,
      transparent 88%
    );
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.2rem, 9vw, 5.5rem) 0 clamp(2.4rem, 5.5vw, 3.6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 40rem;
  margin-left: max(1rem, calc((100% - min(1180px, calc(100% - 2rem))) / 2));
  margin-right: auto;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.home-hero__brand {
  margin: 0;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(2rem, 4.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #fff !important;
  opacity: 1;
  text-wrap: balance;
  animation: homeRise 0.7s ease forwards;
}

.home-hero__legal {
  margin: 0;
  max-width: 42rem;
  font-family: var(--theme-font-body, "General Sans", "Segoe UI", sans-serif);
  font-size: clamp(0.78rem, 1.15vw, 0.9rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88) !important;
  opacity: 1;
  text-wrap: pretty;
  animation: homeRise 0.7s 0.05s ease forwards;
}

.home-hero__title {
  margin: 0.15rem 0 0;
  font-family: var(--theme-font-body, "General Sans", "Segoe UI", sans-serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.96) !important;
  opacity: 1;
  max-width: 18ch;
  animation: homeRise 0.7s 0.1s ease forwards;
}

.home-hero__lead {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9) !important;
  opacity: 1;
  max-width: 44ch;
  animation: homeRise 0.7s 0.14s ease forwards;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
  opacity: 1;
  text-shadow: none;
  animation: homeRise 0.7s 0.22s ease forwards;
}

.home-hero__note {
  margin: 0.85rem 0 0;
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82) !important;
  opacity: 1;
  animation: homeRise 0.7s 0.28s ease forwards;
}

@keyframes homeRise {
  from {
    transform: translateY(12px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes homeKen {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.04);
  }
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.65rem 1.15rem;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.25;
  text-align: center;
  border: 1.5px solid transparent;
  min-height: 44px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-btn:focus-visible {
  outline: 3px solid var(--home-hero-gold, #ecc978);
  outline-offset: 3px;
}

.home-btn--primary {
  background: var(--home-hero-gold, #ecc978);
  color: #1a1408;
  border-color: var(--home-hero-gold, #ecc978);
}

.home-btn--primary:hover {
  background: #f3d78a;
  border-color: #f3d78a;
}

.home-btn--secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}

.home-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.home-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.home-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.home-btn--on-light.home-btn--primary {
  background: var(--theme-primary, #243b84);
  color: #fff !important;
  border-color: var(--theme-primary, #243b84);
  box-shadow: 0 1px 0 color-mix(in srgb, #000 12%, transparent);
}

.home-btn--on-light.home-btn--secondary {
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #18243d);
  border-color: var(--theme-border, #d4deef);
  box-shadow: none;
}

.home-btn--on-light.home-btn--secondary:hover {
  background: var(--theme-surface-soft, #f5f7fb);
}

.home-btn--on-light.home-btn--ghost {
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #18243d);
  border-color: var(--theme-border, #d4deef);
  font-weight: 700;
}

.home-section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-primary, #243b84);
}

/* Быстрый старт: контакты + разделы */
.home-start {
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fb 100%);
  border-bottom: 1px solid var(--theme-border, #d4deef);
  scroll-margin-top: 5.5rem;
}

.home-start[hidden] {
  display: none !important;
}

.home-start__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 320px) minmax(0, 1.25fr);
  gap: 1rem 1.15rem;
  align-items: stretch;
}

.home-start__head,
.home-contact-card,
.home-links {
  min-height: 100%;
}

.home-start__head {
  padding: 1.05rem 0.25rem 0 0;
}

.home-start__title {
  margin: 0 0 0.45rem;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(1.65rem, 3vw, 2rem);
  line-height: 1.1;
  color: #1c2d55;
}

.home-start__text {
  margin: 0;
  max-width: 32ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--theme-muted, #5f6d8c);
}

.home-contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--theme-primary, #243b84) 18%, var(--theme-border, #d4deef));
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 55%, var(--theme-surface, #fff)),
    var(--theme-surface, #fff) 72%
  );
}

.home-contact-card[hidden] {
  display: none !important;
}

.home-contact-card__title {
  margin: 0;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.2;
  color: var(--theme-text, #18243d);
}

.home-contact-card__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--theme-muted, #5f6d8c);
}

.home-contact-card__phone {
  margin: 0.15rem 0 0;
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
}

.home-contact-card__phone a {
  color: var(--theme-primary, #243b84);
  text-decoration: none;
}

.home-contact-card__phone a:hover {
  text-decoration: underline;
}

.home-contact-card__hours {
  margin: 0;
  font-size: 0.92rem;
  color: var(--theme-muted, #5f6d8c);
}

.home-contact-card .home-btn {
  margin-top: 0.35rem;
  align-self: flex-start;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  align-content: start;
  background: #fff;
  border: 1px solid var(--theme-border, #d4deef);
  border-radius: 18px;
  padding: 0.75rem;
}

.home-links[hidden] {
  display: none !important;
}

.home-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid #e1e8f3;
  background: #f7f9fc;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.home-link-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 35%, var(--theme-border, #d4deef));
  box-shadow: 0 8px 22px rgba(24, 36, 61, 0.07);
}

.home-link-card strong {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--theme-text, #18243d);
  line-height: 1.3;
}

.home-link-card span {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--theme-muted, #5f6d8c);
}

.home-link-card:focus-visible {
  outline: 3px solid var(--theme-primary, #243b84);
  outline-offset: 3px;
}

@media (min-width: 800px) {
  .home-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 799px) {
  .home-start__inner {
    grid-template-columns: 1fr;
  }

  .home-start__head {
    padding: 0;
  }
}

.home-start__inner:has(.home-contact-card[hidden]),
.home-start__inner:has(.home-links[hidden]) {
  grid-template-columns: 1fr;
}

/* Чем занимаемся */
.home-programs {
  position: relative;
  padding: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  background: #f7f9fc;
}

.home-programs[hidden] {
  display: none !important;
}

.home-programs__inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-programs__head {
  margin: 0 0 1.35rem;
  max-width: 38ch;
}

.home-programs__head h2 {
  margin: 0 0 0.45rem;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #1c2d55;
}

.home-programs__head p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--theme-muted, #5f6d8c);
}

.home-programs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.75rem;
}

.home-programs__grid--cards {
  gap: 1rem;
}

.home-programs__grid--cards .home-program {
  border-left: none;
  padding: 1.2rem 1.2rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, #1c2d55 10%, #d4deef);
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 36, 61, 0.04);
}

.home-programs__grid--cards .home-program h3 {
  font-size: 1.05rem;
}

.home-programs__grid--cards .home-program p {
  font-size: 0.94rem;
}

.home-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.home-audience li {
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-left: 2px solid color-mix(in srgb, #1c2d55 35%, transparent);
  background: color-mix(in srgb, #fff 70%, transparent);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  color: #1c2d55;
}

.home-program {
  position: relative;
  padding: 0 0 0.2rem 0.9rem;
  border-left: 2px solid color-mix(in srgb, #1c2d55 28%, transparent);
}

.home-program__n {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, #1c2d55 55%, #8a97b3);
}

.home-program h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: #1c2d55;
  line-height: 1.25;
}

.home-program p,
.home-program ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #3b4d6e;
}

.home-program__more {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--theme-primary, #243b84);
  text-decoration: none;
}

.home-program__more:hover {
  text-decoration: underline;
}

.home-program__more:focus-visible {
  outline: 3px solid var(--theme-primary, #243b84);
  outline-offset: 3px;
}

.home-trust {
  margin: 1.4rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, #1c2d55 12%, transparent);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3b4d6e;
  max-width: 58ch;
}

.home-trust a {
  color: var(--theme-primary, #243b84);
  font-weight: 650;
}

.home-programs__aside {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, #1c2d55 12%, transparent);
}

.home-programs__qr {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.home-programs__qr img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border: 1px solid #d4deef;
  border-radius: 10px;
  background: #fff;
  padding: 0.2rem;
}

.home-programs__qr span {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1c2d55;
  line-height: 1.35;
}

.home-programs__qr:hover span {
  color: #1f57c3;
}

.home-band {
  padding: clamp(1.25rem, 3vw, 2rem) 0;
}

.home-band[hidden] {
  display: none !important;
}

.home-band--soft {
  background:
    linear-gradient(180deg, #f3f6fc 0%, color-mix(in srgb, var(--theme-primary-soft, #dbe4fb) 40%, #fff) 100%);
}

.home-band--compact {
  padding: clamp(0.9rem, 2.3vw, 1.3rem) 0;
}

.home-band__head {
  margin: 0 0 1.1rem;
  max-width: 40ch;
}

.home-band__head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--theme-text, #18243d);
}

.home-band__head p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--theme-muted, #5f6d8c);
}

.home-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.75rem;
}

@media (min-width: 901px) {
  .home-routes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem 1.35rem;
  }
}

.home-route {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.1rem 0.15rem 1.15rem;
  border-top: 3px solid var(--theme-primary, #243b84);
  transition: color 0.15s ease, transform 0.15s ease;
}

.home-route:hover {
  transform: translateY(-2px);
}

.home-route:hover strong,
.home-route:hover em {
  color: var(--theme-primary, #1f57c3);
}

.home-route:focus-visible {
  outline: 3px solid var(--theme-primary, #243b84);
  outline-offset: 3px;
}

.home-route strong {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--theme-text, #18243d);
}

.home-route span {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--theme-muted, #5f6d8c);
}

.home-route em {
  display: inline-block;
  margin-top: 0.7rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--theme-primary, #243b84);
}

.home-join {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.25rem;
  align-items: end;
}

.home-join--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.home-cta-card {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--theme-border, #d4deef);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 36, 61, 0.04);
}

.home-cta-section .home-section-kicker {
  margin-bottom: 0.25rem;
}

.home-join--compact .home-join__text {
  flex: 1 1 280px;
  max-width: 52ch;
}

.home-join--compact .home-join__text h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
}

.home-join--compact .home-join__text p {
  font-size: 0.96rem;
  max-width: none;
}

.home-join--compact > .home-btn {
  flex: 0 0 auto;
}

.home-join__text h2 {
  margin: 0 0 0.45rem;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-join__text p {
  margin: 0;
  max-width: 48ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--theme-muted, #5f6d8c);
}

.home-join__steps {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: var(--theme-text, #18243d);
  font-size: 0.98rem;
}

.home-join__steps li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.home-join__steps b {
  color: var(--theme-primary, #243b84);
  font-variant-numeric: tabular-nums;
}

.home-join__steps--stacked {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.home-join__steps--stacked li {
  display: grid;
  gap: 0.2rem;
  max-width: 48ch;
}

.home-join__steps--stacked span {
  color: var(--theme-muted, #5f6d8c);
  font-size: 0.98rem;
  line-height: 1.45;
}

.home-help__steps {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  max-width: 52ch;
}

.home-help__steps li {
  display: grid;
  gap: 0.2rem;
}

.home-help__steps b {
  font-size: 1.02rem;
  color: var(--theme-text, #18243d);
}

.home-help__steps span {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--theme-muted, #5f6d8c);
}

.home-help__steps span a {
  color: var(--theme-primary, #243b84);
  font-weight: 650;
  text-decoration: none;
}

.home-help__steps span a:hover {
  text-decoration: underline;
}

.home-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-partner-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 0 0 1.25rem;
}

.home-partner-way {
  padding-top: 0.85rem;
  border-top: 3px solid var(--theme-primary, #243b84);
}

.home-partner-way strong {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--theme-text, #18243d);
}

.home-partner-way span {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--theme-muted, #5f6d8c);
}

@media (max-width: 800px) {
  .home-partner-ways {
    grid-template-columns: 1fr;
  }
}

.home-live {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.home-live__news {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--theme-border, #d4deef);
  border-radius: 18px;
  background: #fff;
}

.home-live__news h2,
.home-live__pod h2 {
  margin: 0 0 0.35rem;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  letter-spacing: -0.02em;
}

.home-live__news > .muted,
.home-live__pod > p {
  margin: 0 0 0.9rem;
  color: var(--theme-muted, #5f6d8c);
  line-height: 1.5;
  font-size: 1rem;
}

.home-news-teaser-list .home-news-teaser-ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-news-teaser-list .home-news-teaser-ul li {
  border-top: 1px solid var(--theme-border, #d4deef);
}

.home-news-teaser-list .home-news-teaser-ul li:last-child {
  border-bottom: 1px solid var(--theme-border, #d4deef);
}

.home-news-teaser-list .home-news-teaser-ul a {
  display: block;
  padding: 0.85rem 0;
  color: var(--theme-text, #18243d);
  text-decoration: none;
  font-weight: 650;
  line-height: 1.4;
  font-size: 1.02rem;
}

.home-news-teaser-list .home-news-teaser-ul a:hover {
  color: var(--theme-primary, #1f57c3);
}

.home-live__pod {
  padding: 1.2rem 1.2rem 1.3rem;
  border-left: none;
  border-top: none;
  border: 1px solid var(--theme-border, #d4deef);
  background: color-mix(in srgb, var(--theme-surface, #fff) 82%, var(--theme-primary-soft, #dbe4fb));
  border-radius: 18px;
  outline: 1px solid color-mix(in srgb, var(--theme-border, #d4deef) 80%, transparent);
}

.home-live__pod h2 {
  color: var(--theme-text, #18243d);
}

.home-live__pod > p {
  color: color-mix(in srgb, var(--theme-text, #18243d) 72%, var(--theme-muted, #5f6d8c));
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36ch;
}

.home-live__pod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.home-live__news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--theme-border, #d4deef);
}

.home-live__news-actions .home-btn,
.home-live__pod-actions .home-btn {
  flex: 1 1 auto;
  min-width: min(100%, 12rem);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 100%;
}

.home-aside-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.home-aside-links a.home-btn {
  border-bottom: none;
  white-space: normal;
}

.home-aside-links a:not(.home-btn) {
  color: var(--theme-primary, #1f57c3);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-primary) 35%, transparent);
}

.home-aside-links a:not(.home-btn):hover {
  border-bottom-color: var(--theme-primary);
}

.home-contact-line {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  color: var(--theme-muted, #5f6d8c);
}

.home-contact-line a {
  color: var(--theme-primary, #1f57c3);
  font-weight: 700;
  text-decoration: none;
}

.events-plan-wrap:not([hidden]) {
  display: block !important;
}

@media (max-width: 900px) {
  .home-hero {
    min-height: auto;
    align-items: flex-end;
  }

  .home-hero__media img {
    object-position: 48% 22%;
  }

  .home-hero__shade {
    background:
      linear-gradient(
        to top,
        rgba(10, 16, 28, 0.94) 0%,
        rgba(10, 16, 28, 0.72) 42%,
        rgba(10, 16, 28, 0.35) 72%,
        rgba(10, 16, 28, 0.16) 100%
      );
  }

  .home-hero__content {
    max-width: none;
    margin: 0 auto;
    width: min(1180px, calc(100% - 1.25rem));
    padding: max(4.5rem, env(safe-area-inset-top, 0px)) 0 max(1.35rem, env(safe-area-inset-bottom, 0px));
    gap: 0.65rem;
  }

  .home-hero__brand {
    font-size: clamp(1.75rem, 8.2vw, 2.35rem);
    line-height: 1.05;
  }

  .home-hero__legal {
    font-size: 0.72rem;
    line-height: 1.4;
    max-width: none;
  }

  .home-hero__title {
    font-size: clamp(1.05rem, 4.2vw, 1.2rem);
    max-width: none;
  }

  .home-hero__lead {
    font-size: 0.98rem;
    max-width: none;
  }

  .home-hero__actions {
    width: 100%;
    margin-top: 0.55rem;
    gap: 0.6rem;
    flex-direction: column;
  }

  .home-hero__actions .home-btn {
    width: 100%;
  }

  .home-programs {
    padding: 1.5rem 0 1.35rem;
  }

  .home-programs__inner,
  .home-band .container,
  .home-band.container {
    width: min(1100px, calc(100% - 1.25rem));
  }

  .home-programs__head,
  .home-band__head {
    max-width: none;
    margin-bottom: 0.95rem;
  }

  .home-programs__head h2,
  .home-band__head h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
  }

  .home-audience {
    gap: 0.4rem;
    margin-bottom: 1.15rem;
  }

  .home-audience li {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
  }

  .home-programs__grid,
  .home-join,
  .home-live,
  .home-partner-ways {
    grid-template-columns: 1fr;
  }

  .home-programs__grid {
    gap: 1.15rem;
  }

  .home-program {
    padding-left: 0.75rem;
  }

  .home-trust {
    margin-top: 1.2rem;
    font-size: 0.9rem;
  }

  .home-help__steps {
    max-width: none;
  }

  .home-help__actions {
    width: 100%;
  }

  .home-help__actions .home-btn,
  .home-join .home-btn {
    flex: 1 1 auto;
    min-height: 48px;
  }

  .home-routes {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.85rem;
  }

  .home-route {
    padding: 0.85rem 0.1rem 0.95rem;
  }

  .home-route strong {
    font-size: 1.02rem;
  }

  .home-route span {
    font-size: 0.9rem;
  }

  .home-live__pod {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 560px) {
  .home-hero__content {
    width: calc(100% - 1rem);
    padding-top: max(4.2rem, env(safe-area-inset-top, 0px));
    gap: 0.55rem;
  }

  .home-hero__brand {
    font-size: clamp(1.55rem, 9vw, 1.95rem);
  }

  .home-hero__legal {
    font-size: 0.68rem;
    line-height: 1.38;
  }

  .home-hero__actions {
    flex-direction: column;
  }

  .home-hero__actions .home-btn {
    width: 100%;
    flex: 1 1 auto;
  }

  .home-audience li {
    flex: 1 1 100%;
  }

  .home-routes {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .home-route {
    padding: 0.95rem 0.05rem 1rem;
  }

  .home-help__actions {
    flex-direction: column;
  }

  .home-help__actions .home-btn {
    width: 100%;
  }

  .home-programs__inner,
  .home-band .container,
  .home-band.container {
    width: calc(100% - 1rem);
  }

  .home-live__pod-actions {
    flex-direction: column;
  }

  .home-live__pod-actions .home-btn,
  .home-live__news-actions .home-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__media img,
  .home-hero__brand,
  .home-hero__legal,
  .home-hero__title,
  .home-hero__lead,
  .home-hero__actions,
  .home-hero__note,
  .home-route {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .home-hero__media img {
    transform: none;
  }
}

/* Тёмная тема: убираем «светлые пятна» со светлым текстом */
:root[data-theme="dark"] .home-band--soft {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--theme-surface, #162038) 92%, #0a1222) 0%,
      color-mix(in srgb, var(--theme-primary-soft, #2a3d6a) 35%, var(--theme-surface, #162038)) 100%
    );
}

:root[data-theme="dark"] .home-programs {
  background:
    radial-gradient(900px 280px at 8% 0%, color-mix(in srgb, var(--theme-primary) 22%, transparent), transparent 55%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--theme-surface, #162038) 88%, #0c1424) 0%,
      var(--theme-bg, #0f1729) 100%
    );
}

:root[data-theme="dark"] .home-programs__head h2,
:root[data-theme="dark"] .home-program h3,
:root[data-theme="dark"] .home-programs__qr span {
  color: var(--theme-text, #e8eefc) !important;
}

:root[data-theme="dark"] .home-programs__head p,
:root[data-theme="dark"] .home-program p,
:root[data-theme="dark"] .home-program ul,
:root[data-theme="dark"] .home-program__n,
:root[data-theme="dark"] .home-trust {
  color: var(--theme-muted, #a7b4d0) !important;
}

:root[data-theme="dark"] .home-audience li {
  color: var(--theme-text, #e8eefc);
  background: color-mix(in srgb, var(--theme-surface, #162038) 80%, transparent);
  border-left-color: color-mix(in srgb, var(--theme-primary, #6b8fd4) 55%, transparent);
}

:root[data-theme="dark"] .home-program__more,
:root[data-theme="dark"] .home-trust a,
:root[data-theme="dark"] .home-help__map {
  color: color-mix(in srgb, var(--theme-primary, #8eb0f0) 70%, #fff) !important;
}

:root[data-theme="dark"] .home-trust {
  border-top-color: color-mix(in srgb, var(--theme-border, #3a4a6a) 80%, transparent);
}

:root[data-theme="dark"] .home-help__steps b {
  color: var(--theme-text, #e8eefc) !important;
}

:root[data-theme="dark"] .home-help__steps span {
  color: var(--theme-muted, #a7b4d0) !important;
}

:root[data-theme="dark"] .home-help__steps span a {
  color: color-mix(in srgb, var(--theme-primary, #8eb0f0) 70%, #fff) !important;
}

:root[data-theme="dark"] .home-program {
  border-left-color: color-mix(in srgb, var(--theme-primary, #6b8fd4) 55%, transparent);
}

:root[data-theme="dark"] .home-program li::before {
  background: var(--theme-primary, #6b8fd4);
}

:root[data-theme="dark"] .home-programs__aside {
  border-top-color: color-mix(in srgb, var(--theme-border, #3a4a6a) 80%, transparent);
}

:root[data-theme="dark"] .home-programs__qr img {
  border-color: var(--theme-border, #3a4a6a);
  background: #fff;
}

:root[data-theme="dark"] .home-band__head h2,
:root[data-theme="dark"] .home-join__text h2,
:root[data-theme="dark"] .home-live__news h2,
:root[data-theme="dark"] .home-live__pod h2,
:root[data-theme="dark"] .home-route strong {
  color: var(--theme-text, #e8eefc) !important;
}

:root[data-theme="dark"] .home-band__head p,
:root[data-theme="dark"] .home-join__text p,
:root[data-theme="dark"] .home-live__news > .muted,
:root[data-theme="dark"] .home-live__pod > p,
:root[data-theme="dark"] .home-route span,
:root[data-theme="dark"] .home-contact-line {
  color: var(--theme-muted, #a7b4d0) !important;
}

:root[data-theme="dark"] .home-route {
  border-top-color: color-mix(in srgb, var(--theme-primary, #6b8fd4) 70%, #8eb0f0);
}

:root[data-theme="dark"] .home-route em,
:root[data-theme="dark"] .home-aside-links a,
:root[data-theme="dark"] .home-contact-line a {
  color: color-mix(in srgb, var(--theme-primary, #8eb0f0) 70%, #fff) !important;
  border-bottom-color: color-mix(in srgb, var(--theme-primary) 45%, transparent);
}

:root[data-theme="dark"] .home-news-teaser-list .home-news-teaser-ul a {
  color: var(--theme-text, #e8eefc) !important;
}

:root[data-theme="dark"] .home-news-teaser-list .home-news-teaser-ul li,
:root[data-theme="dark"] .home-news-teaser-list .home-news-teaser-ul li:last-child {
  border-color: var(--theme-border, #3a4a6a);
}

:root[data-theme="dark"] .home-live__pod {
  background: color-mix(in srgb, var(--theme-surface-soft, #1c2a48) 88%, #0c1424);
  outline-color: var(--theme-border, #3a4a6a);
  border-top-color: color-mix(in srgb, var(--theme-accent, #d8a847) 80%, #fff);
}

:root[data-theme="dark"] .home-partner-way strong {
  color: var(--theme-text, #e8eefc) !important;
}

:root[data-theme="dark"] .home-partner-way span,
:root[data-theme="dark"] .home-join__steps--stacked span {
  color: var(--theme-muted, #a7b4d0) !important;
}

:root[data-theme="dark"] .home-btn--on-light.home-btn--secondary {
  background: color-mix(in srgb, var(--theme-accent, #d8a847) 92%, #fff) !important;
  color: #1a1205 !important;
  border-color: color-mix(in srgb, var(--theme-accent, #d8a847) 55%, #fff) !important;
  font-weight: 800;
}

:root[data-theme="dark"] .home-btn--on-light.home-btn--ghost {
  background: color-mix(in srgb, var(--theme-surface-soft, #1c2a48) 70%, transparent) !important;
  color: var(--theme-text, #e8eefc) !important;
  border-color: color-mix(in srgb, var(--theme-text) 45%, var(--theme-border)) !important;
}

:root[data-theme="dark"] .home-btn--on-light.home-btn--primary:hover {
  filter: brightness(1.08);
}

:root[data-theme="dark"] .home-btn--on-light.home-btn--secondary:hover {
  filter: brightness(1.06);
}

/* Homepage layout v9 */
.home-hero--split {
  min-height: auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1rem, 2vw, 1.35rem);
  background: var(--theme-surface-soft, #f7f9fc);
  color: var(--theme-text, #18243d);
  border-bottom: none;
  overflow: visible;
}

.home-hero--split .home-hero__media,
.home-hero--split .home-hero__shade {
  display: none !important;
}

.home-hero__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.home-hero--split .home-hero__content {
  width: auto;
  margin: 0;
  padding: 0;
  max-width: none;
  text-shadow: none;
  gap: 0.75rem;
}

.home-hero__figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--theme-border, #d4deef);
  background: #e8edf5;
  box-shadow: 0 12px 32px rgba(24, 36, 61, 0.08);
}

.home-hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 420px;
  object-fit: cover;
  object-position: center 20%;
}

.home-hero--split .home-hero__brand {
  font-size: 0.9rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-primary, #243b84) !important;
  animation: none;
}

.home-hero--split .home-hero__legal {
  max-width: none;
  font-size: 0.9rem;
  color: var(--theme-muted, #5f6d8c) !important;
  animation: none;
}

.home-hero--split .home-hero__title {
  margin: 0.1rem 0 0;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  line-height: 1.08;
  max-width: 18ch;
  color: var(--theme-text, #18243d) !important;
  animation: none;
}

.home-hero--split .home-hero__lead {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42ch;
  color: var(--theme-muted, #5f6d8c) !important;
  animation: none;
}

.home-hero--split .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.55rem;
  animation: none;
}

.home-hero--split .home-hero__actions .home-btn {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0.65rem 1.15rem;
  min-height: 44px;
  font-size: 0.94rem;
}

.home-section {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.home-section-lead {
  margin: 0.35rem 0 0;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--theme-muted, #5f6d8c);
}

.home-section__foot {
  margin: 1.15rem 0 0;
}

.home-join__text > .home-btn {
  margin-top: 0.85rem;
}

.home-programs {
  padding: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  background: var(--theme-surface-soft, #f7f9fc);
}

.home-programs__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-programs__inner--story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.home-programs__story {
  max-width: 36rem;
}

.home-programs__lead {
  margin: 0.7rem 0 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--theme-muted, #5f6d8c);
}

.home-programs__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.home-programs__list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0 0.9rem 0.95rem;
  border-left: 2px solid color-mix(in srgb, var(--theme-primary, #243b84) 45%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--theme-border, #d4deef) 80%, transparent);
}

.home-programs__list li:first-child {
  padding-top: 0.15rem;
}

.home-programs__list li:last-child {
  border-bottom: none;
  padding-bottom: 0.15rem;
}

.home-programs__list strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--theme-text, #18243d);
  line-height: 1.3;
}

.home-programs__list span {
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--theme-muted, #5f6d8c);
}

.home-section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  max-width: none;
  margin-bottom: 1.1rem;
}

.home-section-head__main {
  flex: 1 1 20rem;
  min-width: 0;
}

.home-programs__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 0.15rem;
  padding: 0.65rem 1.15rem;
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--theme-border, #d4deef);
  background: var(--theme-surface, #fff);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--theme-text, #18243d);
  text-decoration: none;
}

.home-programs__more:hover {
  text-decoration: none;
  background: var(--theme-surface-soft, #f5f7fb);
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 28%, var(--theme-border, #d4deef));
}

.home-programs__more:focus-visible {
  outline: 3px solid var(--theme-primary, #243b84);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .home-programs__inner--story {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

@media (max-width: 560px) {
  .home-section-head--row {
    align-items: flex-start;
  }
}

.home-section-head {
  margin: 0 0 1rem;
  max-width: 40rem;
}

.home-section-title {
  margin: 0;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--theme-text, #18243d);
}

.home-programs__grid--cards {
  gap: 1rem;
}

.home-programs__grid--cards .home-program {
  padding: 1.2rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--theme-border, #d4deef);
  background: #fff;
  box-shadow: none;
  border-left: 1px solid var(--theme-border, #d4deef);
}

.events-plan-wrap {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.events-plan-card--teaser .events-plan-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.events-plan-card__desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--theme-muted, #5f6d8c);
}

.events-plan-card__cta {
  margin-top: 0.65rem;
  align-self: start;
}

.home-join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.home-join__text p {
  margin: 0.5rem 0 0;
  max-width: 52ch;
  line-height: 1.55;
  color: var(--theme-muted, #5f6d8c);
}

.home-join-aside {
  margin: 0;
}

.home-join-aside__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.home-join-aside p {
  margin: 0 0 0.45rem;
  font-size: 0.96rem;
  line-height: 1.45;
}

.home-partners-cta {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.home-partner-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.home-partner-way {
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--theme-border, #d4deef);
  background: #fff;
}

.home-access-env .home-section-head {
  max-width: 58ch;
}

.home-access-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.home-access-card {
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--theme-border, #d4deef);
  background: #fff;
}

.home-access-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.home-access-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--theme-muted, #5f6d8c);
}

.home-btn--primary,
.home-btn--on-light.home-btn--primary {
  background: var(--theme-primary, #243b84);
  color: #fff !important;
  border-color: var(--theme-primary, #243b84);
}

.home-btn--primary:hover,
.home-btn--on-light.home-btn--primary:hover {
  background: #2d4aa6;
  border-color: #2d4aa6;
}

.home-btn--secondary {
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #18243d);
  border-color: var(--theme-border, #d4deef);
  backdrop-filter: none;
}

.home-btn--secondary:hover {
  background: var(--theme-surface-soft, #f5f7fb);
}

.home-live__news,
.home-live__pod {
  border-radius: 18px;
  border: 1px solid var(--theme-border, #d4deef);
  background: #fff;
  outline: 0;
}

.home-live__news {
  padding: 1.15rem 1.2rem;
}

.home-live__pod {
  padding: 1.2rem 1.2rem 1.3rem;
}

.home-live__pod > p {
  margin: 0.5rem 0 0;
  line-height: 1.5;
  color: var(--theme-muted, #5f6d8c);
}

@media (max-width: 900px) {
  .home-hero__inner,
  .home-join-layout,
  .home-partner-ways,
  .home-access-cards,
  .home-live,
  .home-programs__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__figure {
    order: -1;
  }

  .home-hero__figure img {
    max-height: 280px;
  }

  .home-hero--split .home-hero__title {
    max-width: 100%;
  }

  .home-hero--split .home-hero__actions .home-btn,
  .home-live__pod-actions .home-btn,
  .home-live__news-actions .home-btn {
    width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 560px) {
  .home-hero__inner {
    width: calc(100% - 1rem);
  }

  .home-hero--split .home-hero__title {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }
}

:root[data-theme="dark"] .home-hero--split,
:root[data-theme="dark"] .home-programs,
:root[data-theme="dark"] .home-band--soft {
  background: var(--theme-bg, #0f1729);
}

:root[data-theme="dark"] .home-section-title,
:root[data-theme="dark"] .home-live__news h2,
:root[data-theme="dark"] .home-live__pod h2,
:root[data-theme="dark"] .home-program h3,
:root[data-theme="dark"] .home-access-card h3,
:root[data-theme="dark"] .home-partner-way strong {
  color: var(--theme-text, #e8eefc) !important;
}

:root[data-theme="dark"] .home-hero--split .home-hero__lead,
:root[data-theme="dark"] .home-hero--split .home-hero__legal,
:root[data-theme="dark"] .home-section-lead,
:root[data-theme="dark"] .home-join__text p,
:root[data-theme="dark"] .home-live__pod > p,
:root[data-theme="dark"] .home-access-card p,
:root[data-theme="dark"] .home-partner-way span,
:root[data-theme="dark"] .events-plan-card__desc {
  color: var(--theme-muted, #a7b4d0) !important;
}

:root[data-theme="dark"] .home-hero--split .home-hero__title {
  color: var(--theme-text, #e8eefc) !important;
}

:root[data-theme="dark"] .home-programs__grid--cards .home-program,
:root[data-theme="dark"] .home-live__news,
:root[data-theme="dark"] .home-live__pod,
:root[data-theme="dark"] .home-partner-way,
:root[data-theme="dark"] .home-access-card,
:root[data-theme="dark"] .home-cta-card {
  background: var(--theme-surface, #162038) !important;
  border-color: var(--theme-border, #3a4a6a);
}

/* Стабильность и читаемость главной (перекрывает старые слои CSS) */
body:has(#home-hero-wrap) .home-hero.home-hero--split {
  min-height: auto !important;
  display: block !important;
  background: var(--theme-surface-soft, #f7f9fc) !important;
  color: var(--theme-text, #18243d) !important;
  isolation: auto;
  overflow: visible;
}

body:has(#home-hero-wrap) .home-hero.home-hero--split .home-hero__brand,
body:has(#home-hero-wrap) .home-hero.home-hero--split .home-hero__legal,
body:has(#home-hero-wrap) .home-hero.home-hero--split .home-hero__title,
body:has(#home-hero-wrap) .home-hero.home-hero--split .home-hero__lead,
body:has(#home-hero-wrap) .home-hero.home-hero--split .home-hero__actions,
body:has(#home-hero-wrap) .home-hero.home-hero--split .home-hero__content {
  opacity: 1 !important;
  animation: none !important;
  text-shadow: none !important;
}

body:has(#home-hero-wrap) .home-hero.home-hero--split .home-hero__brand {
  color: var(--theme-primary, #243b84) !important;
}

body:has(#home-hero-wrap) .home-hero.home-hero--split .home-hero__legal {
  color: var(--theme-muted, #5f6d8c) !important;
}

body:has(#home-hero-wrap) .home-hero.home-hero--split .home-hero__title {
  color: var(--theme-text, #18243d) !important;
}

body:has(#home-hero-wrap) .home-hero.home-hero--split .home-hero__lead {
  color: var(--theme-muted, #3b4d6e) !important;
}

body:has(#home-hero-wrap) .home-programs {
  background: var(--theme-surface-soft, #f7f9fc) !important;
  padding: 0 0 clamp(1.75rem, 3vw, 2.5rem) !important;
}

body:has(#home-hero-wrap) .home-programs__list strong {
  color: var(--theme-text, #18243d) !important;
}

body:has(#home-hero-wrap) .home-program p,
body:has(#home-hero-wrap) .home-programs__lead,
body:has(#home-hero-wrap) .home-programs__list span,
body:has(#home-hero-wrap) .home-section-lead,
body:has(#home-hero-wrap) .events-plan-card__desc,
body:has(#home-hero-wrap) .home-join__text p,
body:has(#home-hero-wrap) .home-live__pod > p,
body:has(#home-hero-wrap) .home-access-card p,
body:has(#home-hero-wrap) .home-partner-way span {
  color: var(--theme-muted, #5f6d8c) !important;
  opacity: 1 !important;
}

body:has(#home-hero-wrap) .home-section-title,
body:has(#home-hero-wrap) .home-program h3,
body:has(#home-hero-wrap) .events-plan-card--teaser h3,
body:has(#home-hero-wrap) .home-partner-way strong,
body:has(#home-hero-wrap) .home-access-card h3 {
  color: var(--theme-text, #18243d) !important;
}

body:has(#home-hero-wrap) .home-band--soft {
  background: var(--theme-bg, #f3f6fc) !important;
}

body:has(#home-hero-wrap) .home-events {
  background: var(--theme-bg, #f3f6fc) !important;
}

body:has(#home-hero-wrap) .home-ev-modal__panel,
body:has(#home-hero-wrap) .home-live__news,
body:has(#home-hero-wrap) .home-live__pod,
body:has(#home-hero-wrap) .home-partner-way,
body:has(#home-hero-wrap) .home-access-card,
body:has(#home-hero-wrap) .home-cta-card,
body:has(#home-hero-wrap) .home-programs__more {
  background: var(--theme-surface, #fff) !important;
  border-color: var(--theme-border, #d4deef) !important;
  color: var(--theme-text, #18243d);
}

body:has(#home-hero-wrap) .home-ev-cal__day--has {
  background: color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 50%, var(--theme-surface, #fff));
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 40%, var(--theme-border, #d4deef));
}

body:has(#home-hero-wrap) .home-ev-modal__pill,
body:has(#home-hero-wrap) .home-ev-modal__form {
  background: var(--theme-surface-soft, #f5f7fb) !important;
}

body:has(#home-hero-wrap) .home-ev-modal__pill-k,
body:has(#home-hero-wrap) .home-ev-modal__desc,
body:has(#home-hero-wrap) .home-events__lead {
  color: var(--theme-muted, #5f6d8c) !important;
}

body:has(#home-hero-wrap) .home-ev-modal__cover-title,
body:has(#home-hero-wrap) .home-ev-cal__title {
  color: inherit;
}

body:has(#home-hero-wrap) .home-ev-cal__title {
  color: var(--theme-text, #18243d) !important;
}

body:has(#home-hero-wrap) #home-vk-news-teaser {
  min-height: 5.5rem;
}

body:has(#home-hero-wrap) .home-news-teaser-placeholder {
  margin: 0;
  min-height: 3.5rem;
}

/* Ближайшие мероприятия — интерактивный календарь на главной */
.home-events {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  background: var(--theme-bg, #f3f6fc);
  border-top: 1px solid var(--theme-border, #d4deef);
}

.home-events[hidden] {
  display: none !important;
}

.home-events__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-events__lead {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  color: var(--theme-muted, #5f6d8c);
}

.home-ev-stage {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

.home-ev-rail--compact,
.home-ev-rail[hidden] {
  display: none !important;
}

.home-ev-cal {
  margin-top: 0;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--theme-primary, #243b84) 18%, var(--theme-border, #d4deef));
  background:
    radial-gradient(720px 220px at 12% -10%, color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 70%, transparent), transparent 60%),
    radial-gradient(520px 180px at 92% 0%, color-mix(in srgb, #ecc978 22%, transparent), transparent 55%),
    var(--theme-surface, #fff);
  padding: 0.85rem 0.9rem 1rem;
  box-shadow:
    0 14px 36px rgba(24, 36, 61, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  position: relative;
  overflow: hidden;
}

.home-ev-cal::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 180px;
  border-radius: inherit;
  background: radial-gradient(circle, color-mix(in srgb, var(--theme-primary, #243b84) 12%, transparent), transparent 70%);
  pointer-events: none;
  animation: homeEvGlow 8s ease-in-out infinite alternate;
}

@keyframes homeEvCalRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes homeEvGlow {
  from {
    transform: translateX(0);
    opacity: 0.45;
  }
  to {
    transform: translateX(-12%);
    opacity: 0.9;
  }
}

.home-ev-cal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  position: relative;
  z-index: 1;
}

.home-ev-cal__heading {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.home-ev-cal__title {
  margin: 0;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 700;
  color: var(--theme-text, #18243d);
  letter-spacing: -0.02em;
}

.home-ev-cal__meta {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--theme-muted, #5f6d8c);
}

.home-ev-cal__nav {
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 14px;
  border: 1px solid #5a6f96;
  background: color-mix(in srgb, var(--theme-surface, #fff) 70%, var(--theme-surface-soft, #f7f9fc));
  color: var(--theme-primary, #243b84);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-ev-cal__nav:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.04);
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 35%, var(--theme-border, #d4deef));
  box-shadow: 0 8px 18px rgba(36, 59, 132, 0.12);
  background: var(--theme-surface, #fff);
}

.home-ev-cal__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.home-ev-cal__weekdays,
.home-ev-cal__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.22rem;
  position: relative;
  z-index: 1;
}

.home-ev-cal__weekday {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-muted, #5f6d8c);
  padding: 0.2rem 0;
}

.home-ev-cal__grid.is-animating .home-ev-cal__days {
  animation: homeEvCalFade 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes homeEvCalFade {
  from {
    opacity: 0.2;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-ev-cal__day {
  position: relative;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--theme-text, #18243d);
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-ev-cal__day--empty {
  min-height: 0;
  height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.home-ev-cal__day--plain {
  aspect-ratio: 1;
  max-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
}

.home-ev-cal__day--plain .home-ev-cal__num {
  font-size: 0.82rem;
  font-weight: 650;
}

.home-ev-cal__day--plain.home-ev-cal__day--today {
  opacity: 1;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--theme-primary, #243b84) 45%, transparent);
  border-radius: 999px;
}

.home-ev-cal__day--today {
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 55%, var(--theme-border, #d4deef));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-primary, #243b84) 25%, transparent);
}

.home-ev-cal__day--has {
  cursor: pointer;
  min-height: 3.4rem;
  padding: 0.28rem 0.22rem 0.32rem;
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 42%, var(--theme-border, #d4deef));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 65%, #fff), var(--theme-surface, #fff) 70%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  animation: homeEvDayIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--home-ev-i, 0) * 45ms);
}

@keyframes homeEvDayIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.home-ev-cal__day--has:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 28px rgba(36, 59, 132, 0.18);
  z-index: 3;
}

.home-ev-cal__day--has:active {
  transform: translateY(-1px) scale(0.99);
}

.home-ev-cal__day--has:focus-visible {
  outline: 3px solid var(--theme-primary, #243b84);
  outline-offset: 2px;
}

.home-ev-cal__day--active {
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 65%, var(--theme-border, #d4deef));
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--theme-primary, #243b84) 28%, transparent),
    0 12px 24px rgba(36, 59, 132, 0.14);
  z-index: 2;
}

.home-ev-cal__day--pulse {
  animation: homeEvDayPulse 0.9s ease;
  z-index: 4;
}

@keyframes homeEvDayPulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--theme-primary, #243b84) 45%, transparent);
  }
  70% {
    box-shadow: 0 0 0 14px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.home-ev-cal__day--past {
  opacity: 0.68;
}

.home-ev-cal__num {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.home-ev-cal__titles {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.home-ev-cal__mini {
  display: block;
  padding: 0.08rem 0.18rem;
  border-radius: 5px;
  background: color-mix(in srgb, var(--theme-primary, #243b84) 10%, transparent);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--theme-primary, #243b84);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-ev-cal__more {
  font-size: 0.56rem;
  font-weight: 800;
  color: var(--theme-muted, #5f6d8c);
  padding-left: 0.12rem;
}

.home-ev-month-agenda {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--theme-border, #d4deef) 80%, transparent);
  position: relative;
  z-index: 1;
}

.home-ev-month-agenda__title {
  margin: 0 0 0.55rem;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--theme-primary, #243b84);
}

.home-ev-month-agenda__empty {
  margin: 0;
  font-size: 0.92rem;
  color: var(--theme-muted, #5f6d8c);
  line-height: 1.45;
}

.home-ev-month-agenda__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.55rem;
}

.home-ev-month-agenda__card {
  display: grid;
  gap: 0.18rem;
  width: 100%;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--theme-primary, #243b84) 18%, var(--theme-border, #d4deef));
  border-radius: 14px;
  background: var(--theme-surface, #fff);
  padding: 0.65rem 0.75rem 0.7rem;
  font: inherit;
  color: var(--theme-text, #18243d);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-ev-month-agenda__card:hover,
.home-ev-month-agenda__card.is-active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 40%, var(--theme-border));
  box-shadow: 0 10px 22px rgba(36, 59, 132, 0.12);
}

.home-ev-month-agenda__card.is-next {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 55%, #fff), var(--theme-surface, #fff));
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 35%, var(--theme-border));
}

.home-ev-month-agenda__date {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--theme-primary, #243b84) 75%, #8a6a20);
}

.home-ev-month-agenda__name {
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 750;
}

.home-ev-month-agenda__place {
  font-size: 0.8rem;
  color: var(--theme-muted, #5f6d8c);
}

.home-ev-month-agenda__go {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--theme-primary, #243b84);
}

.home-ev-cal__mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--theme-primary, #243b84);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--theme-primary, #243b84) 45%, transparent);
  animation: homeEvMarkPulse 1.8s ease-in-out infinite;
}

.home-ev-cal__count {
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--theme-primary, #243b84);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
}

.home-ev-rail {
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--theme-primary, #243b84) 16%, var(--theme-border, #d4deef));
  background:
    linear-gradient(165deg, color-mix(in srgb, #ecc978 14%, var(--theme-surface, #fff)), var(--theme-surface, #fff) 55%);
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(24, 36, 61, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
  animation: homeEvCalRise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.home-ev-peek {
  display: grid;
  gap: 0.4rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--theme-primary, #243b84) 22%, var(--theme-border, #d4deef));
  background:
    radial-gradient(420px 140px at 0% 0%, color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 70%, transparent), transparent 70%),
    var(--theme-surface, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.home-ev-peek.is-day {
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 45%, var(--theme-border, #d4deef));
  box-shadow: 0 10px 28px rgba(36, 59, 132, 0.12);
  transform: translateY(-2px);
}

.home-ev-peek.is-ready {
  animation: homeEvPeekIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes homeEvPeekIn {
  from {
    opacity: 0.55;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-ev-peek.is-day.is-ready {
  animation: homeEvPeekSwap 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes homeEvPeekSwap {
  from {
    opacity: 0.4;
    transform: translateY(6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }
}

.home-ev-peek__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--theme-primary, #243b84) 70%, #8a6a20);
}

.home-ev-peek__title {
  margin: 0;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--theme-text, #18243d);
}

.home-ev-peek__when,
.home-ev-peek__place {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--theme-text, #18243d);
}

.home-ev-peek__place {
  color: var(--theme-muted, #5f6d8c);
  font-weight: 600;
}

.home-ev-peek__spots {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.home-ev-peek__bar {
  height: 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-border, #d4deef) 70%, #fff);
  overflow: hidden;
}

.home-ev-peek__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--theme-primary, #243b84), color-mix(in srgb, #ecc978 55%, var(--theme-primary, #243b84)));
  transition: width 0.35s ease;
}

.home-ev-peek__spots.is-low .home-ev-peek__bar span {
  background: linear-gradient(90deg, #b45309, #ecc978);
}

.home-ev-peek__spots.is-full .home-ev-peek__bar span {
  width: 100% !important;
  background: #9ca3af;
}

.home-ev-peek__spots.is-open .home-ev-peek__bar {
  display: none;
}

.home-ev-peek__spots-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--theme-muted, #5f6d8c);
}

.home-ev-peek__desc {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--theme-muted, #5f6d8c);
  min-height: 2.6em;
}

.home-ev-peek__actions {
  margin-top: 0.25rem;
}

.home-ev-peek__actions .home-btn {
  width: 100%;
  border-radius: 12px;
  min-height: 44px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.home-ev-rail__more {
  display: grid;
  gap: 0.55rem;
}

.home-ev-rail__title {
  margin: 0;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--theme-text, #18243d);
}

.home-ev-rail__list {
  display: grid;
  gap: 0.5rem;
}

.home-ev-rail__empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--theme-muted, #5f6d8c);
  line-height: 1.45;
}

.home-ev-rail__card {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--theme-border, #d4deef) 80%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--theme-surface, #fff) 88%, var(--theme-primary-soft, #e9f0ff));
  padding: 0.65rem 0.75rem 0.7rem;
  font: inherit;
  color: var(--theme-text, #18243d);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: homeEvDayIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.12s + var(--home-ev-i, 0) * 70ms);
}

.home-ev-rail__card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 35%, var(--theme-border));
  box-shadow: 0 10px 20px rgba(36, 59, 132, 0.1);
}

.home-ev-rail__card:focus-visible {
  outline: 3px solid var(--theme-primary, #243b84);
  outline-offset: 2px;
}

.home-ev-rail__when {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--theme-primary, #243b84) 75%, #8a6a20);
}

.home-ev-rail__name {
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 750;
}

.home-ev-rail__place,
.home-ev-rail__spots {
  font-size: 0.8rem;
  color: var(--theme-muted, #5f6d8c);
  line-height: 1.35;
}

.home-ev-rail__go {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--theme-primary, #243b84);
}

@media (max-width: 900px) {
  .home-ev-month-agenda__list {
    grid-template-columns: 1fr;
  }
}

@keyframes homeEvMarkPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--theme-primary, #243b84) 40%, transparent);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px transparent;
  }
}

.home-ev-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 14, 28, 0.62);
  backdrop-filter: blur(8px);
  animation: homeEvModalBg 0.2s ease;
}

.home-ev-modal[hidden] {
  display: none !important;
}

body.home-ev-modal-open {
  overflow: hidden;
}

.home-ev-modal__panel {
  width: min(980px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--theme-border, #d4deef) 70%, transparent);
  background: var(--theme-surface, #fff);
  padding: 0;
  box-shadow: 0 32px 80px rgba(8, 14, 28, 0.32);
  animation: homeEvModalIn 0.28s ease;
  position: relative;
}

@keyframes homeEvModalBg {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes homeEvModalIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-ev-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 4;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: rgba(10, 16, 30, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.home-ev-modal__close:hover {
  background: rgba(10, 16, 30, 0.72);
}

.home-ev-modal__title--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-ev-modal__body {
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.home-ev-modal__day {
  margin: 0;
  padding: 0.85rem 1.1rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--theme-muted, #5f6d8c);
  border-bottom: 1px solid var(--theme-border, #d4deef);
}

.home-ev-modal__event + .home-ev-modal__event {
  border-top: 1px solid var(--theme-border, #d4deef);
}

.home-ev-modal__event {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
  align-items: start;
  min-height: 0;
  gap: 0;
}

.home-ev-modal__cover {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #1e3270 0%, #314a8f 55%, #6b5a2e 100%);
  aspect-ratio: 1590 / 530;
  width: 100%;
  isolation: isolate;
  align-self: stretch;
  border-radius: 20px 0 0 20px;
}

.home-ev-modal__event:first-child .home-ev-modal__cover {
  border-radius: 20px 0 0 20px;
}

.home-ev-modal__cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.home-ev-modal__cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 14, 28, 0.05) 0%,
    rgba(8, 14, 28, 0.18) 40%,
    rgba(8, 14, 28, 0.72) 100%
  );
  pointer-events: none;
}

.home-ev-modal__cover-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem 0.75rem;
  margin: 0;
}

.home-ev-modal__cover-badge {
  justify-self: start;
  margin: 0;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  backdrop-filter: blur(6px);
}

.home-ev-modal__cover-title {
  display: none;
}

.home-ev-modal__content {
  padding: 1rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  overflow: auto;
  max-height: min(92vh, 900px);
}

.home-ev-modal__heading {
  margin: 0;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--theme-text, #18243d);
}

.home-ev-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-ev-modal__pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.4rem;
  max-width: 100%;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--theme-border, #d4deef) 85%, transparent);
  background: color-mix(in srgb, var(--theme-surface-soft, #f5f7fb) 80%, #fff);
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 650;
  color: var(--theme-text, #18243d);
}

.home-ev-modal__pill-k {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-muted, #5f6d8c);
}

.home-ev-modal__when-note,
.ev-cal-approx {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--theme-muted, #5f6d8c);
}

.home-ev-modal__desc {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--theme-muted, #5f6d8c);
}

.home-ev-modal__closed {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff4f4;
  color: #8a2f2f;
  font-size: 0.94rem;
  line-height: 1.45;
}

.home-ev-modal__form {
  display: grid;
  gap: 0.7rem;
  margin: 0.15rem 0 0;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--theme-border, #d4deef);
  background: color-mix(in srgb, var(--theme-surface-soft, #f7f9fc) 75%, #fff);
}

.home-ev-modal__form-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--theme-text, #18243d);
}

.home-ev-modal__fio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.home-ev-modal__field {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--theme-text, #18243d);
}

.home-ev-modal__field span {
  display: block;
}

.home-ev-modal__field input,
.home-ev-modal__form input[type="text"],
.home-ev-modal__form input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 11px;
  border: 1px solid var(--theme-border, #d4deef);
  background: var(--theme-surface, #fff);
  font: inherit;
  font-weight: 500;
  color: var(--theme-text, #18243d);
}

.home-ev-modal__choice {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border, #d4deef);
  background: var(--theme-surface, #fff);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
}

.home-ev-modal__choice legend {
  padding: 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--theme-text, #18243d);
}

.home-ev-modal__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--theme-border, #d4deef);
  background: var(--theme-surface-soft, #f7f9fc);
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
}

.home-ev-modal__chip:has(input:checked) {
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 45%, var(--theme-border));
  background: color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 55%, #fff);
  color: var(--theme-primary, #243b84);
}

.home-ev-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.1rem 0 0;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--theme-muted, #5f6d8c);
}

.home-ev-modal__consent input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
}

.home-ev-modal__consent span {
  flex: 1 1 auto;
  min-width: 0;
}

.home-ev-modal__consent a {
  color: var(--theme-primary, #243b84);
  font-weight: 700;
}

.home-ev-modal__form .home-btn {
  width: 100%;
  margin-top: 0.15rem;
  border-radius: 12px;
  min-height: 46px;
}

.home-ev-modal__msg {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--theme-primary, #243b84);
}

@media (prefers-reduced-motion: reduce) {
  .home-ev-cal,
  .home-ev-cal::before,
  .home-ev-rail,
  .home-ev-rail__card,
  .home-ev-cal__grid.is-animating .home-ev-cal__days,
  .home-ev-modal,
  .home-ev-modal__panel,
  .home-ev-cal__day--has,
  .home-ev-cal__day--pulse,
  .home-ev-cal__mark,
  .home-ev-peek,
  .home-ev-peek.is-ready,
  .home-ev-peek.is-day {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 860px) {
  .home-ev-modal__event {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-ev-modal__event:first-child .home-ev-modal__cover,
  .home-ev-modal__cover {
    border-radius: 20px 20px 0 0;
  }

  .home-ev-modal__cover img {
    height: 100%;
    min-height: 0;
  }

  .home-ev-modal__content {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 700px) {
  .home-ev-modal__fio {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-ev-cal {
    padding: 0.75rem 0.65rem 0.85rem;
  }

  .home-ev-cal__day--has {
    min-height: 3rem;
  }

  .home-ev-cal__day--plain {
    max-height: 2rem;
  }

  .home-ev-cal__mini {
    font-size: 0.52rem;
  }

  .home-ev-modal {
    padding: 0;
    align-items: flex-end;
  }

  .home-ev-modal__panel {
    width: 100%;
    max-height: min(92vh, 100%);
    border-radius: 18px 18px 0 0;
    animation: homeEvModalSheet 0.28s ease;
  }

  @keyframes homeEvModalSheet {
    from {
      opacity: 0.85;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .home-ev-modal__event {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-ev-modal__event:first-child .home-ev-modal__cover {
    border-radius: 18px 18px 0 0;
  }

  .home-ev-modal__cover img {
    height: 100%;
    min-height: 0;
  }

  .home-ev-modal__content {
    padding: 0.9rem 1rem 1.1rem;
    max-height: none;
    overflow: visible;
  }

  .home-ev-modal__heading {
    font-size: 1.18rem;
  }
}

:root[data-theme="dark"] .home-events {
  background: var(--theme-bg, #0f1729);
}

:root[data-theme="dark"] .home-ev-cal,
:root[data-theme="dark"] .home-ev-rail,
:root[data-theme="dark"] .home-ev-modal__panel {
  background: var(--theme-surface, #162038);
  border-color: var(--theme-border, #3a4a6a);
  box-shadow: none;
}

:root[data-theme="dark"] .home-ev-rail {
  background: color-mix(in srgb, #ecc978 8%, var(--theme-surface, #162038));
}

:root[data-theme="dark"] .home-ev-peek {
  background:
    radial-gradient(420px 140px at 0% 0%, color-mix(in srgb, var(--theme-primary, #243b84) 22%, transparent), transparent 70%),
    var(--theme-surface, #162038);
  border-color: var(--theme-border, #3a4a6a);
}

:root[data-theme="dark"] .home-ev-rail__card {
  background: color-mix(in srgb, var(--theme-bg, #0f1729) 45%, var(--theme-surface, #162038));
  border-color: var(--theme-border, #3a4a6a);
  color: var(--theme-text, #e8eefc);
}

:root[data-theme="dark"] .home-ev-cal__day {
  background: color-mix(in srgb, var(--theme-surface, #162038) 80%, #0f1729);
  border-color: var(--theme-border, #3a4a6a);
  color: var(--theme-text, #e8eefc);
}

:root[data-theme="dark"] .home-ev-cal__day--has {
  background: color-mix(in srgb, var(--theme-primary, #243b84) 22%, var(--theme-surface, #162038));
}

:root[data-theme="dark"] .home-ev-modal__pill,
:root[data-theme="dark"] .home-ev-modal__form,
:root[data-theme="dark"] .home-ev-modal__choice,
:root[data-theme="dark"] .home-ev-modal__chip {
  background: color-mix(in srgb, var(--theme-bg, #0f1729) 55%, var(--theme-surface, #162038));
  border-color: var(--theme-border, #3a4a6a);
}

:root[data-theme="dark"] .home-ev-modal__closed {
  background: color-mix(in srgb, #8a2f2f 18%, var(--theme-surface, #162038));
  color: #ffb4b4;
}

body:has(#home-hero-wrap) .home-hero__inner,
body:has(#home-hero-wrap) .container {
  width: min(1180px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

body:has(#home-hero-wrap) .home-btn {
  border-radius: 12px;
  padding: 0.65rem 1.15rem;
  min-height: 44px;
  font-size: 0.94rem;
}

body:has(#home-hero-wrap) .home-btn:hover {
  transform: none;
}

body:has(#home-hero-wrap) .home-news-teaser-placeholder {
  margin: 0;
  min-height: 3.5rem;
}

/* —— Поддержать организацию: реквизиты + QR —— */
body.home-donate-open {
  overflow: hidden;
}

.home-donate {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 16, 28, 0.58);
  backdrop-filter: blur(7px);
  animation: homeDonateBg 0.28s ease;
}

.home-donate[hidden] {
  display: none !important;
}

@keyframes homeDonateBg {
  from { opacity: 0; }
  to { opacity: 1; }
}

.home-donate__panel {
  position: relative;
  width: min(880px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--theme-primary, #243b84) 18%, var(--theme-border, #d4deef));
  background:
    radial-gradient(520px 200px at 8% 0%, color-mix(in srgb, #ecc978 26%, transparent), transparent 55%),
    radial-gradient(640px 240px at 100% 0%, color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 70%, transparent), transparent 60%),
    var(--theme-surface, #fff);
  box-shadow: 0 28px 70px rgba(12, 18, 32, 0.28);
  animation: homeDonateIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes homeDonateIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-donate__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border, #d4deef);
  background: color-mix(in srgb, var(--theme-surface, #fff) 80%, var(--theme-surface-soft, #f7f9fc));
  color: var(--theme-text, #18243d);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.home-donate__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 0;
  min-height: 420px;
}

.home-donate__qr-col {
  padding: 1.5rem 1.35rem 1.6rem;
  border-right: 1px solid color-mix(in srgb, var(--theme-border, #d4deef) 80%, transparent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-donate__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--theme-primary, #243b84) 75%, #8a6a20);
}

.home-donate__title {
  margin: 0 0 0.45rem;
  font-family: var(--theme-font-display, "Zodiak", Georgia, serif);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--theme-text, #18243d);
}

.home-donate__lead {
  margin: 0 0 1.1rem;
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--theme-muted, #5f6d8c);
  max-width: 28ch;
}

.home-donate__qr {
  margin: auto 0 0;
  text-align: center;
  width: 100%;
}

.home-donate__qr-btn {
  display: inline-flex;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--theme-border, #d4deef) 70%, #ecc978);
  background: #fff;
  box-shadow: 0 14px 32px rgba(24, 36, 61, 0.1);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-donate__qr-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(24, 36, 61, 0.14);
}

.home-donate__qr-btn img {
  display: block;
  width: min(200px, 52vw);
  height: auto;
  image-rendering: pixelated;
}

.home-donate__qr figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--theme-muted, #5f6d8c);
}

.home-donate__details {
  padding: 1.5rem 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-donate__org {
  margin: 0 2.2rem 0.15rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 650;
  color: var(--theme-text, #18243d);
}

.home-donate__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.home-donate__list li {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) auto;
  gap: 0.35rem 0.55rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-surface-soft, #f7f9fc) 88%, #fff);
  border: 1px solid color-mix(in srgb, var(--theme-border, #d4deef) 70%, transparent);
}

.home-donate__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-muted, #5f6d8c);
}

.home-donate__value {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--theme-text, #18243d);
  word-break: break-all;
  background: transparent;
}

.home-donate__copy {
  border: 1px solid var(--theme-border, #d4deef);
  border-radius: 999px;
  background: var(--theme-surface, #fff);
  color: var(--theme-primary, #243b84);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-donate__copy:hover,
.home-donate__copy.is-copied {
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 40%, var(--theme-border));
  background: color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 55%, #fff);
}

.home-donate__copy.is-copied::after {
  content: " ✓";
}

.home-donate__copy--inline {
  margin-left: 0.35rem;
  vertical-align: middle;
}

.home-donate__purpose {
  margin: 0.15rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: color-mix(in srgb, #ecc978 14%, var(--theme-surface-soft, #f7f9fc));
  border: 1px solid color-mix(in srgb, #ecc978 35%, var(--theme-border, #d4deef));
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--theme-text, #18243d);
}

.home-donate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.home-donate__actions .home-btn {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}

.home-donate__hint {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--theme-primary, #243b84);
}

.home-donate-zoom {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 12, 22, 0.88);
}

.home-donate-zoom[hidden] {
  display: none !important;
}

.home-donate-zoom img {
  width: min(92vw, 560px);
  height: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  image-rendering: pixelated;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.home-donate-zoom__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(12, 18, 32, 0.55);
  color: #fff;
  font-size: 1.45rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .home-donate__grid {
    grid-template-columns: 1fr;
  }

  .home-donate__qr-col {
    border-right: 0;
    border-bottom: 1px solid var(--theme-border, #d4deef);
    align-items: center;
    text-align: center;
    padding-bottom: 1.15rem;
  }

  .home-donate__lead {
    max-width: none;
  }

  .home-donate__list li {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label copy"
      "value value";
  }

  .home-donate__label { grid-area: label; }
  .home-donate__value { grid-area: value; }
  .home-donate__copy { grid-area: copy; }
}

@media (prefers-reduced-motion: reduce) {
  .home-donate,
  .home-donate__panel,
  .home-donate__qr-btn {
    animation: none !important;
    transition: none !important;
  }
}

:root[data-theme="dark"] .home-donate__panel {
  background:
    radial-gradient(520px 200px at 8% 0%, color-mix(in srgb, #ecc978 12%, transparent), transparent 55%),
    var(--theme-surface, #162038);
  border-color: var(--theme-border, #3a4a6a);
}

:root[data-theme="dark"] .home-donate__qr-btn,
:root[data-theme="dark"] .home-donate__copy,
:root[data-theme="dark"] .home-donate__list li {
  background: color-mix(in srgb, var(--theme-bg, #0f1729) 40%, var(--theme-surface, #162038));
  border-color: var(--theme-border, #3a4a6a);
  color: var(--theme-text, #e8eefc);
}

:root[data-theme="dark"] .home-donate__value {
  color: var(--theme-text, #e8eefc);
}

:root[data-theme="dark"] .home-donate__purpose {
  background: color-mix(in srgb, #ecc978 10%, var(--theme-surface, #162038));
  border-color: color-mix(in srgb, #ecc978 25%, var(--theme-border, #3a4a6a));
}

:root[data-theme="dark"] .home-live__news-actions {
  border-top-color: var(--theme-border, #3a4a6a);
}
