:root {
  --blue-900: #10264a;
  --blue-800: #173968;
  --green-700: #2d6a4f;
  --red-700: #a53836;
  --gold-500: #c9a449;
  --gold-100: #f6ecd1;
  --white: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --soft: #f7f8f4;
  --line: #e5e3da;
  --shadow: 0 22px 60px rgba(16, 38, 74, 0.14);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0 34%, rgba(255, 255, 255, 0.74) 50%, rgba(233, 246, 237, 0.18) 68%, rgba(211, 232, 218, 0.54) 100%),
    radial-gradient(circle at top left, rgba(45, 106, 79, 0.2), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at top right, rgba(116, 161, 114, 0.18), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at bottom left, rgba(45, 106, 79, 0.16), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at bottom right, rgba(116, 161, 114, 0.16), rgba(255, 255, 255, 0) 38%),
    #edf7f0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
  padding: 10px max(24px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #7b5a16 0%, #c9a449 24%, #f1d989 48%, #a77d22 72%, #6f5011 100%);
  pointer-events: none;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 36px rgba(16, 38, 74, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 390px;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(123, 90, 22, 0.18));
}

.brand span {
  position: relative;
  display: block;
  padding-left: 14px;
}

.brand span::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1d989, #9b711d);
}

.brand strong {
  display: block;
  color: #071e44;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.08rem, 1.45vw, 1.34rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.brand small {
  display: block;
  max-width: 410px;
  margin-top: 5px;
  color: #9c9fa6;
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.25;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 24px;
  border: 1px solid rgba(16, 38, 74, 0.07);
  border-radius: 999px;
  padding: 4px;
  background: rgba(247, 248, 244, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
}

.main-nav a {
  position: relative;
  border-radius: 999px;
  color: var(--blue-900);
  padding: 8px 9px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #725415;
  background: rgba(246, 236, 209, 0.62);
  transform: translateY(-1px);
}

.main-nav a.is-active {
  background: linear-gradient(135deg, #f8efd7, #f2e2b8);
  color: var(--blue-900);
  box-shadow: 0 6px 16px rgba(123, 90, 22, 0.12);
}

.main-nav .admin-panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.admin-panel-link img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger > a {
  padding-right: 4px;
}

.nav-dropdown-trigger > button {
  width: 24px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: var(--blue-900);
  cursor: pointer;
}

.nav-dropdown-trigger > button span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-trigger > button span {
  transform: translateY(2px) rotate(225deg);
}

.nav-submenu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  left: 0;
  display: none;
  min-width: 210px;
  border: 1px solid rgba(16, 38, 74, 0.1);
  border-radius: 16px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 38px rgba(16, 38, 74, 0.14);
}

.nav-submenu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-submenu a {
  display: block;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.is-open .nav-submenu {
  display: block;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-900);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  max-width: var(--container);
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 73, 0.28);
  border-radius: 24px;
  padding: 54px 24px 58px;
  background:
    radial-gradient(circle at 92% 8%, rgba(201, 164, 73, 0.18), transparent 24%),
    radial-gradient(circle at 4% 92%, rgba(54, 112, 78, 0.12), transparent 25%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 242, 0.92));
  box-shadow: 0 22px 58px rgba(16, 38, 74, 0.08);
}

.hero::before {
  content: none;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.7vw, 4.55rem);
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.45vw, 3.35rem);
}

.hero-text,
.page-hero p,
.lead {
  color: #3b475c;
  font-size: 1.18rem;
  max-width: 760px;
}

.hero-text {
  color: #8f96a3;
}

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

.hero-actions .btn {
  padding-right: 14px;
  padding-left: 14px;
  font-size: 0.9rem;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: min(380px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  min-height: 0;
  border: 1px solid rgba(45, 106, 79, 0.34);
  border-radius: 8px;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.72) 0 38%, rgba(224, 242, 229, 0.54) 68%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, rgba(226, 244, 232, 0.7), rgba(255, 255, 255, 0.88));
  box-shadow: 0 28px 60px rgba(16, 38, 74, 0.1);
}

.hero-mark::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78), rgba(224, 242, 229, 0.28) 62%, rgba(255, 255, 255, 0));
}

.hero-mark img {
  position: relative;
  z-index: 1;
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 18px 26px rgba(16, 38, 74, 0.16));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #8a6a1f;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 0 18px rgba(201, 164, 73, 0.24);
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(138, 106, 31, 0.86), rgba(201, 164, 73, 0));
}

