/* ==========================================================================
   PODSTRONA WARSZTATU — single-warsztat.css
   Wzorowany 1:1 na specjalista-profil.css
   Paleta: #C6A96B złoto / #B5CBBF szałwia / #7A8A72 sage-dark / #121212 tekst / #F7F6F3 beż
   ========================================================================== */

:root {
    --sw-gold:       #C6A96B;
    --sw-gold-dark:  #A68B4B;
    --sw-sage:       #B5CBBF;
    --sw-sage-dark:  #7A8A72;
    --sw-text:       #121212;
    --sw-text-mid:   rgba(18, 18, 18, 0.65);
    --sw-text-light: rgba(18, 18, 18, 0.45);
    --sw-bg:         #F7F6F3;
    --sw-bg-warm:    #F2F0EC;
    --sw-white:      #ffffff;
    --sw-font-base:  'DM Sans', sans-serif;
    --sw-font-serif: 'Instrument Serif', serif;
}

/* ==========================================================================
   RESET Kadence
   ========================================================================== */

body.single-warsztat-page,
html:has(body.single-warsztat-page) {
    background-color: var(--sw-bg) !important;
}

body.single-warsztat-page #inner-wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

body.single-warsztat-page {
    margin: 0;
    padding: 0 !important;
    background: var(--sw-bg);
    color: var(--sw-text);
    font-family: var(--sw-font-base);
    -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================================
   WRAPPER
   ========================================================================== */

.sw-profil {
    padding-top: 90px; /* kompensacja fixed navbara */
    background: var(--sw-bg);
}

/* ==========================================================================
   NAGŁÓWEK SEKCJI
   ========================================================================== */

.sw-section-heading {
    text-align: center;
    padding: 48px 40px 0;
}

.sw-section-heading__title {
    font-family: var(--sw-font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    color: var(--sw-text);
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.sw-accent-sage {
    color: var(--sw-sage-dark);
}

.sw-section-heading__separator {
    width: 60px;
    height: 2px;
    background: var(--sw-sage);
    margin: 20px auto 0;
    border-radius: 1px;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.sw-hero {
    padding: 48px 0 80px;
    background: var(--sw-bg);
}

.sw-hero__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: 64px;
    align-items: center;
}

/* Zdjęcie */
.sw-hero__photo-wrap {
    position: relative;
    aspect-ratio: 3 / 2;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sw-hero__photo-glow {
    position: absolute;
    inset: -8%;
    background: radial-gradient(ellipse 70% 60% at 50% 50%,
        rgba(181, 203, 191, 0.28) 0%,
        rgba(198, 169, 107, 0.08) 55%,
        transparent 100%);
    filter: blur(28px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.sw-hero__photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(8%);
    display: block;
}

/* Info */
.sw-hero__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Gdy brak zdjęcia — info zajmuje pełną kolumnę */
.sw-hero__info--full {
    grid-column: 1 / -1;
    max-width: 680px;
}

/* Link powrotu */
.sw-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sw-font-base);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(18, 18, 18, 0.38);
    text-decoration: none;
    margin-bottom: 36px;
    position: relative;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sw-back-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--sw-sage-dark, #7A8A72);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sw-back-link:hover {
    color: var(--sw-sage-dark, #7A8A72);
}

.sw-back-link:hover::after {
    transform: scaleX(1);
}

/* Badge cykliczny */
.sw-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sw-font-base);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sw-gold);
    border: 1px solid rgba(198, 169, 107, 0.4);
    padding: 5px 12px;
    margin-bottom: 20px;
}

/* Badges — data, godzina, miejsce */
.sw-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.sw-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sw-font-base);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sw-sage-dark);
    background: rgba(181, 203, 191, 0.18);
    border: 1px solid rgba(181, 203, 191, 0.55);
    border-radius: 100px;
    padding: 5px 12px;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tytuł */
.sw-hero__title {
    font-family: var(--sw-font-serif);
    font-style: italic;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 400;
    color: var(--sw-text);
    margin: 0 0 24px;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

/* Lead */
.sw-hero__lead {
    font-family: var(--sw-font-base);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--sw-text-mid);
    margin: 0 0 36px;
    max-width: 520px;
}

/* CTA button — identyczny jak sp-cta */
.sw-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 36px;
    background: #B5CBBF;
    border: none;
    color: #ffffff;
    font-family: 'Josefin Sans', 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow:
        0 4px 24px rgba(181, 203, 191, 0.5),
        0 2px 8px rgba(18, 18, 18, 0.06);
    transition:
        color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
}

.sw-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(128, 156, 141, 0.5);
    transform: translateX(calc(-100% - 2px));
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sw-cta:hover {
    color: #ffffff;
    box-shadow:
        0 8px 40px rgba(18, 18, 18, 0.2),
        0 2px 12px rgba(18, 18, 18, 0.1);
}

.sw-cta:hover::before {
    transform: translateX(0);
}

.sw-cta span,
.sw-cta svg {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   SEPARATOR
   ========================================================================== */

.sw-divider {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px 64px;
}

.sw-divider::before,
.sw-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(18, 18, 18, 0.1);
}

.sw-divider__label {
    font-family: var(--sw-font-base);
    font-size: 1.1rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sw-text-light);
    white-space: nowrap;
}

