:root {
  --color-primary: #2f3f98;
  --color-primary-dark: #1f2c78;
  --color-accent: #5b76d6;
  --color-coral: #4058b8;
  --color-ink: #18203a;
  --color-muted: #59627a;
  --color-soft: #f2f5ff;
  --color-warm: #eef3ff;
  --color-white: #ffffff;
  --color-border: #dce3fb;
  --shadow: 0 18px 45px rgba(31, 44, 120, 0.14);
  --radius: 8px;
  --container: 1160px;
  --header-height: 86px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-ink);
  background: var(--color-white);
  font-size: 18px;
  line-height: 1.65;
}

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

a {
  color: var(--color-primary-dark);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  transform: translateY(-120%);
  background: var(--color-ink);
  color: var(--color-white);
  padding: 0.8rem 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 24px rgba(31, 44, 120, 0.09);
}

.header-inner,
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  width: min(1440px, calc(100% - 32px));
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand img {
  width: 172px;
  max-height: 62px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.main-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--color-soft);
  color: var(--color-primary-dark);
}

main {
  overflow: hidden;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: var(--color-soft);
}

.section-warm {
  background: var(--color-warm);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  color: var(--color-white);
  background: var(--color-primary-dark);
}

.hero.hero-internal {
  min-height: 410px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 28, 84, 0.88), rgba(31, 44, 120, 0.52) 55%, rgba(47, 63, 152, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5rem 0 7rem;
}

.hero h1,
.page-title {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.76rem 1.1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--color-primary-dark);
}

.button-secondary {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.button-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-primary-dark);
}

.hero .button-outline {
  color: var(--color-white);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--color-primary-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 780px;
  color: var(--color-muted);
  font-size: 1.15rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.split-reverse {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--color-soft);
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.cards:has(> :nth-child(4):last-child),
.cards:has(> :nth-child(6):last-child),
.cards:has(> :nth-child(8):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.document-card,
.contact-panel,
.notice {
  border: 1px solid rgba(47, 63, 152, 0.18);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 14px 34px rgba(31, 44, 120, 0.1);
}

.card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 63, 152, 0.34);
  box-shadow: 0 20px 44px rgba(31, 44, 120, 0.16);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  display: flex;
  min-height: 132px;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 1.35rem 1.45rem;
}

.card-body h3 {
  max-width: 100%;
  color: var(--color-primary-dark);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.activity-grid {
  display: grid;
  gap: 26px;
}

.activity-item {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
}

.activity-item:nth-child(even) {
  grid-template-columns: 1.05fr 0.95fr;
}

.activity-item:nth-child(even) .activity-text {
  order: -1;
}

.activity-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.tag {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--color-warm);
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 0.92rem;
}

.highlight {
  padding: 42px;
  border-left: 8px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}

.tax-code {
  display: inline-flex;
  align-items: center;
  min-height: 68px;
  margin: 0.5rem 0 1rem;
  padding: 0.4rem 0.8rem;
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-primary-dark);
  font-size: clamp(1.7rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
}

.copy-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.copy-feedback {
  min-height: 1.5rem;
  color: var(--color-primary-dark);
  font-weight: 800;
}

.breadcrumb {
  padding: 1rem 0;
  background: var(--color-soft);
  font-size: 0.95rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 0.45rem;
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}

.contact-panel,
.document-card,
.notice {
  padding: 1.4rem;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}

.map-embed {
  overflow: hidden;
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-soft);
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 360px;
}

.map-consent {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.map-consent h2 {
  font-size: 1.5rem;
}

.policy-content {
  max-width: 920px;
}

.policy-content h2 {
  margin-top: 2rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.policy-content li + li {
  margin-top: 0.55rem;
}

.policy-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.policy-table [role="row"] {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr 1fr;
}

.policy-table [role="row"] > * {
  padding: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.policy-table [role="row"]:first-child {
  background: var(--color-primary);
  color: var(--color-white);
}

.policy-table [role="row"]:last-child > * {
  border-bottom: 0;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 600;
  width: min(940px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(47, 63, 152, 0.22);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 24px 70px rgba(18, 28, 84, 0.24);
}

.cookie-banner[hidden],
.cookie-preferences[hidden] {
  display: none;
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem;
}

.cookie-banner h2,
.cookie-preferences h2 {
  margin: 0 0 0.35rem;
  color: var(--color-primary-dark);
  font-size: 1.25rem;
}

.cookie-banner p,
.cookie-preferences p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 28, 84, 0.62);
}

.cookie-preferences-panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 24px 70px rgba(18, 28, 84, 0.28);
  padding: 1.4rem;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}

.cookie-option:first-of-type {
  margin-top: 1rem;
}

.cookie-option strong {
  display: block;
  color: var(--color-ink);
}

.cookie-option input {
  width: 24px;
  height: 24px;
  accent-color: var(--color-primary);
}

.site-footer {
  padding: 56px 0 28px;
  background: var(--color-ink);
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  width: 190px;
  margin-bottom: 1rem;
  padding: 0.6rem;
  border-radius: var(--radius);
  background: var(--color-white);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--color-white);
}

.site-footer h2 {
  font-size: 1.25rem;
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-link {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  color: var(--color-white);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 88px;
  background: rgba(18, 28, 84, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  margin: 0;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.lightbox img {
  max-width: min(100%, 1180px);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.lightbox figcaption {
  color: var(--color-white);
  font-weight: 800;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  line-height: 1;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 0.8rem 16px 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-white);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    display: grid;
    gap: 0.3rem;
  }

  .main-nav a {
    width: 100%;
  }

  .cards,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .split-reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .brand img {
    width: 140px;
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    min-height: 650px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(31, 44, 120, 0.64), rgba(18, 28, 84, 0.92));
  }

  .cards,
  .cards:has(> :nth-child(4):last-child),
  .cards:has(> :nth-child(6):last-child),
  .cards:has(> :nth-child(8):last-child),
  .gallery,
  .footer-grid,
  .contact-grid,
  .activity-item,
  .activity-item:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .activity-item:nth-child(even) .activity-text {
    order: initial;
  }

  .highlight {
    padding: 26px;
  }

  .tax-code {
    width: 100%;
    justify-content: center;
    word-break: break-word;
  }

  .policy-table [role="row"],
  .cookie-banner-inner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .button {
    width: 100%;
  }

  .lightbox {
    padding: 72px 18px 84px;
  }

  .lightbox img {
    max-height: 78vh;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 58px);
  }

  .lightbox-next {
    right: calc(50% - 58px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
