:root {
  --green: #2f7f52;
  --dark-green: #225f3d;
  --blue: #486f9f;
  --orange: #d88b34;
  --text: #24312b;
  --muted: #65716b;
  --background: #f5f8f6;
  --white: #ffffff;
  --border: #dfe9e2;
  --soft-green: #edf6f0;
  --soft-blue: #eef4fa;
  --shadow: 0 18px 50px rgba(35, 67, 49, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at 10% 5%, rgba(72, 111, 159, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(47, 127, 82, 0.08), transparent 30rem),
    var(--background);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--dark-green);
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.portal-link {
  color: var(--dark-green);
  font-weight: 700;
  text-decoration: none;
}

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

.society-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.society-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--green), var(--blue));
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 20px rgba(47, 127, 82, 0.18);
}

.society-type,
.society-place {
  margin: 0;
}

.society-type {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.society-place {
  color: var(--dark-green);
  font-size: 1.1rem;
  font-weight: 800;
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 34px auto 60px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: 26px;
}

.hero-content,
.hero-photo {
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.97);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--dark-green);
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 630px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
}

.hero-photo {
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--blue);
  background: linear-gradient(145deg, var(--soft-blue), var(--soft-green));
  border-style: dashed;
  font-weight: 800;
  text-align: center;
}

.quick-links,
.content-section {
  margin-top: 32px;
  padding: clamp(26px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  color: var(--dark-green);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.nav-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.nav-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 127, 82, 0.45);
  box-shadow: 0 14px 30px rgba(35, 67, 49, 0.10);
}

.nav-card:focus-visible,
.portal-link:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(72, 111, 159, 0.45);
  outline-offset: 4px;
}

.nav-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--green);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 900;
}

.nav-card:nth-child(2n) .nav-icon {
  background: var(--blue);
}

.nav-card:nth-child(3n) .nav-icon {
  background: var(--orange);
}

.nav-title {
  color: var(--dark-green);
  font-size: 1.25rem;
  font-weight: 800;
}

.nav-description {
  margin-top: 8px;
  color: var(--muted);
}

.notice-card,
.text-card,
.photo-placeholder {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.notice-card {
  background: var(--soft-green);
}

.text-card {
  background: var(--white);
}

.photo-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--soft-blue);
  border-style: dashed;
  font-weight: 800;
  text-align: center;
}

.status-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 10px;
  color: var(--dark-green);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  color: var(--dark-green);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.25;
}

.notice-card p:last-child,
.text-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px 18px 34px;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--dark-green);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

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

  .hero-content,
  .hero-photo {
    min-height: auto;
  }

  .hero-photo {
    min-height: 300px;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 14px;
  }

  .header-inner {
    align-items: flex-start;
  }

  .society-identity {
    gap: 8px;
  }

  .society-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .society-type {
    font-size: 0.7rem;
  }

  .society-place {
    font-size: 0.96rem;
  }

  main {
    width: min(100% - 24px, 1120px);
    margin-top: 18px;
  }

  .hero-content,
  .hero-photo,
  .quick-links,
  .content-section {
    border-radius: 22px;
  }

  .hero-photo {
    min-height: 220px;
  }

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

  .nav-card {
    min-height: auto;
  }
}

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

  .nav-card {
    transition: none;
  }

  .nav-card:hover {
    transform: none;
  }
}
