/* ==========================================================================
   Page sections. Values come from the artboards; odd numbers like 14.5px or
   1.05fr are intentional.
   ========================================================================== */

/* --- Shared section furniture ------------------------------------------- */

.section {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 96px var(--pad-x);
}

/* Barely visible. From the bottom left: every wash has its own origin, or
   together they read as a pattern instead of light. */
.section--alt {
  background:
    radial-gradient(65% 60% at 6% 100%, oklch(96.5% 0.014 142 / 0.5), transparent 64%),
    linear-gradient(12deg, oklch(97.4% 0.005 100) 0%, var(--bg-alt) 70%);
}
.section--alt > .section__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 96px var(--pad-x);
}

/* Small uppercase label above a heading. */
.eyebrow {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head--narrow { max-width: 600px; margin-bottom: 56px; }

.section-head h2,
.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.section-head p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-4);
  margin: 16px 0 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--green-700);
  transition: color 0.2s var(--ease);
}
.text-link:hover { color: var(--green-900); }

/* --- Hero --------------------------------------------------------------- */

/* Full-width tinted band behind the hero, fading into the page at the
   bottom. A wrapper because .hero is width-limited, and 100vw would overflow
   by the always-visible scrollbar. */
.hero-band {
  /* One quiet glow. More layers turn the top of the page green on a phone. */
  background:
    radial-gradient(52% 62% at 12% 2%, oklch(96% 0.028 142 / 0.6), transparent 68%),
    linear-gradient(180deg, oklch(98.6% 0.008 142) 0%, var(--bg) 74%);
}

.hero {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 80px var(--pad-x) 96px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

/* Translucent white: works over the photo on a phone and the band on
   desktop. Without backdrop-filter the 78% white is still legible.
   It sits inside the h1, so the heading's font and line height are reset. */
.hero__badge {
  display: block;
  width: fit-content;
  font-family: var(--font-body);
  line-height: normal;
  background: oklch(96.5% 0.045 142 / 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid oklch(100% 0 0 / 0.55);
  color: oklch(36% 0.14 142);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px oklch(0% 0 0 / 0.06);
}

.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 24px;
}
.hero__headline { display: block; }

.hero__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-4);
  margin: 0 0 36px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* The hero outline button sits on the page background, not on white. */
.hero__actions .btn-outline { background: transparent; }

.hero__next {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  background: var(--white);
  border: 1px solid oklch(91% 0.005 100);
  border-radius: var(--r-lg);
  padding: 14px 22px 14px 16px;
  box-shadow: 0 2px 10px oklch(0% 0 0 / 0.04);
}
.hero__next-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero__next-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.hero__next-date {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.hero__photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- O nás -------------------------------------------------------------- */

.onas {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 88px var(--pad-x) 48px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.onas .eyebrow { color: var(--green-700); margin-bottom: 14px; }
.onas h2 { margin-bottom: 20px; }
.onas__text p {
  font-size: 17px;
  line-height: 1.75;
  color: oklch(35% 0.01 100);
}
.onas__text p + p { margin-top: 24px; }

.stats {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--pad-x) 88px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stats__item {
  text-align: center;
  padding: 0 24px;
}
.stats__item + .stats__item { border-left: 1px solid oklch(91% 0.005 100); }
.stats__value {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--green-700);
}
.stats__label {
  font-size: 15px;
  color: oklch(45% 0.01 100);
  margin-top: 6px;
}

/* --- Ako to prebieha ---------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
/* Rail behind the circles, from the first centre to the last. */
.steps__rail {
  position: absolute;
  top: 43px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: oklch(90% 0.02 142);
  z-index: 0;
  transform-origin: left center;
}

/* Draws itself left to right with scaleX when the section reveals. It is a
   child of the stagger group, so the group's rules are overridden here.
   Reduced motion sets transform: none, which leaves it at full width. */
.js-reveal .steps[data-reveal-stagger] > .steps__rail {
  opacity: 1;
  transform: scaleX(0);
}
.js-reveal .steps[data-reveal-stagger].is-revealed > .steps__rail {
  opacity: 1;
  transform: scaleX(1);
  transition: transform 0.9s var(--ease) 0.15s;
  /* The group's reveal-in animation would beat any declaration here, so it
     has to be removed, not overridden. */
  animation: none;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step__badge {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
}
.step__circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--green-50);
  border: 2px solid var(--green-600);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__number {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg);
}
/* Not clickable; only the circle reacts. */
.step__circle { transition: transform 0.3s var(--ease); }
.step:hover .step__circle { transform: scale(1.06); }
.step__number { transition: transform 0.3s var(--ease); }
.step:hover .step__number { transform: scale(1.1); }

