:root {
  --color-page: #f5f8fb;
  --color-surface: #ffffff;
  --color-text: #1f2933;
  --color-muted: #52606d;
  --color-brand: #155e75;
  --color-brand-dark: #0f4152;
  --color-accent: #2563eb;
  --color-border: #d9e2ec;
  --shadow-soft: 0 20px 50px rgba(15, 65, 82, 0.12);
  --radius: 8px;
  --content-width: 1120px;
  --hero-height: 430px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

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

a {
  color: var(--color-brand);
}

a:hover {
  color: var(--color-brand-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  background: var(--color-brand-dark);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 226, 236, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.site-nav {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.8rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 12rem;
  color: var(--color-text);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  max-width: 12rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: #e0f2f1;
  color: var(--color-brand-dark);
}

.hero {
  display: flex;
  align-items: center;
  min-height: var(--hero-height);
  background:
    linear-gradient(90deg, rgba(15, 65, 82, 0.9), rgba(15, 65, 82, 0.62)),
    url("../assets/header.png") center / cover;
  color: #ffffff;
}

.hero-inner {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  padding: 3.5rem 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  max-width: 850px;
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.lead {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.section {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.home-photo-loop {
  width: min(100%, 720px);
  margin-top: 1.4rem;
  margin-left: 0;
  margin-bottom: 0.2rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #000000;
  box-shadow: var(--shadow-soft);
}

.home-photo-loop__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #eef4f8;
  opacity: 1;
  transition: opacity 240ms ease;
}

.home-photo-loop__image.is-fading {
  opacity: 0;
}

.home-photo-loop figcaption {
  padding: 0.8rem 0.9rem 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.content-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.fact-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

.fact-list div {
  border-left: 4px solid var(--color-accent);
  padding-left: 0.9rem;
}

.fact-list dt {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.fact-list dd {
  margin: 0.15rem 0 0;
  font-weight: 800;
}

.text-flow {
  max-width: 860px;
}

.text-flow p {
  margin: 0 0 1.05rem;
}

.text-flow p:last-child {
  margin-bottom: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.article-nav {
  position: sticky;
  top: 6rem;
  border-left: 4px solid var(--color-brand);
  padding-left: 1rem;
}

.article-nav h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.article-nav ul {
  margin: 0;
  padding-left: 1.1rem;
}

.article-nav li + li {
  margin-top: 0.35rem;
}

.article-image {
  overflow: hidden;
  margin: 1.2rem 0 1.4rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.article-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #eef4f8;
}

.article-image figcaption {
  padding: 0.8rem 0.9rem 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.history-section {
  padding-top: 2rem;
  scroll-margin-top: 6rem;
}

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

.photo-card {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 0.8rem 0.9rem 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.lightbox-trigger {
  cursor: zoom-in;
}

.lightbox-trigger:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.image-lightbox {
  width: min(94vw, 1200px);
  max-height: 94vh;
  border: 0;
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 24px 80px rgba(15, 65, 82, 0.32);
}

.image-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.72);
}

.image-lightbox__close {
  display: block;
  margin: 0 0 0.8rem auto;
  border: 0;
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  background: var(--color-brand);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.image-lightbox__figure {
  margin: 0;
}

.image-lightbox__image {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.image-lightbox__caption {
  margin-top: 0.75rem;
  color: var(--color-muted);
  text-align: center;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.document-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.document-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #eef4f8;
}

.document-card figcaption {
  padding: 0.8rem 0.9rem 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.gallery-jump {
  padding-bottom: 0;
}

.gallery-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-jump a {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  background: var(--color-surface);
  font-weight: 800;
  text-decoration: none;
}

.gallery-set {
  scroll-margin-top: 6rem;
}

.gallery-set .photo-card img {
  object-fit: contain;
  background: #eef4f8;
}

.gallery-set + .gallery-set {
  padding-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.contact-list {
  font-style: normal;
}

.contact-list p {
  margin: 0 0 1rem;
}

.contact-list p:last-child {
  margin-bottom: 0;
}

.map-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 3vw, 1.25rem);
}

.map-frame {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  background: #eef4f8;
}

.map-link {
  margin: 0.8rem 0 0;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

.footer-inner {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  padding: 1.4rem 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .site-nav,
  .intro-grid,
  .article-layout,
  .contact-grid {
    display: block;
  }

  .brand {
    margin-bottom: 0.75rem;
  }

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

  .content-panel,
  .map-panel,
  .article-nav {
    margin-top: 1.25rem;
  }

  .article-nav {
    position: static;
  }

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

@media (max-width: 560px) {
  :root {
    --hero-height: 360px;
  }

  body {
    font-size: 17px;
  }

  .nav-list {
    gap: 0.15rem;
  }

  .nav-list a {
    padding: 0.45rem 0.55rem;
  }

  .hero-actions {
    display: grid;
  }

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