/*
Theme Name: OWES-ZG
Theme URI: https://example.com/owes-zg
Author: Antigravity AI
Author URI: https://example.com
Description: Szybki i nowoczesny motyw WordPress stworzony dla OWES-ZG, w pełni kompatybilny z Divi Builderem, dostosowany do oficjalnej palety barw i zawierający wyszukiwarkę podmiotów w React.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: owes-zg
*/

/* 1. Definicje zmiennych (Paleta barw Wariantu A oraz typografia) */
:root {
    --owes-dark-blue: #143652;
    --owes-hero-grad-start: #0f2c45;
    --owes-hero-grad-end: #0c5f86;
    --owes-med-blue: #0075a6;
    --owes-orange: #f2af46;
    --owes-green: #1e8434;
    --text-dark: #42525f;
    --text-light: #5b6b7a;
    --text-muted: #647280;
    --bg-light: #f5f7f9;
    --border-color: #e7edf2;
    --font-primary: 'Public Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-size-multiplier: 1;
}

/* 2. Reset i style ogólne */
html {
    font-size: calc(16px * var(--font-size-multiplier, 1));
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--owes-dark-blue);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-top: 0;
}

a {
    color: var(--owes-med-blue);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: var(--owes-dark-blue);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.owes-zg-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Klasa dla powtarzalnego gradientu diagnostycznego / placeholderów */
.ph {
    background-image: repeating-linear-gradient(45deg, #e3eaf0 0, #e3eaf0 9px, #edf2f6 9px, #edf2f6 18px);
    background-color: #f0f3f6;
}

/* 3. Utility Bar i Dostępność */
.top-bar {
    background-color: var(--owes-dark-blue);
    color: #cdd9e3;
    font-size: 0.8125rem; /* 13px */
    padding: 9px 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-contact {
    display: flex;
    gap: 22px;
    align-items: center;
}

.top-bar-contact a {
    color: #cdd9e3;
}

.top-bar-contact a:hover {
    color: #ffffff;
}

.top-bar-divider {
    color: #5b7187;
}

.top-bar-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-bar-text {
    opacity: 0.85;
}

.wcag-controls {
    display: inline-flex;
    gap: 6px;
}

.wcag-btn {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border: 1px solid #3a5571;
    border-radius: 2px;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    color: #cdd9e3;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
}

.wcag-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Odnośnik "Przejdź do treści" (widoczny po naciśnięciu Tab) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 12px 18px;
    background: var(--owes-orange);
    color: var(--owes-dark-blue);
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

#tresc {
    display: block;
    scroll-margin-top: 90px;
}

#tresc:focus {
    outline: none;
}

/* 4. Główny Header (przyklejony przy przewijaniu) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 16px rgba(20, 54, 82, 0.08);
}

/* Pasek administratora WordPressa po zalogowaniu */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 13px;
}

.site-branding img.custom-logo {
    max-height: 44px;
    width: auto;
    display: block;
}

.logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--owes-med-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.125rem;
}

.logo-meta {
    line-height: 1.15;
}

.logo-title {
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--owes-dark-blue);
}

.logo-subtitle {
    font-size: 0.6875rem;
    color: var(--text-light);
}

/* Menu */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.menu-items > li > a {
    color: var(--owes-dark-blue);
    padding: 8px 0;
    cursor: pointer;
}

.menu-items > li > a:hover,
.menu-items > li.current-menu-item > a {
    color: var(--owes-med-blue);
}

/* Kontakt jako przycisk */
.menu-items > li.menu-item-btn > a,
.menu-items > li:last-child > a {
    background: var(--owes-dark-blue);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.menu-items > li.menu-item-btn > a:hover,
.menu-items > li:last-child > a:hover {
    background: var(--owes-med-blue);
    color: #ffffff;
}

/* Obsługa submenu na desktopie */
@media (min-width: 769px) {
    .menu-items > li {
        position: relative;
    }

    .menu-items .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-top: 3px solid var(--owes-orange);
        border-radius: 0 0 6px 6px;
        min-width: 240px;
        padding: 8px 0;
        margin: 0;
        list-style: none;
    }

    /* Wyświetlanie submenu przy hoverze */
    .menu-items > li:hover > .sub-menu,
    .menu-items > li:focus-within > .sub-menu {
        display: block;
        animation: owesMenuFadeIn 0.2s ease;
    }

    .menu-items .sub-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .menu-items .sub-menu li a {
        display: block;
        padding: 10px 20px;
        color: var(--owes-dark-blue);
        font-size: 0.875rem;
        font-weight: 500;
        text-align: left;
        white-space: normal;
        line-height: 1.4;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 0;
        background: transparent;
        transition: all 0.2s ease;
    }

    .menu-items .sub-menu li:last-child a {
        border-bottom: none;
    }

    .menu-items .sub-menu li a:hover,
    .menu-items .sub-menu li a:focus {
        background: rgba(0, 0, 0, 0.02);
        color: var(--owes-med-blue);
        padding-left: 24px;
    }

    /* Strzałka dla elementów z podmenu */
    .menu-item-has-children > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    
    .menu-item-has-children > a::after {
        content: "";
        display: inline-block;
        width: 5px;
        height: 5px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-top: -2px;
        transition: transform 0.2s ease;
    }
    
    .menu-item-has-children:hover > a::after {
        transform: rotate(-135deg);
        margin-top: 2px;
    }
}

@keyframes owesMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu mobilne hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--owes-dark-blue);
    margin: 4px 0;
    transition: 0.3s;
}

/* 5. Home Page (front-page.php) */

/* Hero */
.hero-section {
    position: relative;
    background: linear-gradient(120deg, var(--owes-hero-grad-start) 0%, var(--owes-dark-blue) 45%, var(--owes-hero-grad-end) 100%);
    padding: 72px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-collage-area {
    position: relative;
    width: 100%;
    z-index: 2;
}

.hero-collage-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    isolation: isolate;
}

/* Granatowa warstwa łączy fotografię z tłem hero. */
.hero-collage-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(15, 44, 69, 0) 35%, rgba(15, 44, 69, 0.1) 65%, rgba(15, 44, 69, 0.5) 100%),
        linear-gradient(90deg, rgba(20, 54, 82, 0.12) 0%, rgba(20, 54, 82, 0) 50%);
    pointer-events: none;
    z-index: 1;
}

