:root {
  --red: #8f1d1d;
  --red-dark: #4f1717;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --paper: #ffffff;
  --soft: #f6f7f8;
  --line: #e5e7eb;
  --gold: #a87b2d;
  --shadow: 0 18px 46px rgba(70, 43, 26, .11);
  --shadow-strong: 0 24px 62px rgba(70, 43, 26, .15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  color: var(--red-dark);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .2px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: .95rem;
  color: var(--muted);
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--red-dark);
}

.lang-toggle {
  min-width: 48px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--red-dark);
  font-weight: 800;
  cursor: pointer;
}

.hero {
  color: #fff;
  background: linear-gradient(135deg, #351515, #641a1a 58%, #2c2421);
}

.hero-content {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 0 96px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.poland-mark {
  width: 120px;
  height: 48px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: linear-gradient(to bottom, #fff 0 50%, #b91c1c 50% 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-subtitle {
  margin-top: 12px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  font-weight: 600;
}

.hero-lead {
  max-width: 720px;
  margin: 26px 0 0;
  font-size: 1.22rem;
  color: rgba(255, 255, 255, .92);
}

.countdown {
  margin-top: 28px;
  padding: 12px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, .12);
  font-weight: 700;
  color:#641a1a;
}

.hero .countdown {
  color: #fff;
  margin-top: 34px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .18);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.35;
  backdrop-filter: blur(8px);
}

#detailCountdown {
  font-size: 30px;
  line-height: 1.3;
}

.hero-actions,
.event-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

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

.btn-primary,
.btn-secondary,
.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary,
.btn-share {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .72);
}

.btn-secondary:hover,
.btn-share:hover {
  background: rgba(255, 255, 255, .14);
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--red-dark);
  font-weight: 800;
  text-decoration-color: rgba(143, 29, 29, .35);
  text-underline-offset: 5px;
}

.text-link:hover {
  text-decoration-color: var(--red-dark);
}

.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--soft);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 56px;
  align-items: start;
}

.narrow {
  max-width: 880px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--red-dark);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
}

h3 {
  margin: 0 0 10px;
  color: var(--red-dark);
  font-size: 1.25rem;
}

p {
  margin: 0;
}

p + p {
  margin-top: 18px;
}

.home-page .text-panel p,
.home-page .feature p,
.home-page .event-note,
.home-page .section-heading > p,
.home-page .hero-lead {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.saint-ignatius-page .text-panel p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.text-panel,
.quote-panel,
.feature,
.event-card,
.empty-state,
.detail-meta,
.quote-card,
.testimonial-card,
.timeline-item,
.poster-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.text-panel,
.quote-panel {
  padding: 34px;
  font-size: 1.08rem;
}

.feature-grid,
.quote-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.feature,
.quote-card,
.testimonial-card {
  padding: 28px;
}

.quote-card,
.testimonial-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.quote-card {
  align-items: stretch;
}

.pope-card-header {
  display: flex;
  justify-content: center;
  margin: 10px 0 20px;
}

.pope-name {
  margin: 0;
  text-align: center;
  color: var(--red-dark);
  font-size: 1.18rem;
}

.pope-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  border: 2px solid rgba(168, 123, 45, .45);
  background: var(--soft);
  box-shadow: 0 12px 28px rgba(70, 43, 26, .14);
}

.pope-avatar-placeholder {
  display: grid;
  place-items: center;
  color: var(--red-dark);
  background: #f7ead4;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .03em;
}

.quote-card blockquote,
.testimonial-card blockquote,
.scripture-quote {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 1.05rem;
  font-style: normal;
  white-space: pre-line;
}

