/*
Theme Name: OG Pilates
Theme URI: https://ogpilates.pl/
Author: OG Pilates
Description: Autorski motyw studia OG Pilates w Latchorzewie. Przeniesiony 1:1 z projektu statycznego: paleta oliwka + blush na kremowym tle, Cormorant Garamond i Jost. Tresc stron budowana natywnymi blokami Gutenberga.
Version: 1.4.5
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ogpilates
Tags: classic, blog, custom-menu, translation-ready
*/

/* ==========================================================================
   00. KROJE PISMA (hostowane lokalnie)
   Pobrane z Google Fonts i serwowane z wlasnego serwera: bez polaczenia do
   fonts.googleapis.com i fonts.gstatic.com, bez przekazywania adresow IP
   odwiedzajacych do Google (patrz 08-CSS-I-JS.md) i bez blokujacego zapytania
   do obcego hosta na sciezce krytycznej.
   Pliki to fonty zmienne - jeden plik obsluguje caly zakres wag.
   Zawieraja tylko potrzebne znaki (lacina, polskie diakrytyki, typografia
   i waluty): po odchudzeniu 103 kB zamiast 184 kB.
   Adresy plikow niosa numer wersji (?v=) - pliki leza w pamieci podrecznej
   przegladarki rok, wiec po ich podmianie trzeba ten numer podniesc
   (tu i w inc/performance.php, gdzie stoi zapowiedz preload).
   ========================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/jost-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/jost-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ==========================================================================
   OG PILATES — arkusz stylów
   --------------------------------------------------------------------------
   Spis treści:
   01. Zmienne (design system)      06. Stopka
   02. Reset i podstawy             07. Animacje i przejścia
   03. Typografia                   08. Sekcje strony głównej
   04. Komponenty                   09. Podstrony
   05. Nagłówek i nawigacja         10. Responsywność i reduced-motion

   Kolory, kroje pisma i rytm sekcji zmienisz w jednym miejscu — sekcja 01.
   ========================================================================== */

/* ==========================================================================
   01. ZMIENNE — design system
   ========================================================================== */

:root {
  /* --- Paleta marki --- */
  --olive:        #4E5B35;  /* stopka, główne CTA, ciemne sekcje */
  --olive-dark:   #3C4729;  /* hover przycisku olive */
  --olive-light:  #6A7A4B;  /* akcenty na ciemnym tle */
  --blush:        #E2A18C;  /* akcent: linie, ikony, wyróżnienia */
  --blush-deep:   #9C5741;  /* ciemniejszy blush — tekst na jasnym tle (kontrast WCAG AA) */
  --blush-light:  #F0C6B7;  /* jasny blush — tekst i etykiety na oliwkowym tle */
  --blush-soft:   #F6E7E1;  /* tło jasnoróżowych paneli */
  --cream:        #FBF5F0;  /* tło sekcji jasnych */
  --white:        #FFFFFF;
  --ink:          #2B2B26;  /* tekst podstawowy */
  --muted:        #5A5A52;  /* tekst pomocniczy (kontrast WCAG AA) */

  /* --- Kolory pochodne --- */
  --line:       rgba(226, 161, 140, .45);   /* cienka linia blush */
  --line-soft:  rgba(43, 43, 38, .10);      /* neutralna linia */
  --line-light: rgba(255, 255, 255, .22);   /* linia na ciemnym tle */
  --ink-70:     rgba(43, 43, 38, .86);
  --white-75:   rgba(255, 255, 255, .88);

  /* --- Typografia --- */
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(3.2rem, 9.2vw, 8.4rem);   /* nagłówek hero */
  --fs-h1:      clamp(2.3rem, 5vw, 4.1rem);
  --fs-h2:      clamp(1.95rem, 3.4vw, 3rem);
  --fs-h3:      clamp(1.4rem, 2.1vw, 1.85rem);
  --fs-h4:      clamp(1.15rem, 1.5vw, 1.35rem);
  --fs-body:    clamp(1rem, .35vw + .92rem, 1.1rem);
  --fs-small:   .9rem;
  --fs-label:   .78rem;

  --track-wide:  .18em;   /* nawigacja, przyciski, etykiety */
  --track-wider: .30em;   /* podtytuł hero, eyebrow */

  /* --- Rytm --- */
  --section-y: clamp(80px, 10vw, 140px);
  --gutter:    clamp(20px, 4vw, 56px);
  --maxw:      1440px;
  --maxw-text: 720px;

  /* --- Detale --- */
  --radius:      2px;
  --radius-card: 12px;   /* zaokrąglenie kart z artykułami i zajęciami */
  --radius-btn:  999px;  /* zaokrąglenie przycisków — 999px daje kształt pigułki */
  --radius-pill: 999px;
  --shadow-soft: 0 18px 50px -34px rgba(43, 43, 38, .5);

  /* --- Ruch --- */
  --ease:      cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur:       .4s;
  --dur-slow:  .7s;

  --header-h: 92px;
}

/* ==========================================================================
   02. RESET I PODSTAWY
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* przycina schowane menu mobilne, żeby nie tworzyło poziomego scrolla */
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html { overflow-x: clip; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

::selection { background: var(--blush); color: var(--white); }

/* Widoczny focus — dostępność klawiaturowa */
:focus-visible {
  outline: 2px solid var(--blush-deep);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.on-dark :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible { outline-color: var(--blush); }

/* Kotwice (#kontakt, #reformer…) nie mogą chować się pod nagłówkiem */
[id] { scroll-margin-top: calc(var(--header-h) + 28px); }

/* Link „przejdź do treści” */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 12px 22px;
  background: var(--olive);
  color: var(--white);
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  transition: top .25s var(--ease-soft);
}
.skip-link:focus { top: 16px; }

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

/* ==========================================================================
   03. TYPOGRAFIA
   ========================================================================== */

.display,
.h1, .h2, .h3, .h4,
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: .02em;
}

.display { font-size: var(--fs-display); }
.h1, h1 { font-size: var(--fs-h1); }
.h2, h2 { font-size: var(--fs-h2); line-height: 1.16; }
.h3, h3 { font-size: var(--fs-h3); line-height: 1.22; font-weight: 400; }
.h4, h4 { font-size: var(--fs-h4); line-height: 1.3; font-weight: 400; }

/* Etykieta nad nagłówkiem */
.eyebrow {
  display: block;
  margin-bottom: 22px;
  color: var(--blush-deep);
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  line-height: 1.4;
}
.on-dark .eyebrow,
.section--olive .eyebrow { color: var(--blush-light); }

.lead {
  font-size: clamp(1.08rem, .5vw + .98rem, 1.25rem);
  line-height: 1.75;
  color: var(--ink-70);
}

.muted { color: var(--muted); }
.accent { color: var(--blush-deep); }
.on-dark .accent { color: var(--blush-light); }
.hero .accent { color: var(--blush); }

.label {
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  line-height: 1.4;
}

.prose p + p { margin-top: 1.15em; }
.prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease-soft);
}
.prose a:hover { border-color: var(--blush-deep); }

