:root {
  color-scheme: light;
  --bg: #edf4f8;
  --bg-alt: #f7f0ea;
  --surface: rgba(250, 252, 249, 0.86);
  --surface-strong: #fcfbf3;
  --surface-muted: rgba(238, 245, 250, 0.9);
  --text: #263447;
  --muted: #647489;
  --line: rgba(85, 125, 169, 0.18);
  --accent: #557da9;
  --accent-strong: #355f8d;
  --accent-soft: rgba(85, 125, 169, 0.13);
  --accent-ghost: rgba(85, 125, 169, 0.09);
  --accent-red: #a8655f;
  --accent-red-strong: #914f4b;
  --accent-red-soft: rgba(168, 101, 95, 0.13);
  --cta: #f0c44f;
  --cta-strong: #dca735;
  --cta-soft: rgba(240, 196, 79, 0.22);
  --success: #4f7f61;
  --warning: #a47836;
  --danger: #a3534e;
  --shadow: 0 24px 80px rgba(43, 70, 101, 0.15);
  --radius-2xl: 40px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1680px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(252, 251, 243, 0.9) 0%, rgba(252, 251, 243, 0) 38%),
    linear-gradient(180deg, #fbfcf7 0%, #f7f3eb 46%, #eef3f6 100%);
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: rgba(252, 251, 243, 0.82);
  box-shadow: 0 12px 42px rgba(43, 70, 101, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(237, 244, 248, 0.96);
  border: 1px solid rgba(85, 125, 169, 0.14);
  box-shadow: 0 16px 34px rgba(85, 125, 169, 0.16);
  padding: 4px;
}

.brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-copy strong {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  flex: 1;
}

.site-nav a {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.lang-button:hover,
.lang-button:focus-visible,
.header-login-button:hover,
.header-login-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  color: var(--text);
}

.site-nav a.live-nav-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(216, 48, 65, 0.28);
  background: rgba(216, 48, 65, 0.11);
  color: #b72432;
  letter-spacing: 0;
  box-shadow: 0 0 0 rgba(216, 48, 65, 0);
}

.site-nav a.live-nav-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e02337;
  box-shadow: 0 0 14px rgba(224, 35, 55, 0.8);
}

.site-nav a.live-nav-badge.is-live {
  animation: liveBadgePulse 1.8s ease-in-out infinite;
}

@keyframes liveBadgePulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(216, 48, 65, 0);
  }
  50% {
    box-shadow: 0 0 28px rgba(216, 48, 65, 0.32);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-menu {
  position: relative;
}

.account-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: min(360px, 36vw);
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-weight: 800;
}

.account-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.96));
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.account-menu-bars {
  display: grid;
  gap: 4px;
  width: 18px;
  min-width: 18px;
}

.account-menu-bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 8px;
  min-width: 250px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(252, 251, 243, 0.98);
  box-shadow: 0 24px 54px rgba(43, 70, 101, 0.18);
}

.account-menu-item {
  display: flex;
  align-items: center;
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 800;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: var(--accent-ghost);
}

.shop-cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(85, 125, 169, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(43, 70, 101, 0.08);
}

.shop-cart-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--accent-strong);
}

.shop-cart-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-cart-total {
  color: var(--accent-strong);
  font-size: 0.86rem;
  white-space: nowrap;
}

.shop-cart-total[hidden] {
  display: none;
}

