/* Strona główna Otwartego Trenera: editorial, czerń i biel, duże zdjęcia. Wzorzec: hpba.pl. */
:root { --ink: #111; --mute: #6b6b6b; --line: #e3e3e3; --paper: #fff; --serif: "Cormorant Garamond", Georgia, serif; --sans: Jost, system-ui, sans-serif; --w: 1320px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 400; line-height: 1.55; font-size: 17px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--w), 100% - 3rem); margin-inline: auto; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 1rem 1.6rem; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { opacity: 0.85; }

/* Pasek */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 2rem; }
.brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.02em; }
.brand small { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mute); }
.top nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.top .btn { padding: 0.75rem 1.2rem; }
@media (max-width: 900px) { .top nav { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }
.hero-copy { display: grid; align-content: center; gap: 2rem; padding: 6rem 6vw 6rem 0; }
.hero-copy .wrap-left { width: min(640px, 100%); margin-left: max(1.5rem, calc((100vw - var(--w)) / 2)); }
.hero h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); max-width: 12ch; }
.hero .lead { font-size: 1.15rem; max-width: 40ch; color: #333; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-photo figcaption { position: absolute; left: 1.5rem; bottom: 1.25rem; color: #fff; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; mix-blend-mode: difference; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; min-height: 0; } .hero-copy { order: 2; padding: 3rem 0; } .hero-copy .wrap-left { margin-inline: auto; width: min(var(--w), 100% - 3rem); } .hero-photo { aspect-ratio: 4/5; } }

/* Fakty */
.facts { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.facts li { padding: 1.4rem 0; border-left: 1px solid var(--line); padding-left: 1.5rem; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1; }
.facts span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 900px) { .facts ul { grid-template-columns: 1fr 1fr; } .facts li:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Sekcje */
.sec { padding: 7rem 0; }
.sec-head { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: end; margin-bottom: 3.5rem; }
.sec-head h2 { font-size: clamp(2.4rem, 4.5vw, 4.2rem); max-width: 16ch; }
.sec-head p { max-width: 52ch; color: #333; }
@media (max-width: 900px) { .sec { padding: 4.5rem 0; } .sec-head { grid-template-columns: 1fr; } }

/* Filary */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.pillars article { padding: 2rem 1.5rem 2.5rem 0; border-right: 1px solid var(--line); margin-right: 1.5rem; }
.pillars article:last-child { border-right: 0; margin-right: 0; }
.pillars .num { font-family: var(--serif); font-size: 1rem; color: var(--mute); display: block; margin-bottom: 3rem; }
.pillars h3 { font-size: 2rem; margin-bottom: 0.9rem; }
.pillars p { color: #333; font-size: 0.98rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } .pillars article:nth-child(2) { border-right: 0; } }

/* Pas ze zdjęciem i cytatem */
.band { position: relative; min-height: 78vh; display: grid; place-items: center; color: #fff; text-align: center; isolation: isolate; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.55)); z-index: -1; }
.band blockquote { margin: 0; padding: 4rem 1.5rem; max-width: 22ch; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.05; }
.band cite { display: block; margin-top: 1.5rem; font-style: normal; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* Kalendarz eventów */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.events li { display: grid; grid-template-columns: 180px 1fr 200px 160px; gap: 2rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.events .date { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.events .date small { display: block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin-top: 0.4rem; }
.events h3 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.events p { color: #333; font-size: 0.95rem; }
.events .where { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.events .go { justify-self: end; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 0.2rem; }
.events li.soon { color: var(--mute); }
.events li.soon h3 { color: var(--mute); }
@media (max-width: 900px) { .events li { grid-template-columns: 1fr; gap: 0.6rem; } .events .go { justify-self: start; } }

/* Zespół */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
.team article { border-top: 1px solid var(--ink); padding-top: 1.25rem; min-height: 240px; display: grid; align-content: start; gap: 0.6rem; }
.team .role { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.team h3 { font-size: 2rem; }
.team p { color: #333; font-size: 0.95rem; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } .team article { min-height: 0; } }

/* Galeria */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.75rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery img:first-child { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; } }

/* Oferta */
.offers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.offers li { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.offers h3 { font-size: 1.7rem; }
.offers p { color: #333; font-size: 0.95rem; margin-top: 0.25rem; }
.offers .price { font-family: var(--serif); font-size: 1.7rem; white-space: nowrap; }

/* CTA końcowe */
.close { background: var(--ink); color: #fff; padding: 8rem 0; text-align: center; }
.close h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); max-width: 14ch; margin-inline: auto; }
.close p { max-width: 46ch; margin: 1.5rem auto 2.5rem; color: #d8d8d8; }
.close .btn { background: #fff; color: var(--ink); border-color: #fff; }
.close .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.close .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.close .mcp { margin-top: 2.5rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: #9a9a9a; }

/* Stopka */
footer.site { padding: 3rem 0; font-size: 0.78rem; color: var(--mute); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer.site ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
footer.site a:hover { text-decoration: underline; }

/* Program (agregator) */
.program { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; border-top: 1px solid var(--ink); padding-top: 2rem; }
.program img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.program h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); margin: 0.8rem 0 1rem; }
.program p { color: #333; }
.program .go { display: inline-block; margin-top: 1.5rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 0.2rem; }
.team .go { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 0.15rem; color: var(--ink); }
.section-more { margin-top: 2.5rem; }
.brand small a { color: var(--mute); }
@media (max-width: 900px) { .program { grid-template-columns: 1fr; gap: 1.5rem; } }
.team .face { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1); margin-bottom: 0.5rem; }

/* Agregator: hero „kalendarz" + kafle programów (wzorzec hpba.pl) */
.hero.cal h1 { text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(2.6rem, 5.4vw, 5.6rem); max-width: 12ch; line-height: 1.05; }
.btn.accent { background: #8b3a4a; border-color: #8b3a4a; color: #fff; }
.hero-photo.arc { margin: 2rem 2rem 0 0; border-radius: 0 0 0 48% / 0 0 0 40%; overflow: hidden; }
.hero-photo.arc img { filter: none; }
@media (max-width: 900px) { .hero-photo.arc { margin: 0; border-radius: 0; } }
.tiles { border-top: 3px solid #8b3a4a; padding: 1.25rem 0 0; }
.tiles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; }
.tiles a { display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; min-height: 320px; padding: 1.25rem 1.25rem 0; background: var(--tile); color: #fff; border-radius: 10px; overflow: hidden; }
.tiles .mark { justify-self: start; background: #fff; color: var(--tile); font-family: var(--serif); font-size: 1.05rem; padding: 0.35rem 0.8rem; border-radius: 0 0 10px 10px; margin-top: -1.25rem; }
.tiles strong { font-weight: 500; font-size: 1.05rem; line-height: 1.35; }
.tiles img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px 8px 0 0; opacity: 0.9; }
.tiles a:hover img { opacity: 1; }
@media (max-width: 1100px) { .tiles ul { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .tiles ul { grid-template-columns: 1fr 1fr; } .tiles a { min-height: 0; } }
.programs-row { padding-top: 0; }
.tiles .t1 { --tile: #8b3a4a; }
.tiles .t2 { --tile: #5b6b8c; }
.tiles .t3 { --tile: #4f8a83; }
.tiles .t4 { --tile: #7a5c8f; }
.tiles .t5 { --tile: #a67c52; }
