/* =========================================================
   FULL-WIDTH reset — zerujemy padding/max-width kontenerów GP
   dla szablonu szkolenie, żeby sekcje szły od krawędzi do krawędzi.
   ========================================================= */
body.is-szkolenie .site-main,
body.is-szkolenie .content-area,
body.is-szkolenie .inside-article,
body.is-szkolenie .inside-content,
body.is-szkolenie .entry-content {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.is-szkolenie .entry-header,
body.is-szkolenie .separator { display: none !important; }

/* Zero odstępów między blokami (WP block-gap + GP spacing) */
body.is-szkolenie .entry-content,
body.is-szkolenie .site-main {
    --wp--style--block-gap: 0 !important;
}
body.is-szkolenie .entry-content > *,
body.is-szkolenie .site-main > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* =========================================================
   Page: Szkolenie (landing sprzedażowy)
   Ładowany tylko gdy template page-szkolenie.php jest aktywny.
   Obrazy: ścieżki w template używają get_theme_file_uri().
   Klasa utility `is-szkolenie` na <body>, scope styli bez kolizji.
   ========================================================= */

/* Wspólne sekcje */
.is-szkolenie .section { padding: 120px 0; }
.is-szkolenie .section--tight { padding: 90px 0; }
.is-szkolenie .section--beige { background: #EFE8E1; }
.is-szkolenie .section--dark { background: var(--c-black); color: var(--c-light); }

.is-szkolenie .eyebrow {
    font-family: var(--f-sans);
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-brown);
    display: inline-flex; align-items: center; gap: 14px;
    margin: 0 0 22px;
}
.is-szkolenie .eyebrow::before {
    content: ""; width: 32px; height: 1px; background: var(--c-brown);
}
.is-szkolenie .section--dark .eyebrow { color: var(--c-beige); }
.is-szkolenie .section--dark .eyebrow::before { background: var(--c-beige); }

.is-szkolenie .h2 {
    font-family: var(--f-serif);
    font-weight: 500;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 28px;
    color: inherit;
    max-width: 820px;
}
.is-szkolenie .lead {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.55;
    letter-spacing: 0.02em;
    margin: 0 0 40px;
    max-width: 780px;
    color: rgba(36,35,33,0.82);
}
.is-szkolenie .section--dark .lead { color: rgba(247,246,242,0.8); }

/* HERO — wydzielone do blocks/hero-course/style.css (self-loaded gdy blok renderowany). */

/* Pomocnicze klasy dla pozostałych sekcji (intro, audience, learn, how, highlights,
   mandatory, gallery) — pozostają tu do czasu refaktoru każdej na osobny blok.
   Style „placeholder" — niewidoczne dopóki bloki nie zostaną wstawione. */
.placeholder-keep-formatting {
}

/* ——— Facts ——— */
.facts {
    background: var(--c-white);
    border-top: 1px solid rgba(61,33,12,0.08);
    border-bottom: 1px solid rgba(61,33,12,0.08);
}
.facts__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    max-width: var(--container); margin: 0 auto;
}
.facts__item { padding: 36px 32px; text-align: center; border-left: 1px solid rgba(61,33,12,0.1); }
.facts__item:first-child { border-left: 0; }
.facts__num {
    font-family: var(--f-serif);
    font-size: 36px; font-weight: 500;
    letter-spacing: 0.04em; color: var(--c-brown);
    display: block; margin-bottom: 6px;
}
.facts__label {
    font-family: var(--f-sans);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(36,35,33,0.7);
}

/* ——— Intro ——— */
.intro__grid {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: 80px; align-items: center;
}
.intro__image {
    aspect-ratio: 4/5;
    background-image: var(--intro-bg);
    background-size: cover; background-position: center;
    position: relative; overflow: hidden;
}
.intro__image--video { aspect-ratio: 16/9; }
.intro__video,
.mandatory__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.intro__body p { font-size: 17px; line-height: 1.8; color: rgba(36,35,33,0.85); margin: 0 0 20px; }
.intro__body p strong { color: var(--c-black); font-weight: 600; }
.intro__body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 10px;
}
.intro__body ul li {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(36,35,33,0.85);
    padding-left: 22px;
    position: relative;
}
.intro__body ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 10px;
    width: 10px; height: 1px;
    background: var(--c-brown);
}