.language-switcher {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.header-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(85, 125, 169, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(43, 70, 101, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.header-login-button:hover,
.header-login-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(85, 125, 169, 0.34);
  background: #fffdf7;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lang-flag {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 16px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(43, 70, 101, 0.16);
}

.lang-flag--da {
  background: #c8102e;
}

.lang-flag--da::before,
.lang-flag--da::after {
  content: "";
  position: absolute;
  background: #ffffff;
}

.lang-flag--da::before {
  left: 7px;
  top: 0;
  width: 3px;
  height: 100%;
}

.lang-flag--da::after {
  left: 0;
  top: 6px;
  width: 100%;
  height: 3px;
}

.lang-flag--uk {
  background: linear-gradient(to bottom, #0057b7 0 50%, #ffd700 50% 100%);
}

.lang-button.active {
  background: var(--accent-strong);
  color: #fffdf4;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 14px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.menu-toggle span + span {
  margin-top: 5px;
}

.hero,
.content-section {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  --hero-shell-offset: max(16px, calc((100vw - var(--max-width)) / 2));
  --hero-content-offset: calc(var(--hero-shell-offset) + 38px);
  --hero-image-ratio-height: calc(100vw * 789 / 1994);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: clamp(560px, var(--hero-image-ratio-height), 789px);
  min-height: 0;
  padding: clamp(26px, 4vw, 56px) var(--hero-content-offset);
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(15, 29, 48, 0.88) 0%, rgba(15, 29, 48, 0.72) 42%, rgba(15, 29, 48, 0.26) 100%),
    linear-gradient(180deg, rgba(15, 29, 48, 0.12) 0%, rgba(15, 29, 48, 0.74) 100%),
    url("./assets/hero-community.png") center / 100% 100% no-repeat;
  background-color: #0f1d30;
  box-shadow: 0 30px 90px rgba(16, 28, 44, 0.28);
}

.hero-copy {
  display: grid;
  align-content: center;
  max-width: 760px;
  color: #fffdf7;
  position: relative;
  z-index: 1;
}

.hero .section-kicker {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(85, 125, 169, 0.72);
  color: #fffdf7;
  backdrop-filter: blur(10px);
}

.hero-title,
.section-title {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
}

.hero-title {
  font-size: clamp(2.45rem, 4.3vw, 4.55rem);
  max-width: 16ch;
  color: #fffdf7;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.hero-text,
.section-text {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  color: rgba(255, 253, 247, 0.92);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.58;
  max-width: 78ch;
  margin: 16px 0 0;
  white-space: pre-line;
}

.hero-actions,
.auth-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.primary-button,
.secondary-button,
.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-1px);
}

.primary-button {
  border: 0;
  color: #332a12;
  background: linear-gradient(135deg, var(--cta) 0%, var(--cta-strong) 100%);
  box-shadow: 0 18px 34px rgba(220, 167, 53, 0.34);
}

.hero-actions {
  margin-top: 34px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 49, 70, 0.44);
  backdrop-filter: blur(10px);
}

.auth-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(620px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(85, 125, 169, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(252, 251, 243, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 32px 84px rgba(16, 28, 44, 0.32);
}

.auth-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.auth-modal-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.04;
}

.modal-close-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
}

.consent-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(85, 125, 169, 0.16);
  background: rgba(237, 244, 248, 0.62);
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
  font-weight: 700;
}

.consent-field input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 3px;
  accent-color: var(--cta-strong);
}

.contact-modal-dialog {
  width: min(680px, 100%);
}

.contact-recipient-card,
.contact-login-panel,
.contact-sender-badge {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(85, 125, 169, 0.16);
  background: rgba(255, 255, 255, 0.74);
}

.contact-recipient-card span,
.contact-sender-badge span {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-recipient-card strong,
.contact-sender-badge strong {
  color: var(--text);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.contact-recipient-card small {
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-login-panel {
  background: rgba(237, 244, 248, 0.78);
}

.contact-login-panel strong {
  font-size: 1.05rem;
}

.contact-login-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-form,
.contact-fields {
  display: grid;
  gap: 16px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-consent-field {
  margin: 0;
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
}

.news-card,
.info-card,
.program-card,
.contact-card,
.auth-card,
.session-summary,
.table-shell {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(85, 125, 169, 0.12);
  background: var(--surface-strong);
}

.panel-kicker,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.content-section {
  margin-top: 24px;
  padding: 38px;
  border-radius: 34px;
}

.about-section {
  border-color: rgba(85, 125, 169, 0.2);
  background:
    linear-gradient(135deg, rgba(252, 251, 243, 0.94) 0%, rgba(235, 243, 249, 0.96) 58%, rgba(247, 240, 234, 0.94) 100%);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  gap: 30px;
  align-items: stretch;
}

.about-copy {
  display: grid;
  align-content: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-stat-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 22px;
  border: 1px solid rgba(85, 125, 169, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(43, 70, 101, 0.1);
}

.about-stat-card::before,
.about-stat-card::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 20px;
  background: rgba(201, 169, 74, 0.32);
  border-radius: 999px;
}

.about-stat-card::before {
  width: 30px;
  height: 8px;
  transform: translateY(11px);
}

.about-stat-card::after {
  width: 8px;
  height: 30px;
  transform: translateX(-11px);
}

.about-stat-value {
  color: var(--accent-strong);
  font-size: clamp(2.45rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
}

.about-stat-label {
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.25;
}

.about-stat-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-media {
  justify-self: end;
  width: min(100%, 550px);
  aspect-ratio: 55 / 98;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(85, 125, 169, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(16, 28, 44, 0.18);
}

.about-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-video-empty {
  display: grid;
  place-content: center;
  gap: 8px;
  height: 100%;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(230, 240, 248, 0.82) 100%);
}

.about-video-empty strong {
  color: var(--accent-strong);
  font-size: 1.4rem;
}

#news {
  border-color: rgba(85, 125, 169, 0.24);
  background:
    linear-gradient(180deg, rgba(224, 237, 248, 0.94) 0%, rgba(239, 246, 250, 0.92) 100%);
}

#news .news-card {
  border-color: rgba(85, 125, 169, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(229, 240, 249, 0.94) 100%);
}

#program {
  border-color: rgba(168, 101, 95, 0.26);
  background:
    linear-gradient(180deg, rgba(249, 236, 232, 0.95) 0%, rgba(252, 246, 241, 0.92) 100%);
}

#program .section-kicker,
#program .program-time-pill,
#program .program-date-badge strong,
#program .program-article-copy a {
  color: var(--accent-red-strong);
}

#program .program-toolbar {
  border-color: rgba(168, 101, 95, 0.2);
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.96) 0%, rgba(248, 229, 225, 0.94) 100%);
}

