/* R3_VIDEO_CLEAN: one ivory/green system. A is the release candidate. B only
   replaces glass tokens in the separately generated comparison output. */
:root {
  --page: #f4f1e8;
  --glass-rgb: 255, 254, 249;
  --glass-alpha: .72;
  --glass-blur: 3px;
  --heading: #203b30;
  --body: #284537;
  --accent: #315b47;
  --accent-hover: #234735;
  --line: rgba(32, 59, 48, .24);
  --shadow: 0 8px 24px rgba(25, 49, 37, .08);
  --radius: 22px;
  --radius-small: 12px;
  --shell-max: 1120px;
  --shell-gutter: 28px;
  --panel-padding: 30px;
  --theme-gap: 30px;
  --site-header-height: 76px;
  --header-height: var(--site-header-height);
  --video-width: min(430px, 38vw, calc((100svh - var(--header-height) - 48px) * .5625));
  --video-right: calc(max(var(--shell-gutter), (100vw - var(--shell-max)) / 2) + var(--panel-padding));
  color-scheme: light;
}
body[data-glass-variant="B"] {
  --glass-alpha: .66;
  --glass-blur: 2px;
  --heading: #203b30;
  --body: #203b30;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
body.nav-open, body.gallery-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: var(--heading); text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
img, video { display: block; max-width: 100%; }
figure, p, h1, h2, h3, ul, ol { margin: 0; }
p + p { margin-top: 14px; }
h1, h2, h3 { color: var(--heading); font-weight: 760; letter-spacing: -.025em; overflow-wrap: normal; }
h1 { font-size: 30px; line-height: 1.2; }
h2 { font-size: 34px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }
strong { color: var(--heading); }
small { font-size: .875rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
:is(section, [id], .legal-section) { scroll-margin-top: calc(var(--header-height) + 20px); }
.shell, .legal-shell {
  width: min(calc(100% - var(--shell-gutter) * 2), var(--shell-max));
  margin-inline: auto;
  min-width: 0;
}
.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; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); padding: 10px 16px; background: var(--page); color: var(--heading); border: 2px solid var(--accent); border-radius: var(--radius-small); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

/* One crisp portrait video on a calm ivory canvas: no enlarged peripheral
   poster and no edge mask. The error poster uses the same natural rectangle. */
.ambient-video { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--page); }
.ambient-video video, .ambient-video::before { position: absolute; top: calc(var(--header-height) + 24px); right: var(--video-right); width: var(--video-width); height: calc(var(--video-width) * 16 / 9); border-radius: var(--radius-small); }
.ambient-video::before { content: none; background: url("../media/hero-training-poster.jpg") center / contain no-repeat; }
.ambient-video video { max-width: none; object-fit: contain; object-position: center; }
.ambient-video::after { content: ""; position: absolute; inset: 0; background: rgba(244, 241, 232, .08); }
.video-fallback .ambient-video::before { content: ""; }
.video-fallback .ambient-video video { visibility: hidden; }