/* Pojedyncze zdjęcie główne hero */
.hero-single-img {
    height: auto;
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    display: block;
}

/* Pomarańczowa karta statystyk */
.collage-stat-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: var(--owes-orange);
    color: var(--owes-dark-blue);
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    z-index: 4;
    max-width: 170px;
}

.collage-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.collage-stat-label {
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

/* Zielona plakietka naboru */
.collage-nabor-badge {
    position: absolute;
    right: 20px;
    top: 20px;
    background: var(--owes-green);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(33, 145, 56, 0.4);
    z-index: 4;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.collage-nabor-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: nabor-pulse 1.8s infinite;
}

@keyframes nabor-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.hero-section .ph {
    position: absolute;
    inset: 0;
    opacity: 0.06;
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--owes-orange);
    border: 1px solid rgba(242, 175, 70, 0.5);
    padding: 5px 12px;
    border-radius: 2px;
    margin-bottom: 22px;
}

.hero-title {
    font-size: 3.125rem;
    line-height: 1.05;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 18px;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.55;
    color: #bcd0df;
    margin: 0 0 28px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn-primary {
    background: var(--owes-orange);
    color: var(--owes-dark-blue);
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 14px 26px;
    border-radius: 3px;
    display: inline-block;
}

.btn-primary:hover {
    background: #ffffff;
    color: var(--owes-dark-blue);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 26px;
    border-radius: 3px;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Quick Cards */
.quick-cards-section {
    background: var(--bg-light);
    padding: 40px 0;
}

.quick-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.quick-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.quick-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.quick-card-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
}

.quick-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--owes-dark-blue);
    margin: 0;
}

.quick-card-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-light);
    flex: 1;
}

.quick-card-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--owes-med-blue);
}

/* Nabór Highlight */
.nabor-highlight-section {
    background: var(--bg-light);
    padding-bottom: 20px;
}

.nabor-highlight-container {
    transform: translateY(-22px);
}

.nabor-highlight-box {
    background: var(--owes-dark-blue);
    border-radius: 6px;
    padding: 26px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 28px rgba(20, 54, 82, 0.22);
    gap: 20px;
}

.nabor-highlight-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nabor-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--owes-green);
    color: #ffffff;
    border-radius: 5px;
    padding: 11px 16px;
    min-width: 80px;
    text-align: center;
}

.nabor-date-badge .lbl-do {
    font-size: 0.6875rem;
    text-transform: uppercase;
    opacity: 0.85;
}

.nabor-date-badge .day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.nabor-date-badge .year {
    font-size: 0.75rem;
    opacity: 0.85;
}

.nabor-meta-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--owes-orange);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.nabor-title {
    font-size: 1.1875rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
}

.nabor-btn {
    background: var(--owes-orange);
    color: var(--owes-dark-blue);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 13px 22px;
    border-radius: 3px;
    white-space: nowrap;
}

.nabor-btn:hover {
    background: #ffffff;
    color: var(--owes-dark-blue);
}

/* Aktualności Home */
.news-section-home {
    padding: 14px 0 52px;
}

.news-header-home {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.news-header-indicator {
    width: 44px;
    height: 4px;
    background: var(--owes-med-blue);
    margin-bottom: 12px;
}

.news-header-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0;
}

.news-header-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--owes-med-blue);
}

.posts-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.post-card {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.post-card-image {
    height: 140px;
    position: relative;
}

.post-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--owes-med-blue);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 2px;
}

.post-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.post-card-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-light);
}

.post-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--owes-dark-blue);
    line-height: 1.3;
    margin: 0;
}

.post-card-excerpt {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-light);
    flex: 1;
}

.post-card-more {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--owes-med-blue);
}

/* Statystyki */
.stats-section {
    background: var(--owes-dark-blue);
    padding: 46px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    border-left: 3px solid var(--owes-orange);
    padding-left: 18px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #9fb6c8;
    margin-top: 7px;
}

/* Formularz kontaktowy w stopce */
.footer-contact-form-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 45px 0;
}

/* Układ dual-column dla formularza i kontaktu (Mockup style) */
.footer-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .footer-contact-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: stretch;
        padding: 0;
    }
}

.footer-contact-left {
    display: flex;
    flex-direction: column;
}

.footer-section-accent-bar {
    width: 44px;
    height: 4px;
    background: var(--owes-orange);
    margin-bottom: 14px;
}

.footer-section-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 20px 0;
    letter-spacing: -0.015em;
}

.footer-contact-right {
    display: flex;
}

.footer-contact-card {
    background: #eef4f8;
    border-radius: 6px;
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(0,0,0,0.02);
}

.card-accent-bar {
    width: 44px;
    height: 4px;
    background: var(--owes-med-blue);
    margin-bottom: 14px;
}

.contact-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.contact-card-desc {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-light);
    margin: 0 0 22px 0;
}

.contact-card-details {
    font-size: 0.9375rem;
    color: var(--owes-dark-blue);
    line-height: 1.7;
    margin-bottom: auto;
}

.contact-card-details .agency-title {
    display: block;
    font-weight: 700;
}

.contact-card-details .agency-address {
    color: var(--text-light);
    margin: 4px 0 14px 0;
}

.agency-contact-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agency-contact-links span {
    display: block;
}

.agency-contact-links .lbl {
    color: var(--text-light);
    font-weight: 600;
    margin-right: 6px;
}

.agency-contact-links a {
    color: var(--owes-dark-blue);
    text-decoration: none;
}

.agency-contact-links a:hover {
    color: var(--owes-med-blue);
    text-decoration: underline;
}