.page-hero .eyebrow,
.section-heading .eyebrow,
.row-heading .eyebrow {
  color: #8a6a1f;
}

.section,
.page-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
}

.page-hero {
  padding-top: 96px;
  padding-bottom: 24px;
}

.page-hero + .section {
  padding-top: 32px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2,
.split-section h2,
.content-narrow h2,
.values-section h2 {
  margin: 0 0 14px;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.65rem, 2.9vw, 2.65rem);
  line-height: 1.08;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.feature-grid,
.values-section,
.message-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid.three,
.values-section,
.message-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values-section.single-card {
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--container);
  padding-bottom: 32px;
}

.values-section.single-card article {
  max-width: none;
}

.ritual-card-image {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid rgba(201, 164, 73, 0.32);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(16, 38, 74, 0.12);
}

.ritual-card-content {
  max-width: 650px;
}

.ritual-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  border: 1px solid rgba(201, 164, 73, 0.48);
  border-radius: 999px;
  padding: 10px 17px;
  color: var(--blue-900);
  background: linear-gradient(135deg, rgba(246, 236, 209, 0.72), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 24px rgba(16, 38, 74, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ritual-read-more:hover {
  transform: translateY(-2px);
  border-color: var(--gold-500);
  box-shadow: 0 14px 28px rgba(16, 38, 74, 0.13);
}

.ritual-read-more:focus-visible {
  outline: 3px solid rgba(201, 164, 73, 0.42);
  outline-offset: 3px;
}

.ritual-read-more svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition: transform 0.2s ease;
}

.ritual-read-more:hover svg {
  transform: translateX(3px);
}

.feature-card,
.values-section article,
.message-card,
.gallery-card,
.info-panel,
.quote-panel,
.contact-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(16, 38, 74, 0.06);
}

.feature-card,
.values-section article,
.message-card,
.info-panel,
.quote-panel,
.contact-card,
.contact-form {
  padding: 28px;
}

.feature-card span,
.gallery-card span,
.message-card time {
  color: var(--gold-500);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.feature-card h3,
.event-card h3,
.gallery-card h2,
.message-card h2,
.contact-card h2 {
  margin: 8px 0 10px;
  color: var(--blue-900);
  line-height: 1.2;
}

.feature-card p,
.values-section p,
.message-card p,
.event-card p,
.contact-card p {
  color: var(--muted);
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: start;
}

.quote-panel {
  border-color: rgba(201, 164, 73, 0.5);
  background: linear-gradient(135deg, rgba(246, 236, 209, 0.82), rgba(255, 255, 255, 0.92));
}

.quote-panel p {
  margin: 0;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.55rem;
  line-height: 1.35;
}

.info-panel h3 {
  margin-top: 0;
  color: var(--blue-900);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin: 12px 0;
  color: #465064;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green-700);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.12);
}

.event-list {
  display: grid;
  gap: 14px;
}

.empty-state {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(16, 38, 74, 0.06);
  padding: 28px;
}

.empty-state h2 {
  margin: 0 0 8px;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.event-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 38, 74, 0.07);
}

.event-card time {
  color: var(--blue-900);
  font-weight: 700;
}

.event-card time small {
  display: block;
  color: var(--red-700);
  font-size: 0.82rem;
}

.content-narrow {
  max-width: 860px;
}

.umbanda-intro {
  padding-bottom: 24px;
}

.featured-reading {
  max-width: 860px;
  padding-top: 0;
  padding-bottom: 32px;
}

.reading-feature {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 72px;
  gap: 28px;
  align-items: center;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 73, 0.58);
  border-radius: 18px;
  padding: 32px 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 18%, rgba(241, 217, 137, 0.2), transparent 26%),
    linear-gradient(135deg, #071e44 0%, #102f5e 58%, #174b53 100%);
  box-shadow: 0 24px 56px rgba(7, 30, 68, 0.2);
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.reading-feature::before,
.reading-feature::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.reading-feature::before {
  top: -116px;
  right: -76px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(241, 217, 137, 0.24);
}

.reading-feature::after {
  right: 16px;
  bottom: -152px;
  width: 230px;
  height: 230px;
  background: rgba(45, 106, 79, 0.2);
}

.reading-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 217, 137, 0.9);
  box-shadow: 0 30px 68px rgba(7, 30, 68, 0.28);
}

.reading-feature:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 4px;
}

.reading-number {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(241, 217, 137, 0.62);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.025);
  text-align: center;
}

.reading-number small,
.reading-number strong {
  display: block;
  line-height: 1;
}

