/* Wspólna warstwa publicznego frontu: usługi, abonamenty, realizacje, kontakt i blog. */
:root {
    --pjm-front-ink: #132b23;
    --pjm-front-green: #176b55;
    --pjm-front-deep: #0f4c3c;
    --pjm-front-soft: #edf6f2;
    --pjm-front-surface: #f7faf8;
    --pjm-front-line: #d8e4df;
    --pjm-front-muted: #5f746c;
    --pjm-front-radius: 8px;
    --pjm-front-max: 1180px;
}

body:not(.pjm-dashboard-active) :where(.jm-pricing-section,.pjm-blog,.pjm-blog-single,.pjm-portfolio,.pjm-contact-page) {
    color: var(--pjm-front-ink);
    font-family: 'Source Sans 3', 'Inter', system-ui, sans-serif;
}

body:not(.pjm-dashboard-active) :where(.jm-pricing-section,.pjm-blog,.pjm-blog-single,.pjm-portfolio,.pjm-contact-page) :where(h1,h2,h3,h4) {
    color: var(--pjm-front-ink);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    letter-spacing: 0;
}

body:not(.pjm-dashboard-active) .jm-pricing-section.jm-wrapper,
body:not(.pjm-dashboard-active) .pjm-blog.jm-wrapper,
body:not(.pjm-dashboard-active) .pjm-blog-single.jm-wrapper,
body:not(.pjm-dashboard-active) .pjm-portfolio.jm-wrapper:not(.pjm-portfolio--embed),
body:not(.pjm-dashboard-active) .pjm-contact-page {
    width: min(100% - 32px, 1280px);
    margin-inline: auto;
    padding-top: 52px;
    padding-bottom: 72px;
}

body:not(.pjm-dashboard-active) .jm-seo-box,
body:not(.pjm-dashboard-active) .pjm-portfolio__head,
body:not(.pjm-dashboard-active) .pjm-blog__head {
    padding: 38px 40px;
    border: 1px solid var(--pjm-front-line);
    border-radius: var(--pjm-front-radius);
    background: #fff;
    box-shadow: none;
}

