/* ============================================================
   POLISA EDUKACJA – EDITORIAL TYPE / SURFACE CONTRACT v0.28.0
   Global typography and dark-surface readability only.
   Page spacing is owned by pe-system-v033.css.
   ============================================================ */

.pe-ui {
    font-weight: 400;
}

.pe-ui h1,
.pe-ui h2 {
    font-family: var(--pe-font-display);
    font-weight: 500;
    letter-spacing: -.03em;
}

.pe-ui h3,
.pe-ui h4,
.pe-ui h5,
.pe-ui h6 {
    font-family: var(--pe-font-sans);
    font-weight: 600;
    letter-spacing: -.015em;
}

.pe-ui strong,
.pe-ui b {
    font-weight: 600;
}

.pe-eyebrow,
.pe-ui [class*="__label"],
.pe-ui [class*="__kicker"] {
    font-weight: 600;
    letter-spacing: .08em;
}

.pe-btn,
.pe-text-link,
#pe-site-header .pe-nav__link {
    font-weight: 600;
}

.pe-ui input,
.pe-ui select,
.pe-ui textarea {
    font-family: var(--pe-font-sans);
    font-weight: 400;
}

#pe-site-header {
    background: rgba(250, 248, 242, .98);
}

#pe-site-header.is-scrolled {
    background: rgba(250, 248, 242, .995);
    box-shadow: 0 8px 24px rgba(18, 59, 58, .04);
}

.pe-btn--primary {
    background: var(--pe-cobalt);
}

.pe-btn--primary:hover {
    background: #0B5755;
}

.pe-btn--secondary {
    border-color: rgba(18, 59, 58, .16);
}

:is(
    #pe-site-footer,
    .pe-home-dark,
    .pe-home-final,
    .pe-child-beyond,
    .pe-child-final,
    .pe-student-life,
    .pe-student-oc-panel,
    .pe-student-sport__card,
    .pe-student-final,
    .pe-teacher-work,
    .pe-teacher-selected,
    .pe-teacher-final,
    .pe-documents-priority,
    .pe-documents-final,
    .pe-agent-emphasis,
    .pe-agent-section--ink,
    .pe-legal-consent-box,
    .pe-legal-contact
) {
    color: var(--pe-white);
}

:is(
    #pe-site-footer,
    .pe-home-dark,
    .pe-home-final,
    .pe-child-beyond,
    .pe-child-final,
    .pe-student-life,
    .pe-student-oc-panel,
    .pe-student-sport__card,
    .pe-student-final,
    .pe-teacher-work,
    .pe-teacher-selected,
    .pe-teacher-final,
    .pe-documents-priority,
    .pe-documents-final,
    .pe-agent-emphasis,
    .pe-agent-section--ink,
    .pe-legal-consent-box,
    .pe-legal-contact
) :is(h1,h2,h3,h4,h5,h6,strong,b) {
    color: var(--pe-white);
}

:is(
    #pe-site-footer,
    .pe-home-dark,
    .pe-home-final,
    .pe-child-beyond,
    .pe-child-final,
    .pe-student-life,
    .pe-student-oc-panel,
    .pe-student-sport__card,
    .pe-student-final,
    .pe-teacher-work,
    .pe-teacher-selected,
    .pe-teacher-final,
    .pe-documents-priority,
    .pe-documents-final,
    .pe-agent-emphasis,
    .pe-agent-section--ink,
    .pe-legal-consent-box,
    .pe-legal-contact
) :is(p,li,dd,label) {
    color: rgba(255,255,255,.78);
}

:is(
    .pe-home-dark,
    .pe-home-final,
    .pe-child-beyond,
    .pe-child-final,
    .pe-student-life,
    .pe-student-oc-panel,
    .pe-student-sport__card,
    .pe-student-final,
    .pe-teacher-work,
    .pe-teacher-selected,
    .pe-teacher-final,
    .pe-documents-priority,
    .pe-documents-final,
    .pe-agent-emphasis,
    .pe-agent-section--ink,
    .pe-legal-consent-box,
    .pe-legal-contact
) .pe-eyebrow {
    color: rgba(255,255,255,.72);
}

:is(
    .pe-home-dark,
    .pe-home-final,
    .pe-child-beyond,
    .pe-child-final,
    .pe-student-life,
    .pe-student-oc-panel,
    .pe-student-sport__card,
    .pe-student-final,
    .pe-teacher-work,
    .pe-teacher-selected,
    .pe-teacher-final,
    .pe-documents-priority,
    .pe-documents-final,
    .pe-agent-emphasis,
    .pe-agent-section--ink,
    .pe-legal-consent-box,
    .pe-legal-contact
) .pe-text-link {
    color: #F3E6A8 !important;
}

#pe-site-footer .pe-footer__column h2,
#pe-site-footer .pe-footer__trust-copy small,
#pe-site-footer .pe-footer__agent-kicker,
#pe-site-footer .pe-footer__trust-copy strong,
#pe-site-footer .pe-footer__agent strong,
#pe-site-footer .pe-footer__contact a {
    font-weight: 600;
}

#pe-site-footer .pe-footer__trust-card {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .09);
}

/* Restrained motion. */
.pe-js [data-pe-auto-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--pe-reveal-delay, 0ms);
}

.pe-js [data-pe-auto-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (hover:hover) and (pointer:fine) {
    .pe-ui :is(.pe-home-route,.pe-home-scope__card,.pe-home-audience__card,.pe-business-value__grid article,.pe-business-process__grid article,.pe-business-access__grid article,.pe-home-agent-card,.pe-home-doc-card) {
        transition: transform .24s cubic-bezier(.2,.7,.2,1), border-color .24s ease, box-shadow .24s ease, background-color .24s ease;
    }

    .pe-ui :is(.pe-home-route,.pe-home-scope__card,.pe-home-audience__card,.pe-business-value__grid article,.pe-business-process__grid article,.pe-business-access__grid article,.pe-home-agent-card,.pe-home-doc-card):hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(38,57,75,.07);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pe-js [data-pe-auto-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
