/* Projekt @esportopolski | https://www.instagram.com/esportopolski/ */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Source+Sans+3:wght@400;500;600;700;800;900&display=swap");

:root {
  --ink: #18211b;
  --muted: #62695f;
  --brand-green: #07883f;
  --brand-green-deep: #075b31;
  --brand-green-dark: #123b27;
  --forest: #123b27;
  --moss: #647d49;
  --sage: #dcebd7;
  --mint: #edf8e8;
  --leaf: #c7e2b5;
  --cream: #f7f1e7;
  --paper: #fffaf1;
  --honey: #c98d3e;
  --clay: #9c6542;
  --graphite: #202326;
  --line: rgba(31, 59, 43, 0.18);
  --shadow: 0 28px 70px rgba(28, 31, 26, 0.16);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(7, 136, 63, 0.08), transparent 28%),
    linear-gradient(180deg, var(--paper), #f3f6eb 52%, var(--paper));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-color: var(--brand-green);
  outline-offset: 4px;
}

::selection {
  background: var(--brand-green);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.plain-page .site-header {
  background: rgba(246, 252, 241, 0.95);
  color: var(--forest);
  box-shadow: 0 8px 30px rgba(7, 91, 49, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 8px 16px rgba(17, 24, 18, 0.22));
}

.brand-text {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  opacity: 0.88;
}

.site-nav a:hover,
.site-nav .is-current {
  opacity: 1;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: #aee68f;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav .is-current::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 10px 16px;
  background: var(--brand-green);
  border: 1px solid var(--brand-green);
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 12px 28px rgba(7, 136, 63, 0.22);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-nav .nav-cta:is(:hover, :focus-visible, :active, .is-current) {
  background: #aee68f;
  border-color: #aee68f;
  color: var(--ink);
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-social {
  margin-left: -8px;
}

.social-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--brand-green);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 18%, rgba(174, 230, 143, 0.28), transparent 42%),
    var(--brand-green);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(7, 136, 63, 0.26);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled .social-link,
.plain-page .site-header .social-link {
  border-color: var(--brand-green);
  background:
    radial-gradient(circle at 30% 18%, rgba(174, 230, 143, 0.28), transparent 42%),
    var(--brand-green);
  color: #fff;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link:is(:hover, :focus-visible, :active, .is-current),
.site-header .social-link:is(:hover, :focus-visible, :active, .is-current),
.site-footer .social-link:is(:hover, :focus-visible, :active, .is-current) {
  background: #aee68f;
  border-color: #aee68f;
  color: var(--ink);
}

.site-nav .social-link::after {
  display: none;
}

.social-link.facebook span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.58rem;
  transform: translateY(1px);
}

.social-link.instagram > span {
  position: relative;
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.social-link.instagram > span::before,
.social-link.instagram > span::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.social-link.instagram > span::before {
  inset: 3px;
  border: 2px solid currentColor;
}

.social-link.instagram > span::after {
  top: 2px;
  right: 2px;
  width: 3px;
  height: 3px;
  background: currentColor;
}

.social-link.is-disabled {
  opacity: 0.72;
  cursor: default;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero-slider {
  position: relative;
  display: grid;
  min-height: 96vh;
  overflow: hidden;
  background: var(--brand-green-dark);
}

.slide {
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: inherit;
  opacity: 0;
  transition: opacity 900ms ease;
}

.slide.is-active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(7, 136, 63, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(7, 43, 25, 0.82), rgba(7, 91, 49, 0.46) 45%, rgba(7, 136, 63, 0.1)),
    linear-gradient(0deg, rgba(7, 43, 25, 0.58), transparent 45%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(360px, 720px) minmax(220px, 330px);
  align-items: center;
  gap: clamp(28px, 6vw, 92px);
  row-gap: 18px;
  width: calc(100% - 2 * clamp(18px, 7vw, 96px));
  margin-inline: auto;
  padding: 160px 0 112px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.32);
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy h2,
.hero-copy p:not(.eyebrow) {
  grid-column: 1;
  min-width: 0;
}

.hero-copy .eyebrow {
  margin: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-green);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.parallax-copy .eyebrow,
.cta-band .eyebrow {
  color: #aee68f;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.page-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
  font-optical-sizing: auto;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 720px;
  font-size: 5rem;
}

@media (max-height: 820px) and (min-width: 1051px) {
  .hero-copy h1,
  .hero-copy h2 {
    font-size: 4.5rem;
  }
}

.hero-copy p:not(.eyebrow) {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.125rem;
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.36);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-copy .button-row {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: end;
  flex-direction: column;
  width: min(100%, 310px);
  margin-top: 0;
}

.hero-copy .button {
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
  box-shadow: 0 14px 30px rgba(7, 136, 63, 0.22);
}

.hero-copy .button-primary,
.page-hero .button-primary {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}

.button-ghost {
  color: #fff;
  border-color: rgba(174, 230, 143, 0.72);
  background: rgba(7, 136, 63, 0.12);
  backdrop-filter: blur(8px);
}

.button-outline {
  color: var(--brand-green-deep);
  border-color: rgba(7, 136, 63, 0.34);
  background: rgba(255, 250, 241, 0.5);
}

.button-outline:hover {
  color: #fff;
  background: var(--brand-green-deep);
  border-color: var(--brand-green-deep);
}

.button-primary:is(:hover, :focus-visible),
.button-ghost:is(:hover, :focus-visible),
.hero-copy .button-primary:is(:hover, :focus-visible),
.page-hero .button-primary:is(:hover, :focus-visible) {
  background: #aee68f;
  border-color: #aee68f;
  color: var(--ink);
  box-shadow: 0 18px 36px rgba(7, 91, 49, 0.2);
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--brand-green-deep);
  font-weight: 850;
  text-underline-offset: 6px;
}

.slider-controls {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 5vw, 72px);
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.slider-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(174, 230, 143, 0.72);
  border-radius: 50%;
  background: rgba(7, 136, 63, 0.18);
  color: inherit;
  cursor: pointer;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.slider-dots button.is-active {
  background: #aee68f;
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 140px) clamp(18px, 5vw, 72px);
}

.intro-band {
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(237, 248, 232, 0.96), rgba(247, 241, 231, 0.94)),
    var(--mint);
}

