@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');


@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Light.woff2') format('woff2'),
         url('../fonts/Satoshi-Light.woff') format('woff'),
         url('../fonts/Satoshi-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-LightItalic.woff2') format('woff2'),
         url('../fonts/Satoshi-LightItalic.woff') format('woff'),
         url('../fonts/Satoshi-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
    font-style: italic;
  }
  @font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Regular.woff2') format('woff2'),
         url('../fonts/Satoshi-Regular.woff') format('woff'),
         url('../fonts/Satoshi-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Italic.woff2') format('woff2'),
         url('../fonts/Satoshi-Italic.woff') format('woff'),
         url('../fonts/Satoshi-Italic.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: italic;
  }
  @font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Medium.woff2') format('woff2'),
         url('../fonts/Satoshi-Medium.woff') format('woff'),
         url('../fonts/Satoshi-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-MediumItalic.woff2') format('woff2'),
         url('../fonts/Satoshi-MediumItalic.woff') format('woff'),
         url('../fonts/Satoshi-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: italic;
  }
  @font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Bold.woff2') format('woff2'),
         url('../fonts/Satoshi-Bold.woff') format('woff'),
         url('../fonts/Satoshi-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-BoldItalic.woff2') format('woff2'),
         url('../fonts/Satoshi-BoldItalic.woff') format('woff'),
         url('../fonts/Satoshi-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: italic;
  }
  @font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Black.woff2') format('woff2'),
         url('../fonts/Satoshi-Black.woff') format('woff'),
         url('../fonts/Satoshi-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-BlackItalic.woff2') format('woff2'),
         url('../fonts/Satoshi-BlackItalic.woff') format('woff'),
         url('../fonts/Satoshi-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
    font-style: italic;
  }
  /**
  * This is a variable font
  * You can control variable axes as shown below:
  * font-variation-settings: wght 900.0;
  *
  * available axes:
  'wght' (range from 300.0 to 900.0
  */
  @font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Variable.woff2') format('woff2'),
         url('../fonts/Satoshi-Variable.woff') format('woff'),
         url('../fonts/Satoshi-Variable.ttf') format('truetype');
    font-weight: 300 900;
    font-display: swap;
    font-style: normal;
  }
  /**
  * This is a variable font
  * You can control variable axes as shown below:
  * font-variation-settings: wght 900.0;
  *
  * available axes:
  'wght' (range from 300.0 to 900.0
  */
  @font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-VariableItalic.woff2') format('woff2'),
         url('../fonts/Satoshi-VariableItalic.woff') format('woff'),
         url('../fonts/Satoshi-VariableItalic.ttf') format('truetype');
    font-weight: 300 900;
    font-display: swap;
    font-style: italic;
  }