.step h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: oklch(45% 0.01 100);
  margin: 0 auto;
  max-width: 25ch;
  text-wrap: balance;
}

/* --- Kurzy -------------------------------------------------------------- */

.courses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Five courses: three over two, the two centred. Four in a row left the
   fifth alone on a line; five in a row made every card too narrow for its
   list. Six half-columns, each card two of them. */
@media (min-width: 1101px) {
  .courses:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
  .courses:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
  .courses:has(> :nth-child(5):last-child) > :nth-child(4) { grid-column: 2 / span 2; }
}

.course-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.course-card--popular { border: 2px solid var(--green-600); }

/* Hover values from the artboard. */
/* A faint resting shadow, because a shadow cannot fade in from none. */
.course-card {
  box-shadow:
    0 1px 2px oklch(0% 0 0 / 0.02),
    0 2px 6px oklch(0% 0 0 / 0.02),
    0 4px 12px oklch(0% 0 0 / 0.02);
  transition: transform 0.25s var(--ease),
              box-shadow 0.4s var(--ease),
              border-color 0.25s var(--ease);
}
/* Three layers soften the edge a single blur leaves. */
.course-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 2px 4px oklch(0% 0 0 / 0.04),
    0 8px 16px oklch(0% 0 0 / 0.05),
    0 20px 44px oklch(0% 0 0 / 0.07);
}

/* Card hover lifts the button; the colour change waits for the button's own
   hover, or it would look pressed. */
.course-card:hover .course-card__cta { transform: translateY(-2px); }

.course-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.course-card:hover .course-card__icon { transform: scale(1.08); }
.course-card__icon {
  transition: transform 0.25s var(--ease);
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.course-card__tag {
  background: var(--green-100);
  color: oklch(41% 0.13 142);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
  white-space: nowrap;
}
.course-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}
.course-card__lead {
  font-size: 15px;
  line-height: 1.6;
  color: oklch(45% 0.01 100);
  margin: 0;
}
/* Conditions chips. */
.course-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.course-card__chip {
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-alt);
  border: 1px solid var(--line-3);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.course-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.course-card__list li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.course-card__list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green-600);
}

/* Pinned to the bottom, so price and button line up across cards. */
.course-card__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-4);
}

/* A price is large; "Cena na vyžiadanie" (--ask) stays small. */
.course-card__price {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.course-card__price--ask {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: oklch(45% 0.01 100);
}

/* .btn has no size of its own. */
.course-card__cta {
  width: 100%;
  padding: 11px;
  font-size: 14.5px;
}

/* Several documents wrap as a group. */
.download-row__files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.download-row__btn {
  padding: 12px 20px;
  font-size: 14.5px;
}
/* The icon rises with the button and nudges down once on hover. A resting
   translateY(2px) here used to cancel the 2px lift, leaving the icon behind. */
.download-row__btn:hover svg { animation: download-nudge 0.45s var(--ease); }
@keyframes download-nudge {
  40% { transform: translateY(3px); }
}

@media (max-width: 720px) {
  .download-row__files { justify-content: stretch; }
  .download-row__btn { flex: 1 1 100%; }
}
.download-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.download-row__text {
  font-size: 15.5px;
  color: oklch(40% 0.01 100);
}
.download-row__text strong {
  color: var(--ink);
  font-weight: 600;
}
.download-row .btn { padding: 13px 24px; font-size: 15px; }

/* --- Recenzie ----------------------------------------------------------- */

.section--bordered { border-top: 1px solid var(--line-4); }

.eyebrow--dark { color: var(--green-700); }

/* Dots are phone only. */
.carousel-dots { display: none; }

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

.review {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
}

/* Not clickable, so only a small lift; the quote mark reacts most. */
.review {
  box-shadow:
    0 1px 2px oklch(0% 0 0 / 0.02),
    0 2px 6px oklch(0% 0 0 / 0.02),
    0 4px 12px oklch(0% 0 0 / 0.02);
  transition: transform 0.3s var(--ease), box-shadow 0.45s var(--ease);
}
.review:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px oklch(0% 0 0 / 0.03),
    0 8px 18px oklch(0% 0 0 / 0.05),
    0 18px 38px oklch(0% 0 0 / 0.06);
}
.review__mark { transition: transform 0.4s var(--ease), color 0.3s var(--ease); }
.review:hover .review__mark {
  transform: scale(1.1) translateY(-2px);
  color: var(--green-100);
}
/* Decorative quote mark behind the text. */
.review__mark {
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: var(--font-head);
  font-size: 56px;
  line-height: 1;
  color: var(--green-100);
  user-select: none;
  pointer-events: none;
}

