:root {
  --green: #159947;
  --green-dark: #087c37;
  --navy: #071d35;
  --navy-2: #0d2946;
  --text: #14233a;
  --muted: #5b6575;
  --line: #e3e7eb;
  --bg: #ffffff;
  --soft-green: #eef8f0;
  --soft-blue: #eef6ff;
  --soft-yellow: #fff7e8;
  --soft-purple: #f6efff;
  --soft-red: #fff0ed;
  --max: 1400px;
  --radius: 24px;
  --shadow: 0 12px 30px rgba(13, 37, 66, .08);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

main { flex: 1 0 auto; }

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

a { color: inherit; }

.shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  background: #fff;
}

.header-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  width: min(690px, 49vw);
  max-height: 92px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  position: relative;
  text-decoration: none;
  font-weight: 750;
  color: #111d31;
  padding: .6rem .2rem;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--green-dark);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .18rem;
  height: 3px;
  border-radius: 99px;
  background: var(--green);
}

.rainbow-line {
  height: 4px;
  background: linear-gradient(
    90deg,
    #62c817 0%,
    #17b58e 17%,
    #198cff 34%,
    #6c42ff 50%,
    #ef42aa 66%,
    #ff6a3d 82%,
    #eec700 100%
  );
}

.hero {
  margin-top: 2rem;
  padding: clamp(2.4rem, 5vw, 4.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 42%, rgba(52, 196, 93, .20), transparent 15rem),
    radial-gradient(circle at 86% 22%, rgba(255,255,255,.85), transparent 7rem),
    linear-gradient(120deg, #f6fbf4, #f8faf7 58%, #eef8f1);
  overflow: hidden;
  min-height: 350px;
}

.kicker {
  margin: 0 0 .7rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
}

.hero h1,
.page-head h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.hero-copy {
  max-width: 720px;
  margin: 1.6rem 0 0;
  color: #465164;
  font-size: clamp(1rem, 1.55vw, 1.28rem);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 54px;
  padding: .8rem 1.35rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px rgba(21, 37, 57, .09);
}

.btn-primary {
  background: linear-gradient(180deg, #1daa52, #0c9141);
  color: white;
  border-color: transparent;
}

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

.hero-mascot-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mascot {
  width: min(100%, 410px);
  border-radius: 28px;
  mix-blend-mode: multiply;
  filter: saturate(1.05) contrast(1.02);
}

.section {
  padding: 1.7rem 0 5rem;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem;
}

.home-card {
  min-height: 240px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 6px 16px rgba(23, 41, 67, .035);
  transition: transform .15s ease, box-shadow .15s ease;
}

.home-card:hover,
.home-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.home-card:nth-child(1) { background: linear-gradient(145deg, #f4fbf6, #eaf7ee); }
.home-card:nth-child(2) { background: linear-gradient(145deg, #f6faff, #eaf4ff); }
.home-card:nth-child(3) { background: linear-gradient(145deg, #fffaf1, #fff1d7); }
.home-card:nth-child(4) { background: linear-gradient(145deg, #faf6ff, #f0e7ff); }
.home-card:nth-child(5) { background: linear-gradient(145deg, #fff6f3, #ffe8e2); }

.card-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 900;
}

.home-card:nth-child(1) .card-icon { background:#bcebc8; color:#0c9141; }
.home-card:nth-child(2) .card-icon { background:#c8e6ff; color:#0e68ce; }
.home-card:nth-child(3) .card-icon { background:#ffe3a7; color:#d98000; }
.home-card:nth-child(4) .card-icon { background:#dfc6ff; color:#6b2dc9; }
.home-card:nth-child(5) .card-icon { background:#ffc9c0; color:#d83d27; }

.home-card h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -.035em;
}

.home-card:nth-child(1) h2,
.home-card:nth-child(1) .card-link { color:#0c9141; }
.home-card:nth-child(2) h2,
.home-card:nth-child(2) .card-link { color:#0e68ce; }
.home-card:nth-child(3) h2,
.home-card:nth-child(3) .card-link { color:#d98000; }
.home-card:nth-child(4) h2,
.home-card:nth-child(4) .card-link { color:#6b2dc9; }
.home-card:nth-child(5) h2,
.home-card:nth-child(5) .card-link { color:#d83d27; }

.home-card p {
  margin: .65rem 0 0;
  color: var(--muted);
}

.card-link {
  margin-top: 1rem;
  font-weight: 800;
}

.page-head {
  padding: 4rem 0 2.5rem;
}

.page-head p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.content-card {
  min-height: 210px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 7px 18px rgba(17, 35, 56, .04);
}

.content-card h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.content-card p {
  color: var(--muted);
}

.media-placeholder {
  min-height: 220px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  text-align: center;
  background: linear-gradient(135deg, #edf8f0, #f7fbf8);
  border: 1px dashed #b8d7c1;
  color: var(--green-dark);
  font-weight: 800;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery figure {
  margin: 0;
  padding: .75rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.gallery figcaption {
  padding: .7rem .25rem .1rem;
  color: var(--muted);
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr 1.25fr;
  gap: 3rem;
  padding: 2.7rem 0 2.1rem;
}

.footer-inner h3 {
  margin: 0 0 .8rem;
  color: #2ed46b;
}

.footer-inner p,
.footer-inner a {
  color: #eef3f8;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  text-decoration: underline;
}

.footer-nav {
  display: grid;
  gap: .25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0 1.4rem;
  color: #d7e0e9;
  font-size: .92rem;
  text-align: center;
}

@media (max-width: 1100px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .site-logo {
    width: min(760px, 100%);
    max-height: none;
  }

  .nav {
    justify-content: flex-start;
  }

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

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

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-mascot {
    width: min(100%, 360px);
  }

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

@media (max-width: 580px) {
  .shell {
    width: min(var(--max), calc(100% - 1.2rem));
  }

  .home-grid,
  .content-grid,
  .gallery,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.4rem;
    border-radius: 18px;
  }

  .hero h1,
  .page-head h1 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .kicker {
    font-size: 1.5rem;
  }
}

.visitor-counter {
  display: flex;
  justify-content: center;
  gap: .8rem;
  padding: .65rem 0 0;
  color: #b8c8d8;
  font-family: "Courier New", monospace;
  font-size: .88rem;
}

.visitor-counter span {
  padding: .25rem .55rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}

@media (max-width: 580px) {
  .visitor-counter {
    flex-wrap: wrap;
  }
}

.album{margin-bottom:4rem}.album-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:1rem;padding-bottom:.7rem;border-bottom:1px solid var(--line)}
.album-head h2{margin:0;color:var(--green);font-size:clamp(1.7rem,3vw,2.5rem)}.album-head span{color:var(--muted);font-size:.9rem}
.gallery-link{display:block;overflow:hidden;border-radius:13px;background:#eef3ef}.auto-gallery img{width:100%;height:260px;object-fit:contain;transition:transform .18s ease}
.gallery-link:hover img{transform:scale(1.025)}.empty-gallery{padding:2rem;border:1px dashed #b9d7c1;border-radius:18px;background:#f4faf5}.empty-gallery h2{color:var(--green)}
