:root {
  --surface: #fbf9f8;
  --surface-soft: #f5f3f3;
  --surface-card: #ffffff;
  --surface-muted: #efeded;
  --primary: #091a00;
  --primary-soft: #1b3008;
  --secondary: #5e5f5b;
  --text: #1b1c1c;
  --muted: #74796d;
  --outline: #c4c8bb;
  --shadow: 0 16px 44px rgba(27, 48, 8, 0.07);
  --shadow-soft: 0 8px 28px rgba(27, 48, 8, 0.045);
  --radius-card: 24px;
  --radius-control: 10px;
  --max-width: 540px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(207, 236, 178, 0.18), transparent 32rem),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  font-family: "Manrope", Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 360, "GRAD" 0, "opsz" 24;
}

.page-shell {
  width: min(100%, var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 18px 42px;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-logo {
  width: min(74vw, 286px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.site-header h1,
.modal-panel h2 {
  margin: 0;
  color: var(--primary-soft);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.75rem, 6vw, 2.35rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0;
}

.site-header p,
.modal-panel p {
  margin: 0;
  color: var(--secondary);
  font-size: clamp(0.98rem, 3.4vw, 1.08rem);
  line-height: 1.65;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  background: var(--surface-muted);
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slide-link,
.slide img {
  width: 100%;
  height: 100%;
  display: block;
}

.slide-link {
  cursor: pointer;
}

.slide img {
  object-fit: cover;
  object-position: center;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.slider-dot.is-active {
  background: rgba(255, 255, 255, 0.96);
}

.slider-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-soft);
  box-shadow: 0 8px 24px rgba(9, 26, 0, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, opacity 180ms ease;
}

.slider-nav:hover,
.slider-nav:focus-visible {
  background: rgba(255, 255, 255, 0.92);
}

.slider-nav-prev {
  left: 12px;
}

.slider-nav-next {
  right: 12px;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 64px;
}

.link-card {
  overflow: hidden;
  border: 1px solid rgba(196, 200, 187, 0.38);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.link-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.accordion-button {
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.button-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: var(--primary-soft);
  flex: 0 0 auto;
  font-size: 1.55rem;
}

.button-copy {
  min-width: 0;
  display: block;
}

.button-title {
  display: block;
  margin: 0 0 5px;
  color: var(--primary-soft);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.18rem, 4.4vw, 1.48rem);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: 0;
}

.button-description {
  display: block;
  margin: 0;
  color: var(--secondary);
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.38;
}

.accordion-arrow {
  color: var(--muted);
  transition: transform 220ms ease;
}

.accordion-button[aria-expanded="true"] .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 260ms ease, opacity 220ms ease;
}

.accordion-content.is-open {
  max-height: 680px;
  opacity: 1;
}

.accordion-inner {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 20px 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(196, 200, 187, 0.48);
}

.child-link {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--primary-soft);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.child-link:hover,
.child-link:focus-visible {
  background: #e8eadf;
  transform: translateX(2px);
}

.child-link span {
  color: var(--primary-soft);
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--secondary);
  text-align: center;
}

.footer-brand {
  color: var(--primary-soft);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  font-size: 0.83rem;
}

.footer-links a:hover {
  color: var(--primary-soft);
}

.copyright {
  margin: 0;
  font-size: 0.83rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 26, 0, 0.45);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  width: min(100%, 460px);
  max-height: min(720px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: 0 28px 80px rgba(9, 26, 0, 0.22);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--primary-soft);
}

.modal-panel h2 {
  padding-right: 40px;
  font-size: clamp(1.45rem, 5vw, 1.8rem);
  margin-bottom: 8px;
}

.modal-panel p {
  margin-bottom: 20px;
  font-size: 0.98rem;
}

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

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(27, 48, 8, 0.1);
}

.submit-button {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--primary-soft);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.submit-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--secondary);
  font-size: 0.9rem;
}

.form-status.is-success {
  color: #1b6b20;
}

.form-status.is-error {
  color: #ba1a1a;
}

@media (min-width: 768px) {
  .page-shell {
    padding-top: 48px;
  }

  .accordion-button {
    min-height: 112px;
    padding: 22px 24px;
  }

  .accordion-inner {
    margin-inline: 24px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 16px;
  }

  .accordion-button {
    gap: 10px;
    padding: 18px;
  }

  .button-icon {
    width: 28px;
  }

  .button-description {
    font-size: 0.91rem;
  }

  .slider-nav {
    width: 34px;
    height: 34px;
    opacity: 0.88;
  }

  .modal-panel {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .slider-track {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
