/* =========================================================
   SPIS TREŚCI
   1. Zmienne i reset bazowy
   2. Tło strony i efekty globalne
   3. Header oraz nawigacja
   4. Wspólne komponenty i layout
   5. Strona główna
   6. Zakładka O mnie
   7. Oferta/Cennik
   8. Portfolio
   9. Galeria
   10. Kontakt i stopka
   11. Responsywność i dostępność ruchu
   ========================================================= */

/* =========================================================
   1. ZMIENNE I RESET BAZOWY
   Tutaj zmieniasz globalne kolory, fonty, cienie i promienie.
   ========================================================= */
:root {
    /* GŁÓWNA PALETA KOLORÓW
       Zmiana tych wartości wpływa na całą stronę. */
    --ink: #07110c;
    --ink-soft: #122419;
    --forest: #203d2c;
    --forest-2: #315d3d;
    --sage: #82ae60;
    --sage-light: #c7e47e;
    --lapis: #143f8f;
    --lapis-soft: #2e71c9;
    --sky: #b7ddeb;
    --marble: #f4efe3;
    --paper: #fbfcf6;
    --gold: #d5b15d;
    --gold-light: #f1dda1;
    --line: rgba(244, 239, 227, 0.24);
    --line-dark: rgba(7, 17, 12, 0.14);
    --shadow: 0 28px 70px rgba(3, 10, 8, 0.32);

    /* Promień zaokrągleń kart i przycisków. Mniejsza wartość = ostrzejsze rogi. */
    --radius: 8px;

    /* Odstęp między dużymi segmentami strony. */
    --section-gap: clamp(36px, 5vw, 58px);

    /* Font nagłówków i font tekstów zwykłych. */
    --display: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* box-sizing sprawia, że padding i border liczą się do szerokości elementu. */
* {
    box-sizing: border-box;
}

/* Ustawienia bazowe dokumentu i płynnego przewijania. */
html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Główne tło, kolor tekstu i font całej strony. */
body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    color: var(--paper);

    /* Bazowy gradient tła pod szkicem rzymskim. */
    background:
        linear-gradient(105deg, #c6c79b 0%, #d8d6b5 38%, #b3c7b4 64%, #86a6ae 100%);
    font-family: var(--sans);
    line-height: 1.65;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;

    /* Delikatne światła i cienie tła. Zmiana opacity kolorów wpływa na klimat strony. */
    background:
        linear-gradient(90deg, rgba(7, 17, 12, 0.12), transparent 30%, rgba(20, 63, 143, 0.16) 100%),
        radial-gradient(circle at 42% 22%, rgba(255, 248, 224, 0.34), transparent 38%),
        radial-gradient(circle at 16% 92%, rgba(8, 24, 16, 0.18), transparent 42%);
    pointer-events: none;
}

/* Linki dziedziczą kolor z rodzica, żeby pasowały do kart i nagłówków. */
a {
    color: inherit;
    text-decoration: none;
}

/* Obrazy nie wychodzą poza szerokość kontenera. */
img {
    display: block;
    max-width: 100%;
}

/* Formularze i przyciski używają tego samego fontu co strona. */
button,
input,
textarea {
    font: inherit;
}

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

/* =========================================================
   2. TŁO STRONY I EFEKTY GLOBALNE
   Szkic rzymski, kolorowa nakładka, poświata kursora i pasek scrolla.
   ========================================================= */
.site-art-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.site-art-background::before {
    content: "";
    position: absolute;
    inset: -8vh -4vw;

    /* Główny szkic rzymski w tle strony. */
    background-image: url("../images/roman-ruins-sketch-portrait-erased.webp");
    background-repeat: repeat-y;
    background-position: center -260px;

    /* Im większa druga wartość w max(), tym większy obraz tła. */
    background-size: max(108vw, 1580px) auto;

    /* Zwiększenie opacity sprawi, że szkic będzie mocniej widoczny. */
    opacity: 0.78;
    filter: saturate(0.9) contrast(1.12) sepia(0.06);
}

.site-art-background::after {
    content: "";
    position: absolute;
    inset: -8vh -4vw;

    /* Kolorowa nakładka nad szkicem. To ona daje zielono-lazurytowy klimat. */
    background:
        linear-gradient(105deg, rgba(32, 61, 44, 0.2) 0%, rgba(199, 200, 140, 0.28) 38%, rgba(163, 183, 143, 0.24) 56%, rgba(20, 63, 143, 0.34) 100%),
        url("../images/abstract-brush-eden-lapis-transition-mirrored-y.webp");
    background-repeat: repeat-y;
    background-position: center -260px;
    background-size: max(108vw, 1580px) auto;

    /* Zwiększenie opacity wzmocni kolorową nakładkę. */
    opacity: 0.54;
    mix-blend-mode: multiply;
}

.scroll-progress {
    /* Pasek postępu przewijania zawsze przy górnej krawędzi ekranu. */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sage-light), var(--gold), var(--lapis-soft));
    box-shadow: 0 0 18px rgba(213, 177, 93, 0.5);
}

