* {
    box-sizing: border-box;
}

:root {
    --bg: #f5f1ea;
    --bg-soft: #ffffff;
    --panel: #ffffff;
    --panel-2: #f7f3ee;
    --text: #121212;
    --muted: #4a4a4a;
    --gold: #c79d42;
    --gold-soft: #dcb86d;
    --green: #2f8f5b;
    --border: rgba(18, 18, 18, 0.08);
    --shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
}

/* ===== Globalne style i baza strony ===== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #fffdf9 0%, #f4efe8 100%);
    color: var(--text);
}

img {
    display: block;
    max-width: 100%;
}

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

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    margin-top: 0;
    letter-spacing: 0.02em;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

/* ===== Nawigacja i header ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 78px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--gold-soft);
    font-size: 1.12rem;
}


/* .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(217, 181, 102, 0.1);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 24px;
} */
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #fffaf2 0%, #f0e2c8 100%);
    border-radius: 50%;
    padding: 2px;
    border: 1px solid rgba(199, 157, 66, 0.4);
    box-shadow: 0 10px 24px rgba(199, 157, 66, 0.12);
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* ===== Nawigacja główna ===== */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 1.05rem;
    color: var(--muted);
}

.main-nav a {
    color: var(--text);
}

.main-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--gold-soft);
}

/* ===== Sekcja wide hero / duże zdjęcie na górze strony ===== */

.wide-hero-image {
    padding-top: 18px;
}

.wide-hero-image .container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.wide-hero-image img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

/* ===== Hero główny: tekst + kwadratowe zdjęcie ===== */

.hero-section {
    padding: 72px 0 52px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 42px;
    align-items: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    width: min(45%, 500px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transform: scale(2.5);
    transform-origin: center;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--gold-soft);
    margin-bottom: 18px;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 18px;
}

.lead {
    font-size: 1.08rem;
    max-width: 620px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    color: #111827;
    box-shadow: 0 18px 36px rgba(217, 181, 102, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold); /* Wyraźna ramka w pełnym złotym kolorze */
    color: var(--text);
    transition: all 0.25s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(199,157,66,0.06); /* subtle gold wash */
    color: var(--gold); /* make the label gold on hover/focus */
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(199,157,66,0.08);
}

/* Special 'Zapisy' button for the Zajęcia page */


/* ===== Statystyki i przyciski CTA ===== */