/* Krótka pozioma linia blush */
.rule {
  display: block;
  width: 88px;
  height: 1px;
  border: 0;
  margin: 28px 0;
  background: var(--blush);
}
.rule--center { margin-inline: auto; }

/* Rząd tagów rozdzielonych kropkami */
.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  list-style: none;
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.tags li { position: relative; }
.tags li + li::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--blush);
}

/* ==========================================================================
   04. KOMPONENTY
   ========================================================================== */

/* --- Siatka i sekcje --- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 1120px; }
.container--text { max-width: var(--maxw-text); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(52px, 6vw, 84px); }
.section--cream { background: var(--cream); }
.section--blush { background: var(--blush-soft); }
.section--white { background: var(--white); }
.section--olive { background: var(--olive); color: var(--white); }
.section--olive .lead,
.on-dark .lead { color: var(--white-75); }
.section--olive .muted,
.on-dark .muted { color: var(--white-75); }

.section-head { max-width: 660px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 20px; }

/* --- Przyciski --- */
.btn {
  --btn-bg: var(--olive);
  --btn-fg: var(--white);
  --btn-fill: var(--olive-dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 19px 34px;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius-btn);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft),
              background-color var(--dur) var(--ease-soft);
}
/* wypełnienie wjeżdżające od lewej */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); }

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease-soft);
}
.btn:hover .arrow,
.btn:focus-visible .arrow { transform: translateX(5px); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-fill: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover,
.btn--outline:focus-visible { color: var(--white); }

.btn--blush {
  --btn-bg: var(--blush);
  --btn-fg: var(--ink);
  --btn-fill: var(--blush-deep);
}
.btn--blush:hover,
.btn--blush:focus-visible { color: var(--white); }

.btn--light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-fill: var(--white);
  border-color: rgba(255, 255, 255, .55);
}
.btn--light:hover,
.btn--light:focus-visible { color: var(--olive); border-color: var(--white); }

.btn--pill { border-radius: var(--radius-pill); padding-inline: 30px; }
.btn--sm { padding: 15px 26px; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* --- Linki --- */
.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  color: var(--ink);
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--blush);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease);
}
.link-arrow:hover::after,
.link-arrow:focus-visible::after { transform: scaleX(1); }
.link-arrow .arrow { transition: transform var(--dur) var(--ease-soft); }
.link-arrow:hover .arrow,
.link-arrow:focus-visible .arrow { transform: translateX(5px); }
.on-dark .link-arrow,
.section--olive .link-arrow { color: var(--white); }

/* Podkreślenie rozwijane od lewej */
.link-underline { position: relative; padding-bottom: 2px; }
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: .6;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease);
}
.link-underline:hover::after,
.link-underline:focus-visible::after { transform: scaleX(1); }

/* --- Media: obraz z placeholderem w kolorach marki --- */
/* Dopóki w assets/img nie ma zdjęcia, widać delikatny gradient z monogramem. */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #F7E9E3 0%, #EFD6CC 48%, #E4C0B2 100%);
}
.media::after {
  content: "OG";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: .14em;
  color: rgba(156, 87, 65, .34);
  pointer-events: none;
}
.media > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-soft),
              transform .7s var(--ease-soft);
}
.media > img.is-loaded { opacity: 1; }
.media > img.is-broken { opacity: 0; }

.media--zoom:hover > img,
a:hover .media--zoom > img,
.card:hover .media--zoom > img { transform: scale(1.04); }

/* Proporcje kadrów */
.ratio-1-1  { aspect-ratio: 1 / 1; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-3-4  { aspect-ratio: 3 / 4; }
.ratio-3-2  { aspect-ratio: 3 / 2; }
.ratio-2-3  { aspect-ratio: 2 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

/* --- Ikony liniowe --- */
.icon {
  width: 54px;
  height: 54px;
  flex: none;
  stroke: var(--blush);
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 24px; height: 24px; }
.icon--md { width: 32px; height: 32px; }

/* --- Karta --- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;   /* przycina zdjęcie do zaokrąglonych rogów */
  transition: transform var(--dur-slow) var(--ease),
              border-color var(--dur) var(--ease-soft),
              box-shadow var(--dur-slow) var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
/* flex + margin-top:auto na linku wyrównuje „Czytaj →” do dołu każdej karty */
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px clamp(22px, 1.8vw, 30px) 28px;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.card__meta .accent { color: var(--blush-deep); }
.card__title { margin-bottom: 12px; }
.card__text { color: var(--ink-70); margin-bottom: 22px; }
.card__body .link-arrow { margin-top: auto; }

/* --- Lista z „ptaszkami” --- */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-70);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 14px; height: 1px;
  background: var(--blush);
}
.on-dark .checklist li,
.section--olive .checklist li { color: var(--white-75); }

/* --- Lista definicji (parametry zajęć) --- */
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
  margin: 32px 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.specs dt {
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.specs dd { font-size: 1.02rem; }

/* ==========================================================================
   05. NAGŁÓWEK I NAWIGACJA
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft),
              box-shadow var(--dur) var(--ease-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
  padding-block: 14px;
  transition: min-height var(--dur) var(--ease-soft);
}

/* Wersja jasna: podstrony oraz strona główna po przescrollowaniu */
.site-header--solid,
.site-header.is-stuck {
  background: var(--cream);
  border-bottom-color: var(--line);
}
.site-header.is-stuck .site-header__inner { min-height: 76px; }

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  line-height: 1;
}
.site-header--solid .logo,
.site-header.is-stuck .logo { color: var(--ink); }

.logo__mark {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 300;
  letter-spacing: .01em;
  color: var(--blush);
  /* na hero: kontur zamiast pełnego wypełnienia */
  -webkit-text-stroke: 1px var(--blush);
  -webkit-text-fill-color: transparent;
  transition: -webkit-text-fill-color var(--dur) var(--ease-soft);
}
.site-header--solid .logo__mark,
.site-header.is-stuck .logo__mark { -webkit-text-fill-color: var(--blush); }

.logo__text { display: flex; flex-direction: column; gap: 5px; }
.logo__name {
  font-size: .95rem;
  font-weight: 300;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.logo__sub {
  font-size: .64rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .72;
}

/* --- Nawigacja --- */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.3vw, 38px);
  list-style: none;
}
.nav__link {
  position: relative;
  display: block;
  padding: 6px 0;
  color: var(--white);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--dur) var(--ease-soft);
}
.site-header--solid .nav__link,
.site-header.is-stuck .nav__link { color: var(--ink); }

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--blush);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-header__cta { flex: none; }

/* --- Hamburger --- */
.burger {
  display: none;
  position: relative;
  z-index: 130;
  width: 46px; height: 46px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger__box { position: relative; width: 26px; height: 13px; }
.burger__line {
  position: absolute;
  left: 0;
  width: 100%; height: 1px;
  background: var(--white);
  transition: transform var(--dur) var(--ease-soft),
              background-color var(--dur) var(--ease-soft);
}
.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { bottom: 0; }
.site-header--solid .burger__line,
.site-header.is-stuck .burger__line { background: var(--ink); }

.burger[aria-expanded="true"] .burger__line { background: var(--ink); }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }

/* --- Menu mobilne (pełny ekran, wysuwane z prawej) --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px var(--gutter) 48px;
  background: var(--cream);
  transform: translateX(100%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .5s var(--ease), visibility 0s;
}
.mobile-nav__list { list-style: none; display: grid; gap: 2px; }
.mobile-nav__list li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.mobile-nav.is-open .mobile-nav__list li { opacity: 1; transform: none; }
.mobile-nav__link {
  display: block;
  padding: 13px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 7vw, 2.2rem);
  font-weight: 300;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav__link[aria-current="page"] { color: var(--blush-deep); }
.mobile-nav__foot {
  margin-top: 38px;
  display: grid;
  gap: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s var(--ease) .4s, transform .45s var(--ease) .4s;
}
.mobile-nav.is-open .mobile-nav__foot { opacity: 1; transform: none; }
.mobile-nav__contact {
  display: grid;
  gap: 6px;
  font-size: var(--fs-small);
  letter-spacing: .05em;
  color: var(--muted);
}

body.nav-open { overflow: hidden; }

/* ==========================================================================
   06. STOPKA
   ========================================================================== */

.site-footer {
  background: var(--olive);
  color: var(--white);
}

/* Cztery kolumny: marka, nawigacja, zajęcia, kontakt */
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr 1.15fr;
  gap: clamp(26px, 2.8vw, 52px);
  padding-block: clamp(40px, 4vw, 60px) clamp(26px, 2.8vw, 38px);
}

/* --- Kolumna marki --- */
.footer-brand .logo { color: var(--white); }
.footer-brand .logo__mark { -webkit-text-fill-color: var(--blush); }

.footer-brand__text {
  max-width: 330px;
  margin-top: 18px;
  color: var(--white-75);
  font-size: .95rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  list-style: none;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft),
              transform var(--dur) var(--ease-soft);
}
.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--blush);
  border-color: var(--blush);
  transform: translateY(-2px);
}
.footer-social .icon {
  width: 19px;
  height: 19px;
  stroke: var(--white);
  transition: stroke var(--dur) var(--ease-soft);
}
.footer-social a:hover .icon,
.footer-social a:focus-visible .icon { stroke: var(--olive-dark); }

/* --- Kolumny z linkami --- */
.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--blush-light);
}

.footer-col__list {
  list-style: none;
  display: grid;
  gap: 9px;
}
.footer-col__list a {
  position: relative;
  display: inline-block;
  color: var(--white-75);
  font-size: .95rem;
  line-height: 1.45;
  transition: color var(--dur) var(--ease-soft);
}
.footer-col__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--blush);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease);
}
.footer-col__list a:hover,
.footer-col__list a:focus-visible { color: var(--white); }
.footer-col__list a:hover::after,
.footer-col__list a:focus-visible::after { transform: scaleX(1); }

/* --- Kolumna kontaktowa --- */
.footer-contact {
  display: grid;
  gap: 9px;
  font-style: normal;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--white-75);
}
.footer-contact a { transition: color var(--dur) var(--ease-soft); }
.footer-contact a:hover,
.footer-contact a:focus-visible { color: var(--white); }
.footer-contact__hours {
  margin-top: 3px;
  padding-top: 13px;
  border-top: 1px solid var(--line-light);
  font-size: var(--fs-small);
}

/* --- Dolny pas --- */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 19px;
  border-top: 1px solid var(--line-light);
  font-size: var(--fs-small);
  color: var(--white-75);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

/* ==========================================================================
   07. ANIMACJE I PRZEJŚCIA
   ========================================================================== */

/* --- Przejście między podstronami --- */
/* Reguly przejscia miedzy podstronami usuniete przy migracji.
   Zostawiony tu transform: translateY(0) czynil z <body> kontener
   dla elementow position: fixed - przez to przyklejony naglowek,
   menu mobilne i pasek postepu czytania pozycjonowaly sie wzgledem
   calego dokumentu zamiast okna przegladarki. */

/* --- Pojawianie się przy scrollu --- */
/* Stan ukryty dodajemy tylko wtedy, gdy JavaScript działa (klasa .js na <html>).
   Bez JS cała treść jest widoczna od razu. */
.reveal {
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Wejście treści hero --- */
.hero__inner > * {
  opacity: 0;
  transform: translateY(26px);
  animation: heroIn .9s var(--ease) forwards;
}
.hero__inner > *:nth-child(1) { animation-delay: .10s; }
.hero__inner > *:nth-child(2) { animation-delay: .20s; }
.hero__inner > *:nth-child(3) { animation-delay: .28s; }
.hero__inner > *:nth-child(4) { animation-delay: .36s; }
.hero__inner > *:nth-child(5) { animation-delay: .44s; }
.hero__inner > *:nth-child(6) { animation-delay: .52s; }
.hero__inner > *:nth-child(7) { animation-delay: .60s; }

@keyframes heroIn { to { opacity: 1; transform: none; } }

/* --- Bardzo powolny zoom tła hero --- */
@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* ==========================================================================
   08. SEKCJE STRONY GŁÓWNEJ
   ========================================================================== */

/* --- 8.1 Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  min-height: 92svh;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(60px, 8vw, 110px);
  background: var(--ink);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: slowZoom 20s ease-out forwards;
}
/* ciemny gradient od lewej — dla czytelności tekstu */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 25, 22, .82) 0%, rgba(31, 25, 22, .62) 38%, rgba(31, 25, 22, .18) 72%, rgba(31, 25, 22, .1) 100%),
    linear-gradient(180deg, rgba(31, 25, 22, .45) 0%, rgba(31, 25, 22, 0) 35%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  color: var(--white);
}
/* treść hero trzyma się lewej krawędzi kontenera i ma własną szerokość */
.hero__inner > * { max-width: 760px; }
/* Nagłówek hero: nazwa studia + podtytuł w jednym <h1> (SEO). */
.hero__heading { display: block; margin: 0; font-size: inherit; }
.hero__heading > .hero__title { display: block; }
/* podtytuł zostaje bezszeryfowy — w <h1> dziedziczyłby krój szeryfowy */
.hero__heading > .hero__subtitle {
  display: block;
  font-family: var(--font-sans);
  line-height: 1.75;
}

.hero__title {
  font-size: var(--fs-display);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .02em;
}
/* Podtytuł łamiemy sami: nazwa w pierwszej linii, miejscowości w drugiej —
   dzięki temu lista miast nigdy nie rozpada się w połowie. */
.hero__subtitle-line { display: block; }
.hero__subtitle {
  margin-top: 14px;
  font-size: clamp(.95rem, 1.6vw, 1.5rem);
  font-weight: 300;
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--white);
}
.hero .rule { margin-block: 26px; }
.hero__tags { color: var(--white); margin-bottom: 26px; }
.hero__text {
  /* mieści pierwsze zdanie w jednej linii — patrz podział na <span> w index.html */
  max-width: 640px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, .94);
  font-size: clamp(1.05rem, .45vw + .96rem, 1.18rem);
  line-height: 1.7;
}
.hero__text span { display: block; }