.cursor-aura {
    position: fixed;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    translate: -50% -50%;
    background: radial-gradient(circle, rgba(241, 221, 161, 0.12), transparent 64%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

body.is-pointer-active .cursor-aura {
    opacity: 1;
}

/* =========================================================
   3. HEADER ORAZ NAWIGACJA
   Logo, menu desktopowe, burger mobilny i aktywna zakładka.
   ========================================================= */
.site-header {
    /* fixed sprawia, że pasek menu jest zawsze widoczny podczas scrollowania. */
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 70px;

    /* Padding steruje wysokością i oddechem górnego paska. */
    padding: 10px clamp(22px, 4vw, 54px);
    background:
        linear-gradient(105deg, rgba(246, 242, 228, 0.92) 0%, rgba(199, 228, 126, 0.52) 48%, rgba(183, 221, 235, 0.58) 100%),
        rgba(251, 252, 246, 0.8);
    border-bottom: 1px solid rgba(7, 17, 12, 0.12);
    box-shadow: 0 16px 44px rgba(3, 10, 8, 0.18);

    /* Blur daje efekt premium i oddziela pasek od przewijanej treści. */
    backdrop-filter: blur(18px) saturate(1.12);
}

.brand {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.brand-logo {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(241, 221, 161, 0.45);
    border-radius: 8px;
    background: rgba(244, 239, 227, 0.88);
}

.brand-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand strong {
    display: block;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.13rem;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: rgba(7, 17, 12, 0.72);
    font-size: 0.76rem;
    line-height: 1.25;
}

.tabs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(7, 17, 12, 0.9);
    font-size: 0.88rem;
    font-weight: 700;

    /* Zapobiega łamaniu krótkich nazw zakładek w menu. */
    white-space: nowrap;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.tabs a:hover,
.tabs a.is-active {
    color: var(--paper);
    background: rgba(7, 17, 12, 0.52);
    border-color: rgba(251, 252, 246, 0.38);
    transform: translateY(-1px);
}

.nav-toggle {
    /* Na desktopie burger jest ukryty. W media queries zmienia się na display: grid. */
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(241, 221, 161, 0.35);
    border-radius: 8px;
    background: rgba(7, 17, 12, 0.32);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px 0;
    background: var(--gold-light);
}

/* =========================================================
   4. WSPÓLNE KOMPONENTY I LAYOUT
   Szerokość strony, nagłówki, przyciski, karty i animacje reveal.
   ========================================================= */
.page-shell {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 42px));
    margin: 0 auto;

    /* +70px robi miejsce na stały header, żeby treść nie chowała się pod menu. */
    padding: calc(clamp(42px, 7vw, 86px) + 70px) 0 72px;
}

.page-shell > section {
    margin-block: 0;
}

.page-shell > section + section {
    /* Wspólny odstęp między kolejnymi segmentami strony. */
    margin-top: var(--section-gap);
}

/* Elementy z klasą reveal pojawiają się przy scrollu dzięki assets/js/app.js. */
.reveal {
    /* Stan początkowy animacji wejścia. JS doda klasę .is-visible. */
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.eyebrow {
    margin-bottom: 14px;
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 900px;
    margin: 0 auto 32px;
    text-align: center;
}

.subhero,
.contact-head {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.subhero {
    max-width: min(1120px, 72vw);
    padding: clamp(30px, 5vw, 66px) clamp(26px, 5vw, 72px);
    border: 1px solid rgba(251, 252, 246, 0.22);
    border-radius: var(--radius);
    background: rgba(69, 75, 53, 0.62);
    box-shadow: 0 28px 70px rgba(3, 10, 8, 0.18);
    backdrop-filter: blur(12px);
}

h1,
h2 {
    color: var(--paper);
    font-family: var(--display);
    line-height: 1.07;
    text-wrap: balance;
}

h1 {
    max-width: 960px;
    margin: 0 auto 20px;
    font-size: clamp(2.75rem, 6.2vw, 5.35rem);
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4.6vw, 4.1rem);
}

h3 {
    color: var(--paper);
    font-size: 1.22rem;
    line-height: 1.25;
}

.section-heading p,
.subhero > p:not(.eyebrow),
.contact-head > p:not(.eyebrow),
.hero-copy > p:not(.eyebrow) {
    max-width: 780px;
    margin-inline: auto;
    color: rgba(251, 252, 246, 0.86);
    font-size: clamp(1.05rem, 1.9vw, 1.32rem);
}

.training-space .space-copy > h2,
.price-table-section > h2,
.cooperation > h2,
.statement-section > h2,
.qa-section > h2 {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.price-table-section > p,
.cooperation > p,
.statement-section > p,
.qa-section > p {
    text-align: center;
}

/* Uniwersalny styl przycisków używany w hero, ofercie i kontakcie. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(241, 221, 161, 0.44);
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.button.primary {
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold-light), var(--sage-light));
    box-shadow: 0 15px 34px rgba(3, 10, 8, 0.28);
}

.button.ghost {
    color: var(--paper);
    background: rgba(251, 252, 246, 0.08);
}

/* =========================================================
   5. STRONA GŁÓWNA
   Hero, zdjęcia przestrzeni treningowej, karty informacyjne i opinie.
   ========================================================= */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    gap: 30px;
    align-items: end;
    min-height: clamp(600px, 72vh, 780px);
    padding: clamp(34px, 6vw, 76px);
    overflow: hidden;
    border: 1px solid rgba(241, 221, 161, 0.24);
    border-radius: var(--radius);
    background:
        linear-gradient(115deg, rgba(7, 17, 12, 0.72), rgba(32, 61, 44, 0.45) 54%, rgba(20, 63, 143, 0.36)),
        rgba(7, 17, 12, 0.38);
    box-shadow: var(--shadow);
}

/* Warstwa obrazu tła w pierwszym segmencie. W .home-opening ma osobny obraz. */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(7, 17, 12, 0.86), rgba(7, 17, 12, 0.42), rgba(7, 17, 12, 0.82)),
        url("../images/silownia-3.jpg") center / cover;
    opacity: 0.72;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

/* Pierwszy segment strony głównej z przyciętym zdjęciem Macieja jako tłem. */
.home-opening {
    grid-template-columns: minmax(0, 560px) minmax(280px, 1fr);
    justify-content: stretch;
    align-items: center;
    min-height: clamp(560px, 76vh, 860px);
    text-align: left;
}

/* Tu zmieniasz zdjęcie tła pierwszego segmentu strony głównej. */
.home-opening .hero-media {
    background:
        linear-gradient(90deg, rgba(7, 17, 12, 0.9), rgba(7, 17, 12, 0.38) 42%, rgba(7, 17, 12, 0) 72%, rgba(7, 17, 12, 0.14)),
        linear-gradient(0deg, rgba(7, 17, 12, 0.22), rgba(7, 17, 12, 0) 52%, rgba(7, 17, 12, 0.08)),
        url("../images/home-hero-maciej-clean.png") calc(100% + 170px) center / auto 96% no-repeat;
    opacity: 1;
}

.home-opening .hero-copy {
    max-width: 560px;
    margin: 0;
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid rgba(241, 221, 161, 0.18);
    border-radius: var(--radius);
    background: rgba(7, 17, 12, 0.46);
    box-shadow: 0 24px 70px rgba(3, 10, 8, 0.34);
    backdrop-filter: blur(2px);
}

.home-opening .hero-copy h1 {
    max-width: 560px;
    margin-inline: 0;
}

.home-opening .hero-copy > p:not(.eyebrow) {
    max-width: 520px;
}

.home-opening .hero-actions {
    justify-content: flex-start;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

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

.hero-stats span {
    display: block;
    padding: 14px;
    border: 1px solid rgba(241, 221, 161, 0.22);
    border-radius: var(--radius);
    background: rgba(251, 252, 246, 0.08);
    color: rgba(251, 252, 246, 0.82);
    font-size: 0.9rem;
}

.hero-stats strong {
    display: block;
    color: var(--gold-light);
    font-family: var(--display);
    font-size: 1.2rem;
}

.hero-panel {
    padding: 24px;
    border: 1px solid rgba(241, 221, 161, 0.26);
    border-radius: var(--radius);
    background: rgba(7, 17, 12, 0.62);
    backdrop-filter: blur(10px);
}

.hero-panel h3 {
    margin-bottom: 14px;
}

.hero-panel ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(251, 252, 246, 0.82);
}

/* Sekcja dwóch zdjęć pokazujących kameralną przestrzeń treningową. */
.training-space {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(241, 221, 161, 0.24);
    border-radius: var(--radius);
    background: rgba(244, 239, 227, 0.92);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.training-space h2,
.training-space h3 {
    color: var(--ink);
}

.training-space p {
    color: rgba(7, 17, 12, 0.72);
}

.space-gallery {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 14px;
}

.space-photo {
    margin: 0;
    min-height: 310px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 18px 38px rgba(7, 17, 12, 0.22);
}

.space-photo.is-large {
    min-height: 390px;
}

.space-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.space-photo.is-tall img {
    object-position: center 34%;
}

.intro-grid,
.review-list,
.pricing,
.portfolio-grid {
    display: grid;
    gap: 18px;
}

/* Trzy krótkie karty informacyjne na stronie głównej. */
.intro-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intro-grid article,
.review-card,
.price-card,
.case-card,
.statement-section,
.qa-section,
.about-story-panel,
.about-principles article,
.contact-form,
.contact-details,
.price-table-section,
.cooperation {
    border: 1px solid rgba(241, 221, 161, 0.22);
    border-radius: var(--radius);
    background: rgba(7, 17, 12, 0.7);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.intro-grid article {
    padding: 24px;
}

.roman-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 32px;
    margin-bottom: 14px;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold-light), var(--sage-light));
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 900;
}