body:not(.pjm-dashboard-active) .jm-seo-box h1,
body:not(.pjm-dashboard-active) .pjm-portfolio__head h1,
body:not(.pjm-dashboard-active) .pjm-blog__head h1 {
    max-width: 850px;
    margin: 8px 0 14px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

body:not(.pjm-dashboard-active) :where(.jm-seo-desc,.pjm-portfolio__lead,.pjm-blog__lead) {
    max-width: 760px;
    color: var(--pjm-front-muted);
    font-size: 18px;
    line-height: 1.6;
}

body:not(.pjm-dashboard-active) :where(.jm-badge-pill,.pjm-portfolio__eyebrow,.pjm-blog__eyebrow) {
    color: var(--pjm-front-green);
    background: transparent;
    font-weight: 700;
    letter-spacing: .04em;
}

body:not(.pjm-dashboard-active) :where(.jm-benefit-item,.jm-p-card,.pjm-related-services__card,.pjm-blog-card,.pjm-portfolio-card,.pjm-contact-card) {
    border: 1px solid var(--pjm-front-line);
    border-radius: var(--pjm-front-radius);
    background: #fff;
    box-shadow: none;
}

body:not(.pjm-dashboard-active) :where(.jm-benefit-item,.jm-p-card,.pjm-related-services__card,.pjm-blog-card,.pjm-portfolio-card):hover {
    border-color: #a8c9bc;
    box-shadow: 0 10px 28px rgba(15,76,60,.08);
    transform: translateY(-2px);
}

body:not(.pjm-dashboard-active) :where(.jm-btn-accent,.jm-order-btn,.jm-btn-primary,.pjm-btn-primary) {
    min-height: 46px;
    border-radius: 7px;
    background: var(--pjm-front-deep);
    color: #fff;
    font-weight: 700;
    box-shadow: none;
}

body:not(.pjm-dashboard-active) :where(.jm-btn-outline,.pjm-filter-btn,.pjm-blog__filter,.pjm-portfolio__filter) {
    min-height: 42px;
    border-color: var(--pjm-front-line);
    border-radius: 7px;
    color: var(--pjm-front-ink);
    background: #fff;
}

body:not(.pjm-dashboard-active) :where(.jm-service-seo,.pjm-related-services) {
    margin-top: 64px;
}

body:not(.pjm-dashboard-active) :where(.pjm-service-section-title,.jm-service-seo h2) {
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.18;
}

body:not(.pjm-dashboard-active) :where(.pjm-service-pricing-tiers,.pjm-calc-pricing-panel,.calculator-pricing,.pjm-intake-landing-grid,.pjm-text-form-pro,.pjm-contact-form) {
    width: 100%;
    max-width: none;
}

body:not(.pjm-dashboard-active) :where(.jm-grid-layout,.pjm-service-packages-grid,.pjm-calc-packages-grid) .jm-p-card {
    border-radius: var(--pjm-front-radius);
}

body:not(.pjm-dashboard-active) :where(.jm-p-head h3,.jm-card-head h3) {
    font-size: 20px;
    line-height: 1.25;
}

body:not(.pjm-dashboard-active) :where(.jm-price-num,.jm-card-price) {
    color: var(--pjm-front-ink);
}

body:not(.pjm-dashboard-active) :where(.jm-btn-accent,.jm-order-btn,.jm-btn-primary,.pjm-btn-primary):hover,
body:not(.pjm-dashboard-active) :where(.jm-btn-accent,.jm-order-btn,.jm-btn-primary,.pjm-btn-primary):focus-visible {
    background: #0b3d31;
    color: #fff;
}

body:not(.pjm-dashboard-active) :where(.pjm-service-section-lead,.jm-service-seo > p) {
    color: var(--pjm-front-muted);
    line-height: 1.6;
}

.pjm-service-local-note {
    width: min(100%, 900px);
    margin: 34px auto 0;
    padding: 17px 20px;
    border-left: 4px solid var(--pjm-front-green);
    border-radius: 0 var(--pjm-front-radius) var(--pjm-front-radius) 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pjm-front-ink) !important;
    background: var(--pjm-front-soft);
    text-align: left;
}

.pjm-service-local-note .material-symbols-rounded { color: var(--pjm-front-green); }

body:not(.pjm-dashboard-active) :where(.pjm-blog__grid,.pjm-portfolio__grid) {
    gap: 20px;
}

body:not(.pjm-dashboard-active) :where(.pjm-blog-card__content,.pjm-portfolio-card__content) {
    padding: 22px;
}

body:not(.pjm-dashboard-active) .jm-p-card.featured {
    border: 2px solid var(--pjm-front-green);
}

body:not(.pjm-dashboard-active) :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    border-color: var(--pjm-front-line);
    border-radius: 7px;
}

body:not(.pjm-dashboard-active) :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus {
    border-color: var(--pjm-front-green);
    box-shadow: 0 0 0 3px rgba(23,107,85,.12);
}

@media (max-width: 680px) {
    body:not(.pjm-dashboard-active) .jm-pricing-section.jm-wrapper,
    body:not(.pjm-dashboard-active) .pjm-blog.jm-wrapper,
    body:not(.pjm-dashboard-active) .pjm-blog-single.jm-wrapper,
    body:not(.pjm-dashboard-active) .pjm-portfolio.jm-wrapper:not(.pjm-portfolio--embed),
    body:not(.pjm-dashboard-active) .pjm-contact-page {
        width: min(100% - 24px, 1280px);
        padding-top: 30px;
        padding-bottom: 54px;
    }

    body:not(.pjm-dashboard-active) .jm-seo-box,
    body:not(.pjm-dashboard-active) .pjm-portfolio__head,
    body:not(.pjm-dashboard-active) .pjm-blog__head {
        padding: 25px 20px;
    }

    .pjm-service-local-note { align-items: flex-start; }
}