#program .program-article {
  border-color: rgba(168, 101, 95, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 232, 228, 0.92) 100%);
}

#program .program-article-media {
  border-color: rgba(168, 101, 95, 0.2);
  background: linear-gradient(135deg, rgba(168, 101, 95, 0.18) 0%, rgba(255, 255, 255, 0.98) 100%);
}

#program .program-date-badge,
#program .program-date-pill,
#program .program-time-pill {
  border-color: rgba(168, 101, 95, 0.18);
}

.alt-section {
  background: linear-gradient(180deg, rgba(247, 240, 234, 0.94) 0%, rgba(234, 242, 248, 0.96) 100%);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.section-text {
  margin: 0;
  max-width: 74ch;
}

.news-grid,
.info-grid,
.contacts-grid,
.team-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card,
.info-card,
.contact-card {
  padding: 24px;
}

.news-card {
  display: grid;
  gap: 14px;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(237, 244, 248, 0.92) 100%);
}

.card-eyebrow,
.info-card strong,
.contact-card strong,
.news-card time {
  color: var(--accent-strong);
  font-weight: 800;
}

.news-card h3,
.info-card h3,
.contact-card h3,
.program-card h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
}

.news-card p,
.info-card p,
.contact-card p,
.program-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.news-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.news-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(85, 125, 169, 0.2);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(43, 70, 101, 0.08);
}

.news-filter-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-yellow);
}

.news-card--modern {
  overflow: hidden;
  gap: 0;
  padding: 0;
  border-radius: 28px;
  border-color: rgba(85, 125, 169, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 48px rgba(43, 70, 101, 0.12);
}

.news-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(85, 125, 169, 0.18) 0%, rgba(252, 219, 124, 0.22) 100%);
}

.news-card-media img,
.news-modal-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-media--empty {
  display: grid;
  place-items: center;
}

.news-card-media--empty span {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-strong);
  font-size: 2rem;
  font-weight: 900;
}

.news-type-label {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 32, 54, 0.76);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.news-author,
.news-modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-author-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(85, 125, 169, 0.14);
  color: var(--accent-strong);
  font-weight: 900;
}

.news-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #2fcf72;
}

.news-author-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.news-author-copy strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
}

