* {
  box-sizing: border-box;
}

:root {
  /* Tijdspoort huisstijl */
  --pink: #e84c7a;
  --pink-dark: #c23763;
  --yellow: #ffc43d;
  --teal: #17b3b1;
  --teal-dark: #128e8c;
  --navy: #14213d;

  --background: #f6f2ed;
  --surface: #ffffff;
  --surface-soft: #fbeef0;
  --text: var(--navy);
  --muted: #4d5872;
  --accent: var(--pink);
  --accent-dark: var(--pink-dark);
  --button-bg: var(--pink-dark);
  --button-bg-hover: #a62c54;
  --dark: var(--navy);
  --border: rgba(20, 33, 61, 0.14);
  --shadow: 0 24px 60px rgba(20, 33, 61, 0.16);
  --radius: 22px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Fredoka", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.08;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 12px 18px;
  background: white;
}

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

.button:focus-visible,
.text-link:focus-visible,
.main-nav a:focus-visible,
.menu-button:focus-visible,
.logo:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(246, 242, 237, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo strong,
.logo small {
  display: block;
}

.logo strong {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--navy);
}

.logo small {
  color: var(--muted);
  font-size: 0.72rem;
}

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}

.main-nav a.is-active {
  color: var(--accent-dark);
}

.menu-button {
  display: none;
}

.hero {
  display: grid;
  min-height: calc(100vh - 78px);
  align-items: center;
  padding: 90px 0;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 196, 61, 0.35), transparent 32%),
    radial-gradient(circle at 4% 12%, rgba(232, 76, 122, 0.22), transparent 30%),
    linear-gradient(135deg, #f9f5ef, #f0e6e2);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 70px;
  align-items: end;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  gap: 50px;
  align-items: center;
}

.hero-theme {
  margin: -12px 0 0;
  color: var(--pink-dark);
  font-family: "Fredoka", "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.section-dark .hero-theme {
  color: var(--yellow);
}

.hero-text {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.hero-lead {
  max-width: 60ch;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
}

.hero-logo-preview {
  width: min(100%, 340px);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
}

.hero-card {
  position: relative;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: white;
  background: var(--dark);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-card--familie::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/images/locaties/havik-47-familie.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.4;
  filter: grayscale(35%);
}

.hero-card--familie::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 33, 61, 0.35) 0%, rgba(20, 33, 61, 0.9) 75%);
}

.hero-card h2 {
  font-size: 2.6rem;
}

.card-label,
.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-card .card-label {
  color: var(--yellow);
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--button-bg);
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--button-bg-hover);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
}

.text-link {
  font-weight: 700;
  text-underline-offset: 5px;
}

.section {
  padding: 110px 0;
}

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

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

.split-layout {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 90px;
}

.prose {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.prose p + p {
  margin-top: 18px;
}

.section-dark .prose {
  color: rgba(255,255,255,0.85);
}

.section-dark .section-heading p {
  color: rgba(255,255,255,0.85);
}

.section-heading {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 55px;
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.section-heading p {
  max-width: 410px;
  color: var(--muted);
}

.cards-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card,
.info-grid > div {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: rgba(255,255,255,0.055);
  isolation: isolate;
}

/* Vervaagde sfeerfoto per locatie, geplaatst achter de tekst.
   Zolang het bijbehorende bestand in assets/images/locaties ontbreekt,
   blijft de kaart gewoon egaal donker (background-image faalt stil). */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.42;
  filter: grayscale(25%);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 33, 61, 0.28) 0%, rgba(20, 33, 61, 0.86) 75%);
}

.feature-card--havik::before {
  background-image: url("../assets/images/locaties/havik-47.jpg");
}

.feature-card--hof::before {
  background-image: url("../assets/images/locaties/de-hof.jpg");
}

.feature-card--toren::before {
  background-image: url("../assets/images/locaties/onze-lieve-vrouwetoren.jpg");
}

.feature-card--koppelpoort::before {
  background-image: url("../assets/images/locaties/koppelpoort.jpg");
}

.step {
  display: block;
  margin-bottom: 55px;
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

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

.step-light {
  margin-bottom: 18px;
  color: var(--pink-dark);
}

.feature-card p {
  color: rgba(255,255,255,0.85);
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--border);
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--teal);
  font-weight: 700;
}

.info-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-grid > div {
  background: rgba(255,255,255,0.45);
}