.reading-number small {
  color: #f1d989;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reading-number strong {
  margin-top: -20px;
  color: var(--white);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.85rem;
  font-weight: 400;
}

.reading-copy,
.reading-title,
.reading-description {
  display: block;
}

.reading-eyebrow {
  color: #f1d989;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reading-title {
  margin-top: 6px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
}

.reading-description {
  max-width: 540px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.55;
}

.reading-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #f1d989;
  font-size: 0.86rem;
  font-weight: 700;
}

.reading-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 0.2s ease;
}

.reading-feature:hover .reading-action svg {
  transform: translateX(4px);
}

.reading-mark {
  position: relative;
  z-index: 1;
  color: rgba(241, 217, 137, 0.9);
  font-size: 3.25rem;
  text-align: center;
  text-shadow: 0 0 28px rgba(241, 217, 137, 0.48);
}

.featured-reading + .feature-grid {
  padding-top: 32px;
}

.content-narrow + .feature-grid {
  padding-top: 24px;
}

.single-card + .split-section {
  padding-top: 32px;
}

.guidance-section {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: var(--container);
  padding-top: 22px;
}

.guidance-section > div:first-child {
  max-width: 860px;
}

.guidance-card-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  max-width: none;
}

.guidance-card-row .ritual-card-image {
  height: 100%;
  min-height: 254px;
}

.guidance-card-row .info-panel {
  width: 100%;
}

.guidance-section .check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
}

.science-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 54px;
  align-items: center;
  padding-bottom: 58px;
}

.science-hero-copy h1 {
  max-width: 760px;
}

.science-hero-copy > p:last-child {
  max-width: 680px;
  font-size: 1.08rem;
}

.science-hero-visual {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(201, 164, 73, 0.52);
  border-radius: 22px;
  background: var(--blue-900);
  box-shadow: 0 26px 62px rgba(7, 30, 68, 0.2);
}

.science-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(7, 30, 68, 0.92));
  pointer-events: none;
}

.science-hero-visual img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transform: scale(1.02);
}

.science-hero-visual figcaption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.science-article {
  max-width: 960px;
  padding-top: 18px;
}

.science-article-intro {
  border-left: 3px solid var(--gold-500);
  padding: 10px 0 10px 28px;
}

.science-article-intro p {
  margin: 0;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.55;
}

.science-duality {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 48px 0;
  border: 1px solid rgba(201, 164, 73, 0.38);
  border-radius: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at center, rgba(201, 164, 73, 0.12), transparent 24%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(16, 38, 74, 0.08);
}

.science-duality > div {
  display: grid;
  gap: 6px;
}

.science-duality > div:last-child {
  text-align: right;
}

.science-duality span:not(.science-duality-symbol) {
  color: #8a6a1f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.science-duality strong {
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  line-height: 1.35;
}

.science-duality-symbol {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(201, 164, 73, 0.58);
  border-radius: 50%;
  color: var(--gold-500);
  background: var(--white);
  font-size: 1.35rem;
}

.science-section {
  border-top: 1px solid rgba(16, 38, 74, 0.1);
  padding: 42px 0;
}

.science-section > p {
  margin: 0 0 20px;
  color: #34435a;
  font-size: 1.02rem;
  line-height: 1.85;
}

.science-section > p:last-child {
  margin-bottom: 0;
}

