@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap");

:root {
  color-scheme: light;
  /* refined palette */
  --navy: #043a55;
  --petrol: #0b5c6f;
  --teal: #0f8a99;
  --mint: #e6f2f1;
  --soft: #f6f8fa;
  --ink: #18242c;
  --muted: #5d6b74;
  --border: #dde7ec;
  --danger: #b52929;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(6, 32, 51, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
}
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
}
a {
  color: var(--petrol);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--navy);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: #fff;
  color: var(--navy);
  padding: 0.7rem 1rem;
  border-radius: 999px;
}
.skip-link:focus {
  top: 1rem;
}
.topbar-note {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
}
.topbar-note p {
  margin: 0;
  font-size: 0.95rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  width: min(100% - 40px, 1160px);
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
}
.site-logo img {
  width: clamp(112px, 9vw, 132px);
  height: auto;
  border-radius: 10px;
  background: #fff;
}
.primary-nav {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  line-height: 1.15;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  position: relative;
  padding: 0.6rem 0.8rem;
  border-radius: 0;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: none;
  color: var(--petrol);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--petrol);
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 8px;
  background: var(--navy);
}
.page {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}
.page > section,
.page > nav {
  margin: 2.2rem 0;
}
.hero,
.page-intro,
.page-hero {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 5.5rem 0 3.7rem;
}
.page-hero--media-ready {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 0;

  width: 100vw;
  max-width: none;

  margin-left: 50%;
  transform: translateX(-50%);

  min-height: clamp(430px, 56vh, 660px);

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-block: clamp(4.5rem, 8vw, 7rem);
  padding-inline: max(24px, calc((100vw - 1120px) / 2));
}
.page-hero--media-ready > :not(.page-hero__media) {
  position: relative;
  z-index: 2;
  max-width: 850px;
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  border-radius: 0;
  overflow: hidden;
  pointer-events: none;

  background-color: var(--navy);
  box-shadow: none;
}
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    90deg,
    rgba(3, 36, 54, 0.78) 0%,
    rgba(3, 36, 54, 0.58) 42%,
    rgba(3, 36, 54, 0.28) 72%,
    rgba(3, 36, 54, 0.16) 100%
  );
}
.page-hero__media img,
.page-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}
.hero h1,
.page-intro h1,
.page-hero h1 {
  max-width: 920px;
  margin: 0.2rem 0 1rem;
  color: var(--navy);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.hero p,
.page-intro p,
.page-hero p {
  max-width: 850px;
  font-size: 1.12rem;
}
.page-hero--media-ready h1,
.page-hero--media-ready .lead,
.page-hero--media-ready .page-meta,
.page-hero--media-ready .eyebrow {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}
.page-hero--media-ready .eyebrow {
  color: #d7fbff;
}
.eyebrow {
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem !important;
}
h2 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
  line-height: 1.17;
  letter-spacing: -0.025em;
  font-weight: 900;
}
h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 900;
}
p {
  margin: 0 0 1rem;
}
ul,
ol {
  padding-left: 1.35rem;
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}
ul:not([class]) li,
ol:not([class]) li {
  margin-bottom: 0.45rem;
  padding-left: 0.15rem;
}
section {
  scroll-margin-top: 110px;
}
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary,
.button--primary,
.button {
  background: var(--petrol);
  color: #fff;
}
.btn-secondary,
.button--secondary,
.button-secondary {
  background: #fff;
  color: var(--petrol);
  border-color: var(--border);
}
.cta-group,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.service-grid,
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.service-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.service-card,
.service-grid > section,
.fact-grid article,
.contact-card,
.final-cta,
.faq details,
.emergency-note,
.gallery-copy {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 10px 26px rgba(6, 32, 51, 0.055);
}
.service-grid > section,
.service-card,
.fact-grid article {
  min-height: 210px;
  display: flex;
  flex-direction: column;
}
.service-grid > section p:last-child,
.service-card p:last-child,
.fact-grid article p:last-child {
  margin-top: auto;
}
.services-overview,
.why-us,
.process,
.faq,
.contact-cards,
.gallery-copy,
.page-home > section {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.process ol,
.timeline {
  display: grid;
  gap: 0.7rem;
}
.process ol {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}
.process ol li {
  position: relative;
  background: #fff;
  border-left: 5px solid var(--teal);
  border-radius: 14px;
  padding: 0.85rem 1rem 0.85rem 2.2rem;
}
.process ol li::before {
  counter-increment: step-counter;
  content: counter(step-counter) ".";
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  color: var(--petrol);
}
.timeline li {
  background: #fff;
  border-left: 5px solid var(--teal);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.faq,
[aria-labelledby="faq-home"] {
  display: grid;
  gap: 0.75rem;
}
.faq h2 {
  margin-bottom: 0.2rem;
}
.faq summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
  list-style: none;
  outline: none;
}
.faq details {
  padding: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq details p {
  margin: 0.7rem 0 0;
}
.breadcrumbs {
  font-size: 0.93rem;
}
.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  margin: 0;
  list-style: none;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.45rem;
  color: var(--muted);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gallery-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(6, 32, 51, 0.055);
  display: flex;
  flex-direction: column;
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}
.gallery-card figcaption {
  padding: 1rem;
  font-weight: 800;
  min-height: 4.3rem;
  display: flex;
  align-items: center;
}
.legal {
  max-width: 920px;
}

.link-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}
.link-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  font-weight: 800;
  color: var(--petrol);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(6, 32, 51, 0.055);
  transition:
    background 0.2s,
    color 0.2s;
}
.link-grid a:hover,
.link-grid a:focus-visible {
  background: var(--mint);
  color: var(--navy);
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 10px 26px rgba(6, 32, 51, 0.055);
  display: grid;
  gap: 0.6rem;
}
.contact-card .contact-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.contact-card .contact-line a {
  color: var(--petrol);
  text-decoration: none;
  font-weight: 700;
}