/* Header: brand, desktop navigation, then compact language/video/menu. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; background: rgba(255, 254, 249, .96); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--heading); text-decoration: none; }
.brand-logo { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.brand-copy { display: grid; min-width: 0; gap: 2px; }
.brand-copy strong { font-size: 13px; line-height: 1.3; letter-spacing: 0; }
.brand-copy small { font-size: 11px; line-height: 1.3; }
.header-controls { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; font-size: 13px; font-weight: 680; line-height: 1.35; text-decoration: none; }
.primary-nav > a:hover { text-decoration: underline; }
.primary-nav > .header-contact { margin-left: 4px; padding-inline: 12px; background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-small); color: #fff; }
.primary-nav > .header-contact:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.video-toggle, .nav-toggle, .utility-control { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--page); color: var(--heading); font-weight: 750; line-height: 1; text-decoration: none; }
.video-toggle:hover, .nav-toggle:hover, .utility-control:hover { border-color: var(--accent); background: #e8eee7; color: var(--heading); }
.video-toggle [data-video-toggle-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.video-toggle [data-video-toggle-icon] { font-size: 19px; }
.nav-toggle { display: none; flex-direction: column; gap: 6px; }
.nav-toggle > span:not(.sr-only) { width: 20px; height: 2px; background: currentColor; transition: transform .15s ease; }
.nav-toggle[aria-expanded="true"] > span:nth-last-child(2) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-4px) rotate(-45deg); }
.header-language { position: relative; flex: 0 0 auto; }
.language-menu { position: relative; }
.language-menu > summary { list-style: none; font-size: 13px; }
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu > summary::after { content: none; }
.language-toggle { gap: 5px; width: 56px; flex-basis: 56px; min-height: 44px; }
.language-globe { display: block; flex: 0 0 16px; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("../icons/globe.svg") center / contain no-repeat; mask: url("../icons/globe.svg") center / contain no-repeat; }
.language-menu[open] > summary { border-color: var(--accent); background: #e8eee7; }
.language-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 45; display: grid; min-width: 176px; max-height: calc(100svh - var(--header-height) - 16px); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #fffef9; box-shadow: var(--shadow); }
.language-popover a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; font-weight: 650; line-height: 1.35; text-decoration: none; }
.language-popover a:hover, .language-popover a[aria-current="page"] { color: var(--heading); background: #e8eee7; }
.primary-nav > .menu-back-top { display: none; }
.back-to-top { display: inline-flex; position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 44px; height: 44px; z-index: 30; background: var(--page); color: var(--heading); box-shadow: var(--shadow); }
.back-to-top img { width: 22px; height: 22px; opacity: 0; }
.back-to-top::before { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("../icons/arrow-up.svg") center / contain no-repeat; mask: url("../icons/arrow-up.svg") center / contain no-repeat; }
.footer-back-top { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* First viewport is a quiet introduction; min-height never clips a translation. */
.hero { min-height: 100vh; min-height: 100svh; padding-top: calc(var(--header-height) + 24px); padding-bottom: 32px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--video-width) + var(--panel-padding)); gap: 40px; min-height: calc(var(--video-width) * 16 / 9); align-items: center; }
.hero-copy { max-width: 31rem; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(var(--glass-rgb), var(--glass-alpha)); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--shadow); }
.eyebrow, .card-kicker { color: var(--heading); font-size: 12px; font-weight: 780; line-height: 1.4; letter-spacing: .085em; text-transform: uppercase; }
.hero .eyebrow { margin-bottom: 12px; }
.hero h1 { font-size: 30px; line-height: 1.2; }
main > section:not(.hero) { margin-bottom: var(--theme-gap); }
.theme-card, .footer-inner, .gateway-card { padding: var(--panel-padding); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(var(--glass-rgb), var(--glass-alpha)); color: var(--body); box-shadow: var(--shadow); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); opacity: 1; }
.theme-card :is(p, li, small, label, span) { color: inherit; }
.theme-card :is(h1, h2, h3, strong, .eyebrow, .card-kicker) { color: var(--heading); }
.section-heading { margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-intro { max-width: 65ch; margin-top: 14px; }
.section-heading-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.section-heading-split .section-intro { margin-top: 14px; }

/* Trainer has two meaningful columns, never a third empty button column. */
.trainer-grid { display: block; }
.trainer-panel > .eyebrow, .trainer-copy > .eyebrow { margin-bottom: 8px; }
.trainer-panel > h2, .trainer-copy > h2 { margin-bottom: 24px; }
.trainer-overview { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 30px; align-items: start; }
.trainer-photo, .trainer-visual { width: 100%; max-width: 320px; margin: 0; }
.trainer-photo img, .trainer-visual img { width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: var(--radius-small); }
.trainer-content { min-width: 0; }
.trainer-media-links { display: grid; justify-items: start; gap: 6px; margin-bottom: 20px; }
.trainer-media-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 14px; border: 1px solid var(--accent); border-radius: var(--radius-small); color: var(--heading); font-size: 15px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.trainer-media-links a:hover { color: var(--heading); background: #e8eee7; border-color: var(--accent-hover); }
.trainer-biography p, .trainer-closing { max-width: 68ch; }
.trainer-quote { padding-left: 16px; border-left: 3px solid var(--accent); color: var(--heading); }
.trust-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.trust-group h3 { margin-bottom: 14px; }
.trainer-facts { display: grid; gap: 12px; padding: 0; list-style: none; }
.trainer-facts li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
.trainer-facts li > span:first-child { font-size: 18px; line-height: 1.6; }
.trainer-credentials { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.trainer-credentials .qualification-group { margin-top: 0; padding-top: 0; border: 0; }
.qualification-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.qualification-grid > article { min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.qualification-grid > article > :is(strong, span, small) { display: block; }
.qualification-grid > article strong { margin-bottom: 4px; }
.qualification-grid > article small { margin-top: 4px; font-size: 14px; }
.trainer-closing { margin-top: 22px; }

/* Internal grids are transparent rows of a single outer panel. */
.format-grid, .price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.format-card, .price-card { min-width: 0; padding: 0 24px; background: transparent; border: 0; box-shadow: none; }
.format-card:first-child, .price-card:first-child { padding-left: 0; }
.format-card:last-child, .price-card:last-child { padding-right: 0; }
.format-card + .format-card, .price-card + .price-card { border-left: 1px solid var(--line); }
.format-card h3 { margin: 0; font-size: 20px; }
.format-card .card-kicker { margin: 12px 0; font-size: 11px; line-height: 1.5; letter-spacing: .07em; }
.format-card p:last-child { max-width: 65ch; }
.format-number { display: none; }
.training-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.training-summary p { min-width: 0; margin: 0; padding-inline: 20px; }
.training-summary p:first-child { padding-left: 0; }
.training-summary p:last-child { padding-right: 0; }
.training-summary p + p { border-left: 1px solid var(--line); }
.training-summary :is(strong, span) { display: block; }
.training-summary strong { margin-bottom: 6px; font-size: 13px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
.training-end { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr); align-items: center; gap: 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.training-important { min-width: 0; background: transparent; border: 0; }
.training-important .card-kicker { margin-bottom: 8px; }
.training-important h3 { margin-bottom: 10px; }
.training-important p { max-width: 68ch; }
.format-booking { display: flex; min-width: 0; margin: 0; justify-content: flex-end; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 1px solid var(--accent); border-radius: var(--radius-small); background: var(--accent); color: #fff; font-weight: 720; line-height: 1.4; text-align: center; text-decoration: none; }
.contact-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.format-booking .contact-button { max-width: 100%; white-space: normal; font-size: 15px; }
.method-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; list-style: none; counter-reset: none; }
.method-flow li { display: block; min-width: 0; padding: 0 22px; list-style: none; }
.method-flow li::marker { content: ""; }
.method-flow li::before, .method-flow li::after { content: none; }
.method-flow li:first-child { padding-left: 0; }
.method-flow li:last-child { padding-right: 0; }
.method-flow li + li { border-left: 1px solid var(--line); }
.method-flow strong { display: block; margin-bottom: 8px; font-size: 17px; line-height: 1.4; }
.method-flow small { display: block; font-size: 16px; line-height: 1.55; }
.pricing h2 { font-size: 30px; line-height: 1.2; }
.price-label { min-height: 3.2em; font-weight: 700; color: var(--heading); }
.price-value { margin-top: 12px; color: var(--heading); font-size: 34px; font-weight: 780; line-height: 1.15; letter-spacing: -.03em; }
.price-unit { margin-top: 8px; font-size: 16px; line-height: 1.55; }
.practical-grid { display: block; }
.location-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 30px; }
.location-copy .card-kicker { margin-bottom: 8px; }
.location-copy h2 { margin-bottom: 16px; }
.location-options-title { font-weight: 700; }
.location-options { margin-top: 10px; padding-left: 20px; }
.location-options li + li { margin-top: 6px; }
.location-visual { min-width: 0; }
.map-link { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-small); background: transparent; text-decoration: none; }
.map-link img { width: 100%; height: auto; aspect-ratio: 1; }
.map-link > span { display: block; padding: 10px 14px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--heading); }
.location-map figcaption, .map-credit { margin-top: 8px; font-size: 13px; line-height: 1.5; }
.map-credit a { display: inline-block; padding-block: 4px; }
/* Six native disclosure rows, one calm glass panel; no accordion scripting. */
.faq-list { display: block; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding-block: 14px; list-style: none; color: var(--heading); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-icon { flex: 0 0 20px; width: 20px; text-align: center; font-size: 22px; line-height: 1; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item > p { max-width: 70ch; padding: 0 36px 18px 0; overflow-wrap: anywhere; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px; }
.contact-copy .eyebrow { margin-bottom: 8px; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy > p { max-width: 65ch; }
.contact-prompts { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 16px 0 0; margin-top: 16px; border-top: 1px solid var(--line); list-style: none; }
.contact-prompts li { font-size: 14px; font-weight: 700; }
.contact-time { margin-bottom: 14px; font-weight: 650; }
.messenger-actions { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.messenger-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--accent); border-radius: var(--radius-small); background: var(--accent); color: #fff; font-weight: 740; line-height: 1.4; text-align: center; text-decoration: none; }
.theme-card .messenger-button span { color: #fff; }
.messenger-button:hover { color: #fff; background: var(--accent-hover); border-color: var(--accent-hover); }
.messenger-button img { flex: 0 0 24px; width: 24px; height: 24px; }
.contact-username { display: block; font-size: 12px; font-weight: 500; }
.contact-email { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 16px; font-size: 15px; }
.contact-email a { min-height: 30px; font-weight: 700; overflow-wrap: anywhere; }
.contact-socials { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact-socials-label { display: block; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-social-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--heading); font-size: 14px; font-weight: 650; line-height: 1.3; text-decoration: none; }
.contact-social-link:hover { background: #e8eee7; color: var(--heading); border-color: var(--accent); }
.contact-social-link img { width: 20px; height: 20px; filter: brightness(0); }
.contact-pending { margin-top: 16px; font-size: 13px; line-height: 1.6; }
.site-footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); background: transparent; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; }
.footer-brand { display: grid; gap: 2px; }
.footer-brand strong { font-size: 17px; }
.footer-brand small { font-size: 13px; }
.footer-inner > p { margin: 0; font-size: 13px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-contact-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.footer-contact-link:hover { background: var(--accent-hover); color: #fff; }
.footer-contact-link img { width: 20px; height: 20px; }

/* Gallery/form get symmetric inner fields, no stale utility-dock lane. */
.gallery-page-main { padding-top: calc(var(--header-height) + 24px); }
.gallery-return { margin-bottom: 18px; }
.gallery-return a, .gallery-section-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.gallery-return a { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #fffef9; }
.gallery-page-main .theme-card :is(h1, h2) { margin-bottom: 16px; font-size: 34px; line-height: 1.2; }
.gallery-page-main .theme-card p { max-width: 68ch; }
.gallery-empty, .reviews-empty { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.gallery-section-link { margin-top: 16px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.gallery-grid figure, .gallery-grid a, .gallery-grid button { min-width: 0; }
.gallery-grid img { width: 100%; height: auto; object-fit: contain; border-radius: var(--radius-small); }
.gallery-grid button { display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-small); background: transparent; overflow: hidden; }
.gallery-grid figcaption { margin-top: 8px; font-size: 14px; }
.review-form { max-width: 42rem; margin-top: 20px; }
.review-form fieldset { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; opacity: 1; }
.review-form label { display: block; font-weight: 700; }
.review-form :is(input, textarea, select) { display: block; width: 100%; min-width: 0; min-height: 44px; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fffef9; color: var(--heading); line-height: 1.5; -webkit-text-fill-color: var(--heading); opacity: 1; }
.review-form textarea { min-height: 144px; resize: vertical; }
.review-form button { min-height: 48px; padding: 10px 16px; border: 1px solid var(--accent); border-radius: var(--radius-small); background: var(--accent); color: #fff; font-weight: 700; }
.review-form :disabled { cursor: not-allowed; }
.review-form button:disabled { background: #e8eee7; color: var(--heading); border-color: var(--line); opacity: 1; }
.review-form [aria-invalid="true"] { outline: 2px solid #833429; outline-offset: 1px; }
.review-status, .review-error { margin-top: 14px; font-weight: 650; }
.review-list { display: grid; gap: 20px; margin-top: 20px; }
.review-card { padding-top: 18px; border-top: 1px solid var(--line); }
.review-card h3 { margin-bottom: 8px; }
.review-card p { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-stars { color: var(--heading); }
.gallery-dialog { padding: 0; width: min(960px, calc(100vw - 32px)); max-height: calc(100svh - 32px); border: 1px solid var(--line); border-radius: var(--radius); background: #fffef9; color: var(--heading); }
.gallery-dialog::backdrop { background: rgba(18, 34, 27, .82); }
.gallery-dialog-media img { width: 100%; height: auto; max-height: calc(100svh - 144px); object-fit: contain; }
.gallery-dialog :is(button, a) { min-width: 44px; min-height: 44px; }
.gallery-dialog-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; }
.gallery-dialog-close { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--heading); }
.gallery-dialog figcaption { padding: 10px 16px; }

/* Accepted legal text and gate/404 remain content-complete and readable. */
.legal-page { background: var(--page); }
.legal-header { border-bottom: 1px solid var(--line); background: #fffef9; }
.legal-header .legal-shell { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-block: 18px; }
.legal-brand { font-size: 20px; font-weight: 780; text-decoration: none; }
.legal-language, .legal-document-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legal-language a, .legal-document-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; }
.legal-language a[aria-current="page"], .legal-document-nav a[aria-current="page"] { text-decoration-thickness: 3px; }
.legal-page main { padding-block: 28px; }
.legal-document { padding: var(--panel-padding); border: 1px solid var(--line); border-radius: var(--radius); background: #fffef9; }
.legal-document h1 { font-size: 34px; }
.legal-document h2 { font-size: 26px; margin-bottom: 14px; }
.legal-document h3 { margin-bottom: 10px; }
.legal-updated { margin-top: 12px; font-size: 14px; }
.legal-section { max-width: 70ch; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-section p, .legal-section li { overflow-wrap: anywhere; }
.legal-section ul, .legal-section ol { margin-top: 14px; padding-left: 24px; }
.legal-section li + li { margin-top: 8px; }
.legal-operator { display: grid; gap: 4px; margin-top: 18px; font-style: normal; }
.legal-operator a { padding-block: 4px; overflow-wrap: anywhere; }
.legal-toc, .legal-objection { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #f4f1e8; }
.legal-toc ol { margin-top: 8px; }
.legal-toc a, .legal-policy-links a { display: inline-block; padding-block: 6px; }
.legal-footer { padding-block: 16px 28px; border-top: 1px solid var(--line); }
.language-gateway { background: linear-gradient(rgba(244, 241, 232, .72), rgba(244, 241, 232, .72)), url("../media/hero-training-poster.jpg") center / cover fixed no-repeat; }
.gateway-shell { width: min(calc(100% - 32px), 640px); margin: 0 auto; padding-block: 40px; }
.gateway-brand { display: grid; gap: 4px; margin-bottom: 28px; color: var(--heading); }
.gateway-brand strong { font-size: 26px; }
.gateway-brand span { font-size: 15px; }
.gateway-card h1 { font-size: 26px; line-height: 1.35; }
.gateway-card h1 > span { display: block; }
.gateway-card h1 > span + span { margin-top: 12px; }
.gateway-card .eyebrow { margin-bottom: 12px; }
.gateway-languages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.gateway-languages a { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #fffef9; font-weight: 700; text-decoration: none; }
.gateway-languages a:hover { background: #e8eee7; border-color: var(--accent); color: var(--heading); }
.gateway-legal { margin-top: 20px; }
.utility-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.utility-card { width: min(100%, 640px); padding: var(--panel-padding); border: 1px solid var(--line); border-radius: var(--radius); background: #fffef9; box-shadow: var(--shadow); }
.utility-card h1 { margin: 12px 0 18px; }
.utility-card .contact-button { margin-top: 24px; }
.utility-legal { margin-top: 20px; }

@media (min-width: 1264px) { .back-to-top { right: max(20px, calc((100vw - var(--shell-max)) / 2 - 60px)); bottom: 26px; } }
@media (max-width: 1099px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .header-controls { grid-column: 2; grid-row: 1; }
  .nav-toggle { display: inline-flex; }
  .js .primary-nav { display: none; position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; z-index: 41; overflow-y: auto; padding: 20px var(--shell-gutter) max(28px, env(safe-area-inset-bottom)); background: #fffef9; align-content: start; gap: 0; }
  .js .primary-nav.is-open { display: grid; }
  .js .primary-nav > a { justify-content: flex-start; min-height: 52px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .js .primary-nav > .header-contact { justify-content: center; margin: 16px 0 0; padding: 14px; border-bottom: 0; }
  .js .primary-nav > .menu-back-top { display: flex; }
  .method-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-flow li { padding: 20px; }
  .method-flow li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .method-flow li:nth-child(even) { padding-right: 0; }
  .method-flow li:nth-child(-n+2) { padding-top: 0; }
  .method-flow li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .method-flow li:nth-last-child(-n+2) { padding-bottom: 0; }
  html:not(.js) .site-header { position: relative; }
  html:not(.js) .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  html:not(.js) .primary-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .hero { padding-top: 24px; }
  html:not(.js) .gallery-page-main { padding-top: 24px; }
}
@media (max-width: 959px) {
  :root { --shell-gutter: 24px; --panel-padding: 24px; --radius: 20px; }
  h2 { font-size: 30px; }
  .gallery-page-main .theme-card :is(h1, h2) { font-size: 30px; }
  .trainer-overview { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .trainer-photo, .trainer-visual { width: min(100%, 320px); }
  .training-end { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .format-booking { justify-content: flex-start; }
  .location-layout, .contact-card { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .location-visual { width: min(100%, 520px); }
  .contact-actions { max-width: 600px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; align-items: start; }
  .hero-copy { max-width: min(30rem, calc(100% - 30px)); }
  .ambient-video video, .ambient-video::before { top: var(--header-height); right: calc((100vw - min(100vw, (100svh - var(--header-height)) * .5625)) / 2); width: min(100vw, calc((100svh - var(--header-height)) * .5625)); height: calc(min(100vw, (100svh - var(--header-height)) * .5625) * 16 / 9); border-radius: 0; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .format-grid, .price-grid { grid-template-columns: minmax(0, 1fr); }
  .format-card, .price-card { padding: 20px 0; }
  .format-card:first-child, .price-card:first-child { padding-top: 0; }
  .format-card:last-child, .price-card:last-child { padding-bottom: 0; }
  .format-card + .format-card, .price-card + .price-card { border-left: 0; border-top: 1px solid var(--line); }
  .price-label { min-height: 0; }
  .training-summary { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .training-summary p { padding: 16px 0; }
  .training-summary p:first-child { padding-top: 0; }
  .training-summary p:last-child { padding-bottom: 0; }
  .training-summary p + p { border-left: 0; border-top: 1px solid var(--line); }
  .qualification-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .qualification-grid > article + article { padding-top: 18px; border-top: 1px solid var(--line); }
  .footer-inner { display: grid; gap: 16px; }
  .footer-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :root { --shell-gutter: 16px; --panel-padding: 18px; --radius: 18px; --theme-gap: 28px; }
  .header-inner { gap: 8px; padding-block: 8px; }
  .header-controls { gap: 4px; }
  .brand { gap: 7px; }
  .brand-logo { flex-basis: 36px; width: 36px; height: 36px; border-radius: 8px; }
  .brand-copy strong { font-size: 12px; line-height: 1.3; }
  .brand-copy small { font-size: 11px; line-height: 1.3; }
  h1, .hero h1 { font-size: 24px; }
  h2, .gallery-page-main .theme-card :is(h1, h2) { font-size: 26px; }
  .hero { padding-top: calc(var(--header-height) + 20px); padding-bottom: 24px; }
  .hero-copy { width: 100%; max-width: 100%; padding: 16px 18px; }
  .hero .eyebrow { font-size: 10px; margin-bottom: 10px; }
  .trainer-panel > h2, .trainer-copy > h2 { margin-bottom: 20px; }
  .trainer-photo, .trainer-visual { width: min(100%, 300px); }
  .method-flow { grid-template-columns: minmax(0, 1fr); }
  .method-flow li:nth-child(n) { padding: 18px 0; border-left: 0; }
  .method-flow li:first-child { padding-top: 0; }
  .method-flow li:last-child { padding-bottom: 0; }
  .method-flow li + li { border-top: 1px solid var(--line); }
  .pricing h2 { font-size: 25px; }
  .pricing .price-value { font-size: 32px; }
  .format-card h3, .training-important h3 { font-size: 19px; }
  .section-heading { margin-bottom: 20px; }
  .gallery-page-main { padding-top: calc(var(--header-height) + 20px); }
  .contact-button, .format-booking .contact-button { width: 100%; }
  .contact-card { gap: 24px; }
  .contact-prompts { gap: 8px 12px; }
  .contact-email { display: block; }
  .contact-email span, .contact-email a { display: block; }
  .contact-email a { padding-block: 6px; font-size: 14px; }
  .legal-header .legal-shell { padding-block: 14px; gap: 8px 16px; }
  .legal-brand { width: 100%; }
  .legal-document h1 { font-size: 28px; }
  .legal-document h2 { font-size: 24px; }
  .legal-language { gap: 4px 12px; }
  .gateway-shell { padding-block: 24px; }
  .gateway-card h1 { font-size: 23px; }
  .gateway-languages { gap: 10px; }
  .utility-page { padding: 16px; }
}
@media (max-width: 479px) { .gallery-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 359px) {
  .header-inner { grid-template-columns: minmax(0, 1fr); }
  .header-controls { grid-column: 1; grid-row: 2; justify-self: end; }
  html:not(.js) .header-inner { grid-template-columns: minmax(0, 1fr); }
  html:not(.js) .primary-nav { grid-column: 1; grid-row: 3; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .hero-copy { max-width: min(30rem, calc(100% - var(--video-width) - 40px)); }
  .ambient-video video, .ambient-video::before { top: calc(var(--header-height) + 24px); right: var(--video-right); width: var(--video-width); height: calc(var(--video-width) * 16 / 9); }
}
.no-backdrop-support { --glass-alpha: .82; }
body[data-glass-variant="B"].no-backdrop-support { --glass-alpha: .82; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-alpha: .82; }
  body[data-glass-variant="B"] { --glass-alpha: .82; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .ambient-video { display: none; }
  body, .theme-card, .hero-copy, .footer-inner, .gateway-card, .language-popover, .site-header, .js .primary-nav { background: Canvas; color: CanvasText; box-shadow: none; backdrop-filter: none; }
  .theme-card, .footer-inner, .hero-copy, .gateway-card, .messenger-button, .footer-contact-link, .contact-button, .utility-control, .video-toggle, .nav-toggle { border: 1px solid CanvasText; }
  :is(h1, h2, h3, p, strong, a, button, span, small) { color: CanvasText; }
  .messenger-button, .footer-contact-link, .contact-button { background: ButtonFace; color: ButtonText; }
  :focus-visible { outline-color: Highlight; }
}