.review__stars {
  position: relative;
  display: flex;
  gap: 3px;
  color: oklch(72% 0.16 85);
  margin-bottom: 14px;
}

.review__text {
  position: relative;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 22px;
}

.review__author {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-4);
  display: flex;
  align-items: center;
  gap: 12px;
}

.review__avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
}

.review__name {
  font-size: 14.5px;
  font-weight: 700;
}

.review__course {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 9px;
  border-radius: 100px;
  background: var(--bg-alt);
  border: 1px solid var(--line-3);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
/* --- FAQ ---------------------------------------------------------------- */

.faq {
  max-width: 800px;
  margin-inline: auto;
  padding: 96px var(--pad-x);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq__item:hover { border-color: oklch(78% 0.08 142); }

.faq__heading { margin: 0; font: inherit; }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.faq__chevron {
  flex-shrink: 0;
  color: oklch(45% 0.01 100);
  transition: transform 0.3s var(--ease);
}
.faq__item.is-open .faq__chevron { transform: rotate(180deg); }
/* Closed only; on an open item it would fight the rotation. */
.faq__item:not(.is-open) .faq__question:hover .faq__chevron { transform: translateY(2px); }

/* 0fr to 1fr animates an unknown height without max-height guesses. */
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }

.faq__panel-inner { overflow: hidden; }

.faq__panel p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: oklch(45% 0.01 100);
}





/* --- Galéria (homepage preview) ----------------------------------------- */

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.gallery-head .eyebrow { margin-bottom: 14px; }

.btn-pill {
  border-radius: 100px;
  padding: 13px 22px;
  font-size: 15px;
  border-width: 1.5px;
  border-color: var(--line-3);
}

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

.photo-card {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  color: inherit;
  box-shadow:
    0 1px 2px oklch(0% 0 0 / 0.02),
    0 2px 6px oklch(0% 0 0 / 0.02),
    0 4px 12px oklch(0% 0 0 / 0.02);
  transition: transform 0.25s var(--ease), box-shadow 0.4s var(--ease);
}
.photo-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px oklch(0% 0 0 / 0.04),
    0 8px 16px oklch(0% 0 0 / 0.05),
    0 18px 40px oklch(0% 0 0 / 0.08);
}

.photo-card__media { aspect-ratio: 4 / 3; }
.photo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slower than the card lift, which reads as depth. */
  transition: transform 0.45s var(--ease);
}
.photo-card:hover .photo-card__media img { transform: scale(1.05); }

