/* =====================================================
   1. RESET BAZOWY I ZMIENNE GLOBALNE (YMYL / PREMIUM)
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

*, html, body, h1, h2, h3, h4, h5, h6, p, span, a, li {
    font-display: swap !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

body {
    font-display: swap;
    margin: 0;
    padding: 0;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    border-style: none;
}

a {
    text-decoration: none;
    background: transparent;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.site {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Global Container */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* =====================================================
   2. WORDPRESS CORE ALIGNMENTS & UTILITIES
===================================================== */

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alignleft {
    float: left;
    margin: 0 28px 28px 0;
}

.alignright {
    float: right;
    margin: 0 0 28px 28px;
}

/* Screen-reader only */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
}

.screen-reader-text:focus {
    clip: auto !important;
    clip-path: none;
    background: #f1f1f1;
    padding: 15px 23px;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(0, 0, 0, .6);
    z-index: 100000;
    width: auto;
    height: auto;
}

/* Clearfix */
.clear,
.clearfix::after,
article::after,
.wp-block-group::after {
    content: "";
    display: table;
    clear: both;
}

/* Gutenberg Alignwide & Alignfull */
.alignwide {
    margin-left: -40px;
    margin-right: -40px;
    max-width: calc(100% + 80px);
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
    border-radius: 0 !important;
}

.alignfull img {
    border-radius: 0 !important;
    width: 100%;
    height: auto;
}

/* WordPress Captions & Figures */
.wp-caption {
    max-width: 100%;
    background: #ffffff;
    border: 1px solid rgba(27, 45, 66, 0.06);
    padding: 10px;
    margin: 36px auto;
    border-radius: var(--pt-blog-radius, 20px);
    box-shadow: var(--pt-blog-shadow, 0 12px 35px rgba(27, 45, 66, 0.04));
}

.wp-caption img {
    display: block;
    width: 100% !important;
    height: auto !important;
    border-radius: calc(var(--pt-blog-radius, 20px) - 8px);
}

.wp-caption-text,
figcaption {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--pt-blog-muted, #526071) !important;
    text-align: center;
    padding: 14px 10px 4px 10px;
    margin: 0 !important;
    font-style: italic;
}

.wp-caption-text a,
figcaption a {
    color: var(--pt-blog-brand, #1b2d42);
    text-decoration: underline;
    font-weight: 500;
}

/* =====================================================
   3. ANIMACJE – ON SCROLL
===================================================== */

.pt-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(.16, 1, .3, 1), transform 0.7s cubic-bezier(.16, 1, .3, 1);
}

.pt-hero-content .pt-animate, 
.pt-hero-media .pt-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

.pt-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pt-delay-1 { transition-delay: 0s; }
.pt-delay-2 { transition-delay: 0.15s; }
.pt-delay-3 { transition-delay: 0.25s; }
.pt-delay-4 { transition-delay: 0.35s; }
.pt-delay-5 { transition-delay: 0.45s; }

/* =====================================================
   4. SYSTEM PRZYCISKÓW (PT CLINIC & WP BLOCKS)
===================================================== */

.pt-clinic-btn,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.35s cubic-bezier(.16, 1, .3, 1), 
                box-shadow 0.35s cubic-bezier(.16, 1, .3, 1), 
                background 0.3s ease, 
                color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Wariant Primary (Granatowy) */
.pt-clinic-btn--primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background: #1b2d42;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(27, 45, 66, 0.15);
}

.pt-clinic-btn--primary:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background: #000000;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(27, 45, 66, 0.25);
}

/* Wariant Outline */
.pt-clinic-btn--outline,
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: #1b2d42 !important;
    border: 2px solid #1b2d42;
    box-shadow: none;
}

