/* ============================================================
   SPIRO PILATES — homepage-extra.css
   Sekcje: stats · dlaczego-spiro · podgląd zajęć · FAQ
   Umieść w: assets/css/homepage-extra.css
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   STATYSTYKI
══════════════════════════════════════════════════════════════ */
.spiro-stats {
    background: var(--cta);
    padding: 64px 0;
}

.spiro-stats__inner {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.spiro-stats__item {
    flex: 1;
    text-align: center;
    padding: 0 40px;
    color: var(--cta-text);
}

.spiro-stats__number {
    display: block;
    font-family: var(--font-title);
    font-size: clamp(52px, 6vw, 80px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.spiro-stats__pct {
    font-size: 0.5em;
    vertical-align: super;
}

.spiro-stats__unit {
    display: block;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.6;
    margin: 6px 0 12px;
    color: var(--cta-text);
}

.spiro-stats__label {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.75;
    margin: 0;
    color: var(--cta-text);
}

.spiro-stats__divider {
    width: 1px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    align-self: center;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   DLACZEGO SPIRO
══════════════════════════════════════════════════════════════ */
.spiro-why {
    padding: 96px 0;
    background: var(--bg);
}

.spiro-why__header {
    margin-bottom: 56px;
}

.spiro-why__label {
    font-size: 10px;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 12px;
}

.spiro-why__title {
    font-family: var(--font-title);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    color: var(--text);
}

.spiro-why__title em {
    font-style: italic;
    color: var(--muted);
}

.spiro-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
}

.spiro-why__card {
    background: var(--bg);
    padding: 40px 32px;
    transition: background 0.3s ease;
}

.spiro-why__card:hover {
    background: var(--cta);
}

.spiro-why__card:hover .spiro-why__icon,
.spiro-why__card:hover .spiro-why__card-title,
.spiro-why__card:hover .spiro-why__card-text {
    color: var(--cta-text);
}

.spiro-why__card:hover .spiro-why__card-title {
    color: var(--accent);
}

.spiro-why__icon {
    color: var(--cta);
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.spiro-why__card-title {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    color: var(--text);
    transition: color 0.3s ease;
}

.spiro-why__card-text {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
    transition: color 0.3s ease;
}

/* ══════════════════════════════════════════════════════════════
   PODGLĄD ZAJĘĆ
══════════════════════════════════════════════════════════════ */
.spiro-preview {
    padding: 96px 0;
    background: #f0ece3;
}

.spiro-preview__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 24px;
}

.spiro-preview__label {
    font-size: 10px;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 10px;
}

.spiro-preview__title {
    font-family: var(--font-title);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    color: var(--text);
}

.spiro-preview__title em {
    font-style: italic;
    color: var(--muted);
}

.spiro-preview__all {
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.06em;
    white-space: nowrap;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--text);
    transition: opacity 0.25s ease;
}


.spiro-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.spiro-preview__card {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
}


.spiro-preview__img {
    height: 220px;
    background-size: 40%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #c9c9b0;
    transition: background-color 0.3s ease;
}

.spiro-preview__card:hover .spiro-preview__img {
    background-color: #bfbfa6;
}

.spiro-preview__body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.spiro-preview__tag {
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.spiro-preview__card-title {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    color: var(--text);
}

.spiro-preview__card-text {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0 0 24px;
    flex: 1;
}

.spiro-preview__btn {
    align-self: flex-start;
}

/* ══════════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════════ */
.spiro-faq {
    padding: 96px 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.spiro-faq__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.spiro-faq__label {
    font-size: 10px;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 16px;
}

.spiro-faq__title {
    font-family: var(--font-title);
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 32px;
    color: var(--text);
}

.spiro-faq__title em {
    font-style: italic;
    color: var(--muted);
}

.spiro-faq__sub {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
}

.spiro-faq__sub a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    transition: border-color 0.25s;
}

.spiro-faq__sub a:hover {
    border-color: var(--text);
}

/* FAQ items */
.spiro-faq__item {
    border-bottom: 1px solid var(--line);
}

.spiro-faq__item:first-child {
    border-top: 1px solid var(--line);
}

.spiro-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    transition: color 0.25s ease;
}

.spiro-faq__question::-webkit-details-marker { display: none; }

.spiro-faq__question:hover {
    color: var(--muted);
}

.spiro-faq__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
}

.spiro-faq__icon::before,
.spiro-faq__icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.25s;
}

.spiro-faq__icon::before {
    width: 14px; height: 1.5px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.spiro-faq__icon::after {
    width: 1.5px; height: 14px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

details[open] .spiro-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.spiro-faq__answer {
    font-size: 14px;
    line-height: 1.85;
    color: var(--muted);
    padding: 0 40px 24px 0;
    margin: 0;
}

.spiro-faq__answer a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .spiro-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .spiro-preview__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .spiro-preview__grid .spiro-preview__card:last-child {
        display: none;
    }
}

@media (max-width: 768px) {
    .spiro-stats__inner {
        flex-direction: column;
        gap: 40px;
    }
    .spiro-stats__divider { display: none; }
    .spiro-stats__item { padding: 0; }

    .spiro-why__grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .spiro-preview__grid {
        grid-template-columns: 1fr;
    }
    .spiro-preview__grid .spiro-preview__card:last-child {
        display: flex;
    }
    .spiro-preview__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .spiro-faq__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .spiro-faq__title {
        font-size: 32px;
    }
}