.news-author-copy small,
.news-views {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.news-card--modern h3 {
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.18;
}

.news-card-excerpt {
  display: -webkit-box;
  min-height: 3.35em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}

.news-read-button {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.84rem;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.news-pagination span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.news-grid .program-empty-card {
  grid-column: 1 / -1;
}

.news-modal-dialog {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.news-modal-meta {
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(229, 240, 249, 0.72);
}

.news-modal-picture {
  position: relative;
  z-index: 0;
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: rgba(85, 125, 169, 0.12);
}

.news-modal-picture:empty {
  display: none;
}

.news-modal-body {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 auto;
  color: var(--text);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.news-modal-body :where(img, video, iframe) {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.news-modal-body > *:first-child {
  margin-top: 0;
}

.news-modal-body > *:last-child {
  margin-bottom: 0;
}

.contact-card {
  display: grid;
  gap: 12px;
}

.contact-lines {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-ghost);
  color: var(--accent-strong);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 28px 32px;
  border: 1px solid rgba(85, 125, 169, 0.16);
  border-radius: 30px;
  background: rgba(252, 251, 243, 0.9);
  box-shadow: 0 18px 48px rgba(43, 70, 101, 0.1);
}

.site-footer-copy {
  display: grid;
  gap: 8px;
  max-width: 920px;
}

.site-footer-copy strong {
  color: var(--text);
  font-weight: 900;
}

.site-footer-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 280px;
}

.footer-links a,
.footer-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(85, 125, 169, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 900;
}

.footer-link-button {
  cursor: pointer;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 18px;
  pointer-events: none;
}

.cookie-consent-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(240, 196, 79, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(252, 251, 243, 0.98) 0%, rgba(234, 242, 248, 0.97) 100%);
  box-shadow: 0 28px 80px rgba(16, 28, 44, 0.28);
  pointer-events: auto;
}

.cookie-consent-copy {
  display: grid;
  gap: 10px;
}

.cookie-consent-card .section-kicker {
  margin-bottom: 0;
}

.cookie-consent-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.15;
}

.cookie-consent-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cookie-consent-details {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.cookie-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
}

.cookie-option input {
  margin-top: 4px;
  accent-color: var(--accent);
}

.cookie-option--locked {
  color: var(--muted);
}

.cookie-consent-links a,
.consent-field a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 360px;
}

.program-list {
  display: grid;
  gap: 22px;
}

.team-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(168, 101, 95, 0.15) 0%, rgba(168, 101, 95, 0) 34%),
    linear-gradient(180deg, rgba(234, 242, 248, 0.96) 0%, rgba(250, 252, 249, 0.96) 100%);
}

.team-section::after {
  content: "";
  position: absolute;
  inset: auto auto -90px -70px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(85, 125, 169, 0.12) 0%, rgba(85, 125, 169, 0) 72%);
  pointer-events: none;
}

.team-grid {
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.team-card,
.team-empty-card {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  border: 1px solid rgba(85, 125, 169, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 244, 248, 0.94) 100%);
  box-shadow: 0 18px 34px rgba(43, 70, 101, 0.11);
}

.team-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
}

.team-card-photo {
  position: relative;
  aspect-ratio: 280 / 300;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(85, 125, 169, 0.22) 0%, rgba(85, 125, 169, 0) 58%),
    linear-gradient(180deg, rgba(221, 232, 242, 0.96) 0%, rgba(250, 252, 249, 0.98) 100%);
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-photo--empty {
  display: grid;
  place-items: center;
}

.team-card-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-strong);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(43, 70, 101, 0.12);
}

.team-card-body {
  display: grid;
  gap: 14px;
  padding: 18px 18px 20px;
}

.team-card-body--contact {
  grid-template-rows: minmax(0, 1fr) 44px;
}

.team-card-copy {
  display: grid;
  gap: 8px;
}

.team-card-copy h3 {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 900;
  letter-spacing: 0;
}

.team-card-role {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.team-card-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  width: 100%;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(53, 95, 141, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.team-card-contact:hover,
.team-card-contact:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(53, 95, 141, 0.26);
}

.team-empty-card {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 26px;
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

.team-empty-card--error {
  color: var(--danger);
}

.gallery-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(250, 252, 249, 0.98) 0%, rgba(236, 244, 248, 0.96) 100%);
}

.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.gallery-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.gallery-event-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(85, 125, 169, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 54px rgba(43, 70, 101, 0.12);
}

.gallery-event-media {
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(34, 48, 66, 0.08), rgba(34, 48, 66, 0.22));
}

.gallery-cover-button,
.gallery-mini-strip button {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-cover-button img,
.gallery-mini-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.gallery-cover-button:hover img,
.gallery-mini-strip button:hover img {
  transform: scale(1.035);
  filter: saturate(1.06);
}

.gallery-cover-button {
  position: absolute;
  inset: 0;
}

.gallery-mini-strip {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.gallery-mini-strip button,
.gallery-mini-strip span {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px rgba(15, 28, 42, 0.22);
}

.gallery-mini-strip span {
  display: grid;
  place-items: center;
  background: rgba(18, 31, 46, 0.68);
  color: #fff;
  font-weight: 900;
}

.gallery-event-media--empty {
  display: grid;
  place-items: center;
}

.gallery-event-media--empty > span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent-strong);
  font-size: 2.2rem;
  font-weight: 900;
}