/* --- 8.2 Pasek wyróżników --- */
.features { background: var(--cream); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(44px, 5vw, 66px);
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-inline: clamp(12px, 1.4vw, 24px);
}
.feature + .feature { border-left: 1px solid var(--line); }
.feature:first-child { padding-left: 0; }
.feature:last-child { padding-right: 0; }
.feature .icon { width: 64px; height: 64px; }
.feature__title {
  margin-bottom: 12px;
  /* bez tego <h2> dziedziczy serif z reguły globalnej */
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.feature__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

/* --- 8.3 O nas (panel + siatka zdjęć) --- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  align-items: center;
  background: var(--white);
}
.about__panel {
  align-self: stretch;
  background: var(--blush-soft);
  padding: clamp(56px, 6.5vw, 96px) clamp(28px, 4.2vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about__panel .h2 { margin-bottom: 8px; }
.about__panel .prose { margin-block: 26px 34px; color: var(--ink-70); }
.about__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.about__gallery .media { aspect-ratio: 3 / 4; }

/* --- 8.4 Zajęcia — skrót --- */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
}

/* --- 8.5 Cytat / manifest --- */
.manifest {
  position: relative;
  overflow: hidden;
  background: var(--olive);
  color: var(--white);
  text-align: center;
}
.manifest__bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  opacity: .16;
  background-image: url("https://ogpilates.pl/wp-content/uploads/2026/09/studio-wejscie.jpg");
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.manifest .container { position: relative; z-index: 1; }
.manifest__quote {
  max-width: 940px;
  margin-inline: auto;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.32;
  letter-spacing: .01em;
}
.manifest__author {
  display: block;
  margin-top: 32px;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-style: normal;
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--blush-light);
}

/* --- 8.6 Grafik — zajawka --- */
.schedule-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px 48px;
  padding: clamp(38px, 4vw, 56px) clamp(28px, 4vw, 60px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.schedule-teaser__text { max-width: 620px; }
.schedule-teaser__text p { margin-top: 12px; color: var(--ink-70); }

/* --- 8.7 Blog — zajawka --- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 3vw, 44px);
}

/* --- 8.8 Komunikat po wysłaniu formularza --- */
.form-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 2px solid var(--olive);
  background: rgba(78, 91, 53, .07);
  font-size: .98rem;
  color: var(--ink);
}
.form-message[hidden] { display: none; }

/* ==========================================================================
   09. PODSTRONY
   ========================================================================== */

/* --- 9.1 Hero podstrony (niższy) --- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 58vh;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: clamp(48px, 6vw, 84px);
  background: var(--ink);
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 25, 22, .78) 0%, rgba(31, 25, 22, .5) 55%, rgba(31, 25, 22, .22) 100%);
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--white);
}
.page-hero__inner .lead { color: rgba(255, 255, 255, .93); margin-top: 20px; }
.page-hero .eyebrow { color: var(--blush-light); }

/* wersja bez zdjęcia — jasny pas */
.page-hero--plain {
  min-height: 0;
  background: var(--cream);
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: clamp(48px, 6vw, 80px);
  align-items: center;
}
.page-hero--plain .page-hero__inner { color: var(--ink); }
.page-hero--plain .page-hero__inner .lead { color: var(--ink-70); }
.page-hero--plain .eyebrow { color: var(--blush-deep); }

/* Okruszki */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  list-style: none;
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.page-hero--plain .breadcrumbs { color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

/* --- 9.2 Bloki naprzemienne --- */
.alt-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(32px, 5vw, 86px);
}
.alt-block + .alt-block { margin-top: clamp(64px, 8vw, 120px); }
.alt-block--rev .alt-block__media { order: 2; }
.alt-block__body { max-width: 560px; }
.alt-block__media .media { width: 100%; }
/* Przycisk na końcu bloku potrzebuje oddechu — bez tego przykleja się
   do listy korzyści albo do ostatniego akapitu. */
.alt-block__body .checklist + p,
.alt-block__body .checklist + .btn-row,
.alt-block__body .prose + p,
.alt-block__body .prose + .btn-row,
.alt-block__body .specs + p,
.alt-block__body .specs + .btn-row { margin-top: clamp(30px, 3vw, 44px); }

.alt-block__num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--blush-deep);
}

/* --- 9.2b Karty rodzajów zajęć --- */
.classes-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2.4vw, 40px);
}
.class-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 2.6vw, 46px);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  transition: transform var(--dur-slow) var(--ease),
              border-color var(--dur) var(--ease-soft),
              box-shadow var(--dur-slow) var(--ease);
}
.class-card:hover {
  transform: translateY(-5px);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.class-card__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--blush-deep);
}
.class-card__lead {
  margin-top: 14px;
  color: var(--ink-70);
  font-size: 1.08rem;
  line-height: 1.7;
}
.class-card__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 26px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.class-card__specs dt {
  margin-bottom: 3px;
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.class-card__specs dd { font-size: 1.04rem; line-height: 1.45; }
.class-card .checklist { font-size: .95rem; gap: 10px; }
.class-card .eyebrow { display: block; margin-top: 8px; }
.class-card .fineprint { margin-top: -6px; }
.class-card .btn { margin-top: 28px; align-self: flex-start; }
.class-card .checklist + .btn,
.class-card__specs + .btn,
.class-card .fineprint + .btn { margin-top: auto; }

/* --- 9.3 Akordeon (FAQ) --- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  transition: color var(--dur) var(--ease-soft);
}
.accordion__trigger:hover { color: var(--blush-deep); }
.accordion__icon {
  position: relative;
  flex: none;
  width: 16px; height: 16px;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 15px; height: 1px;
  margin: -.5px 0 0 -7.5px;
  background: var(--blush-deep);
  transition: transform var(--dur) var(--ease-soft);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(0deg); }

.accordion__panel {
  overflow: hidden;
  height: 0;
  transition: height .45s var(--ease-soft);
}
.accordion__panel-inner {
  padding-bottom: 28px;
  max-width: 780px;
  color: var(--ink-70);
}

/* --- 9.4 Cennik --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
  align-items: start;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(30px, 3vw, 42px) clamp(24px, 2.4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform var(--dur-slow) var(--ease), border-color var(--dur) var(--ease-soft);
}
.price-card:hover { transform: translateY(-4px); border-color: var(--line); }
.price-card--featured {
  border: 1px solid var(--blush);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}
.price-card__badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  padding: 7px 16px;
  background: var(--blush);
  color: var(--ink);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius-pill);
}
.price-card__name {
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  font-weight: 300;
  line-height: 1;
}
.price-card__price span {
  font-family: var(--font-sans);
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--muted);
}
.price-card__valid {
  margin-top: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
}
.price-card .checklist { margin-block: 24px 30px; font-size: 1rem; }
.price-card .btn { margin-top: auto; }

/* --- 9.5 Tabela cen / informacji --- */
.table-wrap { overflow-x: auto; }
.data-table { min-width: 560px; font-size: 1rem; }
.data-table th,
.data-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.data-table thead th {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line);
}
.data-table tbody tr:hover { background: var(--cream); }
.data-table td:last-child,
.data-table th:last-child { text-align: right; white-space: nowrap; }