.contact-lines {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
}
.contact-line {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  margin: 0;
}
.contact-line__icon {
  flex: 0 0 1.5rem;
  text-align: center;
}
.contact-line a {
  font-weight: 800;
}
address {
  font-style: normal;
}
.site-footer {
  margin-top: 3rem;
  background: var(--navy);
  color: #fff;
  padding: 2.8rem max(20px, calc((100vw - 1120px) / 2));
}
.site-footer a {
  color: #fff;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}
.footer-title {
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.footer-heading {
  margin: 0 0 0.55rem;
  font-weight: 900;
  color: #fff;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.site-footer a:hover {
  color: var(--mint);
}
.footer-emergency {
  background: #fff;
  border-top: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--danger);
  font-weight: 900;
}
.site-footer address,
.site-footer a {
  font-size: 0.95rem;
}
.footer-link-group {
  padding: 0.25rem 0;
}

.footer-partners {
  width: min(100% - 40px, 1120px);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-partners__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.footer-partner {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-partner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.footer-partner img {
  display: block;
  width: auto;
  max-width: min(280px, 70vw);
  max-height: 86px;
  object-fit: contain;
}

:focus-visible {
  outline: 4px solid #ffd166;
  outline-offset: 3px;
  border-radius: 8px;
}
@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .primary-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }
  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  body.nav-is-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(4, 58, 85, 0.2);
    backdrop-filter: blur(2px);
  }
  .primary-nav a {
    padding: 0.75rem;
  }
  .service-grid,
  .fact-grid,
  .gallery-grid,
  .footer-main,
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-partners__list {
    flex-direction: column;
  }

  .footer-partner img {
    max-width: min(100%, 300px);
  }
}
@media (max-width: 600px) {
  .page,
  .hero,
  .page-intro,
  .site-header__inner {
    width: min(100% - 28px, 1120px);
  }
  .hero,
  .page-intro,
  .page-hero {
    padding: 3rem 0 2rem;
  }
  .cta-group,
  .cta-row {
    display: grid;
  }
  .btn,
  .button {
    width: 100%;
  }
}

/* 2026 visual refresh and robust viewport containment */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body,
#site-header,
#site-footer,
main,
.page,
.site-header__inner,
.footer-main,
.footer-emergency,
.link-grid,
.gallery-grid,
.service-grid,
.fact-grid {
  max-width: 100%;
}