html {
    font-size: 10px;
    font-family: 'Satoshi', sans-serif;
    line-height: 1.3;
    scroll-behavior: smooth;
    /* WCAG 1.4.10 (reflow): blokuje poziomy pasek przewijania od elementów
       poza ekranem (off-canvas menu, badge reCAPTCHA) przy ~320px.
       'clip' zamiast 'hidden' — nie tworzy kontekstu przewijania, więc
       position: sticky (np. .oferta-tabs-nav) nadal działa. */
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

/* Cytaty – semantyka HTML (WCAG: blockquote / q) */
#content blockquote,
.site-main blockquote,
.entry-content blockquote,
.oferta-tab-panel blockquote {
    margin: 1.6em 0;
    padding: 0.4em 0 0.4em 1.2em;
    border-left: 3px solid var(--green, #2d5a27);
    color: var(--text-dark, #333);
}

#content blockquote p,
.site-main blockquote p,
.entry-content blockquote p {
    margin: 0 0 0.75em 0;
}

#content blockquote p:last-child,
.site-main blockquote p:last-child,
.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

#content q,
.site-main q,
.entry-content q {
    quotes: "\201E" "\201D";
}

/* Dostępność – tekst tylko dla czytników ekranu */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

/* Widoczna informacja o otwarciu nowej karty (przewidywalność – WCAG 3.2.5) */
.opens-new-tab-hint {
    font-weight: inherit;
    font-size: 0.95em;
    white-space: normal;
}

/* Skip link – WCAG 2.4.1 Bypass Blocks */
.screen-reader-text-focusable.skip-link {
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    margin: 0;
    padding: 0;
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    background: #1a1a1a;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.screen-reader-text-focusable.skip-link:focus,
.screen-reader-text-focusable.skip-link:focus-visible {
    left: 8px;
    top: 8px;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* WCAG 2.4.7 – widoczny fokus klawiatury */
:focus {
    outline: none;
}
:focus-visible {
    outline: 3px solid #2d5a27;
    outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Cel skip linka (#page-content = pierwszy H1) – widoczny fokus (WCAG 2.4.7) */
#page-content:focus,
#page-content:focus-visible {
    outline: 3px solid #2d5a27;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Full Container */
.full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 4%;
    max-width: 1440px;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}
.opakowane {
    max-width: 1100px;
    width: 100%;
    padding: 0px 4%;
    margin-left: auto;
    margin-right: auto;
}
.opakowane-small {
    max-width: 640px;
    padding: 0px 4%;
    width: 100%;
}

:root {
    --green: #434342;
    /* Brąz dostępny kontrastowo: tekst na jasnym tle ≥4.5:1, biały tekst na przycisku ≥4.5:1 */
    --brown: #7D7246;
    --brown-dark: #5E5038;
    --brown-hover: #5E5038;
}
.but {
    font-size: 1.8rem;
    padding: 1.2rem 2.4rem;
    border-radius: 50px;
    font-family: 'Lora';
    text-decoration: none;
    font-weight: 700;
}
.brown {
    background-color: var(--brown);
    color: white;
}

.brown:hover {
    background-color: var(--brown-hover);
    color: #fff;
}
.but.arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
.but.arrow .arrow-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.but.arrow:hover .arrow-icon {
    transform: rotate(45deg);
}

/* Footer Styles */
#footer {
    background-color: #000000;
    color: #FFFFFF;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    gap: 4%;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-col {
    min-width: 200px;
}

.footer-col-1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 25%;
}

.footer-col.footer-col-1 {
    display: flex;
}

.footer-col-2 {
    flex: 0 0 20%;
}

.footer-col-3 {
    flex: 0 0 15%;
}

.footer-col-4 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 2rem;
    flex: 0 0 15%;
    text-align: right;
}

/* Pełna szerokość jak .footer-buttons – grafika wyrównana do prawej krawędzi przycisków */
.footer-col-4-logo-wrap {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
}

.footer-col-4-logo {
    max-width: 160px;
    width: auto;
    height: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    object-position: right center;
}

/* Override [class*="col-"] dla grafiki w stopce – float/display z parent theme */
#footer .footer-col-4-logo-wrap,
#footer .footer-col-4-logo {
    float: none;
}
#footer .footer-col-4-logo-wrap {
    display: flex;
}
#footer .footer-col-4-logo {
    display: block;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.2rem;
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    margin-top: 7rem;
}

.footer-logo-img {
    height: auto;
    max-width: 200px;
    width: 100%;
}

.footer-description {
    margin: 0;
}

.footer-description-main {
    margin: 0;
    font-size: 2rem;
    line-height: 1.5;
    color: #FFFFFF;
    font-family: 'Lora', serif;
    font-weight: 400;
}

.footer-description-sub {
    margin: 0.4em 0 0 0;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #FFFFFF;
    font-family: 'Lora', serif;
    font-weight: 400;
}

.footer-menu-1,
.footer-menu-2 {
    margin: 0;
    padding: 0;
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu-list li {
    margin: 0;
    padding: 0;
}

.footer-menu-list a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.6rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.34px;
    transition: opacity 0.3s ease;
}

.footer-menu-list a:hover {
    color: #EBEBEB;
    text-decoration: underline;
}

.appointment-button {
    display: inline-block;
    background-color: var(--brown);
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Satoshi', sans-serif;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    width: auto;
}