.science-section .science-section-label {
  margin-bottom: 8px;
  color: #8a6a1f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.science-section h2 {
  margin: 0 0 22px;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.science-quote {
  position: relative;
  margin: 34px 0;
  border-radius: 18px;
  padding: 34px 40px;
  color: var(--white);
  background: linear-gradient(135deg, #071e44, #173968 68%, #1e5553);
  box-shadow: 0 22px 52px rgba(7, 30, 68, 0.18);
}

.science-quote::before {
  content: "“";
  position: absolute;
  top: 2px;
  left: 20px;
  color: rgba(241, 217, 137, 0.24);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 6rem;
  line-height: 1;
}

.science-quote p {
  position: relative;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.3rem, 2.7vw, 1.85rem);
  line-height: 1.4;
}

.science-quote cite,
.wisdom-grid cite {
  display: block;
  margin-top: 14px;
  color: #f1d989;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.wisdom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.wisdom-grid blockquote {
  margin: 0;
  border: 1px solid rgba(201, 164, 73, 0.34);
  border-radius: 14px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(16, 38, 74, 0.06);
}

.wisdom-grid p {
  margin: 0;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.55;
}

.wisdom-grid cite {
  color: #8a6a1f;
}

.science-conclusion {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 28px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(201, 164, 73, 0.5);
  border-radius: 20px;
  padding: 38px;
  color: rgba(255, 255, 255, 0.84);
  background:
    radial-gradient(circle at 0 0, rgba(201, 164, 73, 0.18), transparent 28%),
    linear-gradient(135deg, #071e44, #123866 64%, #174b53);
  box-shadow: 0 26px 64px rgba(7, 30, 68, 0.2);
}

.science-conclusion-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(241, 217, 137, 0.58);
  border-radius: 50%;
  color: #f1d989;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.6rem;
}

.science-conclusion p {
  margin: 0 0 18px;
  line-height: 1.8;
}

.science-conclusion p:last-child {
  margin-bottom: 0;
  color: var(--white);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.18rem;
}

.science-playlist-section {
  max-width: 960px;
  padding-top: 34px;
}

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

.science-playlist-heading > div {
  max-width: 700px;
}

.science-playlist-heading .science-section-label {
  margin: 0 0 8px;
  color: #8a6a1f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.science-playlist-heading h2 {
  margin: 0 0 12px;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.12;
}

.science-playlist-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
}

.science-playlist-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid rgba(201, 164, 73, 0.46);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(16, 38, 74, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.science-playlist-link:hover {
  transform: translateY(-2px);
  border-color: var(--gold-500);
  box-shadow: 0 14px 30px rgba(16, 38, 74, 0.13);
}

.science-playlist-link:focus-visible {
  outline: 3px solid rgba(201, 164, 73, 0.4);
  outline-offset: 3px;
}

.science-playlist-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.science-playlist-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 73, 0.56);
  border-radius: 20px;
  padding: 12px;
  background:
    radial-gradient(circle at 90% 0, rgba(201, 164, 73, 0.2), transparent 24%),
    linear-gradient(145deg, #071e44, #102f5e 62%, #174b53);
  box-shadow: 0 30px 70px rgba(7, 30, 68, 0.24);
}

.science-playlist-shell::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(241, 217, 137, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.science-playlist-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.76);
}

.science-playlist-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(241, 217, 137, 0.76);
}

.science-playlist-bar span:nth-child(2) {
  opacity: 0.62;
}

.science-playlist-bar span:nth-child(3) {
  opacity: 0.38;
}

.science-playlist-bar strong {
  margin-left: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.science-playlist-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #020817;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.science-playlist-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card > div:last-child {
  padding: 18px;
}

.gallery-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f7f8f4, #eef4ef);
}

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7d9d4;
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 164, 73, 0.15);
  outline: none;
}

.contact-form .has-error {
  border-color: var(--red-700);
}

.contact-form small {
  min-height: 18px;
  color: var(--red-700);
  font-weight: 400;
}

.alert {
  border-radius: var(--radius);
  padding: 14px 16px;
}

.alert.success {
  color: #194b36;
  background: #e9f6ef;
}

.alert.error {
  color: #792625;
  background: #fae8e8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue-900);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(16, 38, 74, 0.18);
}

.btn-secondary {
  background: var(--green-700);
  color: var(--white);
}

.guestbook-hero-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 2px solid rgba(184, 138, 39, 0.82);
  border-radius: 18px;
  background: linear-gradient(145deg, #fffdf7, #f3e3b5);
  box-shadow:
    0 14px 30px rgba(138, 106, 31, 0.24),
    0 0 0 5px rgba(201, 164, 73, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.guestbook-hero-link:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: #8a6417;
  box-shadow:
    0 18px 36px rgba(138, 106, 31, 0.32),
    0 0 0 7px rgba(201, 164, 73, 0.14);
}

.guestbook-hero-link:focus-visible {
  outline: 3px solid rgba(184, 138, 39, 0.32);
  outline-offset: 3px;
}

.guestbook-hero-link img {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  object-fit: cover;
}

.btn-ghost,
.btn-small {
  border-color: var(--line);
  background: var(--white);
  color: var(--blue-900);
}

.btn-small {
  min-height: 40px;
  white-space: nowrap;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red-700);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.message-open {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.message-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #68748a;
  font-size: 0.78rem;
}

.message-card-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.message-card-stats > span > span {
  color: var(--red-700);
  font-size: 1rem;
}

.message-card-stats strong {
  color: var(--blue-900);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 38, 74, 0.42);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid rgba(201, 164, 73, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(16, 38, 74, 0.24);
  padding: 34px;
}

.modal-panel time {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold-500);
  font-size: 0.84rem;
  font-weight: 700;
}