/* Sekcja opinii na dole strony głównej. Treści opinii są w data/content.php. */
.reviews {
    position: relative;
    isolation: isolate;
    margin-block: clamp(48px, 7vw, 92px);
    padding: clamp(38px, 6vw, 72px) clamp(18px, 4vw, 46px);
    overflow: hidden;
    border: 1px solid rgba(241, 221, 161, 0.16);
    border-radius: var(--radius);
}

.reviews::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 14%, rgba(241, 221, 161, 0.28), transparent 34%),
        linear-gradient(180deg, rgba(11, 23, 16, 0.82), rgba(18, 34, 24, 0.68) 54%, rgba(11, 23, 16, 0.78)),
        linear-gradient(110deg, rgba(211, 235, 162, 0.12), rgba(17, 49, 82, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(3px);
}

.reviews .section-heading {
    margin-bottom: clamp(28px, 4vw, 42px);
}

.reviews .section-heading h2 {
    color: var(--paper);
    text-shadow: 0 5px 28px rgba(5, 12, 8, 0.58), 0 1px 0 rgba(241, 221, 161, 0.22);
}

.review-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.review-image-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.review-card {
    padding: 24px;
}

.review-image-card {
    display: grid;
    place-items: center;
    margin: 0;
    overflow: hidden;
    min-height: clamp(250px, 28vw, 360px);
    padding: 12px;
    border: 1px solid rgba(241, 221, 161, 0.2);
    border-radius: var(--radius);
    background: rgba(251, 252, 246, 0.94);
    box-shadow: 0 18px 42px rgba(3, 10, 8, 0.28);
}

.review-image-card img {
    width: 100%;
    height: clamp(226px, 25vw, 336px);
    object-fit: contain;
}

.review-card p {
    color: rgba(251, 252, 246, 0.88);
}

.review-card strong {
    color: var(--gold-light);
}

/* =========================================================
   6. ZAKŁADKA O MNIE
   Segment otwierający, historia i zasady prowadzenia.
   ========================================================= */
.about-hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(24px, 4vw, 46px);
    align-items: stretch;
}

