:root {
  --bg: #d9e8f7;
  --panel: #f7fbff;
  --panel-soft: #eef6ff;
  --line: rgba(53, 103, 157, 0.2);
  --text: #13283f;
  --muted: #5d7896;
  --accent: #356fb0;
  --accent-dark: #0f2742;
  --logo-accent: #5f95d3;
  --logo-accent-soft: rgba(95, 149, 211, 0.24);
  --calendar-accent: #477fc4;
  --calendar-accent-soft: rgba(71, 127, 196, 0.2);
  --krag-accent: #ffd447;
  --krag-accent-soft: rgba(255, 212, 71, 0.28);
  --rekolekcje-accent: #ff9e7a;
  --success: #7ddc9a;
  --danger: #ff7b7b;
  --shadow: 0 20px 50px rgba(47, 91, 139, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(180deg, #d7e8f8 0%, #b9d2ee 48%, #8fb6dd 100%);
  color: var(--text);
  min-height: 100vh;
}

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

.content-link {
  color: #6fb0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-link:hover,
.content-link:focus-visible {
  color: #9ecbff;
}

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

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 48px;
}

.hero {
  padding-top: 0;
  position: relative;
  background: transparent !important;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none;
  margin-bottom: 10px;
}

.hero-utility {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(74%, 920px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.hero-socials {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  flex: 0 0 auto;
  gap: 8px;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(53, 103, 157, 0.22);
  background: rgba(255, 255, 255, 0.64);
  color: #1b436e;
  box-shadow: 0 8px 18px rgba(47, 91, 139, 0.14);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.language-flag {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(53, 103, 157, 0.22);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 18px rgba(47, 91, 139, 0.14);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.language-flag span {
  width: 25px;
  height: 16px;
  overflow: hidden;
  border-radius: 2px;
  border: none;
  background: linear-gradient(180deg, #000000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%);
  box-shadow: 0 0 0 1px rgba(15, 39, 66, 0.08);
}

.language-flag-pl span {
  background: linear-gradient(180deg, #ffffff 0 50%, #dc143c 50% 100%);
}

.language-flag:hover,
.language-flag:focus-visible,
.language-flag.active {
  transform: translateY(-2px);
  background: rgba(95, 149, 211, 0.24);
  border-color: rgba(53, 103, 157, 0.44);
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(95, 149, 211, 0.24);
  border-color: rgba(53, 103, 157, 0.44);
  color: #0f2742;
}

.hero-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(53, 103, 157, 0.28);
  background: rgba(255, 255, 255, 0.58);
  color: #1b436e;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-login-link:hover,
.hero-login-link:focus-visible {
  background: rgba(95, 149, 211, 0.24);
  border-color: rgba(53, 103, 157, 0.48);
  color: #0f2742;
  transform: translateY(-1px);
}

.hero-ticker {
  justify-self: center;
  width: 100%;
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(53, 103, 157, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-ticker-track {
  display: flex;
  width: max-content;
  gap: 44px;
  padding: 8px 18px;
  color: #173a61;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  animation: hero-ticker-scroll 22s linear infinite;
}

.hero-ticker:hover .hero-ticker-track {
  animation-play-state: paused;
}

@keyframes hero-ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 22px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticker-track {
    animation: none;
    transform: none;
  }
}

.hero-link {
  display: block;
}

.hero-media {
  --hero-bottom-crop: 0px;
  position: relative;
  z-index: 1;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(207, 226, 246, 0.16));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  display: block;
  width: min(74%, 920px);
  margin: 0 auto;
  overflow: hidden;
  padding: 8px;
  box-shadow:
    0 14px 34px rgba(47, 91, 139, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.hero-media::after {
  display: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
  border: none;
  box-shadow: none;
  background: transparent !important;
  filter: none;
  opacity: 1;
  clip-path: none;
  margin: 0 0 calc(-1 * var(--hero-bottom-crop));
  transform: none;
}

.hero::after {
  display: none !important;
}

.hero-fallback {
  min-height: 240px;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.85), transparent 45%),
    linear-gradient(135deg, #ffffff, #f1f1f1);
}

.hero-fallback strong {
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.14em;
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 4px 0 22px;
  padding: 8px 0;
  position: relative;
  z-index: 2;
}

.button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: linear-gradient(180deg, #74a8dd 0%, #477fc4 100%);
  color: #ffffff;
  border-radius: 999px;
  padding: 15px 18px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 26px rgba(47, 91, 139, 0.22);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(47, 91, 139, 0.3);
}

.button:focus-visible,
.nav-button:focus-visible {
  outline: none;
}

.nav-button {
  position: relative;
  padding: 7px 2px 10px;
  color: #14395f;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.08rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: color 0.22s ease, text-shadow 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

.nav-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--logo-accent), transparent);
  transform: scaleX(0.15);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  color: #356fb0;
  text-shadow: 0 0 18px var(--logo-accent-soft);
  transform: translateY(-1px);
}

.nav-button:hover::after,
.nav-button:focus-visible::after,
.nav-button.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-button.active {
  color: #356fb0;
  text-shadow: 0 0 20px rgba(95, 149, 211, 0.32);
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(239, 247, 255, 0.9));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.intro {
  margin-top: 18px;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: #2d4865;
  line-height: 1.7;
}

.grid-two {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 22px;
}

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

.about-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.about-logo {
  width: 220px;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  object-position: 60% center;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 42px rgba(47, 91, 139, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.about-logo-placeholder {
  width: 190px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  border-radius: 34px;
  border: 1px dashed rgba(53, 103, 157, 0.38);
  background: rgba(255, 255, 255, 0.42);
  color: #426789;
  font-size: 0.9rem;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.feature-image {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #e7f2ff;
}

.info-stack {
  display: grid;
  gap: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d9e8f7;
}

.gallery-caption {
  padding: 14px 16px 18px;
}

.mini-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}

.contact-card h3,
.map-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #74a8dd 0%, #477fc4 100%);
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(47, 91, 139, 0.22);
}

.contact-action {
  font-weight: 700;
  word-break: break-word;
}

.map-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.map-preview {
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(125, 178, 226, 0.2)),
    #d7e8f8;
  box-shadow:
    0 18px 42px rgba(47, 91, 139, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.92) contrast(0.98) brightness(1.05);
}

.map-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(19, 40, 63, 0.16)),
    radial-gradient(circle at center, transparent 0 18%, rgba(255, 255, 255, 0.2) 62%);
  z-index: 1;
}

.map-preview:hover,
.map-preview:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(47, 91, 139, 0.3);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(180deg, #5f95d3, #2f6eb0);
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 10px 22px rgba(15, 39, 66, 0.36);
  z-index: 2;
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.map-open-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1b436e;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(47, 91, 139, 0.2);
}

.calendar-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.75fr;
  gap: 22px;
  align-items: start;
}

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

.calendar-toolbar h2 {
  margin: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekday,
.calendar-day {
  border-radius: 18px;
  padding: 8px;
  min-height: 72px;
}

.calendar-weekday {
  text-align: center;
  color: #275f99;
  border: 1px solid rgba(75, 137, 255, 0.24);
  background: linear-gradient(180deg, rgba(215, 232, 248, 0.9), rgba(184, 211, 237, 0.72));
}

.calendar-day {
  border: 1px solid rgba(71, 127, 196, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(222, 238, 252, 0.9));
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  color: #173757;
}

.calendar-day:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 163, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(111, 163, 255, 0.18);
}

.calendar-day.other-month {
  opacity: 0.35;
}

.calendar-day.selected {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 0 18px rgba(255, 255, 255, 0.08);
}

.calendar-day.has-events {
  background: linear-gradient(180deg, rgba(136, 181, 225, 0.76), rgba(76, 131, 194, 0.88));
}

.calendar-day.type-krag {
  border-color: rgba(255, 212, 71, 0.36);
  background: linear-gradient(180deg, rgba(255, 214, 92, 0.54), rgba(98, 79, 16, 0.92));
  color: #fff8dc;
}

.calendar-day.type-uwielbienie {
  border-color: rgba(75, 137, 255, 0.34);
  background: linear-gradient(180deg, rgba(105, 164, 225, 0.78), rgba(50, 103, 170, 0.9));
  color: #ffffff;
}

.calendar-day.type-rekolekcje {
  border-color: rgba(255, 158, 122, 0.34);
  background: linear-gradient(180deg, rgba(255, 169, 136, 0.44), rgba(112, 51, 28, 0.94));
}

.calendar-day.type-mixed {
  border-color: rgba(255, 255, 255, 0.26);
  background: linear-gradient(180deg, rgba(148, 116, 255, 0.38), rgba(46, 28, 88, 0.94));
}

.day-number {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #7db4ff;
  color: #06111f;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(90, 154, 255, 0.45);
}

.day-badge.type-krag {
  background: var(--krag-accent);
  color: #2b2200;
  box-shadow: 0 0 14px rgba(255, 212, 71, 0.4);
}

.day-badge.type-uwielbienie {
  background: #7db4ff;
  color: #06111f;
}

.day-badge.type-rekolekcje {
  background: var(--rekolekcje-accent);
  color: #2c1106;
  box-shadow: 0 0 14px rgba(255, 158, 122, 0.35);
}

.day-badge.type-mixed {
  background: #ccb5ff;
  color: #120826;
}

.list-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}

.event-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(53, 103, 157, 0.14);
  border-left: 4px solid transparent;
  padding-left: 12px;
}

.event-item:last-child {
  border-bottom: none;
}

.event-item.type-krag {
  border-left-color: var(--krag-accent);
}

.event-item.type-uwielbienie {
  border-left-color: var(--calendar-accent);
}

.event-item.type-rekolekcje {
  border-left-color: var(--rekolekcje-accent);
}

.event-date {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.form-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(53, 103, 157, 0.22);
  background: #ffffff;
  color: #13283f;
  padding: 14px 16px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row form {
  margin: 0;
}

.admin-shell .button-row {
  align-items: center;
}

.admin-shell .button-row > .button,
.admin-shell .button-row > a.button,
.admin-shell .button-row > button.button,
.admin-shell .button-row > form > .button,
.admin-shell .button-row > form > button.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0;
  max-width: max-content;
  min-height: 0;
  padding: 8px 12px !important;
  font-size: 0.88rem !important;
  line-height: 1.1 !important;
  white-space: nowrap;
}

.admin-shell .form-grid > .button,
.admin-shell .form-grid > a.button,
.admin-shell .form-grid > button.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: max-content;
  justify-self: start;
  padding: 8px 12px !important;
  font-size: 0.88rem !important;
  line-height: 1.1 !important;
  white-space: nowrap;
}

.preserve-lines {
  white-space: pre-line;
}

.button-dark {
  background: rgba(255, 255, 255, 0.54);
  color: #1b436e;
}

.button-danger {
  background: linear-gradient(180deg, #ffb3b3 0%, #ff7f7f 100%);
}

.button-success {
  background: linear-gradient(180deg, #bff0cc 0%, #79d693 100%);
}

.status {
  min-height: 24px;
  color: var(--muted);
}

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

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

.admin-shell {
  display: grid;
  gap: 20px;
}

.admin-section {
  display: grid;
  gap: 12px;
}

.admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(53, 103, 157, 0.14);
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(53, 103, 157, 0.14);
}

.admin-topbar-copy {
  display: grid;
  gap: 4px;
}

.admin-topbar-actions {
  align-self: center;
}

.admin-toolbar h1,
.admin-section-head h2 {
  margin-bottom: 8px;
}

.admin-section-head {
  display: grid;
  gap: 2px;
}

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

.admin-card-head {
  display: grid;
  gap: 4px;
}

.admin-help {
  color: #5d7896;
  max-width: 70ch;
  margin: 0;
}

.admin-subtitle {
  color: #5d7896;
  font-size: 0.94rem;
  margin-bottom: 0;
}

.admin-shell .form-card {
  padding: 16px;
}

.admin-shell .form-grid,
.admin-form {
  gap: 8px;
}

.admin-shell label {
  gap: 2px;
  font-size: 0.94rem;
}

.admin-shell input,
.admin-shell textarea,
.admin-shell select {
  padding: 8px 10px;
}

.admin-shell textarea {
  min-height: 64px;
}

.admin-shell .list-card {
  padding: 16px;
}

.admin-form-note {
  margin: 0;
  color: #5d7896;
  font-size: 0.9rem;
}

.admin-grid-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.admin-grid-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.admin-field {
  display: grid;
  gap: 2px;
}

.admin-field span {
  font-size: 0.88rem;
  color: #2f5e91;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-actions {
  padding-top: 0;
  margin-top: 2px;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.admin-list-card {
  display: grid;
  gap: 10px;
}

.admin-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #5d7896;
  font-size: 0.9rem;
}

.admin-pagination {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-page-link {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(53, 103, 157, 0.2);
  background: rgba(255, 255, 255, 0.58);
  color: #1b436e;
  font-size: 0.9rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-page-link:hover,
.admin-page-link:focus-visible {
  background: rgba(95, 149, 211, 0.16);
  border-color: rgba(53, 103, 157, 0.38);
}

.admin-page-link.active {
  background: rgba(75, 137, 255, 0.22);
  border-color: rgba(75, 137, 255, 0.58);
  color: #173757;
}

.admin-inline-actions {
  margin-top: 8px;
}

.hidden {
  display: none !important;
}

.footer {
  margin-top: 28px;
  text-align: center;
  color: #426789;
  font-size: 0.92rem;
}

.footer a {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .grid-two,
  .calendar-layout,
  .feature-layout {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .admin-topbar {
    flex-direction: column;
  }

  .admin-grid-compact,
  .admin-grid-wide,
  .admin-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero-utility {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-ticker {
    order: 3;
    flex-basis: 100%;
  }
}

@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.92), transparent 28%),
      linear-gradient(180deg, #d7e8f8 0%, #b9d2ee 48%, #8fb6dd 100%);
  }

  .page {
    width: min(100%, calc(100% - 20px));
    padding-top: 16px;
  }

  .hero-media {
    --hero-bottom-crop: 0px;
    width: min(96%, 540px);
    border-radius: 16px;
    padding: 6px;
    box-shadow:
      0 10px 24px rgba(47, 91, 139, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.54);
  }

  .hero-media::after {
    display: none;
  }

  .hero-image {
    border-radius: 10px;
  }

  .hero-utility {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .hero-ticker {
    order: 3;
    flex-basis: 100%;
  }

  .social-link,
  .language-flag {
    width: 34px;
    height: 34px;
  }

  .nav-buttons {
    gap: 18px 22px;
    justify-content: center;
    margin: 2px 0 20px;
  }

  .nav-button {
    font-size: 1.02rem;
  }

  .mini-card-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 18px;
  }

  .about-logo {
    width: min(78vw, 260px);
    border-radius: 28px;
  }

  .about-logo-placeholder {
    width: min(68vw, 220px);
    border-radius: 28px;
  }

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

  .calendar-grid {
    gap: 6px;
  }

  .calendar-weekday,
  .calendar-day {
    min-height: 78px;
    padding: 8px;
    border-radius: 14px;
  }

  .panel {
    padding: 20px;
  }
}

/* Finalne ustawienia headera - trzymane na końcu, żeby nie zostały nadpisane. */
.hero .hero-media {
  --hero-bottom-crop: 0px;
  position: relative;
  isolation: isolate;
  width: min(74%, 920px);
  padding: 8px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(207, 226, 246, 0.16));
  box-shadow:
    0 14px 34px rgba(47, 91, 139, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.hero .hero-media::before {
  display: none;
}

.hero .hero-media::after {
  display: none;
}

.hero .hero-image {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  clip-path: none;
  margin: 0;
  object-fit: contain;
}

.hero .hero-animation {
  position: absolute !important;
  inset: 8px;
  z-index: 20 !important;
  display: block !important;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
  opacity: 1;
  background: transparent;
}

.hero .hero-animation.hero-animation-sunflare,
.hero .hero-animation.hero-animation-sunflare-v2 {
  background:
    radial-gradient(circle at 9% 9%, rgba(255, 255, 255, 0.92) 0 2%, rgba(255, 245, 214, 0.46) 5%, rgba(157, 218, 255, 0.18) 11%, transparent 22%);
  animation: hero-sunflare-layer 8s ease-in-out infinite;
}

.hero .hero-animation-sunflare-v2::before,
.hero .hero-animation-sunflare-v2::after {
  display: none;
}

.hero .hero-sunflare-orb {
  position: absolute;
  left: -3%;
  top: -7%;
  display: block !important;
  width: 24%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 12%, rgba(255, 249, 229, 0.46) 24%, rgba(139, 211, 255, 0.24) 46%, transparent 72%);
  filter: blur(0.4px);
  animation: hero-sunflare-orb 7s ease-in-out infinite;
}

.hero .hero-sunflare-ray {
  position: absolute;
  left: -38%;
  top: -38%;
  display: block !important;
  width: 88%;
  height: 135%;
  background:
    linear-gradient(126deg, transparent 0%, transparent 35%, rgba(255, 255, 255, 0.44) 48%, rgba(166, 224, 255, 0.24) 56%, transparent 72%);
  filter: blur(1.2px);
  transform: translateX(-18%) rotate(-4deg);
  animation: hero-sunflare-ray 5.8s ease-in-out infinite;
}

.hero .hero-animation-sunflare::before {
  content: "";
  position: absolute;
  left: -12%;
  top: -24%;
  width: 48%;
  height: 58%;
  background:
    radial-gradient(circle at 44% 38%, rgba(255, 255, 255, 0.28), rgba(255, 246, 221, 0.12) 18%, rgba(121, 196, 255, 0.07) 34%, transparent 58%);
  filter: blur(1px);
  animation: hero-sunflare-breathe 8s ease-in-out infinite;
}

.hero .hero-animation-sunflare::after {
  content: "";
  position: absolute;
  inset: -18% -32%;
  background:
    linear-gradient(112deg, transparent 0%, transparent 36%, rgba(255, 255, 255, 0.38) 48%, rgba(168, 224, 255, 0.18) 55%, transparent 68%, transparent 100%);
  filter: blur(1.5px);
  transform: translateX(-120%);
  animation: hero-quick-flare 6s ease-in-out infinite;
}

.hero .hero-animation span {
  display: none !important;
}

.hero .hero-animation-sunflare-v2 .hero-sunflare-orb,
.hero .hero-animation-sunflare-v2 .hero-sunflare-ray {
  display: block !important;
}

@keyframes hero-sunflare-breathe {
  from {
    transform: scale(0.96);
    opacity: 0.22;
  }

  to {
    transform: scale(1.06);
    opacity: 0.42;
  }
}

@keyframes hero-sunflare-orb {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.62;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.96;
  }
}

@keyframes hero-sunflare-ray {
  0%,
  42% {
    transform: translateX(-18%) rotate(-4deg);
    opacity: 0;
  }

  52% {
    opacity: 0.72;
  }

  74%,
  100% {
    transform: translateX(62%) rotate(-1deg);
    opacity: 0;
  }
}

@keyframes hero-sunflare-layer {
  0%,
  100% {
    opacity: 0.44;
  }

  50% {
    opacity: 0.76;
  }
}

@keyframes hero-quick-flare {
  0%,
  42% {
    transform: translateX(-120%);
    opacity: 0;
  }

  52% {
    opacity: 0.58;
  }

  72%,
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes hero-breathing-glow {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-animation,
  .hero .hero-animation::before,
  .hero .hero-animation::after,
  .hero .hero-animation span {
    animation: none;
  }
}

.hero .nav-buttons {
  gap: 30px;
  margin: 4px 0 22px;
}

.hero .nav-button {
  font-size: 1.08rem;
}

@media (max-width: 700px) {
  .hero .hero-media {
    width: min(96%, 540px);
    padding: 6px;
    border-radius: 16px;
    box-shadow:
      0 10px 24px rgba(47, 91, 139, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.54);
  }

  .hero .hero-image {
    border-radius: 10px;
  }

  .hero .nav-buttons {
    gap: 18px 22px;
    margin: 2px 0 20px;
  }

  .hero .nav-button {
    font-size: 1.02rem;
  }
}