.fineprint {
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--muted);
}
.fineprint li { margin-bottom: 8px; }

/* --- 9.6 Grafik --- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-pill {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  transition: background-color var(--dur) var(--ease-soft),
              color var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft);
}
.filter-pill:hover { border-color: var(--blush); background: var(--blush-soft); }
.filter-pill[aria-pressed="true"] {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
}

.schedule-table {
  min-width: 980px;
  font-size: .95rem;
  table-layout: fixed;
  height: 1px;   /* pozwala kafelkom rozciągnąć się na całą wysokość komórki */
}
.schedule-table tbody td { height: 100%; }
.schedule-table th,
.schedule-table td {
  border: 1px solid var(--line-soft);
  vertical-align: top;
  padding: 0;
}
.schedule-table thead th {
  padding: 16px 10px;
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.schedule-table tbody th {
  width: 88px;
  padding: 16px 12px;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 400;
  text-align: left;
  color: var(--muted);
  background: var(--cream);
}
.slot {
  display: block;
  padding: 13px 14px 15px;
  height: 100%;
  border-left: 2px solid var(--blush);
  background: var(--cream);
  transition: opacity .35s var(--ease-soft);
}
.slot__name {
  display: block;
  font-size: .95rem;
  line-height: 1.35;
  letter-spacing: .02em;
  margin-bottom: 5px;
}
.slot__meta {
  display: block;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--muted);
}
.is-dimmed { opacity: .14; }
.is-hidden-row { display: none; }

/* Mobilna wersja grafiku — lista dni */
.schedule-days { display: none; }
.day-block { border-bottom: 1px solid var(--line); }
.day-block__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.day-block__count { color: var(--muted); font-size: .78rem; }
.day-block__panel { overflow: hidden; height: 0; transition: height .45s var(--ease-soft); }
.day-block__list { display: grid; gap: 10px; padding-bottom: 22px; list-style: none; }
.day-block__list .slot { border-radius: var(--radius); }
.day-block__time {
  display: block;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 4px;
}

/* --- 9.7 Blog --- */
.post-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  margin-bottom: clamp(46px, 5vw, 76px);
  padding-bottom: clamp(46px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
}
.post-featured .card__body { padding: 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 46px);
}

/* --- 9.8 Wpis blogowy --- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 150;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--blush);
}
.article { padding-block: clamp(48px, 6vw, 84px) var(--section-y); }
.article__body { max-width: var(--maxw-text); margin-inline: auto; }
.article__body > * + * { margin-top: 1.3em; }
.article__body p { color: var(--ink-70); }
.article__body h2 {
  margin-top: 1.8em;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
}
.article__body h3 {
  margin-top: 1.6em;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
}
.article__body ul,
.article__body ol { padding-left: 22px; color: var(--ink-70); }
.article__body li { margin-bottom: 10px; }
.article__body figure { margin-block: 2.4em; }
.article__body figcaption {
  margin-top: 12px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.pullquote {
  margin-block: 2.6em;
  padding: 32px 0 32px 34px;
  border-left: 1px solid var(--blush);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.page-hero--plain .article__meta { color: var(--muted); }
.author-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 3em;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.author-box__avatar {
  width: 64px; height: 64px;
  flex: none;
  border-radius: 50%;
  background: var(--blush-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--blush-deep);
}
.next-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

/* --- 9.9 Zespół --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 46px);
}
.team-card__role {
  margin-bottom: 14px;
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--blush-deep);
}
.team-card__certs {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
}

/* --- 9.10 Wartości / liczby --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 60px);
}
.value .icon { width: 64px; height: 64px; }
.value__title { margin: 24px 0 12px; }
.value p { color: var(--ink-70); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  text-align: center;
}
.stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--white);
}
.stat__icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-inline: auto;
}
.stat__label {
  display: block;
  margin-top: 14px;
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--white-75);
}

/* --- 9.11 Formularze --- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 26px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > label {
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: 1.02rem;
  font-weight: 400;
  transition: border-color var(--dur) var(--ease-soft);
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; cursor: pointer; background-image: none; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--blush); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--blush-deep); outline-offset: 2px; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #A63E27; }
.field__error {
  font-size: var(--fs-small);
  color: #A63E27;
  min-height: 0;
}
.field__error:empty { display: none; }

/* Zgoda RODO: siatka zamiast flexa — checkbox zawsze zostaje w pierwszej
   kolumnie, obok tekstu, i nigdy nie przeskakuje nad niego. */
.field--check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
}
.field--check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--olive);
  cursor: pointer;
}
.field--check label {
  font-size: var(--fs-small);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}
.field--check .field__error { grid-column: 2; }