.contact-card-btn {
    display: inline-block;
    margin-top: 22px;
    background: var(--owes-dark-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 13px 24px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}

.contact-card-btn:hover {
    background: var(--owes-med-blue);
    color: #ffffff;
}

.form-placeholder-msg {
    color: var(--text-light);
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

/* Uniwersalne style dla wtyczek WPForms / Contact Form 7 */
.footer-contact-form-section form,
div.wpforms-container-full .wpforms-form {
    max-width: 600px;
    margin: 0 auto;
}

.footer-contact-form-section label,
.footer-contact-form-section .wpforms-field-label,
div.wpforms-container-full .wpforms-form .wpforms-field-label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: var(--owes-dark-blue) !important;
    margin-bottom: 6px !important;
}

.footer-contact-form-section input[type="text"],
.footer-contact-form-section input[type="email"],
.footer-contact-form-section input[type="tel"],
.footer-contact-form-section textarea,
.footer-contact-form-section select,
div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form input[type="tel"],
div.wpforms-container-full .wpforms-form textarea,
div.wpforms-container-full .wpforms-form select {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    border: 1.5px solid #d1dbe5 !important;
    border-radius: 6px !important;
    font-family: var(--font-primary) !important;
    font-size: 0.9375rem !important;
    color: var(--text-dark) !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
}

/* Kontrola odstępów poprzez kontenery pól w CF7 / WPForms */
.footer-contact-form-section .wpforms-field,
.footer-contact-form-section form p,
div.wpforms-container-full .wpforms-form .wpforms-field {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
}

.footer-contact-form-section input:focus,
.footer-contact-form-section textarea:focus,
.footer-contact-form-section select:focus,
div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form textarea:focus,
div.wpforms-container-full .wpforms-form select:focus {
    outline: none !important;
    border-color: var(--owes-med-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 139, 195, 0.1) !important;
}

.footer-contact-form-section textarea,
div.wpforms-container-full .wpforms-form textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

.footer-contact-form-section input[type="submit"],
.footer-contact-form-section button[type="submit"],
.footer-contact-form-section .wpforms-submit,
div.wpforms-container-full .wpforms-form input[type="submit"],
div.wpforms-container-full .wpforms-form button[type="submit"],
div.wpforms-container-full .wpforms-form .wpforms-submit {
    background-color: var(--owes-orange) !important;
    color: var(--owes-dark-blue) !important;
    border: none !important;
    border-radius: 3px !important;
    padding: 14px 28px !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-family: var(--font-primary) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.footer-contact-form-section input[type="submit"]:hover,
.footer-contact-form-section button[type="submit"]:hover,
.footer-contact-form-section .wpforms-submit:hover,
div.wpforms-container-full .wpforms-form input[type="submit"]:hover,
div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
div.wpforms-container-full .wpforms-form .wpforms-submit:hover {
    background-color: var(--owes-dark-blue) !important;
    color: #ffffff !important;
}

/* Dostosowanie siatek dla WPForms */
.footer-contact-form-section .wpforms-field-row,
div.wpforms-container-full .wpforms-form .wpforms-field-row,
div.wpforms-container-full .wpforms-form .wpforms-field-row-block {
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.footer-contact-form-section .wpforms-field-row,
div.wpforms-container-full .wpforms-form .wpforms-field-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
}

.footer-contact-form-section .wpforms-field-row-block,
div.wpforms-container-full .wpforms-form .wpforms-field-row-block {
    margin-bottom: 0 !important;
}

.footer-contact-form-section .wpforms-field-row-block input,
div.wpforms-container-full .wpforms-form .wpforms-field-row-block input {
    margin-bottom: 6px !important;
}

/* Kolumny 50% (np. Imię i nazwisko) */
.footer-contact-form-section .wpforms-one-half,
div.wpforms-container-full .wpforms-form .wpforms-one-half {
    flex: 1 1 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    width: auto !important;
}

/* Kolumny 33% */
.footer-contact-form-section .wpforms-one-third,
div.wpforms-container-full .wpforms-form .wpforms-one-third {
    flex: 1 1 calc(33.333% - 11px) !important;
    max-width: calc(33.333% - 11px) !important;
    width: auto !important;
}

/* Kolumny 66% */
.footer-contact-form-section .wpforms-two-thirds,
div.wpforms-container-full .wpforms-form .wpforms-two-thirds {
    flex: 1 1 calc(66.666% - 5px) !important;
    max-width: calc(66.666% - 5px) !important;
    width: auto !important;
}

/* Etykiety pomocnicze */
.footer-contact-form-section .wpforms-field-sublabel,
div.wpforms-container-full .wpforms-form .wpforms-field-sublabel {
    display: block !important;
    font-size: 0.75rem !important;
    color: var(--text-light) !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    font-weight: 500 !important;
}

@media (max-width: 768px) {
    .footer-contact-form-section .wpforms-one-half,
    div.wpforms-container-full .wpforms-form .wpforms-one-half,
    .footer-contact-form-section .wpforms-one-third,
    div.wpforms-container-full .wpforms-form .wpforms-one-third,
    .footer-contact-form-section .wpforms-two-thirds,
    div.wpforms-container-full .wpforms-form .wpforms-two-thirds {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* 6. Stopka (footer.php) */
.site-footer {
    background: #0f2c45;
    color: #9fb6c8;
}

/* Unijny pasek */
.eu-funding-strip {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.eu-funding-container {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.eu-logo-divider {
    width: 1px;
    height: 40px;
    background-color: #d1d8df;
}

.eu-logo-img {
    max-height: 45px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Responsywność dla paska unijnego */
@media (max-width: 991px) {
    .eu-logo-divider {
        display: none;
    }
    .eu-funding-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* Widgety w stopce */
.footer-widgets {
    padding: 48px 0 0;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #21425c;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--owes-med-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9375rem;
}

/* Logo OWES (ikona witryny) na białym tle – ciemnoniebieskie skrzydło nie ginie na tle stopki */
.footer-logo-badge--icon {
    background: #ffffff;
    padding: 5px;
    box-sizing: border-box;
}

.footer-logo-badge--icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-logo-meta {
    line-height: 1.2;
}

.footer-logo-title {
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff;
}

.footer-logo-subtitle {
    font-size: 0.6875rem;
    color: #7f97ab;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0 0 16px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #21425c;
    color: #9fb6c8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.footer-social-link:hover {
    background: var(--owes-orange);
    color: var(--owes-dark-blue);
}

.footer-widget-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 0.875rem;
}

.footer-links a {
    color: #9fb6c8;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact-info {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-contact-info .title {
    color: #ffffff;
    font-weight: 600;
}

/* Dolny pasek */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.8125rem;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links {
    display: flex;
    gap: 18px;
}

.footer-bottom-links a {
    color: #9fb6c8;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* 7. Układ dwukolumnowy i pasek boczny (Sidebar) */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 36px 0 48px;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.widget-search-box {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.widget-search-input {
    border: none;
    outline: none;
    padding: 11px 14px;
    font-size: 0.875rem;
    flex: 1;
    background: transparent;
    font-family: var(--font-primary);
}

.widget-search-btn {
    background: var(--owes-dark-blue);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.widget-search-btn:hover {
    background: var(--owes-med-blue);
}

.widget-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--owes-dark-blue);
    border-bottom: 2px solid var(--owes-orange);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.widget-categories-list {
    display: flex;
    flex-direction: column;
}

.widget-category-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-dark);
    padding: 9px 0;
    border-bottom: 1px solid #eef2f5;
}

.widget-category-row a {
    color: var(--text-dark);
}

.widget-category-row a:hover {
    color: var(--owes-med-blue);
}

.widget-category-count {
    color: var(--text-muted);
}

.widget-recent-posts {
    display: flex;
    flex-direction: column;
}

.widget-recent-post-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f5;
}

.widget-recent-post-thumbnail {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    flex-shrink: 0;
}

.widget-recent-post-meta {
    display: flex;
    flex-direction: column;
}

.widget-recent-post-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--owes-dark-blue);
    line-height: 1.3;
}

.widget-recent-post-title a {
    color: var(--owes-dark-blue);
}

.widget-recent-post-title a:hover {
    color: var(--owes-med-blue);
}

.widget-recent-post-date {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.widget-cta-box {
    background: var(--owes-dark-blue);
    border-radius: 6px;
    padding: 24px;
    color: #ffffff;
}

.widget-cta-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
}

.widget-cta-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #bcd0df;
    margin: 0 0 16px;
}

.widget-cta-btn {
    display: inline-block;
    background: var(--owes-orange);
    color: var(--owes-dark-blue);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 3px;
}

.widget-cta-btn:hover {
    background: #ffffff;
    color: var(--owes-dark-blue);
}

/* 8. Single Post (single.php) */
.post-header-bar {
    padding: 32px 0 28px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--owes-dark-blue);
}