.about-copy,
.about-portrait {
    border: 1px solid rgba(241, 221, 161, 0.22);
    border-radius: var(--radius);
    background: rgba(7, 17, 12, 0.7);
    box-shadow: var(--shadow);
}

.about-copy {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 6vw, 68px);
    background:
        radial-gradient(circle at 88% 12%, rgba(204, 232, 143, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(7, 17, 12, 0.78), rgba(22, 42, 33, 0.84));
}

.about-copy::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(241, 221, 161, 0.2);
    border-radius: 50%;
}

.about-copy h1 {
    max-width: 760px;
    font-size: clamp(2.65rem, 4.8vw, 5.4rem);
    line-height: 0.98;
}

.about-lead {
    max-width: 720px;
    color: rgba(251, 252, 246, 0.88);
    font-size: clamp(1.08rem, 1.8vw, 1.32rem);
    line-height: 1.78;
}

.about-signature {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    justify-content: flex-start;
}

.about-signature span {
    padding: 9px 14px;
    border: 1px solid rgba(241, 221, 161, 0.34);
    border-radius: 999px;
    color: var(--gold-light);
    background: rgba(251, 252, 246, 0.06);
    font-weight: 900;
}

/* Aktualny pierwszy segment zakładki O mnie bez zdjęcia portretowego. */
.about-opening {
    max-width: min(1120px, 82vw);
    padding: clamp(26px, 4vw, 48px) clamp(24px, 5vw, 66px);
}

.about-opening h1 {
    max-width: 900px;
    font-size: clamp(2.35rem, 4.8vw, 4.45rem);
}