/* ——— Audience ——— */
.audience__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.audience__card {
    background: var(--c-white);
    padding: 36px 32px;
    border: 1px solid rgba(61,33,12,0.1);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s ease;
    position: relative;
}
.audience__card::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 0; height: 2px; background: var(--c-brown);
    transition: width 0.5s var(--ease-out);
}
.audience__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(36,35,33,0.08);
    border-color: transparent;
}
.audience__card:hover::before { width: 100%; }
.audience__num {
    font-family: var(--f-serif); font-style: italic;
    font-size: 28px; color: var(--c-brown);
    margin-bottom: 14px; display: block;
}
.audience__card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--c-black); }

/* ——— Learn ——— */
.learn__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 48px; }
.learn__item {
    display: flex; gap: 18px; padding: 22px 0;
    border-bottom: 1px solid rgba(61,33,12,0.12);
    align-items: flex-start;
}
.learn__icon {
    flex-shrink: 0; width: 34px; height: 34px;
    border: 1px solid var(--c-brown); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-brown); font-size: 14px; margin-top: 2px;
    transition: background 0.3s ease, color 0.3s ease;
}
.learn__item:hover .learn__icon { background: var(--c-brown); color: var(--c-light); }
.learn__text { font-size: 16px; line-height: 1.65; color: var(--c-black); }

/* ——— How ——— */
.how__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: 40px;
    background: var(--c-white);
    border: 1px solid rgba(61,33,12,0.1);
}
.how__col { padding: 48px 40px; border-left: 1px solid rgba(61,33,12,0.1); }
.how__col:first-child { border-left: 0; }
.how__col h3 {
    font-family: var(--f-sans);
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--c-brown); margin: 0 0 28px;
    padding-bottom: 16px; border-bottom: 1px solid rgba(61,33,12,0.15);
}
.how__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.how__col li {
    font-family: var(--f-serif);
    font-size: 17px; line-height: 1.5;
    color: var(--c-black); padding-left: 26px; position: relative;
}
.how__col li::before {
    content: ""; position: absolute; left: 0; top: 13px;
    width: 14px; height: 1px; background: var(--c-brown);
}

/* ——— Highlights ——— */
.highlights__grid { display: grid; grid-template-columns: repeat(var(--highlights-cols, 5), 1fr); margin-top: 60px; row-gap: 20px; }
.highlight {
    padding: 40px 28px; position: relative;
}
.highlight::before {
    content: ""; position: absolute; left: 0; top: 15%; height: 70%;
    width: 1px; background: rgba(213,194,180,0.2);
}
.highlight--row-start::before { display: none; }
.highlight__num {
    font-family: var(--f-serif); font-style: italic;
    font-size: 14px; letter-spacing: 0.1em;
    color: var(--c-beige); margin-bottom: 14px; display: block;
}
.highlight__text {
    font-family: var(--f-serif); font-size: 17px; line-height: 1.5;
    color: var(--c-light); margin: 0;
}

/* ——— Mandatory ——— */
.mandatory__grid {
    display: grid; grid-template-columns: 1fr 1.15fr;
    gap: 80px; align-items: center;
}
.mandatory__image {
    aspect-ratio: 4/5;
    background-image: var(--mandatory-bg);
    background-size: cover; background-position: center;
    position: relative; overflow: hidden;
}
.mandatory__image--video { aspect-ratio: 16/9; }
.mandatory__list { list-style: none; margin: 0; padding: 0; counter-reset: mandatory; }
.mandatory__list li {
    counter-increment: mandatory;
    padding: 24px 0 24px 72px;
    border-bottom: 1px solid rgba(61,33,12,0.12);
    position: relative;
    font-size: 17px; line-height: 1.55; color: var(--c-black);
}
.mandatory__list li:last-child { border-bottom: 0; }
.mandatory__list li::before {
    content: counter(mandatory, decimal-leading-zero);
    position: absolute; left: 0; top: 22px;
    font-family: var(--f-serif); font-style: italic;
    font-size: 24px; color: var(--c-brown); letter-spacing: 0.04em;
}