.topbar-note {
  background: linear-gradient(90deg, #032436, #064760);
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
}

.topbar-note strong {
  color: #fff;
  letter-spacing: 0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(221, 231, 236, 0.9);
}

.site-header__inner {
  min-height: 78px;
  position: relative;
}

.site-logo img {
  width: clamp(112px, 9vw, 132px);
  height: auto;
}

.primary-nav {
  flex-wrap: nowrap;
  gap: 0.05rem;
}

.primary-nav a {
  position: relative;
  border-radius: 0;
  background: none;
  padding: 0.75rem 0.62rem;
  font-size: clamp(0.78rem, 0.8vw, 0.94rem);
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: none;
  color: var(--petrol);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.35rem;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transform: scaleX(0);
  transform-origin: center;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  background: var(--petrol);
  transform: scaleX(1);
  width: auto;
}

.page-hero:not(.page-hero--media-ready) {
  min-height: clamp(420px, 52vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.page-contact .page-hero__media::after {
  background: linear-gradient(
    90deg,
    rgba(3, 36, 54, 0.7) 0%,
    rgba(3, 36, 54, 0.48) 48%,
    rgba(3, 36, 54, 0.18) 100%
  );
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  min-width: 0;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 12px 30px rgba(6, 32, 51, 0.055);
  min-width: 0;
}

.content-grid > * {
  min-width: 0;
}

.info-card h2,
.info-card h3 {
  max-width: 100%;
  margin-top: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.page-ausbildung .content-grid .info-card h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 1.4rem;
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 0.75rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--soft);
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
}

.contact-method:hover {
  background: var(--mint);
  color: var(--petrol);
}

.contact-method__icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.2rem;
  border-radius: 999px;
  background: #fff;
  color: var(--petrol);
  box-shadow: 0 6px 18px rgba(6, 32, 51, 0.08);
}

.faq summary {
  position: relative;
  padding-right: 2.25rem;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--petrol);
  font-weight: 900;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details[open] {
  border-color: rgba(15, 138, 153, 0.42);
  box-shadow: 0 16px 34px rgba(6, 32, 51, 0.075);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.link-grid a {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: var(--petrol);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(6, 32, 51, 0.045);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.link-grid a:hover,
.link-grid a:focus-visible {
  transform: translateY(-2px);
  background: var(--mint);
  border-color: rgba(15, 138, 153, 0.35);
  box-shadow: 0 16px 34px rgba(6, 32, 51, 0.08);
}

.timeline {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.timeline li {
  position: relative;
  padding: 1rem 1.1rem 1rem 1.25rem;
  border-left: 5px solid var(--teal);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(6, 32, 51, 0.045);
}

.process ol {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  gap: 0.85rem;
}

.process ol li {
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 1rem 1rem 1rem 4.2rem;
  border-left: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(6, 32, 51, 0.045);
}

.process ol li::before {
  content: counter(step-counter);
  left: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--petrol);
  transform: translateY(-50%);
}

.site-footer {
  background: linear-gradient(135deg, #032436, #064760);
  color: #fff;
  padding: 3rem 0 2rem;
}

.footer-main {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-heading,
.footer-title {
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-footer a:hover {
  color: #fff;
}

.footer-emergency {
  width: min(100% - 40px, 1120px);
  margin: 2rem auto 0;
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  color: var(--danger);
  text-align: center;
  font-weight: 900;
}

.gallery-card {
  overflow: hidden;
  height: 100%;
}

.gallery-card img {
  transition: transform 0.25s ease;
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.gallery-card figcaption {
  min-height: 72px;
}

@media (max-width: 900px) {
  .topbar-note {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .primary-nav {
    display: none;
  }

  .primary-nav.is-open {
    display: grid;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .page-hero {
    min-height: 460px;
  }

  .page-hero--media-ready {
    padding-inline: 1.35rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .footer-main,
  .footer-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .content-grid,
  .link-grid,
  .service-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .site-logo img {
    width: clamp(104px, 32vw, 112px);
    height: auto;
  }
}

.gallery-section {
  margin: 2.2rem 0;
}

.gallery-section h2 {
  margin-bottom: 1rem;
}

.gallery-grid,
.pano360-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.gallery-card,
.gallery-card--button,
.pano360-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #e7eef2;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(6, 32, 51, 0.075);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible,
.pano360-card:hover,
.pano360-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(6, 32, 51, 0.13);
}

.gallery-card img,
.gallery-card--button img,
.pano360-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption,
.pano360-card__title {
  display: none;
}

.pano360-card__image-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.pano360-card__badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(3, 36, 54, 0.82);
  color: #fff;
  font-weight: 900;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

.gallery-no-scroll {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(3, 18, 28, 0.88);
}

.gallery-modal.is-open {
  display: flex;
}

.gallery-modal__image {
  max-width: min(1200px, 96vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  background: #fff;
}

.gallery-modal__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

/* Footer layout */
.site-footer {
  margin-top: 3rem;
  padding: clamp(2.8rem, 5vw, 4.8rem) 0 2rem;
  background: linear-gradient(135deg, #032436, #064760);
  color: #fff;
}

.footer-main,
.footer-bottom {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(430px, 1.65fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.35rem, 3vw, 2.4rem);
}

.footer-heading,
.footer-title {
  margin: 0 0 0.75rem;
  font-weight: 900;
  color: #fff;
}

.footer-partners {
  width: auto;
  margin: 0;
  padding: 0 0 0 clamp(1.35rem, 2.4vw, 2.25rem);
  border-top: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-partners__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: start;
}

.footer-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 98px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-partner:hover,
.footer-partner:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.footer-partner img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 74px;
  object-fit: contain;
}

.footer-partner--ig img {
  max-height: 82px;
}

.footer-partner--mhw img {
  max-height: 68px;
}

.footer-bottom {
  margin-top: 1.9rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-credit {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  line-height: 1.25;
}

.footer-credit a,
.footer-credit__link {
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(90deg, #487eb0, #9c83ff, #4cd137, #fbc531, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-emergency {
  width: auto;
  min-width: min(100%, 320px);
  margin: 0;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--danger);
  text-align: center;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .footer-main {
    grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.4fr);
  }

  .footer-partners {
    grid-column: 1 / -1;
    padding: 1.35rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .footer-partners__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .footer-main,
  .footer-nav,
  .footer-partners__list {
    grid-template-columns: 1fr;
  }

  .footer-main,
  .footer-bottom {
    width: min(100% - 28px, 1320px);
  }

  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-emergency {
    width: 100%;
  }
}