.about-opening > p:not(.eyebrow) {
    max-width: 720px;
    font-size: clamp(1.02rem, 1.55vw, 1.18rem);
}

.about-opening .about-signature {
    justify-content: center;
    margin-top: 26px;
}

.about-story p {
    color: rgba(251, 252, 246, 0.86);
    font-size: 1.04rem;
}

.about-portrait {
    position: relative;
    margin: 0;
    overflow: hidden;
    min-height: 100%;
    background: linear-gradient(145deg, rgba(213, 230, 173, 0.16), rgba(8, 24, 29, 0.18));
}

.about-portrait img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    object-position: center top;
}

.about-portrait figcaption {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    padding: 18px;
    border: 1px solid rgba(241, 221, 161, 0.24);
    border-radius: var(--radius);
    color: var(--paper);
    background: rgba(7, 17, 12, 0.72);
    box-shadow: 0 18px 40px rgba(3, 10, 8, 0.28);
    backdrop-filter: blur(10px);
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.08;
}

.about-portrait figcaption span {
    display: block;
    margin-top: 6px;
    color: var(--gold-light);
    font-family: var(--body);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Panel z osią historii trenera. */
.about-story-panel {
    margin-top: clamp(28px, 5vw, 58px);
    padding: clamp(30px, 5vw, 58px);
}

.story-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(241, 221, 161, 0.22);
}

.story-timeline article {
    position: relative;
    padding: 30px 22px 0 0;
}

.story-timeline article:not(:last-child) {
    border-right: 1px solid rgba(241, 221, 161, 0.14);
    padding-right: 24px;
    margin-right: 24px;
}

.story-timeline span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--gold-light);
    font-family: var(--display);
    font-size: 2.4rem;
    font-weight: 900;
}

.story-timeline h3 {
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.story-timeline p {
    color: rgba(251, 252, 246, 0.82);
}

/* Trzy karty opisujące zasady prowadzenia i styl pracy. */
.about-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.about-principles article {
    padding: clamp(24px, 3vw, 34px);
}

.about-principles h2 {
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

.about-principles p {
    color: rgba(251, 252, 246, 0.84);
}

/* =========================================================
   7. OFERTA / CENNIK
   Karty usług, tabela cen i proces współpracy.
   ========================================================= */
.pricing {
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: clamp(22px, 3vw, 34px);
}

/* Karta pojedynczej usługi z tablicy $prices. */
.price-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 100%;
    padding: clamp(24px, 3vw, 34px);
    overflow: hidden;
}

.price-card h2 {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: clamp(2rem, 2.45vw, 2.75rem);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    text-wrap: pretty;
}

.price-card p {
    max-width: 100%;
    overflow-wrap: break-word;
}

.price-card ul,
.process-list,
.contact-details ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: rgba(251, 252, 246, 0.84);
}

.price-card strong {
    display: block;
    margin-top: 18px;
    color: var(--gold-light);
    font-size: clamp(1.18rem, 1.55vw, 1.38rem);
    line-height: 1.25;
}

.price-card a {
    display: inline-flex;
    margin-top: 18px;
    color: var(--gold-light);
    font-weight: 900;
}

/* Jasne sekcje: tabela cen i opis procesu współpracy. */
.price-table-section,
.cooperation {
    padding: clamp(24px, 4vw, 38px);
}

.price-table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(241, 221, 161, 0.18);
    text-align: left;
}

th {
    color: var(--gold-light);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.price-note {
    margin: 18px 0 0;
    color: rgba(251, 252, 246, 0.72);
}

/* Trzy kroki współpracy w zakładce Oferta/Cennik. */
.process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 5vw, 58px);
    padding: 0;
    list-style: none;
}

.process-list article {
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    min-width: 0;
}

.process-list article > span {
    display: block;
    margin-bottom: 8px;
    color: rgba(251, 252, 246, 0.75);
    font-weight: 800;
}

.process-list h3 {
    min-height: 2.6em;
    margin-bottom: 18px;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.16;
}

.process-list p {
    margin: 0;
    color: rgba(251, 252, 246, 0.82);
    font-weight: 700;
    line-height: 1.55;
}

/* =========================================================
   8. PORTFOLIO
   Karty efektów, wypowiedź trenera i Q&A.
   ========================================================= */
.portfolio-grid {
    /* 4 karty obok siebie na desktopie. Zmień repeat(4) na repeat(2), aby wrócić do 2 kolumn. */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Pojedyncza karta portfolio z obrazkiem i opisem efektu. */
.case-card {
    overflow: hidden;
}

.case-visual {
    /* Wysokość obrazka w karcie portfolio. */
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(199, 228, 126, 0.22), rgba(20, 63, 143, 0.18));
}