.pt-clinic-btn--outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: #1b2d42;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Jasny przycisk (np. Prefooter) */
.pt-btn--light {
    background: #dad1c8;
    color: #1b2d42;
    padding: 14px 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

.pt-btn--light:hover {
    background: #ffffff;
    transform: translateY(-2px);
    color: #1b2d42;
}

.pt-btns-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.wp-block-button {
    margin: 24px 0;
}

/* =====================================================
   5. KOMPONENTY KLINICZNE (BOKSY, CTA, READMORE, BADGE, FAQ)
===================================================== */

/* Sekcja FAQ */
.pt-faq {
    margin: 0 auto;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}
.pt-faq::before {
    content: '';
    position: absolute;
    top: 40px;
    left: -100px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 45, 66, 0.08) 2px, transparent 2px);
    background-size: 22px 22px;
    z-index: 1;
    pointer-events: none;
}
.pt-faq::after {
    display: none !important;
}
.pt-faq-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 2;
}
.pt-faq-title {
    font-family: 'Lora', serif !important;
    font-weight: 600 !important;
    font-size: 38px;
    line-height: 1.25;
    margin: 0;
    color: #1b2d42;
    text-align: center;
    letter-spacing: -0.01em;
}
.pt-faq-lead {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    letter-spacing: 0.01em !important;
    margin: 24px auto 0 auto;
    color: #0d2344;
    text-align: center;
    font-weight: 400 !important;
}
.pt-faq-item {
    border-bottom: 1px solid rgba(27, 45, 66, 0.08);
    position: relative;
    z-index: 2;
}
.pt-faq-question {
    all: unset;
    display: block;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    font-family: 'Lora', serif !important;
    font-weight: 600 !important;
    font-size: 22px;
    line-height: 1.4;
    color: #1b2d42;
    position: relative;
    padding: 24px 40px 0 0;
    user-select: none;
    transition: color 0.3s ease;
}
.pt-faq-question:hover {
    color: #101d2a;
}
.pt-faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: calc(50% + 12px);
    transform: translateY(-50%);
    font-size: 24px;
    line-height: 1;
    color: #1b2d42;
    font-weight: 300;
    transition: transform .3s ease, opacity .3s ease;
}
.pt-faq-item.is-open .pt-faq-question::after {
    content: "–";
}
.pt-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.pt-faq-item.is-open .pt-faq-answer {
    max-height: 2000px;
}
.pt-faq-answer > div {
    padding-top: 16px;
    padding-bottom: 28px;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #526071;
    font-weight: 400 !important;
}
.pt-faq-lead a,
.pt-faq-answer a {
    color: #1b2d42;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.pt-faq-lead a:hover,
.pt-faq-answer a:hover {
    color: #000000;
    text-decoration-thickness: 2px;
}

/* Ogólne boksy informacyjne/alertowe */
.pt-clinic-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 32px;
    margin: 40px 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(27, 45, 66, 0.03);
    border: 1px solid rgba(27, 45, 66, 0.06);
}

.pt-clinic-box__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pt-clinic-box__icon-link {
    display: inline-block;
    transition: transform 0.2s ease;
}
.pt-clinic-box__icon-link:hover {
    transform: scale(1.1);
}

.pt-clinic-box__icon {
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1;
}

.pt-clinic-box__content {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #1b2d42;
}