.post-header-badge {
    display: inline-block;
    background: var(--owes-med-blue);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 2px;
    margin-bottom: 14px;
}

.post-header-title {
    font-size: 2.375rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 16px;
    line-height: 1.15;
    max-width: 840px;
}

.post-header-meta {
    display: flex;
    gap: 22px;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-author-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #cfe0ec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--owes-dark-blue);
    font-size: 0.8125rem;
    font-weight: 700;
}

.post-header-meta-divider {
    color: var(--text-muted);
}

.post-header-comments {
    color: var(--owes-med-blue);
    font-weight: 600;
}

.post-featured-image-area {
    margin-bottom: 14px;
}

.post-featured-image {
    width: 100%;
    height: auto;
    max-height: 550px;
    border-radius: 6px;
    display: block;
}

.post-image-caption {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.post-lead-text {
    font-size: 1.1875rem;
    line-height: 1.65;
    color: var(--owes-dark-blue);
    font-weight: 600;
    margin: 0 0 22px;
}

.post-body-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark);
}

.post-body-text p {
    margin: 0 0 20px;
}

.post-body-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 32px 0 14px;
}

.block-quote {
    border-left: 4px solid var(--owes-orange);
    background: #fbf7ee;
    padding: 20px 24px;
    margin: 26px 0;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--owes-dark-blue);
    font-style: italic;
}

.block-quote-author {
    font-style: normal;
    font-size: 0.8125rem;
    color: #8a7d68;
    margin-top: 10px;
}

.download-box {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 22px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.download-icon {
    width: 46px;
    height: 46px;
    border-radius: 3px;
    background: #eef4f8;
    color: var(--owes-med-blue);
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-meta {
    flex: 1;
}

.download-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--owes-dark-blue);
}

.download-info {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.download-btn {
    background: var(--owes-med-blue);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 3px;
}

.download-btn:hover {
    background: var(--owes-dark-blue);
    color: #ffffff;
}

.post-footer-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag-item {
    font-size: 0.8125rem;
    color: var(--text-light);
    background: #f0f3f6;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Related Posts */
.related-posts-section {
    padding: 0 0 52px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding-top: 40px;
}

.related-posts-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 18px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff;
}

.related-post-image {
    height: 120px;
}

.related-post-content {
    padding: 16px;
}

.related-post-date {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.related-post-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--owes-dark-blue);
    line-height: 1.3;
    margin: 0;
}

.related-post-title a {
    color: var(--owes-dark-blue);
}

.related-post-title a:hover {
    color: var(--owes-med-blue);
}

/* 9. Page Template (page.php) */
.page-hero-bar {
    padding: 40px 0 36px;
    background: linear-gradient(120deg, var(--owes-dark-blue), var(--owes-hero-grad-end));
    color: #ffffff;
}

.page-hero-bar .breadcrumbs,
.page-hero-bar .breadcrumbs a {
    color: #9fc4dc;
}

.page-hero-bar .breadcrumbs a:hover {
    color: #ffffff;
}

.page-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: #ffffff;
}

.page-hero-desc {
    font-size: 1.125rem;
    line-height: 1.55;
    color: #bcd0df;
    margin: 0;
    max-width: 640px;
}

.page-two-col-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 50px;
    padding: 40px 0;
}

.page-two-col-layout > .page-content-prose {
    order: 1;
}

.page-two-col-layout > aside {
    order: 2;
}

.page-single-col-layout {
    max-width: 50rem; /* 800px */
    margin: 0 auto;
    padding: 2.5rem 0; /* 40px */
}

.page-single-col-layout.page-single-col-fullwidth {
    max-width: 100%;
}

/* Spis treści na podstronie */
.page-sidebar-nav {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-sidebar-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.page-sidebar-nav-links {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--border-color);
}

.page-sidebar-nav-item {
    font-size: 0.875rem;
    padding: 9px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.4;
    transition: color .2s ease, border-color .2s ease;
}

.page-sidebar-nav-item:focus-visible {
    outline: 2px solid var(--owes-med-blue);
    outline-offset: 2px;
}

.page-sidebar-nav-item.active,
.page-sidebar-nav-item:hover {
    border-left-color: var(--owes-med-blue);
    color: var(--owes-med-blue);
}

.page-sidebar-help-box {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 18px;
}

.page-sidebar-help-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--owes-dark-blue);
    margin-bottom: 10px;
}

.page-sidebar-help-desc {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Treść podstrony */
.page-content-prose {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark);
}