.case-visual img {
    width: 100%;
    height: 100%;

    /* cover wypełnia całe okno obrazka, czasem przycinając krawędzie. */
    object-fit: cover;
    object-position: center center;
}

.case-card h2,
.case-card p,
.case-card span {
    padding-inline: 18px;
}

.case-card h2 {
    max-width: 100%;
    margin: 18px 0 14px;
    color: var(--paper);
    font-size: clamp(1.8rem, 1.95vw, 2.28rem);
    line-height: 1.04;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

.case-card p {
    margin: 0;
    padding-top: 10px;
    color: rgba(251, 252, 246, 0.78);
    font-weight: 900;
}

.case-card span {
    display: block;
    padding-bottom: 24px;
    color: rgba(251, 252, 246, 0.88);
    font-weight: 800;
    line-height: 1.55;
}

/* Sekcje tekstowe pod portfolio: wypowiedź trenera i pytania Q&A. */
.statement-section,
.qa-section {
    padding: clamp(24px, 4vw, 42px);
}

.statement-body {
    column-count: 2;
    column-gap: 34px;
    color: rgba(251, 252, 246, 0.86);
}

/* Lista pytań Q&A. Rozwijanie działa natywnie przez znacznik <details>. */
.qa-list {
    display: grid;
    gap: 12px;
}

details {
    border: 1px solid rgba(241, 221, 161, 0.2);
    border-radius: var(--radius);
    background: rgba(251, 252, 246, 0.07);
}

summary {
    cursor: pointer;
    padding: 16px 18px;
    color: var(--gold-light);
    font-weight: 900;
}

details p {
    margin: 0;
    padding: 0 18px 18px;
    color: rgba(251, 252, 246, 0.82);
}

/* =========================================================
   9. GALERIA
   Kafle galerii, tła obrazków i lightbox.
   ========================================================= */
.gallery-hero {
    position: relative;
    overflow: hidden;
}

.gallery-hero::after {
    content: "";
    position: absolute;
    inset: auto 8% -42px 8%;
    height: 90px;
    background: radial-gradient(ellipse, rgba(241, 221, 161, 0.22), transparent 68%);
    pointer-events: none;
}

/* Siatka kafli galerii. Na telefonie przechodzi do jednej kolumny. */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(320px, auto);
    gap: 16px;
    margin-top: clamp(28px, 5vw, 58px);
}

/* Pojedynczy kafel galerii. Teksty kafla są w pages/galeria.php. */
.gallery-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(241, 221, 161, 0.24);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, transparent 20%, rgba(7, 17, 12, 0.72)),
        url("../images/roman-ruins-sketch-portrait-erased.webp") center / cover;
    box-shadow: var(--shadow);
    color: var(--paper);
    cursor: pointer;
    text-align: left;
    transform: translateZ(0);
}

.gallery-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(204, 232, 143, 0.1), rgba(17, 49, 82, 0.18));
    opacity: 0;
    transition: opacity 220ms ease;
}

.gallery-tile:hover::before {
    opacity: 1;
}

.gallery-tile span,
.gallery-tile strong {
    position: relative;
    z-index: 1;
}

.tile-2 strong,
.tile-5 strong,
.tile-6 strong {
    font-size: clamp(1.25rem, 1.55vw, 1.72rem);
    line-height: 1.1;
}

.gallery-tile span {
    width: fit-content;
    margin-bottom: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold-light), var(--sage-light));
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gallery-tile strong {
    max-width: 480px;
    color: var(--paper);
    font-family: var(--display);
    font-size: clamp(1.45rem, 2.2vw, 2.5rem);
    line-height: 1.04;
}

.tile-1,
.tile-4 {
    grid-column: auto;
    grid-row: auto;
}

.tile-2,
.tile-5,
.tile-6 {
    grid-column: auto;
}

.tile-3 {
    grid-column: auto;
    grid-row: auto;
}

/* Wspólny styl dla kafli opartych o zdjęcia. */
.gallery-photo {
    background-size: cover;
}

/* Konkretne obrazy tła galerii. Zmiana url() podmienia obrazek kafla. */
.gym-photo-one {
    background-image:
        linear-gradient(180deg, rgba(7, 17, 12, 0.02) 12%, rgba(7, 17, 12, 0.78)),
        url("../images/silownia-3.jpg");
    background-position: center 45%;
}

.gym-photo-two {
    background-image:
        linear-gradient(180deg, rgba(7, 17, 12, 0.06) 14%, rgba(7, 17, 12, 0.8)),
        url("../images/silownia-2.jpg");
    background-position: center 38%;
}

