/* ============================================================
   POLISA EDUKACJA — BASE v0.7.0
   ============================================================ */

:root {
    --pe-ink: #0D1B2A;
    --pe-paper: #F8F6F1;
    --pe-white: #FFFFFF;
    --pe-cobalt: #2457E6;
    --pe-marker: #F2C94C;
    --pe-mist: #EAF0FF;
    --pe-slate: #506176;
    --pe-line: rgba(13, 27, 42, .12);
    --pe-line-dark: rgba(255, 255, 255, .14);

    --pe-font-sans: "DM Sans", "Avenir Next", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --pe-font-display: "Literata", Georgia, "Times New Roman", serif;
    --pe-font-ui: var(--pe-font-sans);

    --pe-shell: 1180px;
    --pe-gutter: 24px;
    --pe-header-height: 76px;

    --pe-radius-sm: 10px;
    --pe-radius: 14px;
    --pe-radius-lg: 20px;

    --pe-focus: 0 0 0 3px rgba(36, 87, 230, .32);
}

body.pe-site {
    padding-top: var(--pe-header-height);
    background: var(--pe-paper);
}

.pe-ui,
.pe-ui * {
    box-sizing: border-box;
}

.pe-ui {
    font-family: var(--pe-font-sans);
    color: var(--pe-ink);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.pe-ui img,
.pe-ui svg {
    display: block;
    max-width: 100%;
}

.pe-ui a {
    color: inherit;
}


/*
 * Full-bleed wrapper for BODY shortcodes rendered inside a Divi Row.
 * Divi constrains the Text Module/Row width by default; this utility
 * deliberately breaks the page BODY out to the viewport edge while
 * keeping actual content inside .pe-shell.
 */
.pe-full-bleed {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: clip;
}

.pe-shell {
    width: min(var(--pe-shell), calc(100% - (var(--pe-gutter) * 2)));
    margin-inline: auto;
}

.pe-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--pe-radius-sm);
    font-family: var(--pe-font-sans);
    font-size: 15px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.pe-btn:hover {
    transform: translateY(-1px);
}

.pe-btn--primary {
    background: var(--pe-cobalt);
    color: var(--pe-white) !important;
}

.pe-btn--primary:hover {
    background: #1D49C8;
}

.pe-btn--secondary {
    background: transparent;
    color: var(--pe-ink) !important;
    border-color: var(--pe-line);
}

.pe-btn--secondary:hover {
    border-color: rgba(13, 27, 42, .28);
    background: rgba(13, 27, 42, .035);
}

.pe-ui a:focus-visible,
.pe-ui button:focus-visible,
.pe-ui input:focus-visible,
.pe-ui select:focus-visible,
.pe-ui textarea:focus-visible,
.pe-ui summary:focus-visible {
    outline: 3px solid var(--pe-cobalt);
    outline-offset: 3px;
}

.pe-skip-link {
    position: fixed;
    z-index: 10050;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: var(--pe-radius-sm);
    background: var(--pe-white);
    color: var(--pe-ink) !important;
    font: 700 14px/1.2 var(--pe-font-sans);
    box-shadow: 0 8px 28px rgba(13, 27, 42, .18);
    transition: transform .15s ease;
}

.pe-skip-link:focus {
    transform: translateY(0);
}

.pe-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--pe-slate);
    font-family: var(--pe-font-sans);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.pe-eyebrow::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 99px;
    background: var(--pe-marker);
}

.pe-ui h1,
.pe-ui h2,
.pe-ui h3 {
    margin-top: 0;
    color: var(--pe-ink);
}

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

.pe-ui p {
    color: var(--pe-slate);
}

.pe-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


.pe-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.pe-eyebrow--dark {
    color: rgba(255,255,255,.68);
}

.pe-btn--light {
    background: var(--pe-white);
    color: var(--pe-ink) !important;
    border-color: var(--pe-white);
}

.pe-btn--light:hover {
    background: var(--pe-paper);
    border-color: var(--pe-paper);
}

.pe-btn--quiet {
    min-height: 44px;
    padding-inline: 4px;
    color: var(--pe-cobalt) !important;
    background: transparent;
}

.pe-btn--quiet:hover {
    transform: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pe-text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pe-cobalt) !important;
    font-weight: 800;
    text-decoration: none;
}

.pe-text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 980px) {
    :root {
        --pe-gutter: 20px;
        --pe-header-height: 68px;
    }
}

@media (max-width: 600px) {
    :root {
        --pe-gutter: 18px;
        --pe-header-height: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pe-ui *,
    .pe-ui *::before,
    .pe-ui *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