.modal-panel h2 {
  margin: 0 48px 14px 0;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.modal-summary {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.02rem;
}

.modal-content {
  color: #2f3d56;
  line-height: 1.75;
  white-space: pre-line;
}

.message-interactions {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.message-modal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.message-modal-stats strong {
  color: var(--blue-900);
  font-size: 1rem;
}

.message-feedback {
  margin-top: 18px;
  border-radius: 16px;
  padding: 19px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 164, 73, 0.15), transparent 38%),
    linear-gradient(135deg, #f8fbf9, #f6f2e8);
}

.message-feedback > p:first-child {
  margin: 0 0 12px;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.08rem;
  font-weight: 700;
}

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

.message-reaction,
.message-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid rgba(22, 89, 58, 0.22);
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--white);
  color: #16593a;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.message-reaction:hover:not(:disabled),
.message-share:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(201, 164, 73, 0.8);
  box-shadow: 0 10px 24px rgba(16, 38, 74, 0.11);
}

.message-reaction-muted {
  border-color: var(--line);
  color: var(--muted);
}

.message-share {
  margin-left: auto;
  border-color: var(--blue-900);
  background: var(--blue-900);
  color: var(--white);
}

.message-reaction.is-selected {
  border-color: #16593a;
  background: #16593a;
  color: var(--white);
}

.message-reaction:disabled,
.message-share:disabled {
  cursor: default;
  opacity: 0.64;
}

.message-reaction.is-selected:disabled {
  opacity: 1;
}

.message-action-status {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: #16593a;
  font-size: 0.84rem;
  font-weight: 600;
}

.history-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  gap: 54px;
  background:
    radial-gradient(circle at 90% 14%, rgba(201, 164, 73, 0.2), transparent 24%),
    linear-gradient(140deg, rgba(235, 247, 240, 0.96), rgba(255, 255, 255, 0.98));
}

.history-hero > div:first-child {
  max-width: 830px;
}

.history-hero-mark {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 1px solid rgba(201, 164, 73, 0.45);
  border-radius: 50% 50% 46% 54%;
  padding: 30px;
  text-align: center;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 42%, rgba(246, 236, 209, 0.78) 43% 64%, rgba(201, 164, 73, 0.2) 65% 100%);
  box-shadow: 0 24px 55px rgba(16, 38, 74, 0.1);
}

.history-hero-mark span {
  display: block;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3rem;
  line-height: 1;
}

.history-hero-mark small {
  display: block;
  max-width: 150px;
  margin-top: 10px;
  color: #8a6a1f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.history-article {
  max-width: 1060px;
}

.history-introduction,
.history-section,
.history-closing {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.history-introduction h2,
.history-section h2,
.history-branch h2,
.history-closing h2 {
  margin: 0 0 20px;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.12;
}

.history-introduction p:not(.history-section-label),
.history-section > p:not(.history-section-label),
.history-branch > p:not(.history-section-label),
.history-closing > p:not(.history-section-label) {
  margin: 0 0 18px;
  color: #3c4a60;
  font-size: 1.01rem;
  line-height: 1.78;
}

.history-section-label {
  margin: 0 0 10px;
  color: #8a6a1f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.history-highlight {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 900px;
  margin: 42px auto;
  border-radius: 18px;
  padding: 28px 34px;
  color: #fff;
  background: linear-gradient(135deg, #0b2448, #174f4a);
  box-shadow: 0 20px 48px rgba(16, 38, 74, 0.18);
}

.history-highlight span {
  color: #f1d989;
  font-size: 1.8rem;
}

.history-highlight p {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.35;
}

.history-section {
  margin-top: 58px;
  scroll-margin-top: 110px;
}

.history-section-tinted {
  max-width: 980px;
  border: 1px solid rgba(201, 164, 73, 0.3);
  border-radius: 22px;
  padding: 38px 40px 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 164, 73, 0.13), transparent 28%),
    rgba(248, 251, 248, 0.9);
}

.history-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.history-pillars div {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(201, 164, 73, 0.32);
  border-radius: 14px;
  padding: 17px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(16, 38, 74, 0.05);
}

.history-pillars span {
  color: var(--gold-500);
  font-size: 0.72rem;
  font-weight: 800;
}

.history-pillars strong {
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.08rem;
}