.photo-card__body {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.photo-card__title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.photo-card__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* --- Kontakt ------------------------------------------------------------ */

.kontakt {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.kontakt__details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.kontakt__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.kontakt__label svg { color: var(--green-600); }

.kontakt__value {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.kontakt__value:hover { color: var(--green-700); }

.kontakt__address {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

/* --- Map --------------------------------------------------------------- */

/* Our own OSM preview, shown at once; Google loads only on click. */
.map {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

/* Blurred so it reads as a backdrop, not as a second map style. The scale
   hides the transparent edge the blur leaves. */
.map__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.06);
}

/* The ODbL credit has to be on the map itself. */
.map__credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  margin: 0;
  padding: 3px 8px;
  border-radius: 6px;
  background: oklch(100% 0 0 / 0.78);
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-3);
}
.map__credit a {
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.map__credit a:hover { color: var(--green-800); }
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map__consent {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.map__consent svg { color: var(--green-600); }
.map__consent:hover { border-color: var(--green-600); color: var(--green-800); }

.map__consent-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  /* Fixed width, or a short button label shrinks the card and the text wraps. */
  width: min(280px, 84%);
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: oklch(100% 0 0 / 0.94);
  box-shadow: 0 6px 20px oklch(0% 0 0 / 0.18);
  color: var(--ink-3);
  text-align: center;
  font-family: var(--font-body);
}
.map__consent-box > svg { color: var(--green-600); }

.map__consent-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
}
.map__consent-note {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.map.is-loaded { background: none; }

.map__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  background: oklch(100% 0 0 / 0.9);
}
/* --- Enquiry form ------------------------------------------------------- */

.enquiry {
  background: var(--white);
  border: 1px solid oklch(91% 0.005 100);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.enquiry__submit {
  padding: 15px;
  font-size: 15.5px;
  width: 100%;
}

/* --- Sub-page shells (O nás, Galéria) ----------------------------------- */

.page-head {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 80px var(--pad-x) 48px;
}
.page-head--wide { padding-bottom: 56px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: oklch(45% 0.01 100);
  margin-bottom: 24px;
  transition: color var(--dur-fast) var(--ease);
}
.back-link:hover { color: var(--green-700); }
.back-link svg { transition: transform var(--dur-fast) var(--ease); }
.back-link:hover svg { transform: translateX(-3px); }

.page-head .eyebrow { margin-bottom: 14px; }

.page-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
}
.page-head--wide .page-title { margin-bottom: 24px; }

.page-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-3);
  margin: 0;
  max-width: 640px;
}
.page-lead--wide { max-width: 680px; }

.page-body {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--pad-x) 96px;
}
.page-body--story { padding-bottom: 88px; }

/* --- Náš príbeh --------------------------------------------------------- */

.story {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}

.story__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px;
}

.story__text {
  font-size: 16.5px;
  line-height: 1.75;
  color: oklch(35% 0.01 100);
}
.story__text + .story__text { margin-top: 20px; }

.story__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-100);
  color: oklch(41% 0.13 142);
  padding: 9px 15px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
}

.story__figure { margin: 0; }
.story__photo {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story__figure figcaption {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 12px;
}

/* --- Kto vás bude učiť -------------------------------------------------- */

.instructors-section {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 88px var(--pad-x);
}

.instructors-section__title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  text-align: center;
}

.instructors-section__lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: oklch(45% 0.01 100);
  margin: 0 auto 48px;
  text-align: center;
  max-width: 560px;
}

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

.instructor {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.instructor__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* Same initial avatar as the review cards. */
.instructor__avatar {
  width: 56px;
  height: 56px;
  border-radius: 100px;
  overflow: hidden;
  background: var(--green-100);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.instructor__name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
}
.instructor__role {
  font-size: 14px;
  color: var(--green-600);
  font-weight: 600;
  margin-top: 2px;
}
.instructor__text {
  font-size: 15.5px;
  line-height: 1.7;
  color: oklch(40% 0.01 100);
  margin: 0 0 20px;
}

.instructor__groups {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-4);
}

.group-pill {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

/* --- Na čom nám záleží -------------------------------------------------- */

.values__title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 48px;
  text-align: center;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px;
}
.value-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.value-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}
.value-card p {
  font-size: 15px;
  line-height: 1.6;
  color: oklch(45% 0.01 100);
}

/* --- Closing call to action --------------------------------------------- */

.cta {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 80px var(--pad-x);
  text-align: center;
}
.cta h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 14px;
}
.cta p {
  font-size: 16.5px;
  color: var(--ink-4);
  margin: 0 0 32px;
}
.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ==========================================================================
   Responsive. Breakpoints come from the artboards' @media blocks. The stats
   row stays three-up at every width; several grids collapse only at 480px.
   ========================================================================== */