.quote-card blockquote {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.testimonial-card blockquote {
  font-style: italic;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.scripture-quote {
  font-style: italic;
}

.scripture-reference {
  color: var(--muted);
  font-weight: 700;
}

.quote-card footer,
.testimonial-card footer {
  margin-top: auto;
  padding-top: 18px;
  color: var(--red-dark);
  font-weight: 800;
}

.quote-card footer strong,
.quote-card footer span {
  display: block;
}

.quote-card footer span {
  margin-top: 5px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.quote-card .pending-note,
.testimonial-card .pending-note {
  color: var(--muted);
  font-style: italic;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.step span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  font-weight: 800;
}

.page-intro,
.details-steps .step {
  font-size: 1.13rem;
  line-height: 1.75;
}

.page-intro p,
.details-steps .step p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.details-steps .step h2 {
  margin-bottom: 20px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading > p {
  max-width: 420px;
  color: var(--muted);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.event-card {
  overflow: hidden;
}

.event-image {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  background: var(--soft);
  border-radius: 6px;
  flex: 0 0 150px;
}

.event-detail-image {
  display: block;
  width: min(100%, 420px);
  max-height: 260px;
  margin: 28px auto;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.event-card:hover,
.feature:hover,
.quote-card:hover,
.testimonial-card:hover {
  box-shadow: var(--shadow-strong);
}

.event-header {
  padding: 24px 24px 18px;
  border-top: 6px solid var(--red);
}

.event-body {
  padding: 0 24px 26px;
}

.event-summary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 6px;
}

.event-summary-content {
  min-width: 0;
}

.event-date {
  margin-top: 14px;
  font-weight: 800;
}

.event-countdown {
  margin-top: 12px;
  color: var(--red-dark);
  font-weight: 800;
}

.event-location,
.event-note,
.empty-state {
  color: var(--muted);
}

.event-location a,
.detail-meta a {
  color: var(--red-dark);
  font-weight: 700;
  text-decoration-color: rgba(143, 29, 29, .3);
  text-underline-offset: 4px;
}

.event-location a:hover,
.detail-meta a:hover {
  text-decoration-color: var(--red-dark);
}

.event-actions .btn-register {
  color: #fff;
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.event-actions .btn-register:hover {
  background: var(--red);
  border-color: var(--red);
}

.event-note {
  margin-top: 12px;
}

.event-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 5px 10px;
  color: var(--red-dark);
  background: #f8e4df;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.event-badges .event-badge {
  margin-top: 14px;
}

.event-badge-language {
  color: #5f4215;
  background: #f7ead4;
}

.highlight-next {
  border-color: #d6a75f;
  box-shadow: 0 24px 62px rgba(184, 137, 53, .2);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
}

.image-placeholders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.compact-placeholders {
  grid-template-columns: repeat(2, 1fr);
}

.image-placeholder {
  display: grid;
  min-height: 128px;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(79, 23, 23, .08), rgba(168, 123, 45, .08)),
    #fff;
  border: 1px dashed #c8c0b6;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
}

.how-image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow-soft);
}

.image-placeholder-large {
  min-height: 220px;
  margin-bottom: 24px;
}

.author-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.breadcrumb {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .95rem;
}

.breadcrumb a {
  color: var(--red-dark);
  text-decoration: none;
}

.detail-title {
  margin: 0;
  color: var(--red-dark);
  font-size: 3.2rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: visible;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 24px;
}

.detail-description {
  font-size: 1.08rem;
}

.detail-actions .btn-secondary,
.detail-actions .btn-share,
.share-actions .btn-share {
  color: var(--red-dark);
  border-color: rgba(143, 29, 29, .22);
  background: #fff;
}

.detail-actions .btn-secondary:hover,
.detail-actions .btn-share:hover,
.share-actions .btn-share:hover {
  background: #f8e4df;
}

.detail-actions {
  align-items: center;
  padding-top: 28px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.detail-actions .btn-primary,
.detail-actions .btn-secondary {
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: .95rem;
}

.share-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(70, 43, 26, .07);
}

.share-panel-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.share-actions .btn-share {
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  border-color: transparent;
}

.share-actions .btn-share-primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.share-actions .btn-share-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.share-actions .btn-share-whatsapp {
  background: #25d366;
}

.share-actions .btn-share-whatsapp:hover {
  background: #1fae55;
}

.share-actions .btn-share-facebook {
  background: #1877f2;
}

.share-actions .btn-share-facebook:hover {
  background: #145dbd;
}

.share-actions .btn-share-sms {
  background: #5f6b7a;
}

.share-actions .btn-share-sms:hover {
  background: #485360;
}

.share-actions .btn-share-copy {
  color: var(--red-dark);
  background: #f7ead4;
  border-color: #ead4ad;
}

.share-actions .btn-share-copy:hover {
  background: #efd9ad;
}

.poster-panel {
  margin: 30px 0;
  padding: 18px;
}

.poster-panel img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--soft);
}

.poster-panel a {
  display: block;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 20px;
}

.timeline-year {
  color: var(--red-dark);
  font-weight: 900;
}

.footer {
  padding: 34px 0;
  color: #fff;
  background: var(--red-dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.footer a {
  color: #fff;
}

@media (max-width: 900px) {
  .header-bar,
  .section-heading,
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero-content {
    min-height: 560px;
  }

  .two-column,
  .feature-grid,
  .quote-grid,
  .testimonial-grid,
  .image-placeholders,
  .compact-placeholders {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .main-nav {
    gap: 16px;
    font-size: .9rem;
  }

  .text-panel,
  .quote-panel,
  .feature,
  .quote-card,
  .testimonial-card {
    padding: 22px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

}