.history-index {
  position: sticky;
  top: 96px;
  z-index: 4;
  max-width: 980px;
  margin: 58px auto 30px;
  border: 1px solid rgba(201, 164, 73, 0.34);
  border-radius: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(16, 38, 74, 0.09);
  backdrop-filter: blur(12px);
}

.history-index > p {
  margin: 0 0 10px;
  color: #8a6a1f;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.history-index > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-index a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--blue-900);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.history-index a:hover {
  border-color: var(--gold-500);
  color: #8a6a1f;
}

.history-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.history-branch {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 210px;
  border: 1px solid rgba(16, 38, 74, 0.1);
  border-radius: 20px;
  padding: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 164, 73, 0.13), transparent 25%),
    linear-gradient(145deg, #fff, #f9fbf9);
  box-shadow: 0 15px 38px rgba(16, 38, 74, 0.06);
}

.history-branch-number {
  position: absolute;
  top: 16px;
  right: 20px;
  color: rgba(201, 164, 73, 0.2);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
}

.history-branch h2 {
  position: relative;
  margin-right: 44px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.history-branch > p:not(.history-section-label) {
  position: relative;
  font-size: 0.94rem;
  line-height: 1.7;
}

.history-closing {
  margin-top: 62px;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}

.history-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  border: 1px solid rgba(201, 164, 73, 0.35);
  border-radius: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(246, 236, 209, 0.58), rgba(237, 247, 240, 0.72));
}

.history-source span,
.history-source strong {
  display: block;
}

.history-source span {
  color: #8a6a1f;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-source strong {
  margin-top: 5px;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
}

.guestbook-section {
  position: relative;
  scroll-margin-top: 110px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 73, 0.28);
  border-radius: 24px;
  padding-top: 54px;
  padding-bottom: 58px;
  background:
    radial-gradient(circle at 92% 8%, rgba(201, 164, 73, 0.18), transparent 24%),
    radial-gradient(circle at 4% 92%, rgba(54, 112, 78, 0.12), transparent 25%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 242, 0.92));
  box-shadow: 0 22px 58px rgba(16, 38, 74, 0.08);
}

.home-content-card {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 73, 0.28);
  border-radius: 24px;
  padding-top: 54px;
  padding-bottom: 58px;
  background:
    radial-gradient(circle at 92% 8%, rgba(201, 164, 73, 0.18), transparent 24%),
    radial-gradient(circle at 4% 92%, rgba(54, 112, 78, 0.12), transparent 25%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 242, 0.92));
  box-shadow: 0 22px 58px rgba(16, 38, 74, 0.08);
}

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

.guestbook-heading > div:first-child {
  max-width: 720px;
}

.guestbook-heading h2 {
  margin: 0 0 12px;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.guestbook-heading > div:first-child > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.guestbook-counter {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
  min-width: 210px;
  border: 1px solid rgba(201, 164, 73, 0.38);
  border-radius: 16px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(16, 38, 74, 0.07);
}

.guestbook-counter strong {
  color: var(--gold-500);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.3rem;
  line-height: 1;
}

.guestbook-counter span {
  max-width: 115px;
  color: var(--blue-900);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 28px;
  align-items: start;
}

.guestbook-form,
.guestbook-latest {
  border: 1px solid rgba(16, 38, 74, 0.1);
  border-radius: 20px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(16, 38, 74, 0.07);
}

.guestbook-form {
  display: grid;
  gap: 17px;
}

.guestbook-form-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.guestbook-form-intro > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--gold-500), #8a6a1f);
  box-shadow: 0 8px 20px rgba(138, 106, 31, 0.2);
}

.guestbook-form-intro h3,
.guestbook-latest-heading h3 {
  margin: 0;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.32rem;
}

.guestbook-form-intro p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.guestbook-fields-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guestbook-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-size: 0.9rem;
  font-weight: 700;
}

.guestbook-form label > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  border: 1px solid #d7d9d4;
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.guestbook-form textarea {
  resize: vertical;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 164, 73, 0.14);
  outline: none;
}

.guestbook-form small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.guestbook-form .btn {
  justify-self: start;
}

.guestbook-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.guestbook-latest-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}

.guestbook-latest-heading > div > span {
  display: block;
  margin-bottom: 5px;
  color: #8a6a1f;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guestbook-latest-heading .text-link {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.78rem;
}

.guestbook-list {
  display: grid;
  gap: 13px;
}

.guestbook-entry {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 74, 0.09);
  border-radius: 15px;
  padding: 19px;
  background: linear-gradient(145deg, #fff, #fbfcfa);
}