.partners {
  padding: 16px 24px 18px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.partners-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto 8px;
}

.partners-heading h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 2.185rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: 0;
  color: var(--brand-green-deep);
}

.partners-carousel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  max-width: 1380px;
  margin: 0 auto;
}

.partners-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-green);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  transition: color 180ms ease;
}

.partners-arrow:hover {
  color: var(--brand-green-deep);
}

.partners :focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 3px;
}

.partners-viewport {
  height: 100px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.partners-viewport::-webkit-scrollbar {
  display: none;
}

.partners-track {
  display: flex;
  width: max-content;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.partners-track li {
  display: grid;
  place-items: center;
  flex: 0 0 200px;
  width: 200px;
  height: 100px;
}

.partners-track img {
  width: 200px;
  height: 100px;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.partners-track img[src$="placowka-2025.webp"] {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

@media (max-width: 600px) {
  .partners-viewport {
    height: 88px;
  }

  .partners {
    padding: 14px;
  }

  .partners-carousel {
    gap: 8px;
  }

  .partners-track {
    gap: 16px;
  }

  .partners-track li {
    flex-basis: 160px;
    width: 160px;
    height: 88px;
  }

  .partners-track img {
    width: 160px;
    height: 88px;
  }

  .partners-track img[src$="placowka-2025.webp"] {
    width: 88px;
    height: 88px;
  }
}

.home-stats {
  --stats-value-size: 3.2rem;
  background: #aee68f;
  color: var(--brand-green-dark);
  padding: 28px 24px;
}

.home-stats-inner {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 4fr);
  align-items: center;
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
}

.home-stats h2 {
  margin: 0;
  align-self: center;
  font-family: var(--sans);
  font-size: 2.185rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--brand-green-dark);
  letter-spacing: 0;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  margin: 0;
}

.home-stats-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-left: 1px solid rgba(18, 59, 39, 0.35);
  padding-left: 12px;
  min-width: 0;
}

.home-stats dt {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 12px 0 0;
}

.home-stats dd {
  order: -1;
  text-align: center;
  margin: 0;
  font-size: var(--stats-value-size);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-green-dark);
}