.page-lead-prose {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--owes-dark-blue);
    font-weight: 600;
    margin: 0 0 22px;
}

.page-content-prose p {
    margin: 0 0 28px;
}

.page-content-prose dl {
    margin: 24px 0;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px 16px;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.page-content-prose dt {
    font-weight: 700;
    color: var(--owes-dark-blue);
}

.page-content-prose dd {
    margin: 0;
    color: var(--text-dark);
}

@media (max-width: 576px) {
    .page-content-prose dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Bloki Gutenberga w treści podstron (zastępują układ z Divi) */
html {
    scroll-behavior: smooth;
}

.page-content-prose .entry-content > :first-child {
    margin-top: 0;
}

.page-content-prose .entry-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--owes-dark-blue);
    margin: 48px 0 18px;
    scroll-margin-top: 110px;
}

.page-content-prose .entry-content > h2::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: var(--owes-orange);
    margin-bottom: 14px;
}

.page-content-prose .entry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--owes-dark-blue);
    margin: 32px 0 12px;
}

.page-content-prose .entry-content h4,
.page-content-prose .entry-content h5 {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--owes-dark-blue);
    margin: 24px 0 8px;
}

.page-content-prose .entry-content h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-light);
}

.page-content-prose .entry-content p {
    margin: 0 0 18px;
}

.page-content-prose .entry-content p:empty {
    display: none;
}

/* Pierwszy akapit po tytule sekcji jako wprowadzenie */
.page-content-prose .entry-content > h2:first-child + p {
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 600;
    color: var(--owes-dark-blue);
}

.page-content-prose .entry-content a {
    color: var(--owes-med-blue);
    text-underline-offset: 3px;
}

/* Linki w tekście podkreślone - nie odróżniamy ich wyłącznie kolorem (WCAG 1.4.1) */
.page-content-prose .entry-content :is(p, li, dd, td, figcaption) a:not(.owes-btn),
.post-body-text :is(p, li) a:not(.owes-btn) {
    text-decoration: underline;
}

.page-content-prose .entry-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--bg-light);
    border-left: 4px solid var(--owes-orange);
    border-radius: 0 6px 6px 0;
    color: var(--owes-dark-blue);
    font-style: italic;
}

.page-content-prose .entry-content blockquote > :last-child {
    margin-bottom: 0;
}

.page-content-prose .entry-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 700;
    color: var(--text-light);
}

.page-content-prose .entry-content blockquote cite::before {
    content: "— ";
}

/* Rozwijane pytania (blok "Szczegóły", np. FAQ) */
.page-content-prose .entry-content .wp-block-details {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    margin: 0 0 12px;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.page-content-prose .entry-content .wp-block-details[open] {
    border-color: var(--owes-med-blue);
    box-shadow: 0 6px 18px rgba(20, 54, 82, 0.08);
}

.page-content-prose .entry-content .wp-block-details > summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 18px 56px 18px 22px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--owes-dark-blue);
}

.page-content-prose .entry-content .wp-block-details > summary::-webkit-details-marker {
    display: none;
}

.page-content-prose .entry-content .wp-block-details > summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    background: rgba(0, 139, 195, 0.12);
    color: var(--owes-med-blue);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    transition: transform .25s ease;
}

.page-content-prose .entry-content .wp-block-details[open] > summary::after {
    content: "−";
}

.page-content-prose .entry-content .wp-block-details > summary:focus-visible {
    outline: 2px solid var(--owes-med-blue);
    outline-offset: 2px;
    border-radius: 8px;
}

.page-content-prose .entry-content .wp-block-details > :not(summary) {
    margin-left: 22px;
    margin-right: 22px;
}

.page-content-prose .entry-content .wp-block-details > :last-child {
    margin-bottom: 20px;
}

/* Osadzone filmy i ramki nie mogą wychodzić poza szerokość treści */
.entry-content iframe {
    max-width: 100%;
}

.entry-content iframe.owes-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    margin: 0 0 24px;
}

/* Mapa z adresem (np. strony mentorów) */
.page-content-prose .entry-content iframe.owes-map {
    display: block;
    width: 100%;
    height: 320px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 0 0 24px;
}

/* Listy z ikoną "✓" */
.page-content-prose .entry-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.page-content-prose .entry-content ul > li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
}

.page-content-prose .entry-content ul > li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 139, 195, 0.12);
    color: var(--owes-med-blue);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.page-content-prose .entry-content ol {
    padding-left: 24px;
    margin: 0 0 24px;
}

.page-content-prose .entry-content ol > li {
    margin-bottom: 10px;
    padding-left: 6px;
}

.page-content-prose .entry-content ol > li::marker {
    color: var(--owes-med-blue);
    font-weight: 800;
}

/* Kolumny jako karty */
.page-content-prose .entry-content .wp-block-columns {
    gap: 20px;
    margin: 24px 0 36px;
}

.page-content-prose .entry-content .wp-block-column:not(:has(figure)) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--owes-dark-blue);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(20, 54, 82, 0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.page-content-prose .entry-content .wp-block-column:not(:has(figure)):nth-child(4n+2) {
    border-top-color: var(--owes-med-blue);
}

.page-content-prose .entry-content .wp-block-column:not(:has(figure)):nth-child(4n+3) {
    border-top-color: var(--owes-orange);
}

.page-content-prose .entry-content .wp-block-column:not(:has(figure)):nth-child(4n+4) {
    border-top-color: var(--owes-green);
}

.page-content-prose .entry-content .wp-block-column:not(:has(figure)):hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 54, 82, 0.1);
}

/* Karty z samymi listami (np. "Co robimy?") wyrównujemy do góry */
.page-content-prose .entry-content .wp-block-column:has(> ul) {
    justify-content: flex-start;
}

.page-content-prose .entry-content .wp-block-column > :last-child,
.page-content-prose .entry-content .wp-block-column ul > li:last-child {
    margin-bottom: 0;
}

.page-content-prose .entry-content .wp-block-column h2,
.page-content-prose .entry-content .wp-block-column h3 {
    font-size: 1.125rem;
    margin: 0 0 10px;
}

.page-content-prose .entry-content .wp-block-column p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 6px;
}

/* Karty specjalistów (Kadra w "O ośrodku" i kontakty na podstronach oferty) */
.owes-kadra .k-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin: 8px 0 32px;
}