.footer-appointment-button {
    display: inline-block;
    background-color: var(--brown);
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Satoshi', sans-serif;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.footer-contrast-button {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.footer-etr-button {
    display: inline-block;
    background-color: var(--brown);
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Satoshi', sans-serif;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.footer-video-button {
    display: inline-block;
    background-color: var(--brown);
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Satoshi', sans-serif;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.footer-video-button:hover {
    background-color: var(--brown-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.footer-video-button:active {
    transform: translateY(0);
}

/* Link do pliku DOCX — zakres działalności (długa etykieta może się zawijać) */
.footer-machine-readable-doc {
    display: inline-block;
    background-color: var(--brown);
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Satoshi', sans-serif;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.footer-machine-readable-doc:hover {
    background-color: var(--brown-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.footer-machine-readable-doc:active {
    transform: translateY(0);
}

.footer-etr-button:hover {
    background-color: var(--brown-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.footer-etr-button:active {
    transform: translateY(0);
}

.footer-appointment-button:hover {
    background-color: var(--brown-hover);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.footer-appointment-button:active {
    transform: translateY(0);
}

/* Footer Main Content Wrapper */
.footer-main-content {
    padding: 60px 0;
    background-color: #141212;
}

/* Footer Bottom Section */
.footer-bottom-section {
    background-color: #141212;
    border-top: 1px solid #2a2a2a;
    padding: 20px 0;
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
}

.footer-social-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-new-tab-hint {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #FFFFFF;
    max-width: 28rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    color: #EBEBEB;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

/* Wysoki kontrast – subtelna zmiana:
   - treści na jasnych tłach: czarny tekst
   - treści na ciemnych tłach: biały tekst
   - wszystkie przyciski na stronie: czarne z białym tekstem
   - przyciski w stopce: białe z czarnym tekstem */
body.high-contrast {
    color: #000000;
}

body.high-contrast p,
body.high-contrast li,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4 {
    color: #000000;
}

/* Sekcja z ciemnym tłem (druga sekcja na stronie głównej) w trybie wysokiego kontrastu */
body.high-contrast .second-section {
    background-color: #000000;
    color: #FFFFFF;
}

body.high-contrast .second-section p,
body.high-contrast .second-section h2,
body.high-contrast .second-section h3 {
    color: #FFFFFF;
}

body.high-contrast #footer,
body.high-contrast .footer-main-content,
body.high-contrast .footer-bottom-section {
    color: #FFFFFF;
}

body.high-contrast .footer-description-main,
body.high-contrast .footer-description-sub,
body.high-contrast .footer-menu-list a,
body.high-contrast .footer-menu-list a:hover,
body.high-contrast .social-icon,
body.high-contrast .footer-bottom-section p {
    color: #FFFFFF;
}

/* Globalne przyciski w trybie wysokiego kontrastu */
body.high-contrast .but,
body.high-contrast .but.brown,
body.high-contrast .appointment-button {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

/* Okrągła strzałka (scroll down) – czarne tło w trybie wysokiego kontrastu */
body.high-contrast .arrow-icon {
    background-color: #000000;
}

/* Przyciski w drugiej sekcji w trybie wysokiego kontrastu: białe z czarnym tekstem */
body.high-contrast .second-section .but,
body.high-contrast .second-section .but.brown,
body.high-contrast .second-section .appointment-button {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

/* Strzałka w przycisku w drugiej sekcji – biała w trybie wysokiego kontrastu */
body.high-contrast .second-section .but.arrow .arrow-icon {
    filter: invert(1);
}

/* Przyciski w stopce w trybie wysokiego kontrastu: białe z czarnym tekstem */
body.high-contrast .footer-appointment-button,
body.high-contrast .footer-contrast-button,
body.high-contrast .footer-etr-button,
body.high-contrast .footer-video-button,
body.high-contrast .footer-machine-readable-doc {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

/* Linki tel/mail w sekcji Kontakt – wygląd jak zwykły tekst */
.kontakt-info-item .kontakt-link {
    color: inherit;
    text-decoration: none;
}
.kontakt-info-item .kontakt-link:hover,
.kontakt-info-item .kontakt-link:focus {
    color: inherit;
    text-decoration: none;
}

/* Sekcja grafiku przyjęć (Kontakt) – czarne tło i biały tekst w trybie wysokiego kontrastu */
body.high-contrast .kontakt-grafik-section {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

body.high-contrast .kontakt-grafik-section .kontakt-h2 {
    color: #FFFFFF !important;
}

body.high-contrast .kontakt-grafik-section .kontakt-table {
    color: #FFFFFF !important;
}

body.high-contrast .kontakt-grafik-section .kontakt-table th,
body.high-contrast .kontakt-grafik-section .kontakt-table td {
    color: #FFFFFF !important;
    background-color: #000000 !important;
    border-color: #FFFFFF !important;
}

/* Kafle aktualności (news-card) – ciemne tło i biały tekst w trybie wysokiego kontrastu */
body.high-contrast .news-card-content {
    background-color: #000000;
    color: #FFFFFF;
}

body.high-contrast .news-card-title,
body.high-contrast .news-card-excerpt,
body.high-contrast .news-card-content p,
body.high-contrast .news-card-button {
    color: #FFFFFF;
}

.footer-copyright {
    margin: 0;
}

.footer-copyright p {
    margin: 0;
    color: #FFFFFF;
    font-size: 1.4rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
}

/* Responsive Footer – tablet: 2 kolumny, pierwszy i ostatni w górnym wierszu, środkowe w dolnym; miejscami zamienione */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-container {
        flex-wrap: wrap;
    }
    .footer-col-1 {
        order: 1;
        flex: 0 0 calc(50% - 2%);
    }
    .footer-col-2 {
        order: 3;
        flex: 0 0 calc(50% - 2%);
    }
    .footer-col-3 {
        order: 4;
        flex: 0 0 calc(50% - 2%);
    }
    .footer-col-4 {
        order: 2;
        flex: 0 0 calc(50% - 2%);
    }
}

@media (max-width: 768px) {
    #footer {
        padding: 0;
    }
    
    .footer-main-content {
        padding: 40px 4%;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
    
    .footer-description-main {
        font-size: 1.4rem;
    }
    .footer-description-sub {
        font-size: 1.05rem;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }

    .footer-social-block {
        align-items: center;
    }

    .footer-new-tab-hint {
        text-align: center;
    }
    
    .footer-copyright p {
        font-size: 1.2rem;
    }
}


@media (max-width: 500px) {
    .footer-container {
        max-width: 1440px;
        margin: 0 auto;
        display: flex;
        gap: 4%;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: center;
        text-align: center;
    }
}

/* ========== Popup: zakres działalności poradni (PJM), stopka ========== */
.cogito-video-popup-overlay {
    z-index: 100001;
}

.cogito-video-popup-box {
    max-width: 960px;
}

.cogito-video-popup-body {
    padding: 0;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #0d0e16;
}

.cogito-video-popup-player {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.cogito-video-popup-media {
    width: 100%;
    height: auto;
    max-height: min(70vh, 720px);
    display: block;
    background: #000;
}

.cogito-video-popup-cc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #141212;
    border-top: 1px solid rgba(235, 235, 235, 0.12);
    flex-shrink: 0;
}

.cogito-video-popup-cc .cogito-cc-btn {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 10px 18px;
    border-radius: 8px;
    border: 2px solid rgba(235, 235, 235, 0.35);
    background: transparent;
    color: #ebebeb;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cogito-video-popup-cc .cogito-cc-btn:hover,
.cogito-video-popup-cc .cogito-cc-btn:focus-visible {
    border-color: #ebebeb;
    background: rgba(235, 235, 235, 0.12);
    outline: none;
}

.cogito-video-popup-cc .cogito-cc-btn.is-active {
    background: #ebebeb;
    color: #0d0e16;
    border-color: #ebebeb;
}

body.high-contrast .cogito-video-popup-cc .cogito-cc-btn {
    border-color: #fff;
    color: #fff;
}

body.high-contrast .cogito-video-popup-cc .cogito-cc-btn.is-active {
    background: #fff;
    color: #141212;
    border-color: #fff;
}

/* ========== Popup ETR — Zakres działalności (ETR) ========== */
.etr-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s, opacity 0.25s;
}

.etr-popup-overlay[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
}

.etr-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.etr-popup-box {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.etr-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #141212;
    color: #fff;
    flex-shrink: 0;
}

.etr-popup-title {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 600;
    font-family: 'Satoshi', sans-serif;
}

.etr-popup-close {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.etr-popup-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.etr-popup-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: #1a1a1a;
    font-size: 2.4rem;
    line-height: 1.6;
    font-family: 'Satoshi', sans-serif;
}

.etr-intro {
    margin-bottom: 24px;
    color: #555;
}

.etr-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e0e0e0;
}

.etr-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.etr-heading {
    color: #365f91;
    font-size: 2.4rem;
    margin: 0 0 12px 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
}

.etr-section p {
    margin: 0 0 12px 0;
}

.etr-section ul {
    margin: 8px 0 12px 1.2em;
    padding: 0;
    list-style: disc;
}

.etr-icon {
    width: 48px;
    height: 48px;
    margin: 0 0 12px 0;
    background: no-repeat center;
    background-size: 40px;
    opacity: 0.85;
}

.etr-icon-house {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6'/%3E%3C/svg%3E");
}

.etr-icon-people {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z'/%3E%3C/svg%3E");
}

.etr-icon-group {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z'/%3E%3C/svg%3E");
}

.etr-icon-calendar {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.etr-icon-document {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4'/%3E%3C/svg%3E");
}

.etr-icon-payment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z'/%3E%3C/svg%3E");
}

.etr-icon-shield {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'/%3E%3C/svg%3E");
}

.etr-icon-connection {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1'/%3E%3C/svg%3E");
}

#etr-popup-overlay .etr-icon-caption {
    margin: 0;
    max-width: 100%;
    font-size: 1.75rem;
    line-height: 1.4;
    color: #333333;
}

#etr-popup-overlay .etr-icon-caption a {
    text-decoration: underline;
}

/* Pojedynczy wpis – zwykłe obrazy (bez Twemoji); bez zewnętrznego marginu na img */
.single-post-content img:not(.emoji):not(.wp-smiley) {
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 8px;
}

.single-post-content figure.wp-block-image,
.single-post-content .wp-block-image {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

/* Podpisy pod obrazkami (Gutenberg) – czytelniej niż domyślny italic + duże marginesy */
.wp-block-image :where(figcaption) {
    margin-top: 0.75em;
    margin-bottom: 0;
    padding: 0 0.5em;
    box-sizing: border-box;
    font-family: 'Satoshi', sans-serif;
    font-size: 1.4rem;
    line-height: 1.45;
    font-weight: 400;
    font-style: normal;
    color: #6b6b6a;
    text-align: center;
}

/* Formularze – podpowiedzi i komunikaty błędów (WCAG 3.3.1, 3.3.3) */
.field-hint {
    display: block;
    margin-top: 0.35em;
    font-size: 1.3rem;
    line-height: 1.45;
    color: #5a5a59;
}

.field-error {
    display: block;
    margin-top: 0.35em;
    font-size: 1.3rem;
    line-height: 1.45;
    font-weight: 600;
    color: #9b2c2c;
}

.field-error:empty {
    display: none;
}

.form-errors-summary {
    margin-bottom: 1.25em;
}

.form-errors-summary[hidden] {
    display: none !important;
}

.has-error .kontakt-input,
.has-error .kontakt-textarea,
.has-error .appointment-input,
.field-input--error {
    border-color: #9b2c2c;
    outline-color: #9b2c2c;
}

.has-error .appointment-consent-checkbox,
.appointment-consent-checkbox.field-input--error {
    outline: 2px solid #9b2c2c;
    outline-offset: 2px;
}

.appointment-consent-item .field-error {
    margin-top: 0.5em;
    padding-left: 0.25em;
}