@media (max-width: 1100px) {
  .courses { grid-template-columns: repeat(2, 1fr); }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  /* The rail only fits a single row of four. */
  .steps__rail { display: none; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .hero h1 { font-size: 40px; }

  .onas { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; }

    .stats__grid { gap: 12px; }
  .stats__item { padding-inline: 12px; }

  /* Reviews and the home gallery become a swipe row (courses are reset to
     a list below). A scroll-snap track, so it works without JS; carousel.js
     adds dots, auto-advance and the loop. Full-bleed via negative margin,
     with the next card peeking in. */
  .reviews,
  #galeria .gallery-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    --card: min(78vw, 330px);
    grid-auto-columns: var(--card);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--pad-x));
    /* Side padding lets the first and last card reach the centre (plus
       --pad-x for the negative margin). Vertical padding leaves room for
       the shadow and the reveal transform, which would be clipped. */
    padding-block: 4px 8px;
    padding-inline: calc((100% - var(--card)) / 2 + var(--pad-x));
    scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar,
  #galeria .gallery-grid::-webkit-scrollbar { display: none; }

  .reviews > *,
  #galeria .gallery-grid > * { scroll-snap-align: center; }

  /* Built by carousel.js, so no dead controls without JS. */
  .carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }
  /* The button is the touch target; the dot is drawn inside it, so the
     current one can grow without animating layout. */
  .carousel-dots button {
    display: grid;
    place-items: center;
    width: 20px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .carousel-dots button::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: var(--line-2);
    transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  }
  /* A pill, because a colour change alone is easy to miss at 7px. */
  .carousel-dots button[aria-current="true"]::before {
    transform: scaleX(2.6);
    background: var(--green-600);
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .kontakt { grid-template-columns: 1fr; gap: 32px; }

  .story { grid-template-columns: 1fr; gap: 32px; }
  /* Photo first on a phone. */
  .story__figure { order: -1; }

  .instructors { grid-template-columns: 1fr; }
  .instructors-section { padding-block: 64px; }

  .values__grid { grid-template-columns: 1fr; gap: 14px; }
  /* Icon beside the text, so the cards stay short. */
  .value-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 20px;
  }
  .value-card__icon { width: 44px; height: 44px; margin-bottom: 0; }
  .value-card h3 { font-size: 17px; margin-bottom: 6px; }
  .value-card p { font-size: 14.5px; }

  .page-title { font-size: 34px; }

  .section,
  .section--alt > .section__inner { padding-block: 72px; }
  .faq { padding-block: 72px; }
  .section-head h2, .section-title { font-size: 30px; }
  .enquiry { padding: 28px; }
}

@media (max-width: 720px) {
  .gallery-head { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 560px) {
  /* Courses stay a stacked list on a phone: choosing between them is the
     point, so none is hidden behind a swipe. */
  .courses { grid-template-columns: 1fr; gap: 16px; }

  /* Price and button on one line saves ~50px per card. */
  .course-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .course-card__price { margin-bottom: 0; }
  .course-card__cta { width: auto; padding: 11px 18px; }

  .hero h1 { font-size: 34px; }
  .hero__lead { font-size: 16.5px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cta__actions .btn { flex: 1 1 100%; }
  /* Smaller numerals so three stats fit at 390px. */
  .stats__value { font-size: 28px; }
  .stats__label { font-size: 13px; }
  .stats__item { padding-inline: 6px; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* --- Gallery filter ----------------------------------------------------- */

/* Shown by gallery.js; without JS there is no filter and every photo shows. */
.filter-bar[hidden] { display: none; }

.filter-bar {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--pad-x) 28px;
}

.filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--line-3);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--green-600); color: var(--green-800); }

.chip.is-active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: var(--white);
}

.chip__count {
  font-size: 12.5px;
  font-weight: 600;
  color: oklch(58% 0.01 100);
}
.chip.is-active .chip__count { color: oklch(100% 0 0 / 0.75); }

.photo-card[hidden] { display: none; }

.gallery-empty {
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
}
.gallery-empty[hidden] { display: none; }