/* ==========================================================================
   BODY — sekcje
   ========================================================================== */

.sw-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
}

.sw-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(18, 18, 18, 0.06);
}

.sw-section:last-child {
    border-bottom: none;
}

.sw-section__container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Etykieta sekcji — badge */
.sw-section__label {
    font-family: var(--sw-font-base);
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sw-text-light);
    font-weight: 600;
    align-self: flex-start;
    background: rgba(181, 203, 191, 0.18);
    border: 1px solid rgba(18, 18, 18, 0.10);
    border-radius: 100px;
    padding: 4px 14px;
    line-height: 1.4;
}

/* --- Opis główny --- */
.sw-opis__text {
    font-family: var(--sw-font-base);
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--sw-text-mid);
}

.sw-opis__text p {
    margin: 0 0 1.2em;
}

.sw-opis__text p:last-child {
    margin-bottom: 0;
}

.sw-opis__text h2,
.sw-opis__text h3 {
    font-family: var(--sw-font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--sw-text);
    margin: 1.6em 0 0.5em;
    line-height: 1.2;
}

.sw-opis__text h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.sw-opis__text h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.sw-opis__text ul,
.sw-opis__text ol {
    padding-left: 1.4em;
    margin: 0 0 1.2em;
}

/* --- Dla kogo — tagi --- */
.sw-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sw-tag {
    font-family: var(--sw-font-base);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--sw-text-mid);
    border: 1px solid rgba(198, 169, 107, 0.3);
    padding: 9px 20px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.sw-tag:hover {
    background: rgba(198, 169, 107, 0.07);
    border-color: rgba(18, 18, 18, 0.4);
    color: var(--sw-text);
}

/* --- Co zyskasz — lista z ikonami --- */
.sw-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sw-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--sw-font-base);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--sw-text-mid);
}

.sw-benefit__icon {
    flex-shrink: 0;
    color: var(--sw-sage-dark);
    margin-top: 2px;
}

/* --- Program --- */
.sw-program__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sw-program__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(18, 18, 18, 0.06);
    font-family: var(--sw-font-base);
}

.sw-program__item:last-child {
    border-bottom: none;
}

.sw-program__num {
    font-family: var(--sw-font-serif);
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--sw-sage);
    opacity: 0.7;
    flex-shrink: 0;
    min-width: 32px;
}

.sw-program__text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--sw-text-mid);
    padding-top: 4px;
}

/* --- Szczegóły praktyczne — karty FAQ --- */
.sw-info-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.sw-info-card {
    background: var(--sw-white);
    border: 1px solid rgba(18, 18, 18, 0.07);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sw-info-card__icon {
    color: var(--sw-sage-dark);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.sw-info-card__q {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sw-text-light);
    margin: 0;
    font-family: var(--sw-font-base);
}

.sw-info-card__a {
    font-size: 1.05rem;
    color: var(--sw-text);
    margin: 3px 0 0;
    font-family: var(--sw-font-base);
    font-weight: 500;
    line-height: 1.4;
}

.sw-info-card__tip {
    font-size: 0.78rem;
    color: var(--sw-sage-dark);
    margin: 6px 0 0;
    font-style: italic;
}

/* ==========================================================================
   DOLNE CTA
   ========================================================================== */

.sw-footer-cta {
    background: var(--sw-bg-warm);
    border-top: 1px solid rgba(18, 18, 18, 0.07);
    padding: 80px 40px;
    text-align: center;
}

.sw-footer-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 480px;
    margin: 0 auto;
}

.sw-footer-cta__text {
    font-family: var(--sw-font-serif);
    font-style: italic;
    font-size: clamp(2rem, 4vw, 4rem);
    color: var(--sw-text-mid);
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.sw-back-link--bottom {
    margin: 0;
    font-size: 0.9rem;
    color: var(--sw-text-mid);
    margin-top: 60px;
}

/* ==========================================================================
   RESPONSYWNOŚĆ
   ========================================================================== */

@media (max-width: 1080px) {
    .sw-hero__container {
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .sw-section-heading {
        padding: 36px 32px 0;
    }

    .sw-hero {
        padding: 36px 0 64px;
    }

    .sw-hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 640px;
        padding: 0 32px;
    }

    .sw-hero__photo-wrap {
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }

    .sw-hero__lead {
        max-width: none;
    }

    .sw-body {
        padding: 0 32px;
    }

    .sw-divider {
        padding: 0 32px 48px;
    }

    .sw-section__container {
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .sw-profil {
        padding-top: 80px;
    }

    .sw-hero {
        padding: 36px 0 56px;
    }

    .sw-hero__container {
        padding: 0 20px;
    }

    .sw-body {
        padding: 0 20px;
    }

    .sw-divider {
        padding: 0 20px 40px;
    }

    .sw-section {
        padding: 44px 0;
    }

    .sw-footer-cta {
        padding: 60px 20px;
    }

    .sw-cta {
        width: 100%;
        justify-content: center;
    }

    .sw-info-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   PREFERS REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .sw-cta::before,
    .sw-back-link,
    .sw-tag,
    .sw-cta {
        transition: none !important;
    }
}