.home-stats dd span {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

@media (max-width: 1050px) {
  .home-stats-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

@media (max-width: 480px) {
  .home-stats {
    --stats-value-size: 2.6rem;
    padding: 22px 18px;
  }

  .home-stats-grid {
    gap: 24px 16px;
  }

  .home-stats-grid > div {
    padding-left: 10px;
  }

}

.intro-band::before,
.cta-band::before,
.page-title::before {
  content: "";
  position: absolute;
  width: clamp(130px, 18vw, 260px);
  height: clamp(130px, 18vw, 260px);
  border: 2px solid rgba(7, 136, 63, 0.16);
  border-radius: 46% 54% 62% 38% / 48% 42% 58% 52%;
  pointer-events: none;
}

.intro-band::before {
  right: 6vw;
  top: 48px;
  transform: rotate(-16deg);
}

.home-intro {
  padding-bottom: clamp(72px, 8vw, 120px);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: clamp(44px, 6vw, 72px) auto 0;
}

.path-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 360px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(7, 136, 63, 0.22);
  background: rgba(255, 250, 241, 0.72);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(7, 91, 49, 0.1);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.path-card::before {
  content: "";
  position: absolute;
  right: -58px;
  top: -58px;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background: rgba(7, 136, 63, 0.12);
}

.path-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 84px rgba(7, 91, 49, 0.18);
}

.path-card.featured {
  background:
    radial-gradient(circle at 90% 0%, rgba(174, 230, 143, 0.28), transparent 38%),
    linear-gradient(145deg, var(--brand-green-dark), var(--brand-green-deep));
  color: #fff;
}

.path-card span,
.course-teaser span,
.steps-grid span {
  color: var(--brand-green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.path-card.featured span,
.path-card.featured strong {
  color: #aee68f;
}

.path-card h3 {
  position: relative;
  margin: 48px 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  font-weight: 500;
  line-height: 1.03;
}

.path-card p {
  position: relative;
  color: var(--muted);
}

.path-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.path-card strong {
  position: relative;
  color: var(--brand-green-deep);
}

.parallax-panel {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(82px, 10vw, 150px) clamp(18px, 7vw, 96px);
  color: #fff;
  background: var(--brand-green-dark);
}

.parallax-panel img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1.04);
  will-change: transform;
}

.parallax-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(7, 136, 63, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(7, 43, 25, 0.86), rgba(7, 91, 49, 0.42) 52%, rgba(7, 43, 25, 0.18));
}

.parallax-panel-alt::after {
  background:
    radial-gradient(circle at 18% 20%, rgba(174, 230, 143, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(7, 43, 25, 0.2), rgba(7, 91, 49, 0.5), rgba(7, 43, 25, 0.86));
}

.parallax-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.parallax-panel-alt .parallax-copy {
  justify-self: end;
}

.parallax-copy h2,
.home-final-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 6.7rem);
  font-weight: 500;
  line-height: 0.98;
}

.parallax-copy p:not(.eyebrow),
.home-final-cta p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
}

.home-services .service-grid article {
  cursor: pointer;
}

.service-grid article > a {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 16px;
  color: var(--brand-green-deep);
  font-weight: 900;
  text-underline-offset: 6px;
}

.service-grid article:nth-child(5n) > a {
  color: #aee68f;
}

.story-image-wrap {
  min-height: 620px;
  overflow: hidden;
}

.story-image-wrap img {
  height: 112%;
  transform: translate3d(0, 0, 0) scale(1.04);
  will-change: transform;
}