.gallery-event-body {
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 24px;
}

.gallery-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gallery-event-copy {
  display: grid;
  gap: 12px;
}

.gallery-event-copy h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.18;
}

.gallery-event-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.gallery-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-weight: 800;
}

.gallery-open-button {
  width: auto;
  min-height: 42px;
  padding: 0 18px;
}

.gallery-modal .auth-modal-backdrop {
  background: rgba(12, 20, 31, 0.78);
}

.gallery-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: rgba(14, 24, 38, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.gallery-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.94);
}

.gallery-modal-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 0;
}

.gallery-modal-figure {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
}

.gallery-modal-figure img {
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.gallery-modal-figure figcaption {
  display: grid;
  gap: 6px;
  color: #fff;
}

.gallery-modal-figure .section-kicker {
  color: rgba(255, 202, 64, 0.98);
}

.gallery-modal-figure h2,
.gallery-modal-figure p {
  margin: 0;
}

.gallery-modal-figure p {
  color: rgba(255, 255, 255, 0.72);
}

.gallery-modal-nav {
  width: 48px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.gallery-modal-nav--prev::before {
  content: "<";
}

.gallery-modal-nav--next::before {
  content: ">";
}

.gallery-modal-nav:disabled {
  opacity: 0.42;
  cursor: default;
}

.gallery-modal-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 8px;
}

.gallery-modal-thumbs button {
  flex: 0 0 82px;
  width: 82px;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.gallery-modal-thumbs button.active {
  border-color: var(--cta);
}

.gallery-modal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-section {
  position: relative;
  overflow: hidden;
}

.shop-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: end;
}

.shop-toolbar {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
}

.shop-filter-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.shop-filter-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(252, 251, 243, 0.92);
  color: var(--text);
  padding: 0 14px;
  font-weight: 800;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.shop-empty-card {
  grid-column: 1 / -1;
}

.shop-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(43, 70, 101, 0.1);
}

.shop-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(85, 125, 169, 0.12), rgba(240, 196, 79, 0.16));
}

.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.shop-card:hover .shop-card-media img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.shop-card-media--empty {
  display: grid;
  place-items: center;
}

.shop-card-media--empty > span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-strong);
  font-size: 2rem;
  font-weight: 900;
}

.shop-card-category {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(252, 251, 243, 0.92);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 900;
}

.shop-card-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.shop-card-copy {
  display: grid;
  gap: 8px;
}

.shop-card-copy h3,
.shop-card-copy p {
  margin: 0;
}

.shop-card-copy h3 {
  min-height: 2.65em;
  font-size: 1.02rem;
  line-height: 1.32;
}

.shop-card-copy p {
  min-height: 4.5em;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-card-metrics span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-ghost);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.shop-card-footer {
  display: grid;
  gap: 12px;
}

.shop-card-footer strong {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 900;
}

.shop-add-button {
  width: 100%;
  min-height: 44px;
}

.shop-pagination {
  margin-top: 18px;
}

.program-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: 28px;
  border: 1px solid rgba(85, 125, 169, 0.14);
  background: linear-gradient(135deg, rgba(255, 252, 244, 0.96) 0%, rgba(237, 244, 248, 0.92) 100%);
}