/* --- Photo card as a link ----------------------------------------------- */

.photo-card__link {
  display: block;
  color: inherit;
  cursor: zoom-in;
}
.photo-card__link:hover { color: inherit; }

.photo-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.photo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: oklch(100% 0 0 / 0.92);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Lightbox ----------------------------------------------------------- */

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: oklch(18% 0.01 100 / 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  animation: lb-in 180ms var(--ease) both;
}

@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__stage {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1160px;
}

.lightbox__figure {
  margin: 0;
  flex: 1;
  min-width: 0;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
}
.lightbox__media { display: block; }

/* Faces sit in the upper part of a portrait, so the crop leans up. */
.instructor__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.lightbox__figure img {
  display: block;
  width: 100%;
  max-height: 62vh;
  aspect-ratio: auto 4 / 3;
  object-fit: contain;
}

.lightbox__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid var(--line-4);
}
.lightbox__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
}
.lightbox__meta {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}
.lightbox__counter {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.lightbox__nav,
.lightbox__close {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  border: none;
  background: oklch(100% 0 0 / 0.88);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.lightbox__nav:hover,
.lightbox__close:hover {
  background: var(--white);
  transform: scale(1.06);
}

/* display above beats the hidden attribute, so restate it. */
.lightbox__nav[hidden] { display: none; }

.lightbox__close {
  position: absolute;
  top: 32px;
  right: 32px;
}

.lightbox__hint {
  margin: 20px 0 0;
  font-size: 13px;
  color: oklch(88% 0.005 100);
}
.lightbox__hint kbd {
  display: inline-block;
  min-width: 24px;
  padding: 1px 6px;
  border: 1px solid oklch(100% 0 0 / 0.35);
  border-radius: 5px;
  font: inherit;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .lightbox { padding: 16px; }
  /* Arrows below the photo, to leave it the full width. */
  .lightbox__stage { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .lightbox__figure { flex: 1 1 100%; order: -1; }
  .lightbox__figure img { max-height: 54vh; }
  .lightbox__close { top: 16px; right: 16px; }
  .lightbox__hint { display: none; }
  .lightbox__caption { padding: 14px 16px; }
}

/* --- Gallery filter on phones ------------------------------------------- */

@media (max-width: 720px) {
  /* Scroll sideways rather than wrap onto a second row. */
  .filter-bar { padding-inline: 0; }
  .filter-bar__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px var(--pad-x) 8px;
    gap: 8px;
    /* The half-visible next chip shows it scrolls. */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .filter-bar__inner::-webkit-scrollbar { display: none; }

  .chip {
    flex-shrink: 0;
    /* 13px padding plus the line box reaches the 44px tap target. */
    padding: 13px 16px;
  }
}

/* --- "Najbližší kurz" badge on phones ----------------------------------- */

@media (max-width: 560px) {
  /* Full width, to line up with the buttons above. */
  .hero__next {
    display: flex;
    width: 100%;
    margin-top: 24px;
    padding: 14px 18px;
  }
  .hero__next-icon { width: 38px; height: 38px; }
  .hero__next-date { font-size: 18px; }
}

/* --- Consent, honeypot, ALTCHA, status ---------------------------------- */

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
  color: oklch(45% 0.01 100);
  cursor: pointer;
}
.consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green-600);
  cursor: pointer;
}
.consent a { text-decoration: underline; }

/* Honeypot: hidden from people, screen readers and the tab order. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Hidden while it solves by itself; form.js adds .is-visible on failure. */
altcha-widget {
  display: none;
  --altcha-border-width: 1px;
  --altcha-border-radius: var(--r-sm);
  --altcha-color-border: var(--line-3);
  --altcha-color-text: var(--ink-2);
  --altcha-color-base: var(--white);
  --altcha-max-width: 100%;
  font-size: 13.5px;
}

altcha-widget.is-visible { display: block; }

.enquiry__status {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  line-height: 1.5;
}
.enquiry__status[hidden] { display: none; }
.enquiry__status.is-ok {
  background: var(--green-100);
  color: oklch(35% 0.13 142);
}
.enquiry__status.is-error {
  background: #fdecea;
  color: #b42318;
}