.course-showcase {
  background:
    radial-gradient(circle at 6% 18%, rgba(7, 136, 63, 0.1), transparent 28%),
    var(--paper);
}

.course-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
}

.course-teaser {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: 16px 16px 24px;
  background: linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(237, 248, 232, 0.86));
  border: 1px solid rgba(7, 136, 63, 0.22);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 24px 58px rgba(7, 91, 49, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.course-teaser:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 78px rgba(7, 91, 49, 0.18);
}

.course-teaser img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.course-teaser h3,
.steps-grid h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.5vw, 2.7rem);
  font-weight: 500;
  line-height: 1.04;
}

.course-teaser p,
.steps-grid p {
  margin: 0;
  color: var(--muted);
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.learning-steps {
  background: var(--mint);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(7, 136, 63, 0.2);
  border: 1px solid rgba(7, 136, 63, 0.22);
}

.steps-grid article {
  min-height: 300px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--paper);
}

.steps-grid span {
  display: block;
  margin-bottom: 48px;
}

.home-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  min-height: 720px;
  background:
    radial-gradient(circle at 88% 8%, rgba(174, 230, 143, 0.22), transparent 28%),
    linear-gradient(135deg, var(--brand-green-dark), var(--brand-green-deep));
  color: #fff;
}

.home-final-cta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-final-cta > div {
  align-self: center;
  padding: clamp(42px, 7vw, 96px);
}

.home-final-cta .button-outline {
  color: #fff;
  border-color: rgba(174, 230, 143, 0.56);
  background: rgba(255, 255, 255, 0.06);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 110px);
  max-width: 1240px;
  margin: 0 auto;
}

.section h2,
.story-split h2,
.cta-band h2,
.form-panel h2,
.contact-card h2,
.course-summary-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.6vw, 5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
  font-optical-sizing: auto;
}

.lead-stack p,
.page-title p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.section-heading {
  position: relative;
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading::after {
  content: "";
  display: block;
  width: 76px;
  height: 6px;
  margin: 24px auto 0;
  border-radius: 999px;
  background: var(--brand-green);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(7, 136, 63, 0.2);
  border: 1px solid rgba(7, 136, 63, 0.22);
  box-shadow: 0 24px 64px rgba(7, 91, 49, 0.1);
}

.service-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid article {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 30px;
  background: var(--paper);
}

.service-grid article::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(7, 136, 63, 0.08);
}

.service-grid article:nth-child(3n) {
  background: var(--mint);
}

.service-grid article:nth-child(5n) {
  background: var(--brand-green-dark);
  color: #fff;
}

.service-grid article:nth-child(5n) p {
  color: rgba(255, 255, 255, 0.78);
}

.service-grid span,
.value-list span {
  display: block;
  margin-bottom: 30px;
  color: var(--brand-green);
  font-weight: 850;
}

.service-grid article:nth-child(5n) span {
  color: #aee68f;
}

.service-grid h3,
.service-grid h2,
.value-list h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.08;
  font-weight: 500;
  font-optical-sizing: auto;
}

.service-grid p,
.value-list p,
.story-split p,
.course-copy p,
.contact-card p,
.mini-course span {
  color: var(--muted);
}

.story-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: stretch;
  min-height: 620px;
  background: linear-gradient(135deg, var(--sage), var(--mint));
}

.story-split > div:not(.story-image-wrap) {
  position: relative;
}

.story-split > div:not(.story-image-wrap)::before {
  content: "";
  display: block;
  width: 54px;
  height: 7px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: var(--brand-green);
}

.story-split.reverse {
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
}

.story-split.reverse img {
  order: 2;
}

.story-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-split > div:not(.story-image-wrap) {
  align-self: center;
  padding: clamp(42px, 7vw, 96px);
}

.page-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--brand-green-dark);
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 18%, rgba(7, 136, 63, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(7, 43, 25, 0.78), rgba(7, 91, 49, 0.34)),
    linear-gradient(0deg, rgba(7, 43, 25, 0.55), transparent 50%);
}