.program-toolbar-copy {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.program-toolbar-copy strong {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.program-status {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.program-status.error {
  color: var(--danger);
}

.program-empty-card {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(85, 125, 169, 0.14);
  background: rgba(255, 251, 244, 0.92);
  text-align: center;
  color: var(--muted);
}

.program-empty-card--error {
  color: var(--danger);
}

.program-week-group {
  display: grid;
  gap: 14px;
}

.program-week-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.program-week-list {
  display: grid;
  gap: 16px;
}

.program-article {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  border-radius: 32px;
  border: 1px solid rgba(85, 125, 169, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(234, 242, 248, 0.9) 100%);
  box-shadow: 0 18px 36px rgba(43, 70, 101, 0.08);
}

.program-article-media {
  position: relative;
  min-height: 240px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(85, 125, 169, 0.16);
  background: linear-gradient(135deg, rgba(85, 125, 169, 0.22) 0%, rgba(255, 255, 255, 0.98) 100%);
  display: grid;
  place-items: center;
}

.program-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-date-badge {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 120px;
  padding: 22px 18px;
  border-radius: 24px;
  background: rgba(255, 251, 244, 0.92);
  border: 1px solid rgba(85, 125, 169, 0.16);
  box-shadow: 0 18px 32px rgba(43, 70, 101, 0.12);
}

.program-date-badge strong {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-strong);
}

.program-date-badge span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.program-article-body {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.program-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.program-date-pill,
.program-time-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(85, 125, 169, 0.16);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.program-time-pill {
  color: var(--accent-strong);
}

.program-article-title {
  color: var(--text);
}

.program-article-title > *:first-child,
.program-article-copy > *:first-child {
  margin-top: 0;
}

.program-article-title > *:last-child,
.program-article-copy > *:last-child {
  margin-bottom: 0;
}

.program-article-title h2,
.program-article-title h3,
.program-article-title h4,
.program-article-title p {
  margin: 0;
}

.program-article-title h2,
.program-article-title h3,
.program-article-title h4 {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.16;
}

.program-article-copy {
  color: var(--muted);
  line-height: 1.75;
}

.program-article-copy a {
  color: var(--accent-strong);
  text-decoration: underline;
}

.contacts-section {
  --contacts-shell-offset: max(16px, calc((100vw - var(--max-width)) / 2));
  --contacts-content-offset: calc(var(--contacts-shell-offset) + 38px);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(560px, 75vw, 860px);
  padding: clamp(58px, 7vw, 104px) var(--contacts-content-offset);
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(12, 20, 15, 0.86) 0%, rgba(18, 29, 27, 0.72) 42%, rgba(18, 29, 27, 0.34) 100%),
    linear-gradient(180deg, rgba(12, 20, 15, 0.2) 0%, rgba(12, 20, 15, 0.82) 100%),
    url("./assets/contact-church.jpg") center / cover no-repeat;
  background-color: #101a15;
  box-shadow: 0 30px 90px rgba(16, 28, 44, 0.32);
}

.contacts-section::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(168, 101, 95, 0.12) 0%, rgba(168, 101, 95, 0) 70%);
  pointer-events: none;
}

.contacts-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 8px;
  width: 100%;
}

.contacts-section .section-heading {
  max-width: 760px;
}

.contacts-section .section-kicker {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(85, 125, 169, 0.72);
  color: #fffdf7;
  backdrop-filter: blur(10px);
}

.contacts-section .section-title {
  color: #fffdf7;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.contacts-section .section-text {
  color: rgba(255, 253, 247, 0.9);
}

.contacts-section .contact-card {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 58px rgba(5, 12, 18, 0.26);
  backdrop-filter: blur(16px);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 22px;
}

.auth-copy {
  display: grid;
  align-content: start;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.auth-benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.auth-benefit-marker {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cta) 0%, var(--cta-strong) 100%);
}

.auth-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(252, 251, 243, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(85, 125, 169, 0.22);
  background: #fffdf7;
  color: var(--text);
}

.field textarea {
  min-height: 124px;
  padding: 14px 16px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(85, 125, 169, 0.26);
  border-color: rgba(85, 125, 169, 0.56);
}

.auth-status,
.admin-meta,
.session-line {
  color: var(--muted);
  line-height: 1.7;
}

.auth-status {
  min-height: 1.6em;
  margin: 0;
}

.auth-status.error {
  color: var(--danger);
}

.auth-status.success {
  color: var(--success);
}