.gym-photo-three {
    background-image:
        linear-gradient(180deg, rgba(7, 17, 12, 0.05) 14%, rgba(7, 17, 12, 0.82)),
        url("../images/silownia-3.jpg");
    background-position: 22% 48%;
}

/* Kafle artystyczne bez konkretnego zdjęcia, z tłem gradientowym. */
.gallery-art {
    background-image:
        linear-gradient(180deg, rgba(7, 17, 12, 0.08), rgba(7, 17, 12, 0.82)),
        url("../images/roman-ruins-sketch-portrait-erased.webp");
}

.tile-3 {
    background-image:
        linear-gradient(180deg, rgba(7, 17, 12, 0.04) 8%, rgba(7, 17, 12, 0.76)),
        url("../images/gallery-przestrzen.png");
    background-position: center 46%;
    background-size: cover;
}

.gallery-art.is-lapis {
    background-image:
        linear-gradient(180deg, rgba(7, 17, 12, 0.1), rgba(7, 17, 12, 0.76)),
        url("../images/abstract-brush-eden-lapis-transition.webp");
}

.gallery-art.is-soft {
    background-image:
        linear-gradient(180deg, rgba(7, 17, 12, 0.12), rgba(7, 17, 12, 0.82)),
        url("../images/abstract-brush-eden-lapis-transition-mirrored-y.webp");
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 10, 8, 0.82);
}

.lightbox.is-open {
    display: flex;
}

.lightbox button {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(241, 221, 161, 0.45);
    border-radius: 999px;
    color: var(--paper);
    background: rgba(7, 17, 12, 0.72);
    cursor: pointer;
}

.lightbox div {
    width: min(92vw, 920px);
    height: min(78vh, 680px);
    border: 1px solid rgba(241, 221, 161, 0.28);
    border-radius: var(--radius);
    background-color: rgba(7, 17, 12, 0.78);
    background-position: center, center;
    background-repeat: no-repeat;
    background-size: cover, contain;
    box-shadow: var(--shadow);
}

/* =========================================================
   10. KONTAKT I STOPKA
   Dane kontaktowe, formularz, komunikaty i stopka.
   ========================================================= */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 24px;
    align-items: start;
}

.contact-head {
    grid-column: 1 / -1;
}

.contact-details,
.contact-form {
    padding: clamp(24px, 4vw, 38px);
}

.contact-details a {
    color: var(--gold-light);
    font-weight: 900;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: rgba(251, 252, 246, 0.82);
    font-weight: 800;
}

/* Pola formularza kontaktowego: inputy i textarea. */
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(241, 221, 161, 0.28);
    border-radius: var(--radius);
    padding: 13px 14px;
    color: var(--paper);
    background: rgba(3, 10, 8, 0.38);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.honeypot {
    /* Ukryte pole antyspamowe formularza. Nie usuwać. */
    position: absolute;
    left: -9999px;
}

.form-alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    background: rgba(199, 228, 126, 0.14);
}

.form-alert.is-error {
    background: rgba(255, 90, 90, 0.14);
}

.form-note {
    margin: 0;
    color: rgba(251, 252, 246, 0.7);
}

/* Stopka widoczna na dole każdej zakładki. */
.site-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px clamp(18px, 4vw, 54px);
    border-top: 1px solid rgba(241, 221, 161, 0.2);
    color: rgba(251, 252, 246, 0.74);
    background: rgba(7, 17, 12, 0.72);
}

/* =========================================================
   11. RESPONSYWNOŚĆ I DOSTĘPNOŚĆ RUCHU
   Media queries dopasowują układ do tabletów i telefonów.
   ========================================================= */