.page-hero-light::after {
  background:
    radial-gradient(circle at 78% 18%, rgba(7, 136, 63, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(7, 43, 25, 0.68), rgba(7, 91, 49, 0.22)),
    linear-gradient(0deg, rgba(7, 43, 25, 0.46), transparent 55%);
}

.page-hero-copy {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 36px));
  padding: 180px 0 86px clamp(18px, 7vw, 96px);
}

.page-hero h1,
.page-title h1 {
  font-size: clamp(3rem, 7vw, 7.1rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
}

.editorial-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  max-width: 1220px;
  margin: 0 auto;
}

.editorial-columns article {
  padding-top: 28px;
  border-top: 3px solid rgba(7, 136, 63, 0.38);
}

.editorial-columns h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.value-list {
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1px solid rgba(7, 136, 63, 0.26);
}

.value-list article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(7, 136, 63, 0.2);
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 72px);
  text-align: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(174, 230, 143, 0.2), transparent 30%),
    linear-gradient(135deg, var(--brand-green-dark), var(--brand-green-deep));
  color: #fff;
}

.cta-band::before {
  left: 9vw;
  bottom: -72px;
  border-color: rgba(174, 230, 143, 0.22);
}

.cta-band h2 {
  max-width: 820px;
  margin: 0 auto 30px;
}

.page-title {
  position: relative;
  max-width: 1050px;
  padding-top: 170px;
}

.page-title::before {
  right: clamp(18px, 8vw, 96px);
  top: 118px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 12px;
  grid-auto-flow: dense;
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(72px, 9vw, 130px);
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--brand-green-dark);
  outline: 1px solid rgba(7, 136, 63, 0.22);
}

.gallery-item {
  grid-row: span 24;
}

.gallery-item.span-short {
  grid-row: span 22;
}

.gallery-item.span-medium {
  grid-row: span 28;
}

.gallery-item.span-tall {
  grid-row: span 36;
}

.gallery-item.span-wide {
  grid-column: span 2;
}

.gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-grid figure:hover img,
.gallery-trigger:focus-visible img {
  transform: scale(1.035);
}

.gallery-grid figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  background: rgba(7, 136, 63, 0.92);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(48px, 0.12fr) minmax(0, 1fr) minmax(48px, 0.12fr);
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  padding: clamp(18px, 3vw, 42px);
  background:
    radial-gradient(circle at 20% 10%, rgba(7, 136, 63, 0.24), transparent 30%),
    rgba(6, 19, 12, 0.94);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  grid-column: 2;
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.lightbox-frame img {
  width: auto;
  max-width: 100%;
  max-height: min(76vh, 780px);
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.lightbox-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1180px);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.lightbox button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(174, 230, 143, 0.7);
  border-radius: 50%;
  background: rgba(7, 136, 63, 0.2);
  color: #fff;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.lightbox button:hover {
  background: var(--brand-green);
  transform: translateY(-1px);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  width: clamp(44px, 5vw, 64px);
  height: clamp(44px, 5vw, 64px);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.lightbox-prev {
  grid-column: 1;
  justify-self: end;
}

.lightbox-next {
  grid-column: 3;
  justify-self: start;
}

.courses {
  display: grid;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.course-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 136, 63, 0.22);
  background: linear-gradient(135deg, rgba(237, 248, 232, 0.96), rgba(255, 250, 241, 0.98));
  box-shadow: 0 28px 70px rgba(7, 91, 49, 0.16);
}

.video-box {
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 30px;
  background:
    linear-gradient(rgba(7, 91, 49, 0.72), rgba(7, 43, 25, 0.72)),
    url("../images/gallery/greendog_08.webp") center / cover;
  color: #fff;
  text-align: center;
  font-weight: 850;
}