.guestbook-entry::after {
  content: "“";
  position: absolute;
  top: -12px;
  right: 10px;
  color: rgba(201, 164, 73, 0.12);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 6rem;
  line-height: 1;
}

.guestbook-entry-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.guestbook-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #8a6a1f;
  background: #f5ecd3;
  font-size: 0.9rem;
}

.guestbook-entry h4,
.guestbook-entry h2 {
  margin: 0;
  color: var(--blue-900);
  font-family: inherit;
  font-size: 0.92rem;
}

.guestbook-entry time {
  color: var(--muted);
  font-size: 0.72rem;
}

.guestbook-entry blockquote {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: #3e4c62;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.98rem;
  line-height: 1.6;
}

.guestbook-suggestion {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  border-left: 2px solid var(--gold-500);
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.guestbook-empty {
  display: grid;
  place-items: center;
  min-height: 330px;
  border: 1px dashed rgba(201, 164, 73, 0.55);
  border-radius: 16px;
  padding: 34px;
  text-align: center;
  background: rgba(246, 236, 209, 0.24);
}

.guestbook-empty span {
  color: var(--gold-500);
  font-size: 2rem;
}

.guestbook-empty h4 {
  margin: 8px 0 0;
  color: var(--blue-900);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
}

.guestbook-empty p {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.guestbook-all-button {
  margin-top: 18px;
}

.guestbook-page-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(201, 164, 73, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(238, 247, 241, 0.94), rgba(255, 255, 255, 0.98));
}

.guestbook-page-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.guestbook-page-meta > span {
  color: var(--muted);
  font-size: 0.9rem;
}

.guestbook-page-meta strong {
  color: var(--gold-500);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.65rem;
}

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

.guestbook-all-grid .guestbook-entry {
  padding: 24px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-900);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.ritual-modal-panel {
  width: min(820px, 100%);
  max-height: min(88vh, 820px);
  border-radius: 18px;
  padding: 42px 46px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 164, 73, 0.13), transparent 26%),
    rgba(255, 255, 255, 0.98);
}

.ritual-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #8a6a1f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ritual-modal-kicker::after {
  content: "";
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}

.ritual-modal-content {
  white-space: normal;
}

.ritual-modal-content p {
  margin: 0 0 19px;
}

.ritual-modal-content p:last-child {
  margin-bottom: 0;
}

.ritual-modal-blessing {
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  color: var(--blue-900);
  background: linear-gradient(135deg, rgba(246, 236, 209, 0.72), rgba(237, 247, 240, 0.82));
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  line-height: 1.65;
}

.site-footer {
  margin-top: 56px;
  color: #e8edf5;
  background: var(--blue-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px;
}

.footer-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: 16px;
}

.site-footer h2 {
  margin-top: 0;
  color: var(--gold-500);
  font-size: 1rem;
}

.site-footer a {
  color: #ffffff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd6e3;
  font-size: 0.9rem;
}