.owes-kadra.owes-kadra--left .k-grid {
    justify-content: flex-start;
}

.owes-kadra .k-card {
    flex: 0 1 calc(33.333% - 15px);
    min-width: 230px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 22px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: transform .2s ease, box-shadow .2s ease;
}

.owes-kadra .k-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.page-content-prose .entry-content .owes-kadra .k-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--owes-dark-blue);
    margin: 0 0 8px;
}

.page-content-prose .entry-content .owes-kadra .k-role {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-light);
    margin: 0 0 16px;
    min-height: 4.35em;
}

.owes-kadra .k-ct {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
}

.owes-kadra .k-row {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    color: #333d47;
    line-height: 1.5;
}

.owes-kadra .k-ic {
    display: flex;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--owes-med-blue);
}

.page-content-prose .entry-content .owes-kadra .k-ct a {
    color: var(--owes-med-blue);
    font-weight: 600;
    text-decoration: none;
    word-break: normal;
    overflow-wrap: normal;
}

.page-content-prose .entry-content .owes-kadra .k-ct a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .owes-kadra .k-card {
        flex-basis: calc(50% - 11px);
    }
}

@media (max-width: 520px) {
    .owes-kadra .k-card {
        flex-basis: 100%;
    }
}

/* Karty adresowe z ikonami (Inkubatory i dane kontaktowe w "O ośrodku") */
.owes-inkub .i-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin: 8px 0 32px;
}

.owes-inkub.owes-inkub--left .i-grid {
    justify-content: flex-start;
}

.owes-inkub .i-card {
    flex: 0 1 calc(50% - 11px);
    min-width: 270px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 24px 22px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: transform .2s ease, box-shadow .2s ease;
}

.owes-inkub .i-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.page-content-prose .entry-content .owes-inkub .i-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--owes-dark-blue);
    margin: 0 0 18px;
}

.page-content-prose .entry-content .owes-inkub .i-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-content-prose .entry-content .owes-inkub .i-list > li {
    display: flex;
    gap: 10px;
    padding-left: 0;
    margin: 0;
    font-size: 0.9375rem;
    color: #333d47;
    line-height: 1.5;
}

.page-content-prose .entry-content .owes-inkub .i-list > li::before {
    content: none;
}

.owes-inkub .i-ic {
    display: flex;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--owes-med-blue);
}

.owes-inkub .i-lbl {
    display: block;
    margin-bottom: 2px;
    color: var(--owes-dark-blue);
    font-weight: 700;
}

.page-content-prose .entry-content .owes-inkub .i-list a {
    color: var(--owes-med-blue);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.page-content-prose .entry-content .owes-inkub .i-list a:hover {
    text-decoration: underline;
}

@media (max-width: 560px) {
    .owes-inkub .i-card {
        flex-basis: 100%;
    }
}

/* Przyciski ze starych wpisów ([btn], [button], moduły Divi) */
.owes-btn,
.page-content-prose .entry-content a.owes-btn,
.entry-content a.owes-btn {
    display: inline-block;
    margin: 4px 0;
    padding: 9px 18px;
    border-radius: 3px;
    background: var(--owes-dark-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
}

.owes-btn:hover,
.entry-content a.owes-btn:hover {
    background: var(--owes-med-blue);
    color: #ffffff;
}

/* Kafelki ze starych wpisów Divi (np. lista wystawców) układamy w siatkę */
.entry-content .wp-block-columns:has(> .owes-legacy-card) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.entry-content .owes-legacy-card img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 12px;
    border-radius: 6px;
}

.entry-content .owes-legacy-card h3 {
    font-size: 1rem;
    margin: 0 0 6px;
}

.entry-content .owes-card-sub {
    color: var(--text-light);
    font-size: 0.875rem;
}

.entry-content .owes-legacy-cta {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--owes-orange);
    border-radius: 6px;
}

/* Układ "zdjęcie + opis" (mentorzy, logo MRPiPS) - bez wyglądu kart */
.page-content-prose .entry-content .wp-block-columns.owes-profile {
    gap: 32px;
    align-items: flex-start;
}

.page-content-prose .entry-content .owes-profile > .wp-block-column {
    display: block;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.page-content-prose .entry-content .owes-profile > .wp-block-column:hover {
    transform: none;
    box-shadow: none;
}

.page-content-prose .entry-content .owes-profile > .wp-block-column p {
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 18px;
}

/* Siatka zdjęć (np. mentorzy CSR) */
.page-content-prose .entry-content figure {
    margin: 0 0 24px;
}

.page-content-prose .entry-content figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-content-prose .entry-content .wp-block-column:has(figure) figure {
    overflow: hidden;
    border-radius: 8px;
    margin: 0;
}

.page-content-prose .entry-content .wp-block-column:has(figure) img {
    transition: transform .4s ease;
}

.page-content-prose .entry-content .wp-block-column:has(figure):hover img {
    transform: scale(1.04);
}

.page-content-prose .entry-content hr,
.page-content-prose .entry-content .wp-block-separator {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 48px 0;
    opacity: 1;
}

/* Animacje pojawiania się (klasa .owes-anim ustawiana w <head>, gdy ruch nie jest ograniczony) */
@keyframes owesFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.owes-anim .page-hero-bar .breadcrumbs,
.owes-anim .page-hero-title,
.owes-anim .page-hero-desc {
    animation: owesFadeUp .6s cubic-bezier(.2, .7, .3, 1) both;
}

.owes-anim .page-hero-title { animation-delay: .08s; }
.owes-anim .page-hero-desc { animation-delay: .16s; }

.owes-anim .page-sidebar-nav {
    animation: owesFadeUp .6s .24s cubic-bezier(.2, .7, .3, 1) both;
}

.owes-anim .owes-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease;
    transition-delay: var(--owes-delay, 0ms), var(--owes-delay, 0ms), 0ms;
}

.owes-anim .owes-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Po pojawieniu się karty hover ma działać bez opóźnienia */
.owes-anim .wp-block-columns:not(.owes-profile) > .wp-block-column.owes-reveal.is-visible:not(:has(figure)):hover {
    transform: translateY(-3px);
    transition-delay: 0ms;
}