.course-card:nth-child(2) .video-box { background-image: linear-gradient(rgba(7, 91, 49, 0.72), rgba(7, 43, 25, 0.72)), url("../images/gallery/greendog_10.webp"); }
.course-card:nth-child(3) .video-box { background-image: linear-gradient(rgba(7, 91, 49, 0.72), rgba(7, 43, 25, 0.72)), url("../images/gallery/greendog_01.webp"); }
.course-card:nth-child(4) .video-box { background-image: linear-gradient(rgba(7, 91, 49, 0.72), rgba(7, 43, 25, 0.72)), url("../images/gallery/greendog_07.webp"); }
.course-card:nth-child(5) .video-box { background-image: linear-gradient(rgba(7, 91, 49, 0.72), rgba(7, 43, 25, 0.72)), url("../images/gallery/greendog_06.webp"); }

.course-copy {
  padding: clamp(28px, 5vw, 58px);
}

.course-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.content-box,
.price-preview,
.mini-course,
.contact-card {
  border: 1px solid rgba(7, 136, 63, 0.2);
  background: rgba(237, 248, 232, 0.72);
}

.content-box {
  margin: 22px 0;
  padding: 18px;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
}

.form-panel,
.course-summary-panel {
  padding: clamp(26px, 4vw, 48px);
  background: linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(237, 248, 232, 0.92));
  border: 1px solid rgba(7, 136, 63, 0.22);
  box-shadow: 0 28px 70px rgba(7, 91, 49, 0.14);
}

.smart-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.required-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.required-note span,
.required-mark {
  color: var(--brand-green);
  font-weight: 900;
}

.field-label {
  display: inline;
}

.form-guard {
  position: absolute;
  left: -9999px;
  width: 1px !important;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.smart-form label,
.payment-fieldset {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.smart-form input,
.smart-form select,
.smart-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(7, 136, 63, 0.24);
  background: #fffaf4;
  color: var(--ink);
  padding: 12px 14px;
}

.smart-form textarea {
  resize: vertical;
}

.smart-form input:focus,
.smart-form select:focus,
.smart-form textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(7, 136, 63, 0.12);
}

.check {
  grid-template-columns: 20px 1fr;
  align-items: start;
  column-gap: 12px;
  font-weight: 650;
  color: var(--muted);
}

.check input {
  width: auto;
  min-height: auto;
  margin-top: 6px;
}

.check span {
  min-width: 0;
}

.check a {
  display: inline;
  color: var(--brand-green-deep);
  font-weight: 900;
  text-underline-offset: 4px;
}

.smart-form input[type="checkbox"],
.smart-form input[type="radio"] {
  width: auto;
  accent-color: var(--brand-green);
}

.payment-fieldset {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px;
}

.payment-fieldset legend {
  padding: 0 6px;
  color: var(--brand-green-deep);
}

.payment-fieldset label {
  grid-template-columns: 18px 1fr;
  align-items: center;
  font-weight: 750;
}

.payment-fieldset input {
  width: auto;
  min-height: auto;
}

.price-preview {
  padding: 14px 16px;
  color: var(--muted);
}

.fake-payment-link {
  color: var(--brand-green-deep);
  font-weight: 850;
  text-underline-offset: 6px;
}

.mini-course {
  display: grid;
  gap: 5px;
  padding: 16px;
  margin-top: 12px;
}

.contact-card {
  overflow: hidden;
  container-type: inline-size;
  padding: clamp(26px, 4vw, 48px);
}

.contact-card h2,
.location-heading h2 {
  max-width: 100%;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-actions {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.contact-location {
  padding-top: 24px;
  background: var(--mint);
}

.location-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto 24px;
}

.location-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.location-map-consent {
  max-width: 1280px;
  margin: 0 auto;
}

.location-map-placeholder {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 340px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: #fff;
}

.location-map-placeholder h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.location-map-placeholder p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.6;
}

.map-hide {
  margin-top: 14px;
}

.location-map-consent [hidden] {
  display: none;
}

.location-map {
  display: block;
  width: 100%;
  max-width: 1280px;
  height: 440px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 760px) {
  .location-map {
    height: 340px;
  }

}