/* --- Identification table (Prevádzkovateľ page) -------------------------- */

/* Narrow the table, not the container, so it stays aligned with the heading. */
.identity {
  max-width: 780px;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.identity dt {
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
}

.identity dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* An unfilled DOPLNIT_ placeholder must be impossible to miss. */
.identity dd.is-missing { color: #b42318; font-weight: 600; }

@media (max-width: 560px) {
  .identity { grid-template-columns: 1fr; }
  .identity dt { padding-bottom: 2px; border-bottom: none; }
  .identity dd { padding-top: 0; }
}

/* --- Legal pages -------------------------------------------------------- */

/* All three legal pages: one centred card, heading included. */
.legal-page {
  max-width: 820px;
  margin-inline: auto;
  padding: 56px var(--pad-x) 96px;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px 48px;
}

/* 44px is too big for an 820px column. */
.legal-card .page-title { font-size: 34px; margin-bottom: 16px; }
.legal-card .page-lead { font-size: 16.5px; max-width: none; margin-bottom: 12px; }
.legal-card .eyebrow { margin-bottom: 14px; }

.legal-updated {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 32px;
}

/* Summary box, tinted so it is not read as the first section. */
.legal-summary {
  background: var(--green-100);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.legal-summary__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: oklch(30% 0.10 142);
  margin-bottom: 14px;
}
.legal-summary__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-summary__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
  line-height: 1.6;
  color: oklch(30% 0.02 142);
}
.legal-summary__list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green-700);
}

.legal-section { margin-bottom: 34px; }
.legal-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.legal-section p {
  font-size: 16px;
  line-height: 1.75;
  color: oklch(35% 0.01 100);
  margin: 0;
  max-width: 660px;
}

/* Storage table. Scrolls inside its box on a phone. */
.legal-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  max-width: 720px;
}
.legal-table__head,
.legal-table__row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 0.8fr;
  gap: 16px;
  padding: 14px 18px;
}
.legal-table--two .legal-table__head,
.legal-table--two .legal-table__row {
  grid-template-columns: 1fr 2fr;
}
.legal-table__head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.legal-table__row {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  border-bottom: 1px solid oklch(94% 0.005 100);
}
.legal-table__row:last-child { border-bottom: none; }
.legal-table__name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.legal-table__life { color: var(--muted); font-size: 14px; }

/* Shown only when there is a consent to take back. */
.legal-reset {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 720px;
}
.legal-reset p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink-2);
}
.legal-reset__btn { padding: 10px 18px; font-size: 14.5px; }

.legal-contact {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal-contact h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.legal-contact p {
  font-size: 16px;
  line-height: 1.75;
  color: oklch(35% 0.01 100);
  margin: 0 0 18px;
  max-width: 660px;
}
.legal-contact p a { color: var(--green-800); font-weight: 600; }
.legal-contact__actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .legal-card { padding: 32px 22px; border-radius: 14px; }
  .legal-table__head { display: none; }
  .legal-table__row,
  .legal-table--two .legal-table__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* --- 404 ---------------------------------------------------------------- */

.notfound {
  max-width: 720px;
  margin-inline: auto;
  padding: 96px var(--pad-x) 112px;
  text-align: center;
}

.notfound__code {
  font-family: var(--font-head);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  color: var(--green-100);
  letter-spacing: -0.02em;
}

.notfound__title {
  font-size: 34px;
  font-weight: 700;
  margin: 8px 0 14px;
  letter-spacing: -0.01em;
}

.notfound__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-3);
  margin: 0 0 36px;
}

.notfound__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}