.quote {
  margin: 32px 0 0;
  padding: 24px 28px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-soft);
  font-size: 1.1rem;
  font-style: italic;
}

.quote cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 45px;
}

.stat {
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Fredoka", "Inter", sans-serif;
  font-size: 1.9rem;
  color: var(--yellow);
}

.stat span {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.family-section {
  margin-bottom: 30px;
}

.family-section .eyebrow {
  margin-bottom: 14px;
}

.family-card {
  max-width: none;
}

.family-more {
  margin-top: 20px;
}

.family-more summary {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.family-more summary::-webkit-details-marker {
  display: none;
}

.family-more summary::before {
  content: "+";
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--accent-dark);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
}

.family-more[open] summary::before {
  content: "\2013";
}

.family-more summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.family-more-content {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.family-card .family-more-content p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.family-card .family-more-content p:last-of-type {
  margin-bottom: 0;
}

.family-more-photo {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 8px auto 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.person-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.55);
}

.person-card h3 {
  margin-bottom: 4px;
}

.person-role {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person-card p {
  margin: 0;
  color: var(--muted);
}

.contact-card {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 60px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card > div {
  max-width: 760px;
}

.contact-card h2 {
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.page-hero {
  padding: 70px 0 80px;
}

.page-hero .hero-grid {
  gap: 40px;
  align-items: center;
}

.page-hero .hero-side-card {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* Beeldkader met vaste beeldverhouding, voorkomt layout shift en dwingt
   consistente uitsnedes af. Verhouding per plaatsing via --ratio instellen. */
.media-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 440px);
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface-soft);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, center);
}

.media-frame--contain img {
  object-fit: contain;
}

/* Hero-video: het filmpje vult het rechterdeel van de hero en vloeit met een
   gradient over in de achtergrond. Op smalle schermen staat het als gewoon
   blok onder de tekst. */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3 / 4;
  justify-self: end;
  overflow: hidden;
}

.hero-media video,
.hero-media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #f6f2ed 0%, rgba(246, 242, 237, 0) 30%);
  pointer-events: none;
}

/* Doorlopende route: vier scènes met nummer, verbindingslijn en een subtiele
   historische kaart als achtergrond over de volledige sectie. */
#route {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.route-map-background {
  position: absolute;
  inset: 6rem 0 0;
  z-index: 0;
  width: 100%;
  height: calc(100% - 6rem);
  object-fit: cover;
  object-position: center;
  opacity: 0.1;
  filter: grayscale(25%) saturate(70%);
  pointer-events: none;
}

#route > .container {
  position: relative;
  z-index: 1;
}

.route {
  position: relative;
}

.route-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 22px;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.route-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--yellow);
  transition: height 900ms ease;
}

.route-scene {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 26px;
  padding: 34px 22px;
}

.route-scene:first-child {
  padding-top: 12px;
}

.route-scene:last-child {
  padding-bottom: 12px;
}

.route-scene-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 500ms ease, color 500ms ease;
}

.route-scene.is-active .route-scene-number {
  border-color: var(--yellow);
  color: var(--yellow);
}

.route-scene-body {
  position: relative;
  z-index: 1;
}

.route-scene h3 {
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.route-scene p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 58ch;
}

.route-meta {
  margin: 40px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

/* Kantelpunt: compact, zonder beeld — typografie, kleur en negatieve ruimte. */
.turning-point {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 80px 0;
  background: var(--navy);
  color: white;
}

.turning-point-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
}

.turning-point .eyebrow {
  color: var(--yellow);
}

.turning-point h2 {
  max-width: 16ch;
}

.turning-point-lead {
  max-width: 46ch;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.92);
}

.turning-point-prose {
  max-width: 56ch;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
}

#kantelpunt .turning-point-inner h2 {
  width: 100%;
  max-width: none;
}

#kantelpunt .turning-point-prose {
  width: 100%;
  max-width: 70ch;
}

@media (min-width: 900px) {
  #kantelpunt .turning-point-inner h2 {
    white-space: nowrap;
  }
}

/* Reflectiefase: rustiger, turquoise als bewuste kleur voor onderwijs en toekomst. */
.reflection {
  background: var(--surface-soft);
  border-top: 4px solid var(--teal);
}

.reflection .eyebrow {
  color: var(--teal-dark);
}

.reflection-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.reflection-steps li {
  position: relative;
  padding-left: 24px;
  color: var(--navy);
  font-weight: 700;
}