.contact-actions a {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(7, 136, 63, 0.24);
  background: rgba(255, 250, 241, 0.58);
  color: var(--brand-green-deep);
  text-decoration: none;
  min-width: 0;
  font-size: 1.2rem;
  font-size: clamp(1rem, 6cqi, 1.5rem);
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-actions a[href^="mailto:"] {
  font-size: 0.95rem;
  font-size: clamp(0.85rem, 4.8cqi, 1.2rem);
}

.contact-actions a:hover {
  background: var(--brand-green);
  color: #fff;
  transform: translateY(-2px);
}

.contact-actions span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.contact-actions a:hover span {
  color: rgba(255, 255, 255, 0.78);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.legal-toc {
  position: sticky;
  top: 128px;
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(7, 136, 63, 0.22);
  background: rgba(237, 248, 232, 0.72);
}

.legal-toc strong {
  color: var(--brand-green-deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.legal-toc a {
  color: var(--ink);
  font-weight: 800;
  text-decoration-color: rgba(7, 136, 63, 0.34);
  text-underline-offset: 5px;
}

.legal-content {
  display: grid;
  gap: 22px;
}

.legal-card {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(7, 136, 63, 0.2);
  background: linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(237, 248, 232, 0.84));
  box-shadow: 0 22px 58px rgba(7, 91, 49, 0.1);
}

.legal-card h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.04;
}

.legal-card h3 {
  margin: 24px 0 8px;
  color: var(--brand-green-deep);
  font-size: 1rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.25rem;
}

.legal-note {
  padding: 18px;
  border-left: 4px solid var(--brand-green);
  background: rgba(7, 136, 63, 0.08);
  color: var(--brand-green-deep);
  font-weight: 800;
}

.form-note {
  margin: 0;
  padding: 14px;
  background: var(--sage);
  color: var(--brand-green-deep);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 0.8fr) minmax(240px, 1fr);
  gap: 24px 32px;
  padding: 58px clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 10% 0%, rgba(7, 136, 63, 0.3), transparent 26%),
    linear-gradient(135deg, #10251a, var(--graphite));
  color: #fff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 4px;
  line-height: 1.25;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #aee68f;
}

.footer-social {
  justify-content: flex-end;
  margin-bottom: 18px;
}

.site-footer .social-link {
  background:
    radial-gradient(circle at 30% 18%, rgba(174, 230, 143, 0.28), transparent 42%),
    var(--brand-green);
  border-color: var(--brand-green);
}

.back-to-top {
  position: fixed;
  right: clamp(10px, 1.2vw, 18px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(174, 230, 143, 0.7);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(174, 230, 143, 0.28), transparent 42%),
    var(--brand-green);
  color: #fff;
  box-shadow: 0 18px 42px rgba(7, 91, 49, 0.28);
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:is(:hover, :focus-visible) {
  background: #aee68f;
  border-color: #aee68f;
  color: var(--ink);
  transform: translateY(-2px);
}

.footer-meta {
  text-align: right;
}

.footer-meta p:first-of-type a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  text-decoration: none;
}

.footer-meta p:first-of-type a + br + a {
  margin-top: 4px;
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.34);
}

.footer-credit {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.footer-credit a {
  color: #aee68f;
  font-weight: 900;
  text-decoration: none;
}

.footer-credit a:hover {
  color: #fff;
}

.footer-brand .brand-logo {
  width: 86px;
  height: 86px;
  filter: none;
}

.cookie-consent {
  position: fixed;
  left: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  width: min(680px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid rgba(7, 136, 63, 0.24);
  background: rgba(255, 250, 241, 0.96);
  color: var(--ink);
  box-shadow: 0 22px 58px rgba(7, 91, 49, 0.18);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 200ms ease, transform 200ms ease;
  backdrop-filter: blur(14px);
}

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

.cookie-consent p {
  margin: 0;
  color: var(--muted);
}

.cookie-consent-title {
  color: var(--brand-green-deep) !important;
  font-weight: 900;
}

.cookie-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px !important;
}

.cookie-consent-links a {
  color: var(--brand-green-deep);
  font-weight: 900;
  text-decoration-color: rgba(7, 136, 63, 0.36);
  text-underline-offset: 4px;
}

.cookie-consent .button {
  min-height: 44px;
  white-space: nowrap;
}

.message-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.form-result {
  max-width: 760px;
  padding: clamp(34px, 6vw, 76px);
  background: linear-gradient(145deg, var(--cream), var(--mint));
  border: 1px solid rgba(7, 136, 63, 0.22);
  box-shadow: 0 28px 70px rgba(7, 91, 49, 0.14);
}

.form-result h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.03;
  font-weight: 500;
  font-optical-sizing: auto;
}