@media (max-width: 1220px) {
  .menu-toggle {
    display: inline-grid;
    align-content: center;
  }

  .main-nav {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    border: 0;
    border-radius: 0;
    padding: 14px 24px 22px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
  }

  .nav-dropdown-trigger {
    display: grid;
    grid-template-columns: 1fr 44px;
  }

  .nav-dropdown-trigger > a {
    padding: 12px;
  }

  .nav-dropdown-trigger > button {
    width: 44px;
    height: 44px;
    justify-self: end;
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    margin: 3px 8px 8px;
    border-radius: var(--radius);
    padding: 5px;
    background: #f7f8f4;
    box-shadow: none;
  }

  .nav-dropdown:hover .nav-submenu {
    display: none;
  }

  .nav-dropdown.is-open .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    padding: 10px 12px;
  }

  .hero,
  .split-section,
  .contact-layout,
  .science-page-hero {
    grid-template-columns: 1fr;
  }

  .science-page-hero {
    gap: 34px;
  }

  .science-hero-visual {
    width: min(640px, 100%);
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-mark {
    min-height: 260px;
    order: -1;
  }

  .feature-grid,
  .feature-grid.three,
  .values-section,
  .message-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values-section.single-card article {
    grid-template-columns: 1fr;
  }

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

  .guidance-card-row .ritual-card-image {
    height: 260px;
    min-height: 0;
  }

  .ritual-card-image {
    height: 260px;
  }

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

  .guestbook-layout {
    grid-template-columns: 1fr;
  }

  .history-hero {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 76px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand span {
    padding-left: 10px;
  }

  .brand span::before {
    top: 7px;
    bottom: 7px;
  }

  .brand strong {
    font-size: 0.98rem;
    white-space: normal;
  }

  .brand small {
    max-width: 170px;
    font-size: 0.64rem;
  }

  .main-nav {
    top: 76px;
  }

  .hero,
  .section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    margin-top: 10px;
    border-radius: 18px;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .hero-actions,
  .row-heading,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .guestbook-heading,
  .guestbook-page-meta,
  .guestbook-latest-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .guestbook-section {
    margin-top: 10px;
    border-radius: 18px;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .home-content-card {
    margin-top: 10px;
    border-radius: 18px;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .guestbook-counter {
    width: 100%;
  }

  .guestbook-fields-row,
  .guestbook-all-grid {
    grid-template-columns: 1fr;
  }

  .guestbook-form,
  .guestbook-latest {
    border-radius: 16px;
    padding: 21px;
  }

  .guestbook-form .btn,
  .guestbook-page-meta .btn {
    width: 100%;
  }

  .history-hero {
    grid-template-columns: 1fr;
  }

  .history-hero-mark {
    display: none;
  }

  .history-section-tinted,
  .history-branch {
    border-radius: 16px;
    padding: 25px 20px 12px;
  }

  .history-pillars,
  .history-branches {
    grid-template-columns: 1fr;
  }

  .history-index {
    position: static;
    padding: 17px;
  }

  .history-index > div {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .history-index a {
    flex: 0 0 auto;
  }

  .history-highlight,
  .history-source {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-source .btn {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .umbanda-intro {
    padding-bottom: 20px;
  }

  .featured-reading {
    padding-top: 0;
    padding-bottom: 20px;
  }

  .reading-feature {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    border-radius: 14px;
    padding: 24px 20px;
  }

  .reading-number {
    width: 72px;
    height: 72px;
  }

  .reading-number small {
    font-size: 0.52rem;
  }

  .reading-number strong {
    margin-top: -14px;
    font-size: 2rem;
  }

  .reading-description {
    font-size: 0.88rem;
  }

  .reading-action {
    margin-top: 14px;
  }

  .reading-mark {
    display: none;
  }

  .modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .message-share {
    margin-left: 0;
  }

  .ritual-modal-panel {
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 16px 16px 10px 10px;
    padding: 32px 20px 26px;
  }

  .ritual-modal-panel .modal-close {
    top: 12px;
    right: 12px;
  }

  .ritual-modal-panel h2 {
    margin-right: 38px;
  }

  .ritual-modal-content {
    font-size: 0.94rem;
  }

  .ritual-modal-blessing {
    padding: 16px;
    font-size: 1.02rem;
  }

  .science-page-hero {
    gap: 26px;
    padding-top: 62px;
    padding-bottom: 34px;
  }

  .science-hero-visual {
    border-radius: 16px;
  }

  .science-hero-visual img {
    height: 220px;
  }

  .science-article {
    padding-top: 8px;
  }

  .science-article-intro {
    padding-left: 18px;
  }

  .science-duality {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 34px 0;
    padding: 22px;
    text-align: left;
  }

  .science-duality > div:last-child {
    text-align: left;
  }

  .science-duality-symbol {
    width: 44px;
    height: 44px;
  }

  .science-section {
    padding: 34px 0;
  }

  .science-quote {
    margin: 28px 0;
    border-radius: 14px;
    padding: 28px 24px;
  }

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

  .science-conclusion {
    grid-template-columns: 1fr;
    gap: 20px;
    border-radius: 16px;
    padding: 28px 22px;
  }

  .science-conclusion-mark {
    width: 62px;
    height: 62px;
    font-size: 2.2rem;
  }

  .science-playlist-section {
    padding-top: 24px;
  }

  .science-playlist-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 22px;
  }

  .science-playlist-link {
    align-self: flex-start;
  }

  .science-playlist-shell {
    border-radius: 15px;
    padding: 8px;
  }

  .science-playlist-bar {
    height: 36px;
    padding: 0 8px;
  }

  .science-playlist-frame {
    border-radius: 9px;
  }

  .feature-grid,
  .feature-grid.three,
  .values-section,
  .message-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .message-feedback-actions > button {
    width: 100%;
  }

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

  .guidance-section .check-list {
    grid-template-columns: 1fr;
  }

  .guidance-card-row .ritual-card-image {
    height: 220px;
  }

  .ritual-card-image {
    height: 220px;
  }

  .footer-bottom {
    display: grid;
  }
}