.reflection-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-dark);
  font-family: "Fredoka", sans-serif;
}

/* Vijfstappen educatieve route (Beleef, Bespreek, Onderzoek, Weeg af, Formuleer) */
.steps-grid--five {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.steps-grid--five .person-card {
  display: flex;
  flex-direction: column;
}

.steps-grid--five h3 {
  font-size: 1.3rem;
}

.page-section {
  padding: 80px 0;
}

.page-intro {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-card,
.document-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.68);
}

.document-card {
  display: flex;
  flex-direction: column;
}

.info-list {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.info-list div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.info-list dt {
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--navy);
}

.info-list dd {
  margin: 0;
  color: var(--muted);
}

.link-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.link-list a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.link-list a:hover,
.link-list a:focus-visible {
  text-decoration: underline;
}

.note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.document-card h3 {
  margin-bottom: 10px;
}

.document-label {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.document-status {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.document-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--button-bg);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.document-link:hover,
.document-link:focus-visible {
  background: var(--button-bg-hover);
  transform: translateY(-2px);
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.footer-inner {
  min-height: 110px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.footer-tagline {
  color: var(--teal-dark);
  font-weight: 600;
}

.footer-inner div {
  display: flex;
  gap: 24px;
}

.footer-link-placeholder {
  cursor: default;
  text-decoration: underline dotted;
  opacity: 0.75;
}

/* Verbergt een blok volledig wanneer de inhoud nog niet publicatieklaar is. */
.is-hidden {
  display: none !important;
}

/* ANBI-pagina: paginaspecifieke aanpassingen, zonder de gedeelde klassen
   op andere pagina's te wijzigen. */
.page-anbi .page-section {
  padding: 56px 0;
}

.page-anbi .section-heading {
  display: block;
  margin-bottom: 26px;
}

.page-anbi .section-heading h2 {
  max-width: none;
  margin-bottom: 8px;
}

.page-anbi .section-heading p {
  max-width: 65ch;
}

.info-list--spaced {
  gap: 20px;
}

.page-section-tight {
  padding: 20px 0 40px;
}

.page-section-tight .note {
  margin: 0;
  font-size: 0.85rem;
}

/* Homepage: koptekst en toelichting onder elkaar in plaats van naast elkaar,
   zonder de gedeelde .section-heading/.split-layout op andere pagina's te wijzigen. */
.page-home .section-heading {
  display: block;
  margin-bottom: 40px;
}

.page-home .section-heading h2 {
  max-width: none;
  margin-bottom: 10px;
}

.page-home .section-heading p {
  max-width: 65ch;
}

.page-home .split-layout {
  display: block;
}

.page-home .split-layout > div:nth-child(2) {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .menu-button {
    display: inline-flex;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-weight: 700;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .hero-grid,
  .split-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 200px);
    gap: 24px;
    align-items: center;
  }

  .page-hero .hero-grid {
    gap: 30px;
  }

  .hero {
    min-height: auto;
  }

  .section-heading {
    display: block;
  }

  .cards-grid,
  .info-grid,
  .stats-grid,
  .team-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-media {
    max-width: 200px;
  }

  .hero-media::before {
    display: none;
  }

  .turning-point {
    min-height: auto;
    padding: 64px 0;
  }

  .turning-point-inner {
    max-width: none;
  }

  .contact-card {
    display: block;
  }

  .contact-card .button {
    margin-top: 25px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 78px 0;
  }

  .cards-grid,
  .info-grid,
  .stats-grid,
  .team-grid,
  .steps-grid,
  .steps-grid--five,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .media-frame {
    width: 100%;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 130px);
    gap: 14px;
  }

  .hero-media {
    max-width: 130px;
  }

  .turning-point {
    padding: 52px 0;
  }

  .turning-point::before {
    width: 70%;
    opacity: 0.08;
  }

  .route-map-background {
    opacity: 0.07;
    width: 160%;
    max-width: none;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .route-scene {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 16px;
  }

  .route-line {
    left: 16px;
  }

  .route-scene-number {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .hero-card,
  .contact-card {
    padding: 28px;
  }

  .footer-inner {
    display: block;
    padding: 30px 0;
  }

  .footer-inner div {
    margin-top: 12px;
  }
  #stad .section-heading h2 {
  margin-bottom: 1rem;
}

#stad .section-heading > p {
  margin-top: 0;
}
.family-container {
  margin-top: 3rem;
}
}