@media (max-width: 1050px) {
  .service-grid,
  .service-grid.three,
  .editorial-columns,
  .contact-layout,
  .site-footer,
  .path-grid,
  .course-teaser-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-split,
  .story-split.reverse,
  .course-card,
  .home-final-cta {
    grid-template-columns: 1fr;
  }

  .story-split.reverse img {
    order: 0;
  }

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

  .parallax-panel {
    min-height: 760px;
  }

  .hero-copy {
    grid-template-columns: minmax(0, 700px);
  }

  .hero-copy .button-row {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    flex-direction: row;
    width: auto;
    margin-top: 28px;
  }

  .hero-copy .button {
    width: auto;
  }

  .home-final-cta img {
    height: 420px;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    color: var(--ink);
    background: rgba(255, 250, 241, 0.96);
    box-shadow: 0 8px 30px rgba(26, 29, 24, 0.08);
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 88px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero-copy {
    width: calc(100% - 36px);
    padding: 144px 0 112px;
  }

  .hero-copy .button-row {
    width: 100%;
  }

  .hero-copy .button {
    width: 100%;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .page-title h1 {
    font-size: 2.75rem;
  }

  .slider-controls {
    right: 18px;
    left: 18px;
    justify-content: space-between;
  }

  .section-grid,
  .service-grid,
  .service-grid.three,
  .editorial-columns,
  .value-list article,
  .contact-layout,
  .legal-layout,
  .site-footer,
  .path-grid,
  .course-teaser-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .page-title {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .page-hero {
    min-height: 720px;
  }

  .page-hero-copy {
    padding: 150px 18px 70px;
    width: 100%;
  }

  .service-grid article {
    min-height: auto;
  }

  .story-split {
    min-height: auto;
  }

  .story-split img {
    height: 320px;
  }

  .path-card,
  .steps-grid article {
    min-height: auto;
  }

  .parallax-panel {
    min-height: 680px;
    padding: 90px 18px;
  }

  .parallax-panel img {
    inset: 0;
    height: 100%;
    transform: none !important;
  }

  .parallax-copy h2,
  .home-final-cta h2 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .story-image-wrap {
    min-height: auto;
  }

  .story-image-wrap img {
    height: 320px;
    transform: none !important;
  }

  .home-final-cta {
    min-height: auto;
  }

  .home-final-cta img {
    height: 320px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-item,
  .gallery-item.span-short,
  .gallery-item.span-medium,
  .gallery-item.span-tall,
  .gallery-item.span-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-trigger {
    height: auto;
  }

  .gallery-trigger img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    align-content: center;
    padding: 62px 16px 18px;
  }

  .lightbox-frame {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox-frame img {
    max-height: 68vh;
  }

  .lightbox-frame figcaption {
    font-size: 0.92rem;
  }

  .lightbox-prev,
  .lightbox-next {
    grid-row: 2;
    justify-self: center;
  }

  .lightbox-prev {
    grid-column: 1;
  }

  .lightbox-next {
    grid-column: 2;
  }

  .payment-fieldset {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .footer-meta {
    text-align: left;
  }

  .footer-legal {
    justify-content: flex-start;
  }

  .cookie-consent {
    grid-template-columns: 1fr;
    right: 14px;
    align-items: start;
  }

  .cookie-consent .button {
    justify-self: start;
  }
}

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