.owes-anim .owes-reveal ul > li,
.owes-anim ul.owes-reveal > li {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .45s ease, transform .45s ease;
    transition-delay: calc(var(--owes-delay, 0ms) + 150ms + var(--owes-li-delay, 0ms));
}

.owes-anim .owes-reveal.is-visible ul > li,
.owes-anim ul.owes-reveal.is-visible > li {
    opacity: 1;
    transform: none;
}

body.high-contrast .owes-reveal,
body.high-contrast .owes-reveal ul > li,
body.high-contrast ul.owes-reveal > li {
    opacity: 1 !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .page-content-prose .entry-content .wp-block-column,
    .page-content-prose .entry-content img {
        transition: none !important;
        transform: none !important;
    }
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 34px;
}

.service-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px;
    background: #ffffff;
}

.service-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.service-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--owes-dark-blue);
    margin-bottom: 8px;
}

.service-card-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Kroki */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 34px;
}

.step-row {
    display: flex;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f5;
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--owes-dark-blue);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--owes-dark-blue);
}

.step-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 3px;
}

/* Page CTA Band */
.page-cta-band {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.page-cta-band-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
}

.page-cta-band-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-top: 4px;
}

.page-cta-band-btn {
    background: var(--owes-dark-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 14px 26px;
    border-radius: 3px;
    white-space: nowrap;
}

.page-cta-band-btn:hover {
    background: var(--owes-med-blue);
    color: #ffffff;
}

/* 10. Archive / Blog Template (archive.php) */
.archive-header-bar {
    padding: 36px 0 26px;
    border-bottom: 1px solid var(--border-color);
}

.archive-header-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 10px;
}

.archive-header-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0 0 22px;
    max-width: 620px;
}

.archive-categories-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.archive-filter-badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f0f3f6;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.archive-filter-badge.active,
.archive-filter-badge:hover {
    background: var(--owes-dark-blue);
    color: #ffffff;
    border-color: var(--owes-dark-blue);
}

/* Featured Post Card */
.featured-post-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 26px;
    background: #ffffff;
}

.featured-post-card-image {
    min-height: 240px;
    position: relative;
}

.featured-post-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--owes-green);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 2px;
}

.featured-post-card-content {
    padding: 26px 26px 26px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.featured-post-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 12px;
    line-height: 1.25;
}

.featured-post-title a {
    color: var(--owes-dark-blue);
}

.featured-post-title a:hover {
    color: var(--owes-med-blue);
}

.featured-post-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 14px;
}

.featured-post-more {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--owes-med-blue);
}

/* Grid of rest */
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Paginacja */
.pagination-area {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}

.pagination-area .page-numbers {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-weight: 600;
}

.pagination-area .page-numbers.current {
    background: var(--owes-dark-blue);
    color: #ffffff;
    border-color: var(--owes-dark-blue);
}

.pagination-area .page-numbers:not(.current):hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

.pagination-area .dots {
    border: none;
    color: var(--text-muted);
}

/* 11. Search Results (search.php) */
.search-header-bar {
    padding: 40px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.search-header-container {
    max-width: 720px;
}

.search-page-form {
    border: 1px solid #cfd9e1;
    border-radius: 6px;
    background: #ffffff;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(20, 54, 82, 0.05);
}

.search-page-input {
    border: none;
    outline: none;
    padding: 13px 16px;
    font-size: 1.0625rem;
    flex: 1;
    background: transparent;
    font-family: var(--font-primary);
    color: var(--owes-dark-blue);
}

.search-page-btn {
    background: var(--owes-dark-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 13px 26px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.search-page-btn:hover {
    background: var(--owes-med-blue);
}

.search-results-info {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-top: 16px;
}

.search-results-info strong {
    color: var(--owes-dark-blue);
}

.search-results-list {
    max-width: 860px;
    padding: 14px 0 44px;
}

.search-result-item {
    padding: 24px 0;
    border-bottom: 1px solid #eef2f5;
}

.search-result-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.search-result-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 2px;
}

.search-result-badge.post { background: var(--owes-med-blue); }
.search-result-badge.page { background: var(--owes-dark-blue); }
.search-result-badge.company { background: var(--owes-green); }

.search-result-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-result-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--owes-dark-blue);
    margin: 0 0 7px;
}

.search-result-title a {
    color: var(--owes-dark-blue);
}

.search-result-title a:hover {
    color: var(--owes-med-blue);
}

.search-result-excerpt {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0 0 8px;
}

.search-result-url {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--owes-med-blue);
}

/* 12. 404 Page (404.php) */
.error-404-container {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-light), #ffffff);
}

.error-404-code {
    font-size: 7.5rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    line-height: 1;
    letter-spacing: -0.04em;
}

.error-404-divider {
    width: 64px;
    height: 4px;
    background: var(--owes-orange);
    margin: 18px 0 26px;
}

.error-404-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 12px;
}

.error-404-desc {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 28px;
    max-width: 480px;
}

.error-404-search {
    width: 100%;
    max-width: 480px;
    border: 1px solid #cfd9e1;
    border-radius: 6px;
    background: #ffffff;
    padding: 7px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(20, 54, 82, 0.05);
    margin-bottom: 30px;
}

.error-404-search-input {
    border: none;
    outline: none;
    padding: 12px 15px;
    font-size: 0.9375rem;
    flex: 1;
    background: transparent;
    font-family: var(--font-primary);
}

.error-404-search-btn {
    background: var(--owes-dark-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.error-404-search-btn:hover {
    background: var(--owes-med-blue);
}

.error-404-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.error-404-link-btn {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--owes-dark-blue);
    border: 1px solid #cfd9e1;
    padding: 10px 20px;
    border-radius: 3px;
    background: #ffffff;
}

.error-404-link-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

.error-404-home-btn {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--owes-med-blue);
    padding: 10px 22px;
    border-radius: 3px;
}

.error-404-home-btn:hover {
    background: var(--owes-dark-blue);
    color: #ffffff;
}

/* 13. Tryb wysokiego kontrastu (Accessibility WCAG) */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

body.high-contrast * {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

body.high-contrast a,
body.high-contrast button {
    text-decoration: underline !important;
}

body.high-contrast a:hover,
body.high-contrast button:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
    text-decoration: none !important;
}

body.high-contrast a *,
body.high-contrast button * {
    background-color: transparent !important;
    color: inherit !important;
}

