:root {
  --sea: #2f6f87;
  --sea-dark: #174457;
  --sky: #dff1f4;
  --sand: #f6efe2;
  --white: #ffffff;
  --text: #1f2a2e;
  --muted: #66777f;
  --line: #e6ded0;
  --facebook: #1877f2;
  --shadow: 0 18px 45px rgba(31, 72, 86, .13);
  --content-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(223, 241, 244, .9), transparent 35rem),
    linear-gradient(180deg, #fffdf8 0%, #f7f1e8 100%);
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--sea-dark);
  color: #fff;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, .9);
  border-bottom: 1px solid rgba(230, 222, 208, .9);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 22px rgba(47, 111, 135, .22);
}
.brand strong {
  display: block;
  color: var(--sea-dark);
  font-size: 1.02rem;
  line-height: 1.2;
}
.brand span span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: .86rem;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 2px;
}
nav a {
  display: block;
  padding: 8px 7px;
  border-radius: 999px;
  color: var(--sea-dark);
  font-size: .89rem;
  white-space: nowrap;
  text-decoration: none;
}
nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  background: var(--sky);
  outline: none;
}
nav a[aria-current="page"] { font-weight: 750; }

.hero,
.page-hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 64px 24px 36px;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 38px;
  align-items: center;
}
.page-hero { max-width: 920px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(223, 241, 244, .88);
  color: var(--sea-dark);
  font-size: .9rem;
  font-weight: 700;
}
.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--sea-dark);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: .99;
  letter-spacing: -.05em;
}
.hero h1 span { display: block; color: var(--sea); }
.hero p,
.page-hero p {
  max-width: 680px;
  margin: 22px auto 0;
  color: #475b63;
  font-size: clamp(1.05rem, 2vw, 1.23rem);
}
.hero-text p { margin-left: 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.page-hero .hero-actions { justify-content: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}
.button.primary {
  background: var(--sea-dark);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 68, 87, .22);
}
.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--sea-dark);
}
.button.facebook { background: var(--facebook); color: #fff; }
.button:hover { transform: translateY(-1px); }

.hero-image {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--sky), var(--sand));
  box-shadow: var(--shadow);
}
#hero-media-container { position: absolute; inset: 0; }
.hero-background {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  animation: hero-fade .45s ease-out;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
@keyframes hero-fade { from { opacity: .35; } to { opacity: 1; } }
.hero-note {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  color: var(--sea-dark);
  backdrop-filter: blur(10px);
}
.hero-note strong { display: block; }

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 28px 24px 76px;
}
section[id] { scroll-margin-top: 100px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin: 42px 0 18px;
}
.section-head h2 {
  margin: 0;
  color: var(--sea-dark);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.section-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}
.lead { font-size: 1.08rem; }
.content-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(31,72,86,.07);
}
.card.highlight { background: linear-gradient(135deg, #fff 0%, #eaf6f7 100%); }
.card.dark { background: var(--sea-dark); border-color: var(--sea-dark); color: #fff; }
.card.dark h2,
.card.dark h3 { color: #fff; }
.card.dark p { color: rgba(255,255,255,.82); }
.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--sand);
  font-size: 1.42rem;
}
.card-icon img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.card h2,
.card h3 { margin: 0 0 8px; color: var(--sea-dark); }
.card h3 { font-size: 1.23rem; }
.card p { margin: 0; color: #475b63; }
.card p + p { margin-top: 14px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.text-link { color: var(--sea-dark); font-weight: 750; }
.external-link::after { content: " ↗"; }

.facebook-card {
  min-width: 0;
}

.fb-fallback {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #d8e3f4;
  border-radius: 18px;
  background: #f4f7fb;
}

.notice {
  margin-top: 26px;
  padding: 20px 22px;
  border-left: 5px solid var(--sea);
  border-radius: 0 18px 18px 0;
  background: rgba(223,241,244,.72);
}
.notice p { margin: 0; }

.link-list { margin: 14px 0 0; padding-left: 20px; }
.link-list li + li { margin-top: 8px; }
.logo-box {
  min-height: 88px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.logo-box img { max-height: 70px; width: auto; }

.history-hero-card {
  position: relative;
  z-index: 1;
  margin: 18px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.94);
}
.history-hero-card img { display: block; width: 100%; border-radius: 18px; }
.history-hero-card h2 { margin: 18px 0 8px; color: var(--sea-dark); }
.history-hero-card p { margin: 0; color: #475b63; }
.history-article {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,420px);
  align-items: center;
  gap: 28px;
  margin-top: 22px;
}
.history-article:nth-child(odd) { grid-template-columns: minmax(280px,420px) minmax(0,1fr); }
.history-article:nth-child(odd) .history-text { order: 2; }
.history-image img { display: block; width: 100%; height: auto; border-radius: 18px; }
.history-text p + p { margin-top: 14px; }

.cta-band {
  margin-top: 54px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  border-radius: 30px;
  background: var(--sea-dark);
  color: #fff;
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.8); }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  color: var(--muted);
  font-size: .92rem;
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--sea-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1040px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  nav ul { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; padding-top: 42px; }
  .hero-image { min-height: 380px; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .header-inner { padding: 12px 18px; gap: 12px; }
  .brand { min-width: 0; }
  .brand strong { font-size: .94rem; }
  nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  nav ul { width: max-content; flex-wrap: nowrap; }
  .hero, .page-hero { padding: 38px 18px 24px; }
  main { padding: 20px 18px 60px; }
  .content-grid, .cards, .cards.two, .cta-band { grid-template-columns: 1fr; }
  .history-article,
  .history-article:nth-child(odd) { grid-template-columns: 1fr; }
  .history-article:nth-child(odd) .history-text { order: initial; }
  .section-head { display: block; }
  .hero-image { min-height: 320px; }
  .cta-band .button { justify-self: start; }
}