/* --- 9.12 Kontakt --- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
/* Formularz na własnym panelu — delikatnie oddziela go od danych kontaktowych */
.contact-form-panel {
  padding: clamp(24px, 2.6vw, 40px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-list { list-style: none; display: grid; gap: 26px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 26px; height: 26px; margin-top: 3px; }
.contact-list span {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.hours {
  list-style: none;
  display: grid;
  gap: 4px;
  max-width: 360px;   /* godzina ma stać blisko nazwy dnia */
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
  line-height: 1.45;
}
.hours li:last-child { border-bottom: 0; }
.hours span { color: var(--muted); }

/* --- 9.13 Dokumenty (polityka, regulamin) --- */
.doc { max-width: var(--maxw-text); margin-inline: auto; }
.doc h2 { margin-top: 2em; margin-bottom: .5em; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.doc h3 { margin-top: 1.6em; margin-bottom: .4em; font-size: 1.2rem; }
.doc p, .doc li { color: var(--ink-70); }
.doc p + p { margin-top: 1em; }
.doc ul, .doc ol { padding-left: 22px; margin-top: .8em; }
.doc li { margin-bottom: 8px; }

/* --- 9.14 CTA na dole podstron --- */
.cta-band { text-align: center; }
.cta-band .h2 { max-width: 720px; margin-inline: auto; }
.cta-band .lead { max-width: 620px; margin: 22px auto 36px; }
.cta-band .btn-row { justify-content: center; }

/* ==========================================================================
   10. RESPONSYWNOŚĆ
   ========================================================================== */

@media (max-width: 1280px) {
  .nav__list { gap: 20px; }
  .logo__mark { font-size: 2.4rem; }
}

@media (max-width: 1200px) {
  /* przy większym tekście cztery kolumny cennika robią się za wąskie */
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


@media (max-width: 1520px) {
  /* poniżej tej szerokości tytuły wyróżników łamałyby się na dwie linie,
     więc zamiast czterech wąskich kolumn pokazujemy układ 2×2 */
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 44px 0; }
  .feature:nth-child(odd) { padding-left: 0; }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(even) { padding-right: 0; }
}

@media (max-width: 1080px) {
  :root { --header-h: 80px; }

  .nav { display: none; }
  .site-header__cta { display: none; }
  .burger { display: flex; }
  .site-header__inner { justify-content: space-between; }

  .about { grid-template-columns: 1fr; }
  .about__gallery { grid-template-columns: repeat(2, 1fr); }
  .about__gallery .media { aspect-ratio: 4 / 3; }

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

@media (max-width: 1024px) {
  .classes-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid > *:nth-child(3) { display: none; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid { grid-template-columns: 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .post-featured { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__text { max-width: 520px; }

  .alt-block,
  .alt-block--rev { grid-template-columns: 1fr; gap: 30px; }
  .alt-block--rev .alt-block__media { order: 0; }
  .alt-block__body { max-width: none; }
}

@media (max-width: 860px) {
  .hero { min-height: 88vh; }
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(31, 25, 22, .55) 0%, rgba(31, 25, 22, .72) 100%);
  }
  .next-posts { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  /* Grafik: tabela → lista dni */
  .schedule-table-wrap { display: none; }
  .schedule-days { display: block; }
}

@media (max-width: 640px) {
  /* Lista miejscowości ma zmieścić się w jednej linii także na telefonie —
     dlatego na wąskich ekranach schodzimy z trackingu i minimalnie ze stopnia pisma. */
  .hero__subtitle .hero__subtitle-line + .hero__subtitle-line {
    font-size: .88rem;
    letter-spacing: .1em;
  }

  .classes-cards { grid-template-columns: 1fr; }
  .class-card__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features__grid { grid-template-columns: 1fr; gap: 34px; }
  .feature { border-left: 0 !important; padding-inline: 0; }

  .classes-grid,
  .posts-grid,
  .blog-grid,
  .team-grid { grid-template-columns: 1fr; }
  .posts-grid > *:nth-child(3) { display: flex; }

  .pricing-grid { grid-template-columns: 1fr; }
  .price-card--featured { margin-top: 18px; }

  .specs { grid-template-columns: 1fr; gap: 16px; }

  /* Galeria O nas: poziomy scroll ze snapowaniem */
  .about__gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }
  .about__gallery .media {
    flex: 0 0 78%;
    scroll-snap-align: start;
    aspect-ratio: 4 / 3;
  }

  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .btn { width: 100%; }
  .btn-row .btn { width: auto; }
  .schedule-teaser { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .logo__mark { font-size: 2.1rem; }
  .logo__name { font-size: .82rem; letter-spacing: .28em; }
  .hero__subtitle { letter-spacing: .22em; }
  .hero__subtitle .hero__subtitle-line + .hero__subtitle-line { font-size: .84rem; letter-spacing: .07em; }
  .about__gallery .media { flex-basis: 86%; }
}

@media (min-width: 1100px) {
  /* Karty zajęć są tu na tyle szerokie, że cała specyfikacja mieści się w jednym rzędzie. */
  .class-card__specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1500px) {
  /* Szerokie monitory: kontener rośnie razem z ekranem, zamiast zatrzymywać się
     na sztywnej szerokości. Dzięki temu treść — i wielki napis w hero — trzyma się
     lewej krawędzi zamiast uciekać na środek ekranu.
     Chcesz węższy układ? Zmniejsz 92vw. Szerszy? Podnieś do 95vw. */
  :root {
    --maxw:   max(1520px, 92vw);
    --gutter: clamp(56px, 3vw, 80px);
  }
  .hero__inner > * { max-width: 880px; }
}
}

/* ==========================================================================
   11. OGRANICZONY RUCH — pełne poszanowanie ustawień systemowych
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .hero__inner > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero__bg img { animation: none !important; transform: none !important; }
  .manifest__bg { transform: none !important; }
  .read-progress { display: none; }
}

/* Wydruk */
@media print {
  .site-header, .mobile-nav, .read-progress, .btn, .site-footer { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ==========================================================================
   12. INTEGRACJA Z WORDPRESSEM
   Dopisane przy migracji. Powyzej arkusz jest identyczny z wersja statyczna.
   ========================================================================== */

/* --- Pasek administratora nie moze zaslaniac przyklejonego naglowka --- */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-nav  { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-nav  { top: 46px; }
}

/* --- Bloki Gutenberga: zdejmujemy domyslne marginesy i szerokosci --- */
/* UWAGA: nie zerujemy tu .wp-block-group - ta klasa siedzi na kazdej sekcji
   projektu i kasowala odstepy z arkusza (np. margines pod .section-head).
   Marginesy dokladane przez uklad WordPressa maja zerowa specyficznosc
   (:where), wiec nasze reguly i tak nad nimi wygrywaja. */
.wp-block-columns,
.wp-block-column { margin-block: 0; }

.wp-block-group.section > .container { width: 100%; }

/* Obraz: figure z bloku Obraz ma zachowywac sie jak .media z wersji statycznej */
.wp-block-image { margin: 0; }
.wp-block-image figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: 10px; }
.media.wp-block-image > img,
.wp-block-image.media > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Przyciski: blok Przyciski ma wygladac jak .btn z wersji statycznej */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.wp-block-button { margin: 0; }
.wp-block-button__link.btn,
.wp-block-button__link.btn:hover,
.wp-block-button__link.btn:focus-visible {
  border-radius: var(--radius-btn);
  text-decoration: none;
}
.wp-block-button__link.btn { padding: 15px 30px; }
.wp-block-button__link.btn--sm { padding: 11px 22px; }

/* Listy: blok Lista wewnatrz naszych sekcji */
.wp-block-list { margin: 0 0 18px; padding-left: 1.2em; }
.wp-block-list.checklist { padding-left: 0; }

/* Kolumny na waskich ekranach skladaja sie w pion (domyslne WP < 782px) */
@media (max-width: 781px) {
  .wp-block-columns { gap: 0; }
}

/* --- Contact Form 7 --- */
.form-grid .wpcf7-form-control-wrap { display: block; }
.wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: var(--fs-small);
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--olive); color: var(--olive); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output { border-color: var(--blush-deep); color: var(--blush-deep); }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--blush-deep); }
.wpcf7-spinner { display: inline-block; vertical-align: middle; }

/* --- Nawigacja generowana przez wp_nav_menu --- */
.nav__list .menu-item,
.mobile-nav__list .menu-item,
.footer-col__list .menu-item { list-style: none; }

/* --- Paginacja archiwow --- */
.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 56px;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.pagination .page-numbers {
  padding: 10px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--olive); border-color: var(--olive); color: #fff; }

/* --- Strona 404 i wyniki wyszukiwania --- */
.page-hero--plain + .section .search-form { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Lista definicji (dt/dd) odwzorowana blokami Gutenberga --------------
   Gutenberg nie ma bloku listy definicji, wiec karta zajec sklada specyfikacje
   z grup i akapitow. Aliasujemy je na te same style, co dt/dd. */
.class-card__specs .spec__label {
  margin: 0 0 3px;
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.class-card__specs .spec__value {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.45;
}

/* Blok Cytat renderuje podpis jako <cite> bez klasy - aliasujemy na .manifest__author. */
.manifest__quote cite {
  display: block;
  margin-top: 32px;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-style: normal;
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--blush-light);
}

/* --- Obraz z bloku Gutenberga wewnatrz kadru .media ---------------------
   Blok Obraz owija <img> w <figure>, wiec regula .media > img go nie lapie
   i kadr sie rozjezdza (object-fit: fill zamiast cover). Powtarzamy te same
   zasady dla wariantu z <figure>. */
.media > figure {
  margin: 0;
  width: 100%;
  height: 100%;
}
/* Blok Obraz z linkiem renderuje figure > a > img, wiec sięgamy potomkiem,
   a nie sztywnym lancuchem dzieci. */
.media > figure a {
  display: block;
  width: 100%;
  height: 100%;
}
.media > figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-soft),
              transform .7s var(--ease-soft);
}
.media > figure img.is-loaded { opacity: 1; }
.media > figure img.is-broken { opacity: 0; }

.media--zoom:hover > figure img,
a:hover .media--zoom > figure img,
.card:hover .media--zoom > figure img { transform: scale(1.04); }

/* Bez JavaScriptu obraz musi byc widoczny od razu. */
html:not(.js) .media > img,
html:not(.js) .media > figure img { opacity: 1; }

/* --- Ikony sekcji ------------------------------------------------------
   Wektory przeniesione ze stron statycznych. Trzymamy je w arkuszu, a nie
   w tresci, bo edytor blokow wycina znaczniki <svg> przy zapisie.
   Kolor i grubosc kreski jak w regule .icon: #E2A18C, 1.2. */

/* Pasek wyroznikow na stronie glownej (4) */
.features__grid .feature::before {
  content: "";
  display: block;
  flex: none;
  width: 64px;
  height: 64px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.features__grid .feature:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2219%22%20r%3D%223.4%22%3E%3C%2Fcircle%3E%20%3Cpath%20d%3D%22M14.4%2021.6c3.8%201.4%206.8%203.4%209.6%206.4%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M24%2028c4.2-3.2%208.6-4.8%2013.6-4.8%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M7%2036h34%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M13%2036c1.6-3.8%204.6-5.8%208.4-5.4%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }
.features__grid .feature:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2213%22%20r%3D%225.4%22%3E%3C%2Fcircle%3E%20%3Cpath%20d%3D%22M13%2039c0-8.4%204.9-14.4%2011-14.4S35%2030.6%2035%2039%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M24%2024.6V39%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }
.features__grid .feature:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2216%22%20r%3D%225%22%3E%3C%2Fcircle%3E%20%3Ccircle%20cx%3D%2211%22%20cy%3D%2219%22%20r%3D%223.6%22%3E%3C%2Fcircle%3E%20%3Ccircle%20cx%3D%2237%22%20cy%3D%2219%22%20r%3D%223.6%22%3E%3C%2Fcircle%3E%20%3Cpath%20d%3D%22M15%2037c0-5.6%204-9.6%209-9.6s9%204%209%209.6%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M5%2035c0-4.4%202.6-7.4%206.6-7.4%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M43%2035c0-4.4-2.6-7.4-6.6-7.4%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }
.features__grid .feature:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2224%22%20r%3D%2215%22%3E%3C%2Fcircle%3E%20%3Ccircle%20cx%3D%2224%22%20cy%3D%2224%22%20r%3D%228.4%22%3E%3C%2Fcircle%3E%20%3Ccircle%20cx%3D%2224%22%20cy%3D%2224%22%20r%3D%222.4%22%3E%3C%2Fcircle%3E%3C%2Fsvg%3E"); }

/* Trzy zasady na stronie O nas (3) */
.values-grid .value::before {
  content: "";
  display: block;
  flex: none;
  width: 64px;
  height: 64px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.values-grid .value:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2219%22%20r%3D%223.4%22%3E%3C%2Fcircle%3E%20%3Cpath%20d%3D%22M14.4%2021.6c3.8%201.4%206.8%203.4%209.6%206.4%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M24%2028c4.2-3.2%208.6-4.8%2013.6-4.8%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M7%2036h34%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M13%2036c1.6-3.8%204.6-5.8%208.4-5.4%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }
.values-grid .value:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2224%22%20r%3D%2215%22%3E%3C%2Fcircle%3E%20%3Cpath%20d%3D%22M24%2012v12l7.5%204.5%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }
.values-grid .value:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2216%22%20r%3D%225%22%3E%3C%2Fcircle%3E%20%3Ccircle%20cx%3D%2211%22%20cy%3D%2219%22%20r%3D%223.6%22%3E%3C%2Fcircle%3E%20%3Ccircle%20cx%3D%2237%22%20cy%3D%2219%22%20r%3D%223.6%22%3E%3C%2Fcircle%3E%20%3Cpath%20d%3D%22M15%2037c0-5.6%204-9.6%209-9.6s9%204%209%209.6%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M5%2035c0-4.4%202.6-7.4%206.6-7.4%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M43%2035c0-4.4-2.6-7.4-6.6-7.4%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }

/* Pasek liczb - dwie ostatnie pozycje maja ikone zamiast liczby (2) */
.stats .stat:nth-child(3)::before, .stats .stat:nth-child(4)::before {
  content: "";
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-inline: auto;
}
.stats .stat:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M24%2040c2-8%207-13%2015-16-1%209-6%2014-15%2016z%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M24%2040c-2-8-7-13-15-16%201%209%206%2014%2015%2016z%22%3E%3C%2Fpath%3E%20%3Cpath%20d%3D%22M24%2040c4-6%204-14%200-21-4%207-4%2015%200%2021z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }
.stats .stat:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M24%2040S8%2030%208%2019.2A8.2%208.2%200%200%201%2024%2015a8.2%208.2%200%200%201%2016%204.2C40%2030%2024%2040%2024%2040z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }

/* Lista kontaktowa na stronie glownej (4) */
.contact-list__item::before {
  content: "";
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.contact-list__item:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6.4%203h3.1l1.6%204-2%201.4a12%2012%200%200%200%206.5%206.5l1.4-2%204%201.6v3.1a1.9%201.9%200%200%201-2.1%201.9A17%2017%200%200%201%204.5%205.1%201.9%201.9%200%200%201%206.4%203z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }
.contact-list__item:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225.5%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%221.6%22%3E%3C%2Frect%3E%3Cpath%20d%3D%22m3.7%206.9%208.3%206%208.3-6%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }
.contact-list__item:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2021s7-6.3%207-11a7%207%200%201%200-14%200c0%204.7%207%2011%207%2011z%22%3E%3C%2Fpath%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.6%22%3E%3C%2Fcircle%3E%3C%2Fsvg%3E"); }
.contact-list__item:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23E2A18C%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%3E%3C%2Frect%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%3E%3C%2Fcircle%3E%3Ccircle%20cx%3D%2217.1%22%20cy%3D%226.9%22%20r%3D%22.9%22%3E%3C%2Fcircle%3E%3C%2Fsvg%3E"); }

/* Lista kontaktowa: pozycja to grupa (ikona w kolumnie 1, etykieta i wartosc
   w kolumnie 2), bo blok Lista nie uniesie ikony ani zagniezdzonego bloku. */