.session-summary {
  display: grid;
  gap: 8px;
  padding: 18px 18px 20px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(85, 125, 169, 0.14) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.session-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.session-title strong {
  font-size: 1.1rem;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.table-shell {
  overflow: auto;
  padding: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(85, 125, 169, 0.12);
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.83rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table input,
.admin-table select,
.admin-table textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(85, 125, 169, 0.16);
  background: #fffdf8;
}

.table-actions {
  display: flex;
  gap: 10px;
}

.table-save {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  color: #332a12;
  background: linear-gradient(135deg, var(--cta) 0%, var(--cta-strong) 100%);
  box-shadow: 0 12px 24px rgba(220, 167, 53, 0.28);
}

.table-save:disabled,
.primary-button:disabled,
.ghost-button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.legal-page .page-shell {
  padding-bottom: 48px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent-ghost);
  color: var(--accent-strong);
  font-weight: 900;
}

.legal-document {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(85, 125, 169, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(240, 196, 79, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(237, 244, 248, 0.9) 100%);
  box-shadow: var(--shadow);
}

.legal-document h1,
.legal-document h2,
.legal-document h3 {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.15;
}

.legal-document h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 980px;
}

.legal-document h2 {
  margin-top: 12px;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.legal-document h3 {
  font-size: 1.08rem;
}

.legal-document p,
.legal-document li,
.legal-document dd {
  color: var(--muted);
  line-height: 1.78;
}

.legal-document p,
.legal-document ul,
.legal-document ol,
.legal-document dl {
  margin: 0;
}

.legal-document ul,
.legal-document ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.legal-lead {
  max-width: 980px;
  font-size: 1.05rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(85, 125, 169, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(85, 125, 169, 0.12);
  color: var(--muted);
  line-height: 1.65;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-note {
  padding: 18px 20px;
  border-left: 4px solid var(--accent-red);
  border-radius: 20px;
  background: rgba(168, 101, 95, 0.1);
}

.legal-document a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero,
  .auth-shell,
  .about-layout,
  .news-grid,
  .info-grid,
  .contacts-grid,
  .team-grid,
  .gallery-events,
  .cookie-consent-card,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-controls {
    justify-content: flex-start;
  }

  .cookie-consent-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .hero-title {
    max-width: 13ch;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 20px));
    padding-top: 16px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 28px;
    padding: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-nav-wrap {
    display: none;
    grid-column: 1 / -1;
    padding-top: 10px;
  }

  .site-nav-wrap.open {
    display: grid;
    gap: 14px;
  }

  .site-nav {
    display: grid;
    justify-items: start;
    gap: 12px;
  }

  .header-actions {
    justify-content: space-between;
  }

  .account-menu-toggle {
    max-width: 100%;
  }

  .account-menu-panel {
    left: 0;
    right: auto;
    min-width: min(290px, calc(100vw - 40px));
  }

  .content-section {
    padding: 24px;
    border-radius: 26px;
  }

  .hero {
    --hero-shell-offset: 10px;
    --hero-content-offset: 34px;
    min-height: 620px;
    padding: 24px var(--hero-content-offset);
    border-radius: 0;
  }

  .contacts-section {
    --contacts-shell-offset: 10px;
    --contacts-content-offset: 34px;
    min-height: 620px;
    padding: 42px var(--contacts-content-offset);
    border-radius: 0;
  }

  .about-media {
    justify-self: stretch;
    width: 100%;
    max-width: 550px;
    min-height: 560px;
  }

  .program-toolbar,
  .program-article {
    grid-template-columns: 1fr;
  }

  .gallery-head,
  .shop-head,
  .gallery-event-card {
    grid-template-columns: 1fr;
  }

  .gallery-event-media {
    min-height: 300px;
  }

  .program-toolbar {
    justify-items: stretch;
  }

  .program-article-media {
    min-height: 210px;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .contact-link {
    width: 100%;
  }

  .site-footer,
  .legal-header {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 16px));
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .section-title {
    font-size: 1.95rem;
  }

  .content-section,
  .auth-card {
    padding: 20px;
  }

  .hero {
    --hero-shell-offset: 8px;
    --hero-content-offset: 28px;
    min-height: 680px;
    padding: 20px var(--hero-content-offset);
  }

  .contacts-section {
    --contacts-shell-offset: 8px;
    --contacts-content-offset: 28px;
    min-height: 680px;
    padding: 34px var(--contacts-content-offset);
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-stat-card {
    min-height: 132px;
  }

  .about-media {
    border-radius: 22px;
  }

  .about-media {
    min-height: 460px;
  }

  .hero-actions,
  .auth-buttons,
  .table-actions,
  .contact-actions,
  .cookie-consent-actions {
    flex-direction: column;
  }

  .site-footer {
    padding: 22px;
    border-radius: 24px;
  }

  .cookie-consent {
    padding: 10px;
  }

  .cookie-consent-card {
    padding: 18px;
    border-radius: 24px;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .program-article {
    padding: 18px;
  }

  .program-article-media {
    min-height: 180px;
  }

  .gallery-event-body {
    padding: 20px;
  }

  .gallery-event-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-open-button {
    width: 100%;
  }

  .gallery-modal-dialog {
    width: min(100vw - 16px, 720px);
    padding: 12px;
    border-radius: 24px;
  }

  .gallery-modal-stage {
    grid-template-columns: 1fr;
  }

  .gallery-modal-nav {
    display: none;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .team-card-body {
    padding: 20px;
  }

}