/* Responsywność */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-collage-area {
        max-width: 400px;
        margin: 0 auto;
    }
    .collage-stat-badge {
        padding: 10px 14px;
        left: 12px;
        bottom: 12px;
        max-width: 140px;
    }
    .collage-stat-value {
        font-size: 1.25rem;
    }
    .collage-stat-label {
        font-size: 0.625rem;
    }
    .collage-nabor-badge {
        right: 10px;
        top: 10px;
        padding: 6px 12px;
        font-size: 0.6875rem;
    }
    .quick-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .two-col-layout {
        grid-template-columns: 1fr;
    }
    .page-two-col-layout {
        grid-template-columns: 1fr;
    }
    .featured-post-card {
        grid-template-columns: 1fr;
    }
    .featured-post-card-content {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .owes-zg-container {
        padding: 0 20px;
    }
    .header-container {
        padding: 16px 20px;
    }
    .menu-toggle {
        display: block;
    }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        z-index: 10;
        padding: 20px;
        /* Nagłówek jest przyklejony, więc długie menu przewija się wewnątrz */
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .main-navigation.is-active {
        display: block;
    }
    .menu-items {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .menu-items > li.menu-item-btn > a,
    .menu-items > li:last-child > a {
        text-align: center;
        display: block;
    }

    /* Obsługa submenu na mobile */
    .menu-items .sub-menu {
        display: block;
        list-style: none;
        padding: 5px 0 5px 15px;
        margin: 5px 0 0 0;
        border-left: 2px solid var(--owes-orange);
        background: transparent;
        box-shadow: none;
    }
    
    .menu-items .sub-menu li {
        width: 100%;
    }
    
    .menu-items .sub-menu li a {
        display: block;
        padding: 8px 0;
        color: var(--owes-dark-blue);
        font-size: 0.875rem;
        font-weight: 500;
        border-bottom: none;
        text-align: left;
    }
    
    .menu-items .sub-menu li a:hover {
        color: var(--owes-med-blue);
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .quick-cards-grid {
        grid-template-columns: 1fr;
    }
    .nabor-highlight-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .nabor-btn {
        width: 100%;
        text-align: center;
    }
    .posts-grid-three {
        grid-template-columns: 1fr;
    }
    .archive-posts-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Telefon: górny pasek w jednej linii i wyśrodkowane sekcje strony głównej oraz stopki */
@media (max-width: 768px) {
    .top-bar {
        font-size: 0.75rem;
        padding: 8px 0;
    }
    .top-bar-container {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 12px;
    }
    .top-bar-contact {
        gap: 10px;
        white-space: nowrap;
    }
    .top-bar-divider,
    .top-bar-label {
        display: none;
    }
    .wcag-controls {
        gap: 4px;
    }
    .wcag-btn {
        width: 22px;
        height: 22px;
    }

    .quick-card,
    .post-card-content {
        align-items: center;
        text-align: center;
    }
    .stat-item {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }
    .stat-item::before {
        content: "";
        display: block;
        width: 40px;
        height: 3px;
        margin: 0 auto 12px;
        background: var(--owes-orange);
    }
    .news-header-home {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    .news-header-indicator {
        margin-left: auto;
        margin-right: auto;
    }
    .nabor-highlight-box {
        align-items: center;
        text-align: center;
    }
    .footer-widgets-grid {
        text-align: center;
    }
    .footer-logo-area,
    .footer-socials {
        justify-content: center;
    }
    .footer-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-links {
        align-items: center;
    }
}

@media (max-width: 359px) {
    .top-bar-container {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   7. Strona Kontakt (page-kontakt.php)
   ========================================================================== */
.contact-header-section {
    background: linear-gradient(120deg, var(--owes-dark-blue) 0%, var(--owes-med-blue) 100%);
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.contact-header-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.contact-header-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 500;
}

.contact-map-section {
    padding: 60px 0 30px 0;
}

.contact-map-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(20, 54, 82, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    height: 450px;
    background: var(--bg-light);
}

.contact-map-iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-main-section {
    padding: 30px 0 60px 0;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 992px) {
    .contact-main-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.contact-page-form-area .section-title-wrap {
    margin-bottom: 30px;
}

.contact-page-form-area .accent-line {
    display: block;
    width: 44px;
    height: 4px;
    background-color: var(--owes-orange);
    margin-bottom: 12px;
}

.contact-page-form-area h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0;
}

/* Stylizacja dla formularza CF7 na podstronie kontaktowej */
.contact-page-form-area form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 15px;
}

.contact-page-form-area form input[type="text"],
.contact-page-form-area form input[type="email"],
.contact-page-form-area form input[type="tel"],
.contact-page-form-area form textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background-color: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.contact-page-form-area form input:focus,
.contact-page-form-area form textarea:focus {
    outline: none;
    border-color: var(--owes-med-blue);
    box-shadow: 0 0 0 3px rgba(0, 139, 195, 0.1);
}

.contact-page-form-area form input[type="submit"] {
    background-color: var(--owes-orange);
    color: var(--owes-dark-blue);
    border: none;
    border-radius: 3px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    width: auto;
    font-family: var(--font-primary);
}

.contact-page-form-area form input[type="submit"]:hover {
    background-color: var(--owes-dark-blue);
    color: #ffffff;
}

.contact-page-details-area {
    display: flex;
}

.contact-page-info-card {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 30px rgba(20, 54, 82, 0.05);
    border-radius: 8px;
    padding: 40px;
    box-sizing: border-box;
    width: 100%;
}

.contact-page-info-card h3 {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 16px 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.contact-page-info-card .intro-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 30px 0;
}

.contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 0.9375rem;
    color: var(--owes-dark-blue);
    line-height: 1.5;
    font-weight: 600;
}

.detail-value a {
    color: var(--owes-dark-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-value a:hover {
    color: var(--owes-med-blue);
    text-decoration: underline;
}

.contact-blurbs-section {
    padding: 40px 0 80px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.contact-blurbs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .contact-blurbs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-blurb-card {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-sizing: border-box;
}

.blurb-icon-wrap {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(0, 139, 195, 0.08);
    color: var(--owes-med-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blurb-content h3 {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.blurb-content p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0;
}

.blurb-content a {
    color: var(--owes-med-blue);
    font-weight: 600;
    text-decoration: none;
}

.blurb-content a:hover {
    text-decoration: underline;
}