/* Warianty boksów */
.pt-clinic-box--alert {
    border-left: 4px solid #d32f2f;
    background: #fffcfc;
}
.pt-clinic-box--alert .pt-clinic-box__icon { color: #d32f2f; }

.pt-clinic-box--info {
    border-left: 4px solid #1b2d42;
    background: #f8fafc;
}
.pt-clinic-box--info .pt-clinic-box__icon { color: #1b2d42; }

/* Badges */
.pt-clinic-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 10px;
}
.pt-clinic-badge--alert { background: #d32f2f; color: #ffffff; }
.pt-clinic-badge--info { background: #1b2d42; color: #ffffff; }

/* Moduł CTA Box (Shortcode / Sekcja) zunifikowany z systemem przycisków */
.pt-clinic-cta-box {
    background-color: #f4f6f8;
    color: #1b2d42;
    border-radius: 16px;
    padding: 45px 35px;
    margin: 40px auto;
    text-align: center;
    border: 2px solid #e2e8f0;
    box-shadow: 0 15px 35px rgba(27, 45, 66, 0.08), 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.pt-clinic-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #1b2d42;
}

.pt-clinic-cta-box__text {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.pt-clinic-cta-box__text p {
    margin: 0 0 12px 0;
}
.pt-clinic-cta-box__text p:last-child {
    margin-bottom: 0;
}

.pt-clinic-cta-box__text h2, 
.pt-clinic-cta-box__text h3 {
    color: #1b2d42;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.pt-clinic-cta-box__action {
    margin-bottom: 0;
}

/* Moduł "Czytaj dalej" */
.pt-clinic-readmore {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 24px;
    margin: 36px 0;
    background: #ffffff;
    border: 1px solid rgba(27, 45, 66, 0.06);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px;
}

.pt-clinic-readmore__label {
    font-weight: 700;
    color: #1b2d42;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.pt-clinic-readmore__link {
    color: #1b2d42 !important;
    font-weight: 600;
    text-decoration: underline !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =====================================================
   6. PRE-FOOTER & FOOTER
===================================================== */

.pt-prefooter-cta {
    background: #1b2d42;
    color: #ffffff;
    padding: 80px 0;
    position: relative;
}

.pt-prefooter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.pt-prefooter-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 15.5px;
    line-height: 2.0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.pt-footer {
    background: #0d1722;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.pt-footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    padding: 90px 0;
}

.footer-title,
p.footer-title {
    margin: 0 0 24px 0;
    line-height: 1.3;
    font-family: 'Lora', serif !important;
    font-size: 20px;
    color: #ffffff;
    font-weight: 600 !important;
}

.pt-footer-about, 
.pt-footer-contact {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    line-height: 1.8;
    color: #c5ccd4;
}

.pt-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pt-footer-nav li {
    margin-bottom: 14px;
}

.pt-footer-nav a {
    color: #c5ccd4;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    transition: color 0.2s ease;
}

.pt-footer-nav a:hover {
    color: #ffffff;
}

.pt-footer-contact {
    font-size: 14.5px;
    color: #c5ccd4;
    line-height: 1.8;
}

.pt-footer-contact a {
    color: #ffffff;
    transition: color 0.2s ease;
    font-weight: 500;
}

.pt-footer-contact a:hover {
    color: #ffffff;
}

.pt-footer-hours {
    margin-top: 20px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #c5ccd4;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pt-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
    color: #8fa5bc;
    letter-spacing: 0.02em;
}

.pt-footer-legal {
    margin-top: 8px;
    font-size: 12px;
    color: #7a8ea5;
}

/* =====================================================
   7. STRONA 404
===================================================== */

.pt-error-404-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-error-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 20px 100px 20px;
}

.pt-error-code {
    display: block;
    font-family: 'Lora', serif;
    font-size: 110px;
    font-weight: 700;
    line-height: 1;
    color: #1b2d42;
    margin-bottom: 10px;
    opacity: 0.9;
}

.pt-error-title {
    font-family: 'Lora', serif !important;
    font-size: 32px !important;
    color: #1b2d42;
    margin-bottom: 16px;
    font-weight: 600 !important;
}

.pt-error-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 36px;
    color: #64748b;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.pt-error-search {
    max-width: 500px;
    margin: 0 auto 36px auto;
}

.pt-error-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pt-error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =====================================================
   8. RESPONSYWNOŚĆ (RWD)
===================================================== */

@media (max-width: 1100px) {
    .pt-faq::before {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .pt-footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
        padding: 60px 0;
    }

    .pt-prefooter-inner {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 32px;
    }

    p.footer-title,
    .footer-title {
        font-size: 26px !important;
    }

    .pt-prefooter-text {
        font-size: 14.5px;
    }
}

@media (max-width: 992px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .pt-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .pt-faq {
        padding: 60px 0;
    }
    .pt-faq-header {
        text-align: left;
        margin-bottom: 40px;
    }
    .pt-faq-title {
        font-size: 30px !important;
        text-align: left;
    }
    .pt-faq-lead {
        font-size: 15.5px !important;
        line-height: 1.6 !important;
        text-align: left;
        margin: 20px 0 0 0;
    }
    .pt-faq-question {
        font-size: 18px !important;
        padding: 20px 35px 0 0;
    }
    .pt-faq-question::after {
        right: 0;
        top: calc(50% + 10px);
        font-size: 22px;
    }
    .pt-faq-answer > div {
        font-size: 15.5px !important;
        line-height: 1.6 !important;
    }

    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 28px auto;
        text-align: center;
    }
    
    .wp-caption {
        width: 100% !important;
        margin: 28px 0;
        padding: 8px;
        border-radius: 16px;
    }
    
    .wp-caption img {
        border-radius: 10px;
    }
    
    .wp-caption-text,
    figcaption {
        font-size: 12px !important;
        padding: 10px 6px 2px 6px;
    }

    .alignwide {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .wp-block-columns {
        flex-direction: column;
        gap: 20px;
    }

    .pt-clinic-box {
        padding: 20px;
        flex-direction: column;
        gap: 12px;
    }

    .pt-clinic-readmore {
        flex-direction: column;
        align-items: flex-start;
    }

    .pt-clinic-btn,
    .wp-block-button__link {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        word-break: break-word;
        font-size: 13px !important;
        padding: 14px 16px !important;
        justify-content: center;
    }

    .pt-clinic-cta-box {
        padding: 30px 20px;
        width: auto;
    }

    .pt-clinic-cta-box__text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .pt-clinic-cta-box__text h2, 
    .pt-clinic-cta-box__text h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 640px) {
    .pt-footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 50px 0;
    }

    .pt-prefooter-cta {
        padding: 50px 0;
    }

    .pt-btn--light {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .pt-footer-bottom {
        padding: 24px 0;
    }
}

@media (max-width: 576px) {
    .pt-error-code {
        font-size: 80px;
    }
    .pt-error-title {
        font-size: 26px !important;
    }
}