/* ——— Gallery ——— */
.gallery { display: grid; grid-template-columns: repeat(var(--gallery-cols, 4), 1fr); gap: 4px; overflow: hidden; }
.gallery__item {
    aspect-ratio: 3/4;
    background-size: cover; background-position: center;
    transition: filter 0.5s ease, transform 0.8s var(--ease-out);
    overflow: hidden;
}
.gallery__item:hover { filter: brightness(1.05); transform: scale(1.02); }

/* ——— Dates (sekcja wrappująca shortcode [szkolenia_terminy]) ——— */
.dates { background: #EFE8E1; }
.dates__head { text-align: center; margin-bottom: 48px; }
.dates__head .eyebrow { justify-content: center; display: inline-flex; }
.dates__title {
    font-family: var(--f-serif);
    font-weight: 500;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.2; letter-spacing: 0.04em;
    margin: 0; color: var(--c-black);
}
.dates__title em { font-style: italic; color: var(--c-brown); }

/* ——— Calendar wrapper (shortcode [kalendarz_szkolen]) ——— */
.calendar { background: var(--c-light); }
.calendar__head { text-align: center; margin-bottom: 40px; }
.calendar__title {
    font-family: var(--f-serif); font-weight: 500;
    font-size: clamp(28px, 3.4vw, 42px);
    letter-spacing: 0.04em; margin: 0; color: var(--c-black);
}
.calendar__title em { font-style: italic; color: var(--c-brown); }

/* ——— CTA block ——— */
.cta-block {
    background: var(--c-brown); color: var(--c-light);
    text-align: center; padding: 110px 32px;
    position: relative; overflow: hidden;
}
.cta-block::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--cta-bg);
    background-size: cover; background-position: center;
    opacity: 0.15; filter: grayscale(1);
}
.cta-block--has-video::before { display: none; }
.cta-block__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    opacity: 0.22; filter: grayscale(1);
    z-index: 1;
}
.cta-block__inner { position: relative; z-index: 2; }
.cta-block__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cta-block .eyebrow { color: var(--c-beige); justify-content: center; display: flex; }
.cta-block .eyebrow::before { background: var(--c-beige); }
.cta-block h2 {
    font-family: var(--f-serif); font-weight: 500;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15; letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 24px; color: var(--c-white);
}
.cta-block p {
    font-family: var(--f-serif); font-style: italic;
    font-size: 19px; line-height: 1.6;
    color: rgba(247,246,242,0.85);
    margin: 0 0 40px;
}
.cta-block .cta-btn {
    background: var(--c-light); color: var(--c-brown); border-color: var(--c-light);
}
.cta-block .cta-btn::before { background: var(--c-white); }
.cta-block .cta-btn:hover { color: var(--c-brown); border-color: var(--c-white); }
.cta-block__meta {
    margin-top: 40px; display: flex; justify-content: center; gap: 40px;
    font-family: var(--f-sans);
    font-size: 12px; letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(247,246,242,0.7); flex-wrap: wrap;
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
    .hero-course__grid { grid-template-columns: 1fr; }
    .hero-course__image { min-height: 420px; order: -1; }
    .hero-course__copy { padding: 60px 32px; }
    .intro__grid, .mandatory__grid { grid-template-columns: 1fr; gap: 48px; }
    .highlights__grid { grid-template-columns: repeat(2, 1fr); }
    .highlight::before { left: 0; top: 15%; height: 70%; }
    .highlight:nth-child(odd)::before { display: none; }
    .highlight--row-start::before { display: none; }
}
@media (max-width: 900px) {
    .is-szkolenie .section { padding: 80px 0; }
    .facts__grid { grid-template-columns: repeat(2, 1fr); }
    .facts__item:nth-child(-n+2) { border-bottom: 1px solid rgba(61,33,12,0.1); }
    .facts__item:nth-child(odd) { border-left: 0; }
    .audience__grid { grid-template-columns: 1fr; }
    .learn__grid { grid-template-columns: 1fr; }
    .how__grid { grid-template-columns: 1fr; }
    .how__col { border-left: 0; border-top: 1px solid rgba(61,33,12,0.1); }
    .how__col:first-child { border-top: 0; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .cta-block__meta { gap: 20px; }
    .hero-course__meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .hero-course__meta { grid-template-columns: 1fr; gap: 20px; }
    .highlights__grid { grid-template-columns: 1fr; }
    .highlight::before { display: none; }
    .container { padding: 0 20px; }
}