.notfound__link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.notfound__link:hover {
  border-color: var(--green-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px oklch(0% 0 0 / 0.06);
}
/* Last in the DOM but belongs in the second column. */
.notfound__link svg { grid-column: 2; grid-row: 1 / 3; color: var(--green-600); }
.notfound__link-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.notfound__link-note { font-size: 14px; color: var(--muted); }

.notfound__help {
  margin: 32px 0 0;
  font-size: 15.5px;
  color: var(--ink-3);
}
.notfound__help a { color: var(--green-800); font-weight: 600; }

@media (max-width: 560px) {
  .notfound { padding-top: 64px; padding-bottom: 80px; }
  .notfound__code { font-size: 72px; }
  .notfound__title { font-size: 27px; }
  .notfound__links { grid-template-columns: 1fr; }
}

/* Avoid a double border between the list and the contact block. */
.identity + .legal-contact {
  margin-top: 32px;
  padding-top: 0;
  border-top: none;
}

.legal-section p a { color: var(--green-800); font-weight: 600; }

/* --- Hero on a phone ---------------------------------------------------- */

/* Phone: the photo runs edge to edge at the top and fades out with a mask
   (never an overlay, which would have to match the background).

   Both wrappers become display: contents, so their children are grid items
   ordered with `order`. Anything added to them needs an order here. */
@media (max-width: 900px) {
  /* Tint under the photo's fade, not behind the photo. */
  .hero-band {
    background:
      radial-gradient(80% 38% at 50% 74%, oklch(95.5% 0.04 142 / 0.85), transparent 72%),
      linear-gradient(180deg, oklch(99.2% 0.003 142) 0%, oklch(98% 0.012 142) 55%, var(--bg) 100%);
  }

  .hero {
    position: relative;
    gap: 0;
    padding-top: 22px;
  }
  .hero__intro,
  .hero__media { display: contents; }

  .hero__photo {
    position: absolute;
    top: 0;
        left: calc(-1 * var(--pad-x));
    right: calc(-1 * var(--pad-x));
    height: 270px;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  }
  /* A wide, short box with the photo pinned low: the sky is cropped, not the
     cars, which sit in the lower half of most shots. */
  .hero__photo img { object-position: center 85%; }

  .hero h1,
  .hero__lead,
  .hero__actions,
  .hero__next { position: relative; z-index: 1; }

  /* The badge stays over the photo and the slogan goes below it, both
     inside the one h1: the gap is what the photo takes up. */
  .hero h1 { margin: 0 0 18px; }
  .hero h1 .hero__badge { margin-bottom: 250px; }
  .hero__lead { margin: 0 0 24px; }
  .hero__next { margin-top: 22px; }
}

@media (max-width: 560px) {
    .hero__actions { gap: 10px; }
  .hero__lead { line-height: 1.6; }
}

/* --- Faint washes elsewhere --------------------------------------------- */

/* Very faint washes (under 3% chroma), each from its own direction. */

/* Legal pages and the 404. */
/* From the top right. */
.legal-page,
.notfound {
  background: radial-gradient(70% 42% at 88% 0%, oklch(97.4% 0.02 142), transparent 68%);
}

/* Diagonal, unlike the page behind it. */
.legal-card {
  background: linear-gradient(145deg, oklch(99.5% 0.005 142) 0%, var(--white) 46%);
}

/* From the bottom left. */
.enquiry {
  background:
    radial-gradient(60% 38% at 0% 100%, oklch(97% 0.022 142 / 0.6), transparent 62%),
    var(--white);
}

/* Sideways. */
.footer-partners {
  background: linear-gradient(90deg, oklch(97% 0.014 142 / 0.7) 0%, transparent 58%);
}

/* --- Hero on a wide screen ---------------------------------------------- */

/* Text left, framed photo right, the next-course card across the photo's
   bottom corner to tie the two halves together. */
@media (min-width: 901px) {
  .hero {
    grid-template-columns: 1fr 1.08fr;
    gap: 56px;
    align-items: center;
    padding-block: 84px 96px;
  }

  .hero__media { position: relative; }

  .hero__photo {
    border-radius: 20px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 18px 44px oklch(0% 0 0 / 0.14);
  }

  .hero__next {
    position: absolute;
    left: -28px;
    bottom: -26px;
    margin: 0;
    box-shadow: 0 10px 30px oklch(0% 0 0 / 0.13);
  }
}

/* --- Headline balance --------------------------------------------------- */

/* No orphaned last word. Older browsers just wrap as usual. */
h1, h2, .section-head p, .cta p {
  text-wrap: balance;
}
.hero__lead, .page-lead, .story__text {
  text-wrap: pretty;
}