.contact-list__item {
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 16px;
  align-items: start;
}
.contact-list__item::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin-top: 3px;
}
.contact-list__item > * {
  grid-column: 2;
  margin: 0;
}

/* Etykieta pozycji na liscie kontaktowej - odpowiednik <span> z wersji statycznej. */
.contact-list__label {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Menu mobilne: przy niskich ekranach wysrodkowana zawartosc potrafi uciec
   ponad krawedz i staje sie nieosiagalna scrollem. "safe" cofa wysrodkowanie
   dokladnie w tym przypadku; przegladarki, ktore go nie znaja, pomijaja
   deklaracje i zostaja przy zwyklym center. */
.mobile-nav { justify-content: safe center; }

/* ==========================================================================
   13. POPRAWKI PO PRZEGLADZIE
   ========================================================================== */

/* --- Kadr zdjecia w hero -------------------------------------------------
   Blok Obraz owija <img> w <figure>, ktory bez wysokosci nie pozwalal
   obrazowi wypelnic sekcji - hero pokazywal gore fotografii zamiast kadru
   wysrodkowanego regula object-position. */
.hero__bg > figure,
.page-hero__bg > figure {
  margin: 0;
  width: 100%;
  height: 100%;
}
.hero__bg > figure > img,
.page-hero__bg > figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg > figure > img { object-position: center 42%; }
.page-hero__bg > figure > img { object-position: center 45%; }

/* --- Sekcja kontaktu -----------------------------------------------------
   Formularz w tej samej szerokosci co kolumna z danymi kontaktowymi. */
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Godziny otwarcia mialy w zrodle marginesy w atrybucie style, ktorego
   blok naglowka nie przenosi - przywracamy je regula. */
.contact-grid h4 {
  margin-top: 48px;
  margin-bottom: 20px;
}
.contact-grid .hours { margin-top: 0; }
.contact-grid .fineprint { margin-top: 24px; }

/* --- Naglowki sekcji, ktore maja zmiescic sie w jednej linii ------------- */
.section-head:has(+ .classes-grid),
.section-head:has(+ .posts-grid) { max-width: 920px; }

/* Blog: naglowek podstrony w jednej linii i wiecej powietrza pod leadem. */
body.blog .page-hero__inner { max-width: 1120px; }
body.blog .page-hero--plain { padding-bottom: clamp(56px, 7vw, 96px); }

/* --- Odstep miedzy naglowkiem a kartami wpisow --------------------------- */
.posts-grid { margin-top: clamp(16px, 2vw, 28px); }

/* --- Formularz: wysokosc zblizona do kolumny z danymi kontaktowymi -------
   Contact Form 7 renderuje textarea z rows="10" i dokleja <br> miedzy
   etykieta a polem - stad panel byl dwa razy wyzszy niz kolumna obok. */
.form-grid .field br,
.form-grid p br { display: none; }
.form-grid textarea {
  height: 160px;
  min-height: 160px;
}

/* --- Blog: naglowek w jednej linii, lead w czytelnej szerokosci ---------- */
body.blog .page-hero__inner { max-width: 1260px; }
body.blog .page-hero .h1 { font-size: clamp(2.1rem, 3.6vw, 3.6rem); }
body.blog .page-hero__inner .lead { max-width: 720px; }

/* --- Sekcja grup zajec na stronie glownej --------------------------------
   Cztery grupy zamiast trzech pojedynczych zajec; zamiast zdjecia numer.
   Ponizej 1024 px arkusz podstawowy sam przechodzi na dwie kolumny. */
.classes-grid { grid-template-columns: repeat(4, 1fr); }
.classes-grid .card__body { padding-top: clamp(28px, 2.4vw, 36px); }
.classes-grid .class-card__num { margin-bottom: 12px; }
.classes-grid .wp-block-buttons { margin-top: 22px; }

/* --- Podpis wykonawcy w stopce ------------------------------------------
   Osobny wiersz pod linkami do polityki i regulaminu, wyrownany do nich. */
.footer-credit {
  flex-basis: 100%;
  margin: 0;
  text-align: right;
  font-size: var(--fs-small);
  color: var(--white-75);
}
@media (max-width: 720px) {
  .footer-credit { text-align: left; }
}

/* ==========================================================================
   14. RESPONSYWNOSC DLA SEKCJI 12-13
   Reguly dopisane wyzej sa pozniej w pliku niz media queries sekcji 10,
   wiec przy tej samej specyficznosci wygrywaly takze na malych ekranach.
   Tutaj przywracamy im wlasciwe zachowanie.
   ========================================================================== */

/* Cztery grupy zajec: po dwie w rzedzie na tablecie, jedna na telefonie. */
@media (max-width: 1200px) {
  .classes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .classes-grid { grid-template-columns: 1fr; }
}

/* Kontakt: formularz pod danymi kontaktowymi, nie obok. */
@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- Zamykanie menu mobilnego -------------------------------------------
   .mobile-nav ma z-index 120, a .site-header 100. Naglowek jest wlasnym
   kontekstem ukladania (position: fixed + z-index), wiec z-index 130 na
   hamburgerze nie wynosil go ponad otwarte menu - przycisk zamykania byl
   pod nakladka i menu dalo sie zamknac tylko klawiszem Escape.
   Przy otwartym menu podnosimy caly naglowek nad nakladke i przestawiamy
   logo na ciemne, bo tlo menu jest kremowe. */
body.nav-open .site-header {
  z-index: 130;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
body.nav-open .logo { color: var(--ink); }
body.nav-open .logo__mark { -webkit-text-fill-color: var(--blush); }

/* --- Ikony przy adresie i e-mailu w stopce ------------------------------
   Wektory te same co w sekcji kontaktu, w kolorze blush-light (tlo oliwkowe). */
.footer-contact__address,
.footer-contact__email {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items: start;
}
.footer-contact__address::before,
.footer-contact__email::before {
  content: "";
  grid-row: 1 / -1;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.footer-contact__address::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C6B7%22%20stroke-width%3D%221.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2021s7-6.3%207-11a7%207%200%201%200-14%200c0%204.7%207%2011%207%2011z%22%3E%3C%2Fpath%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.6%22%3E%3C%2Fcircle%3E%3C%2Fsvg%3E"); }
.footer-contact__email::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C6B7%22%20stroke-width%3D%221.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225.5%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%221.6%22%3E%3C%2Frect%3E%3Cpath%20d%3D%22m3.7%206.9%208.3%206%208.3-6%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }

/* --- Pionowe okladki wpisow w poziomych kadrach --------------------------
   Okladka ma tytul w gornej czesci; przy domyslnym wysrodkowaniu kadr
   pokazywalby sam srodek zdjecia, bez tytulu. */
.has-portrait-cover .media > img,
.has-portrait-cover .media > figure img { object-position: center top; }

/* --- Przycisk "Wszystkie wpisy" pod kartami bloga ------------------------
   Delikatnie obnizony wzgledem siatki kart. */
.blog-more { margin-top: clamp(28px, 3vw, 44px); }