@media (max-width: 1100px) {
    /* Widok tabletowy: menu i siatki dostają ciaśniejsze ustawienia. */
    .tabs {
        gap: 4px;
    }

    .tabs a {
        padding-inline: 10px;
        font-size: 0.82rem;
    }

    .hero,
    .training-space,
    .about-hero,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .story-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 28px;
    }

    .story-timeline article:nth-child(2) {
        border-right: 0;
        margin-right: 0;
        padding-right: 0;
    }

    .about-principles {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 560px;
    }

    .pricing,
    .portfolio-grid {
        /* Na węższym ekranie oferta i portfolio przechodzą na 2 kolumny. */
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .site-header {
        align-items: center;
    }

    .nav-toggle {
        display: grid;
    }

    .tabs {
        position: absolute;
        top: calc(100% + 1px);
        right: 16px;
        left: 16px;
        z-index: 40;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
        padding: 12px;
        max-height: min(72vh, 420px);
        overflow-y: auto;
        border: 1px solid rgba(241, 221, 161, 0.24);
        border-radius: var(--radius);
        background: rgba(7, 17, 12, 0.94);
        box-shadow: var(--shadow);
    }

    .tabs.is-open {
        display: flex;
    }

    .tabs a {
        justify-content: center;
        min-height: 48px;
        border-color: rgba(251, 252, 246, 0.22);
        color: rgba(251, 252, 246, 0.94);
        background: rgba(251, 252, 246, 0.05);
        font-size: 1rem;
        font-weight: 900;
    }

    .tabs a:hover,
    .tabs a.is-active {
        color: var(--paper);
        background: rgba(251, 252, 246, 0.1);
        border-color: rgba(241, 221, 161, 0.48);
        transform: none;
    }

    .hero {
        min-height: auto;
    }

    .subhero,
    .contact-head {
        width: 100%;
        max-width: min(100%, 760px);
    }

    .subhero h1,
    .contact-head h1 {
        max-width: 100%;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .home-opening {
        grid-template-columns: 1fr;
        min-height: 660px;
    }

    .home-opening .hero-media {
        background:
            linear-gradient(0deg, rgba(7, 17, 12, 0.62), rgba(7, 17, 12, 0.13) 48%, rgba(7, 17, 12, 0.18)),
            url("../images/home-hero-maciej-clean.png") center bottom / auto 96% no-repeat;
    }

    .home-opening .hero-copy {
        max-width: 620px;
        margin: 0 auto;
        text-align: center;
        background: rgba(7, 17, 12, 0.36);
    }

    .home-opening .hero-copy h1,
    .home-opening .hero-copy > p:not(.eyebrow) {
        margin-inline: auto;
    }

    .home-opening .hero-actions {
        justify-content: center;
    }

    .hero-stats,
    .intro-grid,
    .review-list,
    .review-image-list,
    .space-gallery {
        grid-template-columns: 1fr;
    }

    .space-photo,
    .space-photo.is-large {
        min-height: 320px;
    }

    .review-image-card {
        min-height: auto;
    }

    .review-image-card img {
        height: auto;
    }

    .statement-body {
        column-count: 1;
    }

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

    .gallery-tile {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 620px) {
    .site-header {
        padding-inline: 14px;
    }

    .brand {
        grid-template-columns: 46px minmax(0, 1fr);
        min-width: 0;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .brand-logo img {
        width: 40px;
        height: 40px;
    }

    .brand small {
        display: none;
    }

    .page-shell {
        width: min(100% - 24px, 1120px);
        padding-top: 98px;
    }

    h1 {
        font-size: clamp(2rem, 9.4vw, 2.9rem);
    }

    h2 {
        font-size: clamp(1.85rem, 10vw, 2.8rem);
    }

    .subhero {
        width: 100%;
        max-width: 100%;
        padding: 28px 18px;
        border-radius: 8px;
    }

    .subhero h1,
    .contact-head h1 {
        font-size: clamp(2rem, 9vw, 2.7rem);
        line-height: 1.04;
    }

    .subhero > p:not(.eyebrow),
    .contact-head > p:not(.eyebrow) {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.55;
    }

    .home-opening {
        min-height: 720px;
    }

    .home-opening .hero-copy {
        padding: 22px 16px;
    }

    .home-opening .hero-copy h1 {
        font-size: clamp(2.35rem, 11vw, 3.2rem);
        line-height: 1.02;
    }

    .home-opening .hero-copy > p:not(.eyebrow) {
        font-size: 1rem;
        line-height: 1.55;
    }

    .home-opening .hero-actions {
        gap: 10px;
        margin: 24px 0 0;
    }

    .home-opening .hero-actions .button {
        width: min(100%, 260px);
    }

    .hero,
    .training-space,
    .about-copy,
    .about-story-panel,
    .price-table-section,
    .cooperation,
    .statement-section,
    .qa-section,
    .contact-details,
    .contact-form {
        padding: 22px;
    }

    .about-portrait,
    .about-portrait img {
        min-height: 0;
        height: 520px;
    }

    .story-timeline {
        grid-template-columns: 1fr;
    }

    .story-timeline article,
    .story-timeline article:not(:last-child) {
        margin-right: 0;
        padding-right: 0;
        border-right: 0;
    }

    .story-timeline article:not(:last-child) {
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(241, 221, 161, 0.14);
    }

    .hero-stats,
    .pricing,
    .portfolio-grid,
    .process-list {
        grid-template-columns: 1fr;
    }

    .process-list h3 {
        min-height: 0;
    }

    .case-visual {
        height: 330px;
    }

    .site-footer {
        flex-direction: column;
        padding-bottom: 80px;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