.stats-list {
    list-style: none;
    padding: 0;
    margin: 36px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stats-list li {
    background: linear-gradient(180deg, #fffdf9 0%, #f7f1e8 100%);
    border: 1px solid rgba(18, 18, 18, 0.06);
    border-radius: 18px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 12px 26px rgba(17, 17, 17, 0.04);
}

.stats-list strong {
    font-size: 1.8rem;
    color: var(--gold);
}

.stats-list span {
    color: var(--muted);
}

.hero-visual img,
.promo-image img,
/* .coach-card img {
    border-radius: 26px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.06);
    object-position: center top;
} */

.coach-card img {
    height: 300px;
    object-fit: contain;
    background-color: #f7f3ee;
    border-radius: 26px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(18, 18, 18, 0.06);
}

/* ===== Pass / baner informacyjny ===== */

.feature-band {
    background: #f7f3ee;
    border-top: 1px solid rgba(18, 18, 18, 0.06);
    border-bottom: 1px solid rgba(18, 18, 18, 0.06);
    padding: 28px 0;
}

.band-grid {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 24px;
    align-items: center;
}

/* ===== Sekcje treści, karty i layout treści ===== */

.section {
    padding: 88px 0;
}

.alt-section {
    background: rgba(15, 23, 35, 0.42);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

.section-heading.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Larger gap specifically between oferta cards and the centered Cennik heading */
.cards-grid.oferta-grid + .section-heading.center {
        margin-top: 80px;
}

@media (max-width: 720px) {
    .cards-grid.oferta-grid + .section-heading.center {
        margin-top: 40px;
    }
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0;
}

.cards-grid {
    display: grid;
    gap: 24px;
}

.cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.info-card,
.training-card,
.contact-card,
.coach-card,
.quote-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 26px 22px;
    box-shadow: var(--shadow);
}



.icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    background: rgba(217, 181, 102, 0.14);
    color: var(--gold-soft);
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.training-card h3,
.info-card h3,
.coach-card h3,
.contact-card h3 {
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(110, 199, 162, 0.12);
    color: var(--green);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* ===== Strony wewnętrzne i hero podstron ===== */

.promo-grid,
.content-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: center;
}

/* O nas page specific adjustments: slightly wider gap and justified text */
.o-nas-grid {
    gap: 50px; /* increase space between text and image */
    align-items: start; /* align top edges so text and image start aligned */
}
.o-nas-grid > div p {
    text-align: justify;
}

/* Timeline layout: year and description side by side */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.timeline-year {
    color: var(--gold);
    font-weight: 600;
    min-width: 50px;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-content p {
    margin: 0;
    font-weight: 400;
    color: var(--text);
}

.page-hero {
    padding: 72px 0 32px;
}

.small-hero {
    background: linear-gradient(135deg, rgba(199, 157, 66, 0.08), rgba(255, 255, 255, 0.2));
}

/* Price table and decorative fork icon */
.price-table {
    margin-top: 8px;
    background: transparent;
}
.price-table h4 {
    margin: 6px 0 12px;
    color: var(--text);
}
.price-rows {
    display: grid;
    gap: 10px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%);
    border: 1px solid rgba(18,18,18,0.04);
}
.price-row .label { color: var(--muted); font-weight:600; }
.price-row .value { color: var(--text); font-weight:700; display:flex; align-items:center; gap:8px; }
/* fork icon removed - decorative forks disabled per request */

/* Discounts */
.discounts ul { margin: 8px 0 0 18px; }

@media (max-width: 720px) {
  .price-row { padding: 12px; }
  .price-row .label { font-size: 0.95rem; }
  .price-row .value { font-size: 0.95rem; }
}

/* Responsive adjustments for hero/logo on smaller screens */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-visual {
        order: 2;
        display: flex;
        justify-content: center;
    }
    .hero-copy {
        order: 1;
    }
    .hero-visual img {
        width: 60%;
        max-width: 320px;
        transform: none;
        margin: 0 auto;
        border-radius: 20px;
    }
    .stats-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-visual img {
        width: 72%;
        max-width: 260px;
    }
    .stats-list {
        grid-template-columns: 1fr;
    }
    .hero-section {
        padding: 40px 0 30px;
    }
    .eyebrow { margin-bottom: 12px; }
}

/* Oferta / cennik */
.price-table {
    background: var(--panel-2);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    max-width: 920px;
    margin: 18px auto; /* center the price table */
}
.price-table h4 {
    margin: 8px 0 12px;
    color: var(--text);
}
.price-rows { display: grid; gap: 12px; }
.price-row { display:flex; align-items:center; gap:12px; padding:10px; background: white; border-radius:10px; border:1px solid rgba(18,18,18,0.04); }
.price-row .label { width:180px; font-weight:700; color:var(--gold); white-space:nowrap; }
.price-row .value { margin-left:auto; font-weight:700; color:var(--text); }

.price-row-quote {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.price-row-quote .label {
    width: auto;
    white-space: normal;
    line-height: 1.4;
}

.price-quote-btn {
    justify-self: end;
    width: auto;
    max-width: 100%;
    white-space: normal;
}

.discounts ul { margin:6px 0 0 20px; }

@media (max-width: 720px) {
    .price-row { flex-direction:row; gap:8px; }
    .price-row .label { width:100px; }
    .price-row .fork { width:60px; }

    .price-row-quote {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 10px;
    }

    .price-row-quote .label {
        width: 100%;
    }

    .price-quote-btn {
        width: 100%;
        max-width: 240px;
        justify-self: start;
    }
}

/* Oferta-specific card/button layout */
.oferta-grid .training-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.oferta-grid .training-card .btn-oferta {
    margin-top: auto;
}

/* Button style for oferta (keeps primary look but slightly different radius/weight) */
.btn-oferta {
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
}

.narrow {
    max-width: 820px;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 0;
}

.quote-box {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(1.25rem, 2vw, 2rem);
    color: var(--gold-soft);
    font-family: 'Cinzel', serif;
}

.club-photo-box {
    background: rgba(20, 38, 61, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(5, 10, 20, 0.2);
}

.club-photo-box img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    object-position: center top;
    border-radius: 24px;
}

.coach-card {
    padding: 0;
    overflow: hidden;
}

.coach-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    border: none;
}

.coach-body {
    padding: 22px 20px 24px;
}

.coach-role {
    color: var(--gold-soft);
    font-weight: 600;
    margin-bottom: 8px;
}

/* ===== Kontakt, social media i stopka ===== */

.contact-card ul,
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

.contact-card li,
.site-footer li {
    margin-bottom: 10px;
    color: var(--muted);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.footer-socials {
    margin-top: 12px;
}

.footer-socials .social-btn {
    padding: 8px 10px;
    min-width: 46px;
    justify-content: center;
}

/* ===== Partner logos (Współpraca) ===== */
.partners-logos {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 12px;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.partner-logo {
    display: block;
    height: auto;
    max-height: 90px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.vertical-logo {
    max-height: 96px;
}

.horizontal-logo {
    max-width: 180px;
}

@media (max-width: 720px) {
    .partners-logos {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        align-items: center;
        justify-content: flex-start;
        padding: 0 4px;
    }

    .partner-link {
        flex: 1 1 50%;
        max-width: calc(50% - 6px);
    }

    .partner-logo {
        width: 100%;
        max-height: 80px;
    }

    .vertical-logo {
        max-height: 85px;
        max-width: 100%;
    }

    .horizontal-logo {
        max-width: 100%;
    }
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(217, 181, 102, 0.45);
}

.social-icon {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    filter: none;
}

.social-facebook {
    background: #1877f2;
    color: #ffffff;
}

.social-instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    color: #ffffff;
}

.map-box {
    border-radius: 24px;
    overflow: hidden;
    min-height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

/* ===== Stopka i responsywność ===== */

.site-footer {
    background: #f8f5f0;
    border-top: 1px solid rgba(18, 18, 18, 0.08);
    padding-top: 40px;
    color: var(--text);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 18px;
}

.copyright {
    text-align: center;
    padding: 22px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(41, 44, 48, 0.7);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .hero-grid,
    .promo-grid,
    .content-grid,
    .contact-grid,
    .footer-grid,
    .band-grid,
    .cards-3,
    .cards-2 {
        grid-template-columns: 1fr;
    }

    .main-nav {
        gap: 12px;
        justify-content: center;
    }

    .nav-wrap {
        padding: 16px 0;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .stats-list {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 66px 0;
    }

    .hero-section {
        padding-top: 52px;
    }
}



/* ==== INTERACTIVE TIMELINE ==== */

/* ===== Poprawiona Interaktywna Oś Czasu & Układ Zdjęć ===== */

.modern-timeline {
    position: relative;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Zmniejszony odstęp, by sekcja nie rozciągała się nadmiernie */
}

/* Pionowa linia osi - precyzyjnie pozycjonowana */
.modern-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 7px; /* Dokładny środek dla kropki o szerokości 16px */
    width: 2px;
    background: linear-gradient(180deg, var(--gold) 0%, rgba(199, 157, 66, 0.2) 100%);
    z-index: 1;
}

.modern-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-left: 0;
    opacity: 0.65;
    transform: translateY(8px);
    transition: all 0.35s ease;
}

.modern-timeline-item.active,
.modern-timeline-item:hover {
    opacity: 1;
    transform: translateY(0);
}

/* Kontener na kropkę - wycentrowany dokładnie z osią */
.timeline-marker {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 18px; /* Wyrównanie kropki do nagłówka/odznaki roku w karcie */
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 3px rgba(199, 157, 66, 0.15);
    transition: all 0.25s ease;
}

.modern-timeline-item.active .timeline-dot,
.modern-timeline-item:hover .timeline-dot {
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(199, 157, 66, 0.3);
    transform: scale(1.2);
}

/* Karta wpisu */
.timeline-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 4px 18px rgba(17, 17, 17, 0.03);
    flex-grow: 1;
    transition: all 0.25s ease;
}

.modern-timeline-item:hover .timeline-card {
    border-color: rgba(199, 157, 66, 0.4);
    box-shadow: 0 8px 24px rgba(199, 157, 66, 0.08);
}

.timeline-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    color: #111827;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.timeline-text {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Stos zdjęć po prawej stronie */
.club-photos-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    sticky: top;
}

.club-photos-stack .club-photo-box img {
    height: 240px;
    object-fit: cover;
}

/* Różnicowanie urządzeń: Komputer vs Telefon */
@media (max-width: 900px) {
    /* Ukryj 2 dodatkowe zdjęcia na telefonach i tabletach */
    .desktop-only-photo {
        display: none !important;
    }

    .club-photos-stack .club-photo-box img {
        height: 280px;
    }

    .modern-timeline {
        gap: 12px;
    }

    .timeline-card {
        padding: 12px 14px;
    }
}