/* Design tokens - jedna skala (8pt), jedna rodzina kolorów */
:root {
    --primary-color: #550A35;
    --primary-light: #7D1747;
    /* Wypełnienia brandowe (przyciski secondary, hero, paski) - w dark nie stają się różowe */
    --primary-fill: var(--primary-color);
    --primary-fill-hover: var(--primary-light);
    --accent-color: #F6BE00;
    --accent-hover: #D9A800;
    --text-main: #1a1a1a;
    --text-dark: var(--text-main);
    --text-muted: #444444;
    --text-light: #ffffff;
    --bg-light: #f6f4f5;
    --bg-purple-light: #F5E8EF;
    --surface: #ffffff;
    --surface-alt: var(--bg-purple-light);
    --border-color: #e5e5e5;
    --on-accent: #550A35;
    --header-bg: #550A35;
    --header-text: #ffffff;
    --hero-overlay: rgba(85, 10, 53, 0.72);
    --input-bg: #ffffff;
    --input-text: #1a1a1a;
    --dialog-bg: #ffffff;
    --dialog-text: #1a1a1a;
    --dialog-muted: #555555;
    --success-color: #28a745;
    --danger-color: #e74c3c;
    --focus-ring: 0 0 0 3px rgba(246, 190, 0, 0.55);
    --focus-ring-on-accent: 0 0 0 3px rgba(85, 10, 53, 0.45);
    --header-height: 80px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 80px;
    --measure: 68ch;
    --tap-min: 44px;
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --font-sans: 'Open Sans', sans-serif;
    --font-display: 'Montserrat', sans-serif;
    --text-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --text-meta: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
    --duration-fast: 0.15s;
    --duration-out: 0.22s;
    --ease-fast: ease;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-sm: 0 1px 3px rgba(42, 6, 24, 0.06);
    --shadow-md: 0 8px 24px rgba(42, 6, 24, 0.12);
}

/* Reset i podstawy */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    color: var(--text-main);
    line-height: 1.65;
    /* Tło pod sticky footer (reveal) - kolor marki */
    background-color: var(--header-bg, var(--primary-fill));
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-2);
    z-index: 2000;
    padding: var(--space-1) var(--space-2);
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: clamp(var(--space-2), 3.5vw, var(--space-3));
}

.section-padding {
    padding: var(--space-6) 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: var(--space-3);
}

.section-intro {
    text-align: center;
    max-width: var(--measure);
    margin: 0 auto var(--space-5);
    color: var(--text-muted, #555);
    line-height: 1.65;
}

.section-intro a {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb {
    padding-top: 24px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 0.95rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    min-height: var(--tap-min);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-fast), color var(--duration-fast) var(--ease-fast), transform var(--duration-fast) var(--ease-fast), border-color var(--duration-fast) var(--ease-fast), box-shadow var(--duration-fast) var(--ease-fast);
    text-align: center;
    line-height: 1.25;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--on-accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--primary-fill);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--primary-fill-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--on-accent);
}

.btn-large {
    padding: var(--space-2) var(--space-4);
    font-size: 1.1rem;
    min-height: 48px;
}

/* Header */
.header {
    background-color: var(--header-bg, var(--primary-color));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 color-mix(in srgb, var(--text-light) 6%, transparent) inset, var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: var(--header-height);
    gap: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 1px;
    text-decoration: none;
    line-height: 1;
}

.nav-link--active,
.nav a[aria-current="page"] {
    color: var(--accent-color);
}

.logo-e {
    color: var(--accent-color);
    font-size: 2rem;
}

.icon-svg {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.theme-toggle .icon-svg,
.nav-toggle .icon-svg {
    width: 1.125rem;
    height: 1.125rem;
}


.nav a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0;
    font-weight: 600;
    transition: color var(--duration-fast) var(--ease-fast);
    white-space: nowrap;
}

.nav a:hover {
    color: var(--accent-color);
}

/* Dropdown: Kursy prawa jazdy */
.nav-item--dropdown {
    position: relative;
}

.nav-link--parent {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--duration-fast) var(--ease-fast);
}

.nav-link--parent:hover,
.nav-item--dropdown:hover .nav-link--parent,
.nav-item--dropdown:focus-within .nav-link--parent {
    color: var(--accent-color);
}

.nav-chevron {
    font-size: 0.65em;
    opacity: 0.85;
    line-height: 1;
    transition: transform var(--duration-fast) var(--ease-fast);
}

.nav-item--dropdown:hover .nav-chevron,
.nav-item--dropdown:focus-within .nav-chevron,
.nav-item--dropdown.is-open .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1002;
    min-width: 12.5rem;
    margin: 0;
    padding: var(--space-1);
    list-style: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    pointer-events: none;
    transition:
        opacity var(--duration-fast) var(--ease-fast),
        transform var(--duration-fast) var(--ease-fast),
        visibility var(--duration-fast) var(--ease-fast);
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown,
.nav-item--dropdown.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.nav-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
    background: var(--surface-alt);
    color: var(--primary-color);
    outline: none;
}

[data-theme="dark"] .nav-dropdown a {
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.btn-compact {
    white-space: nowrap;
    padding: var(--space-1) var(--space-2);
    font-size: 0.9375rem;
    line-height: 1.2;
    min-height: var(--tap-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image,
.hero picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--hero-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: min(800px, 72ch);
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: var(--space-2);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-4);
    max-width: var(--measure);
    line-height: 1.55;
}


/* Cechy / Dlaczego my */

.offer {
    background-color: var(--bg-purple-light);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-3);
    box-shadow: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 20px;
}

.product-header h3,
.product-title {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.product-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
}

.product-header--compact {
    margin-bottom: 15px;
}

.product-features--compact {
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 15px;
}

.price span {
    font-size: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.product-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features .icon-svg {
    color: var(--accent-color);
}

/* Stopka - sticky reveal pod treścią strony */
.site-sheet {
    position: relative;
    z-index: 2;
    background-color: var(--bg-light);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.32);
}

.footer {
    position: sticky;
    bottom: 0;
    z-index: 0;
    background-color: var(--header-bg, var(--primary-fill));
    color: var(--text-light);
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem;
    font-style: normal;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-col {
    min-width: 0;
}

.footer-heading {
    margin: 0 0 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-family: var(--font-display, inherit);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
}

.footer-col-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.footer-col-body p {
    margin: 0;
}

.footer-brand {
    font-weight: 700;
    color: #fff;
}

.footer-label {
    font-weight: 700;
    color: #fff;
}

.footer-label--spaced {
    margin-top: 0.75rem !important;
}

.footer-hours {
    margin-bottom: 0.5rem !important;
}

.footer a {
    color: #fff;
    text-decoration: none;
    text-underline-offset: 3px;
}

.footer a:hover,
.footer a:focus-visible {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.1rem;
    margin-bottom: 1.25rem;
    padding-top: 0.25rem;
    font-size: 0.875rem;
}

.footer-nav a,
.footer-nav .footer-link-btn {
    color: rgba(255, 255, 255, 0.88);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p {
    margin: 0;
}

.footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    text-underline-offset: 3px;
}

.footer-link-btn:hover,
.footer-link-btn:focus-visible {
    color: var(--accent-color);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        align-items: start;
    }

    .footer-col {
        padding: 0 1.5rem;
    }

    .footer-col + .footer-col {
        border-left: 1px solid rgba(255, 255, 255, 0.28);
    }
}

@media (min-width: 1024px) {
    .footer-col {
        padding: 0 2rem;
    }
}

/* Header mobile / tablet: hamburger + drawer until desktop (1024px) */
@media (max-width: 1023px) {
    .header-container {
        flex-wrap: nowrap;
        height: auto;
        min-height: 64px;
        padding: 10px 0;
        position: static;
        justify-content: space-between;
        gap: 8px;
    }

    .header--home .nav,
    .header--inner .nav {
        margin-left: 0;
        margin-right: 0;
    }

    .header--inner .header-container {
        gap: 0;
    }

    .header-actions {
        margin-left: auto;
        gap: 8px;
        flex-shrink: 0;
    }

    .header--home .header-actions {
        margin-left: auto;
        gap: 8px;
    }

    .nav-toggle {
        display: inline-flex;
        flex-shrink: 0;
        width: var(--tap-min);
        height: var(--tap-min);
        min-width: var(--tap-min);
        min-height: var(--tap-min);
        padding: 0;
        font-size: 1rem;
        line-height: 1;
        overflow: hidden;
    }

    .nav-toggle [data-osk-icon] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.125rem;
        height: 1.125rem;
        line-height: 0;
    }

    .nav-toggle .icon-svg {
        width: 1.125rem;
        height: 1.125rem;
        display: block;
    }

    .header .nav.nav--open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-offset, var(--header-height, 64px));
        right: 0;
        left: auto;
        width: min(280px, 92vw);
        max-height: calc(100dvh - var(--header-offset, 64px));
        overflow-y: auto;
        margin: 0;
        padding: 12px;
        background: var(--header-bg, var(--primary-color));
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
        border-radius: 0 0 0 12px;
        z-index: 1001;
        gap: 8px;
    }

    .header .nav.nav--open > a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: var(--tap-min);
        margin: 0;
        padding: 12px 14px;
        border-radius: var(--radius-sm);
        background: var(--accent-color);
        color: var(--on-accent, #1a1a1a);
        font-weight: 700;
        font-size: 0.95rem;
        text-align: center;
        text-decoration: none;
    }

    .header .nav.nav--open > a:hover,
    .header .nav.nav--open > a:focus-visible {
        filter: brightness(1.05);
        color: var(--on-accent, #1a1a1a);
        outline: none;
    }

    .header .nav.nav--open > a.nav-link--active,
    .header .nav.nav--open > a[aria-current="page"] {
        box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.22);
    }

    .header .nav.nav--open .nav-item--dropdown {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }

    .header .nav.nav--open .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0;
        min-width: 0;
        width: 100%;
    }

    .header .nav.nav--open .nav-dropdown a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 10px 12px;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.12);
        color: var(--text-light);
        font-size: 0.9rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
    }

    .header .nav.nav--open .nav-dropdown a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: var(--text-light);
    }

    .header .nav.nav--open .nav-chevron {
        display: none;
    }
}

/* --- Dodatki do cennika (Karty wielowariantowe) --- */
.price-variant-box {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    margin-top: auto;
}

.variant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variant-info {
    display: flex;
    flex-direction: column;
}

.variant-info strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.variant-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.variant-row--divider {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.price-variant-box--center {
    text-align: center;
    margin-top: 20px;
}

.variant-price--large {
    font-size: 2.2rem;
}

.installment-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.installment-info--spaced {
    margin-bottom: 15px;
}

.btn-full {
    width: 100%;
}

.btn-full--spaced {
    margin-top: 15px;
}






/* --- Forms --- */

.form-heading {
    margin: 0 0 var(--space-3);
    font-size: 1.25rem;
    color: var(--primary-color);
}

.form-box {
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.form-group {
    margin-bottom: var(--space-2);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-1);
    font-weight: 600;
}


.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-1) var(--space-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--input-bg);
    color: var(--input-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid,
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: var(--danger-color);
}

.form-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 8px;
}

.form-checkbox input {
    margin-top: 4px;
    flex-shrink: 0;
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
    font-size: 1.2rem;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-error {
    margin: 0 0 var(--space-3);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    font-weight: 600;
    line-height: 1.45;
    background: #fdecea;
    color: #b42318;
    border: 1px solid #f5c2c0;
}

.pricing-table thead {
    background: var(--bg-purple-light);
}

.pricing-table th {
    padding: 14px 20px;
    text-align: left;
    color: var(--primary-color);
}

.btn-small {
    padding: var(--space-1) var(--space-2);
    font-size: 0.875rem;
}

/* --- Tabela usług dodatkowych --- */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background-color: var(--bg-purple-light);
}

.price-cell {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    white-space: nowrap;
}

/* Poprawka dla przycisków kupna w tabeli na małych ekranach */
@media (max-width: 600px) {
    .pricing-table td {
        display: block;
        text-align: left !important;
        padding: 10px 15px;
        border: none;
    }
    .pricing-table tr {
        border-bottom: 2px solid #eee;
        display: block;
        padding-bottom: 10px;
    }
    .price-cell {
        padding-bottom: 5px;
    }
}

/* === Mobile-first + Dark mode + Kafelki (spec v2) === */
[data-theme="dark"] {
    color-scheme: dark;
    /* Tekst / linki na ciemnym tle */
    --primary-color: #F0A8C4;
    --primary-light: #F5C4D8;
    /* Stałe wypełnienia brandowe (nie różowe) */
    --primary-fill: #550A35;
    --primary-fill-hover: #7D1747;
    --accent-color: #F6BE00;
    --accent-hover: #E0AE00;
    --bg-light: #0f0f12;
    --bg-purple-light: #241018;
    --text-dark: #f3f3f3;
    --text-light: #ffffff;
    --surface: #1a1a20;
    --surface-alt: #252530;
    --text-main: #f2f2f4;
    --text-muted: #c2c2cc;
    --border-color: #3a3a48;
    --header-bg: #2A0618;
    --header-text: #ffffff;
    --on-accent: #2A0618;
    --hero-overlay: rgba(10, 2, 8, 0.82);
    --input-bg: #252530;
    --input-text: #f2f2f4;
    --dialog-bg: #22222a;
    --dialog-text: #f2f2f4;
    --dialog-muted: #b0b0bc;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28), 0 6px 18px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.32), 0 16px 36px rgba(0, 0, 0, 0.28);
}

.header {
    background-color: var(--header-bg);
}

.logo,
.nav a {
    color: var(--header-text);
}

.nav a:hover {
    color: var(--accent-color);
}

.hero-overlay {
    background: var(--hero-overlay);
}

.btn-primary {
    color: var(--on-accent);
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
    background: var(--input-bg);
    color: var(--input-text);
    border-color: var(--border-color);
}

.footer {
    background-color: var(--header-bg);
    color: var(--header-text);
}

.offer {
    background-color: var(--bg-purple-light);
}

.product-card,
.tile,
.offer-tile {
    background: var(--surface);
    border: 1px solid var(--border-color);
}

.legal-page {
    padding-top: 48px;
    padding-bottom: 64px;
}

.legal-doc {
    max-width: 760px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px 24px 36px;
}

.legal-back {
    margin-bottom: 20px;
}

.legal-back a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.legal-doc h1 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.legal-doc h2 {
    margin: 28px 0 12px;
    font-size: 1.15rem;
    color: var(--primary-color);
}

.legal-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-doc p,
.legal-doc li {
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal-doc ul {
    margin: 0 0 12px 20px;
}

.hero--compact {
    min-height: 55vh;
}

.hero--home .hero-overlay {
    background: var(--hero-overlay);
}

.hero--landing .hero-overlay {
    display: none;
}

.hero--home .hero-content {
    max-width: 680px;
}

.hero--home .hero-content h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    margin-bottom: var(--space-3);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--space-4);
    max-width: 38ch;
}

.hero--home .hero-lead {
    opacity: 0.96;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.4;
    margin: var(--space-1) 0 var(--space-3);
    max-width: none;
    white-space: nowrap;
    opacity: 0.95;
}

#site-header {
    min-height: var(--header-height);
}

.header--placeholder {
    background-color: var(--header-bg, var(--primary-color));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header--placeholder .header-container {
    height: var(--header-height);
}

.header--placeholder .skeleton-block--logo {
    width: 120px;
    height: 24px;
}

.header--placeholder .skeleton-block--nav {
    flex: 1;
    max-width: 360px;
    height: 16px;
    margin: 0 auto;
}

.header--placeholder .skeleton-block--actions {
    width: 140px;
    height: 32px;
}

@media (max-width: 767px) {
    .header--placeholder .skeleton-block--nav {
        display: none;
    }
}

.site-footer-placeholder {
    min-height: 220px;
    background-color: var(--header-bg, var(--primary-color));
}

.skeleton-block,
.skeleton-line {
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.offer-tile--skeleton {
    pointer-events: none;
    min-height: 271px;
}

.offer-tile--skeleton .skeleton-line {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--primary-color) 6%, transparent) 0%,
        color-mix(in srgb, var(--primary-color) 12%, transparent) 50%,
        color-mix(in srgb, var(--primary-color) 6%, transparent) 100%
    );
    background-size: 200% 100%;
}

.skeleton-line {
    height: 14px;
    margin: 0 auto 10px;
}

.skeleton-line--title {
    width: 85%;
    height: 18px;
    margin-bottom: 14px;
}

.skeleton-line--price {
    width: 45%;
    height: 22px;
    margin-bottom: 12px;
}

.skeleton-line--short {
    width: 70%;
}

.skeleton-line--btn {
    width: 55%;
    height: 40px;
    margin-top: 16px;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-block,
    .skeleton-line {
        animation: none;
    }

    .cookie-banner {
        transition: none;
    }
}


.hero--home .btn-large {
    padding: var(--space-2) var(--space-4);
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.hero .btn-outline {
    border-color: var(--accent-color);
    color: var(--text-light);
}

.hero .btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--on-accent);
}

@media (min-width: 1024px) {
    /* Logo lewo, nav + akcje zbite w prawo (nav przy telefonie) */
    .header--home .nav,
    .header--inner .nav {
        margin-left: auto;
        margin-right: var(--space-3);
    }

    .header--home .header-actions,
    .header--inner .header-actions {
        margin-left: 0;
        gap: var(--space-2);
    }
}

.header--inner .header-container {
    gap: 0;
}

.header--inner .nav a {
    font-size: 0.9375rem;
}

#dlaczego-my .section-title {
    margin-bottom: var(--space-2);
}

.tile-grid {
    display: grid;
    gap: var(--space-2);
    grid-template-columns: 1fr;
}

.tile-grid--4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .tile-grid--4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
}

@media (min-width: 1024px) {
    .tile-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tile-grid--offer,
.offer-grid {
    grid-template-columns: 1fr;
}

.tile,
.offer-tile,
.product-card {
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.tile [data-osk-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: var(--space-1);
    margin-bottom: var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    font-size: 1.35rem;
    color: var(--primary-color);
}

.tile [data-osk-icon] .icon-svg {
    width: 1em;
    height: 1em;
}

.tile h3,
.offer-tile h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: var(--space-1);
}

.tile p {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.offer-tile-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 8px 0;
}

.offer-tile-features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.offer-tile-features li {
    margin: 4px 0;
}

.section-cta {
    text-align: center;
    margin-top: 24px;
}

.section-cta--text {
    margin-top: 12px;
}

.section-cta--text + .section-cta--text,
.section-cta + .section-cta--text {
    margin-top: 12px;
}

.steps-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.step-tile {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0;
    text-align: center;
    width: 100%;
    max-width: 280px;
    overflow: visible;
}

.step-tile-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: var(--space-3) var(--space-2);
    background: transparent;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.step-tile-btn:hover .step-tile-label,
.step-tile-btn:focus-visible .step-tile-label {
    color: var(--accent-hover);
}

.step-number {
    display: inline-flex;
    width: var(--space-4);
    height: var(--space-4);
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--on-accent);
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    margin-bottom: var(--space-1);
}

.step-tile-label {
    color: var(--primary-color);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}





.step-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(420px, 92vw);
    height: auto;
    max-height: min(85vh, 720px);
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0;
    background: var(--dialog-bg);
    color: var(--dialog-text);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.step-dialog[open] {
    display: flex;
    flex-direction: column;
}

.step-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

html.modal-open {
    overflow: hidden;
    scroll-behavior: auto;
}

.header--minimal .header-container {
    gap: 16px;
}

.nav--inline {
    display: none;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 899px) {
    .header--minimal .header-actions {
        margin-left: auto;
        gap: 10px;
    }

    .header--minimal .nav--inline.nav--open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height, 64px);
        right: 0;
        left: auto;
        width: min(280px, 100vw);
        margin: 0;
        padding: 12px 12px 16px 20px;
        background: var(--header-bg, var(--primary-color));
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
        border-radius: 0 0 0 12px;
        z-index: 1001;
        gap: 10px;
    }

    .header--minimal .nav--inline.nav--open a {
        text-align: right;
        padding-right: 0;
    }

    .header--minimal .header-container {
        position: static;
        flex-wrap: nowrap;
    }
}

@media (min-width: 900px) {
    .nav--inline {
        display: flex;
    }

    .header--minimal .nav--inline {
        position: static;
        width: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .header--minimal .nav--inline a {
        text-align: left;
    }
}

.footer--compact {
    padding-top: 24px;
}

.legal-back-sep {
    margin: 0 8px;
    color: var(--text-muted);
}

.form-hint {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.course-locked {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid color-mix(in srgb, var(--primary-color) 16%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--primary-color) 6%, var(--surface));
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.course-locked__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.course-locked__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
}

.offer-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    color: var(--header-text, var(--text-light));
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.95rem;
    min-width: var(--tap-min);
    min-height: var(--tap-min);
    padding: 0 var(--space-1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
}

.header-phone [data-osk-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.header-phone .icon-svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

.header-phone:hover {
    border-color: var(--accent-color);
    text-decoration: none;
}

@media (max-width: 1100px) {
    .header-phone .header-phone__number,
    .header-phone span:not([data-osk-icon]) {
        display: none;
    }
}

/* Mobile: Zapisz się tylko w hamburgerze */
.nav-signup {
  display: none;
}

@media (max-width: 1023px) {
  .header-actions .header-signup {
    display: none !important;
  }

  .header .nav.nav--open .nav-signup {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .nav-signup {
    display: none !important;
  }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.container--narrow {
    max-width: 760px;
}

.section-lead {
    text-align: center;
    max-width: var(--measure);
    margin: 0 auto var(--space-4);
    line-height: 1.65;
    color: var(--text-muted);
}

.career-layout {
    display: grid;
    gap: 32px;
    align-items: start;
    margin-top: 8px;
}

@media (min-width: 900px) {
    .career-layout {
        grid-template-columns: 1fr 1.05fr;
        gap: 48px;
    }
}

.career-subtitle {
    font-size: 1.15rem;
    margin: 0 0 12px;
}

.career-subtitle + .career-list {
    margin-bottom: 28px;
}

.career-list,
.checklist {
    margin: 0;
    padding-left: 1.15em;
    line-height: 1.7;
    color: var(--text-muted);
}

.career-list li + li,
.checklist li + li {
    margin-top: var(--space-1);
}

.career-alt {
    margin: 8px 0 0;
    line-height: 1.6;
}

.career-form-box {
    margin: 0;
}

.career-success,
.status-ok {
    margin: var(--space-2) 0 0;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    background: #e8f6ec;
    color: #1e6b3a;
    border: 1px solid #b7e0c2;
    line-height: 1.5;
    font-weight: 600;
}

.section-title--left {
    text-align: left;
}

.contact-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin-bottom: 32px;
}

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

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.contact-card h2 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.contact-portal {
    margin-bottom: 32px;
}

.contact-portal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.contact-portal-links a {
    font-weight: 600;
}

.contact-locations {
    display: grid;
    gap: 16px;
}

.contact-location h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.contact-note {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.contact-map-section {
    margin-top: 12px;
    width: 100%;
    min-width: 0;
}

.contact-map-lead {
    margin-bottom: 16px;
    line-height: 1.65;
}

.contact-map {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9;
    min-height: 220px;
    background: var(--surface);
}

.contact-map-lead a {
    display: inline-block;
    margin-left: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
    display: block;
}

@media (max-width: 767px) {
    .contact-map-section {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }

    .contact-map {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--primary-color);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-answer {
    margin-top: 12px;
    line-height: 1.7;
}

.hero--landing {
    background: linear-gradient(135deg, var(--primary-fill), color-mix(in srgb, var(--primary-fill) 70%, black));
    min-height: 50vh;
}

.hero--landing .hero-content {
    color: #fff;
}

.hero--landing .hero-lead {
    color: rgba(255, 255, 255, 0.92);
}

.cta-band {
    padding: var(--space-6) var(--space-3);
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-band-inner {
    max-width: var(--measure);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cta-band-inner h2 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.steps-flow--compact .step-tile {
    padding: 16px;
}

.steps-flow--compact .step-tile-label {
    font-size: 0.95rem;
}

.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.cookie-banner.is-visible {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.site-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 2, 8, 0.72);
    backdrop-filter: blur(2px);
}

.site-modal__panel,
.cookie-banner__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 34rem);
    max-height: min(90dvh, 40rem);
    overflow: auto;
    margin: 0;
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

html.is-modal-open,
html.is-modal-open body {
    overflow: hidden;
}

.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
}

.cookie-banner-copy {
    flex: 1 1 auto;
    max-width: none;
}

.cookie-banner-title {
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-family: inherit; /* h2 dialog title keeps same visual weight as former <p> */
}

.cookie-banner-text {
    margin: 0;
    max-width: none;
    line-height: 1.55;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.cookie-banner-actions .btn {
    min-height: var(--tap-min);
    flex: 1 1 auto;
    min-width: min(100%, 9.5rem);
}

.cookie-banner-actions .btn-primary,
.cookie-banner-actions .btn-secondary {
    font-weight: 700;
}

.cookie-panel {
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-color);
}

.cookie-form {
    margin: 0;
}

.cookie-options {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.cookie-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: var(--space-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    cursor: pointer;
}

.cookie-option input {
    margin-top: 0.25em;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.cookie-option--locked {
    cursor: default;
    opacity: 0.95;
}

.cookie-option__desc {
    display: block;
    margin-top: 4px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.45;
}

.cookie-panel-actions {
    margin-top: var(--space-2);
}

.form-checkbox__note {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.45;
}

.footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    text-underline-offset: 3px;
}

.footer-link-btn:hover,
.footer-link-btn:focus-visible {
    color: var(--accent-color);
    text-decoration: underline;
}

.tile p {
    margin-top: 8px;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-dialog-title {
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-right: 32px;
}

.step-dialog-body {
    line-height: 1.65;
    color: var(--text-main);
}

.step-dialog-subtitle {
    font-weight: 700;
    color: var(--primary-color);
    margin: 16px 0 8px;
}

.step-dialog-list,
.step-dialog-link-list {
    margin: 0 0 12px 20px;
}

.step-dialog-list li,
.step-dialog-link-list li {
    margin-bottom: 6px;
}

.step-dialog-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--surface-alt);
    font-size: 0.95rem;
}

.step-dialog-links {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.step-dialog-link-list a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.step-dialog-link-list a:hover {
    color: var(--primary-light, #7D1747);
}

.step-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: var(--tap-min);
    height: var(--tap-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.step-dialog-close:hover {
    color: var(--primary-color);
    background: var(--surface-alt);
}

.steps-grid {
    display: none;
}

.nav-toggle,
.theme-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: var(--header-text);
    border-radius: var(--radius-sm);
    padding: 0;
    cursor: pointer;
    min-width: var(--tap-min);
    min-height: var(--tap-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-container {
    flex-wrap: nowrap;
    gap: var(--space-2);
}

.nav {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.nav--open {
    display: flex;
}

.nav a {
    margin: 0;
    padding: 10px 0;
}

.review-card {
    border-radius: 12px;
    padding: 24px;
}

.review-stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 12px;
}







@media (min-width: 768px) {
    .section-padding {
        padding: var(--space-7) 0;
    }

    .container {
        padding: 0 var(--space-3);
    }

    .tile-grid--offer,
    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .steps-flow {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: var(--space-2);
    }

    .step-tile {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
    }






    .btn-compact {
        font-size: 0.875rem;
        padding: var(--space-1) var(--space-2);
    }

    .header-container {
        flex-wrap: nowrap;
    }
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }

    .header .nav {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        width: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .header .nav a {
        text-align: left;
        padding: 0;
    }

    .nav {
        display: flex !important;
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 18px;
    }

    .header--home .nav {
        gap: 28px;
    }

    .header--inner .nav {
        gap: 20px;
    }

    .tile-grid--offer,
    .offer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
    }
}
/* === Layout system 2026 (8pt / measure / tap) - colors untouched === */
.wp-block-group { max-width: 100%; }
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
}
.menu, .nav ul, .site-nav__list, #primary-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav .sub-menu { display: none; }

/* Nested section rhythm */

.legal-page .legal-doc { max-width: var(--measure); margin: 0 auto; }
.legal-page h1 { color: var(--primary-color); margin-bottom: var(--space-2); }
.legal-page h2 { color: var(--primary-color); margin: var(--space-4) 0 var(--space-2); font-size: 1.25rem; line-height: 1.3; }
.legal-lead { margin-bottom: var(--space-3); color: var(--text-muted); max-width: var(--measure); }
.legal-back { margin-bottom: var(--space-3); }
.legal-back a { color: var(--primary-color); font-weight: 600; text-decoration: none; }
.inquiry-note { font-size: 0.95rem; color: var(--text-muted); line-height: 1.55; max-width: var(--measure); }

iframe.map-frame,
.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  margin-top: var(--space-2);
}
.entry.legal-doc .legal-content,
.legal-doc .entry-content {
  max-width: var(--measure);
}
.career-success,
.status-ok {
  color: var(--success-color);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

/* Brand logo - CLS-safe */
.logo--brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  max-width: min(240px, 42vw);
}
.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  aspect-ratio: 220 / 55;
  object-fit: contain;
}
@media (max-width: 767px) {
  .logo-img { height: 40px; }
}
.header .custom-logo-link img,
.header-brand .custom-logo {
  height: 48px;
  width: auto;
}

/* Mobile nav tap targets */
@media (max-width: 767px) {
  .header .nav.nav--open > a {
    min-height: var(--tap-min);
  }
  .header-actions { gap: var(--space-1); }
  .header-container {
    min-height: var(--space-6);
    padding: var(--space-1) 0;
  }
}

/* Forms - tap friendly */
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form textarea,
.form-group input,
.form-group textarea {
  min-height: var(--tap-min);
  padding: var(--space-1) var(--space-2);
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--input-text);
  font: inherit;
  line-height: 1.4;
}
.lead-form textarea,
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.lead-form label,
.form-group label {
  display: inline-block;
  margin-bottom: var(--space-1);
  font-weight: 600;
}
.lead-form p,
.form-group {
  margin-bottom: var(--space-2);
}
.form-checkbox {
  display: flex;
  gap: var(--space-1);
  align-items: flex-start;
  min-height: var(--tap-min);
}
.form-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Product cards hierarchy */
.product-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: var(--space-1);
  color: var(--primary-color);
}
.product-card > p {
  line-height: 1.55;
  margin-bottom: var(--space-2);
}
.product-card .btn {
  margin-top: auto;
  width: 100%;
}
.offer-tile-price {
  margin: var(--space-1) 0;
}
.offer-tile-price__was {
  text-decoration: line-through;
  color: var(--text-muted);
  margin-right: var(--space-1);
  font-weight: 500;
}
.offer-tile-price__current {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
}
.offer-tile-installment {
  margin: 0 0 var(--space-2);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.omnibus {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

/* Cennik 2026 layout - 8pt */
.cennik-hero { margin-bottom: var(--space-3); }
.cennik-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-2) 0 var(--space-3);
}
.cennik-included {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: var(--measure);
  line-height: 1.65;
  margin: 0 auto;
  text-align: center;
}
.cennik-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin: 0 0 var(--space-4);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  justify-content: center;
}
.cennik-toc a {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-1);
}
.cennik-toc a:hover { color: var(--accent-color); }
.cennik-info-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .cennik-info-grid { grid-template-columns: 1fr 1fr; }
}
.cennik-info-card {
  padding: var(--space-3);
  background: var(--bg-purple-light);
  border-radius: var(--radius-sm);
}
.cennik-transfer {
  margin: 0 0 var(--space-4);
  padding: var(--space-3);
  background: var(--bg-purple-light);
  border-radius: var(--radius-sm);
}
.transfer-dl {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  max-width: var(--measure);
}
.transfer-dl dt {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 var(--space-1);
}
.transfer-dl dd { margin: 0; font-weight: 600; line-height: 1.45; }
.transfer-iban {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  background: transparent;
  color: inherit;
}
.cennik-legal-note {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.section-title--sm {
  font-size: 1.25rem;
  line-height: 1.3;
  text-align: left;
  margin-bottom: var(--space-2);
}

/* Contact / career breathing room */
.contact-grid {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  padding: var(--space-3);
  background: var(--surface, #fff);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.hero-lead,
.hero-subtitle {
  max-width: var(--measure);
}
.hero--home .hero-subtitle {
  max-width: none;
  white-space: nowrap;
}
.breadcrumb {
  padding-top: var(--space-3);
  margin-bottom: var(--space-2);
}
.nav a {
  transition: color var(--duration-fast) var(--ease-fast);
}

/* Privacy / a11y helpers */
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.map-consent,
.map-iframe {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-sm);
}
.map-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background: var(--surface, #fff);
  border: 1px solid var(--border-color);
}
.form-checkbox {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin: var(--space-2) 0 var(--space-3);
}
.form-checkbox input {
  margin-top: 0.35em;
  min-width: 1.1em;
  min-height: 1.1em;
}
.product-card[data-omnibus]:not([data-omnibus=""]) .omnibus {
  border-left: 3px solid var(--accent-color, #F6BE00);
  padding-left: var(--space-2);
}

body.has-nav-open { overflow: hidden; }

/* Lang switcher - inline PL | UK | EN */
.lang-switcher {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  z-index: 1001;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.lang-switcher-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: var(--tap-min);
  padding: 0 0.55rem;
  margin: 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: background var(--duration-fast, 0.15s) ease, color var(--duration-fast, 0.15s) ease;
}
.lang-switcher-option:last-child {
  border-right: 0;
}
.lang-switcher-option:hover,
.lang-switcher-option:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-light);
  outline: none;
}
.lang-switcher-option.is-active,
.lang-switcher-option[aria-pressed="true"] {
  background: var(--accent-color);
  color: var(--on-accent, #1a1a1a);
}
.lang-switcher-code {
  pointer-events: none;
}

@media (max-width: 767px) {
  .lang-switcher-option {
    min-width: 1.9rem;
    padding: 0 0.4rem;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 380px) {
  .lang-switcher-option {
    min-width: 1.7rem;
    padding: 0 0.3rem;
  }
}

/* ========== Layout polish (ship) - colors unchanged ========== */

.page-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  color: var(--primary-color);
  text-align: left;
  margin: 0 0 var(--space-3);
  max-width: var(--measure);
}
.page-title--center {
  text-align: center;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.section-title--left {
  text-align: left;
  margin-left: 0;
}
.section-lead--page {
  max-width: var(--measure);
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}
.section-intro {
  text-align: left;
  margin-left: 0;
}
.cennik-hero .section-intro,
.page-title--center + .section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.tile,
.product-card,
.contact-card,
.cennik-info-card,
.cennik-transfer,
.faq-item,
.step-tile,
.map-consent,
.legal-doc,
.step-dialog {
  border-radius: var(--radius-md);
}

.tile,
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tile h3 {
  font-size: 1.05rem;
  margin: 0 0 var(--space-1);
  color: var(--primary-color);
}
.tile p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.product-card h3 {
  font-size: 1.125rem;
  margin: 0 0 var(--space-2);
  color: var(--primary-color);
  line-height: 1.25;
  min-height: 0;
}
.product-card > p {
  margin: 0 0 var(--space-2);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.product-card__features {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.product-card__features li {
  position: relative;
  margin: 0;
  padding-left: 1.2rem;
  font-size: var(--text-meta);
  line-height: 1.5;
  color: var(--text-muted);
}
.product-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-color);
}
.product-badge {
  position: absolute;
  top: calc(-1 * var(--space-1) - 4px);
  left: var(--space-3);
  margin: 0;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent-color);
  color: var(--on-accent);
  line-height: 1.3;
  z-index: 1;
  box-shadow: none;
}
.product-card:has(.product-badge) {
  padding-top: calc(var(--space-3) + 8px);
}
.product-card__footer {
  margin-top: auto;
  padding-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.product-card__footer .btn {
  width: 100%;
  margin: 0;
}
.offer-tile-price {
  margin: var(--space-1) 0;
  line-height: 1.2;
}
.offer-tile-price__current {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
}
.offer-tile-installment,
.omnibus {
  margin: 0 0 var(--space-2);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.tile-grid--4 {
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
/* tile-grid--4 breakpoints: see Layout audit fixes (640 / 1024) */

.cennik-section {
  margin-top: var(--space-6);
}
.cennik-info-card,
.cennik-transfer {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border-color);
}
.cennik-info-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (min-width: 768px) {
  .cennik-info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cennik-section {
    margin-top: var(--space-7);
  }
}
.transfer-dl {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}
.transfer-dl > div {
  display: grid;
  gap: 4px;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-color);
}
.transfer-dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.transfer-dl dt {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.transfer-dl dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-dark);
}
.transfer-iban {
  font-size: 0.95rem;
  word-break: break-all;
}

.contact-card h2 {
  font-size: 1.25rem;
  margin: 0 0 var(--space-2);
  color: var(--primary-color);
}
.contact-card > p,
.contact-locations p {
  margin: 0 0 var(--space-2);
  line-height: 1.55;
}
.contact-card > p:last-child,
.contact-locations p:last-child {
  margin-bottom: 0;
}
.contact-card #zapytanie,
.contact-card#zapytanie {
  margin-top: 0;
}
.contact-grid + .contact-card,
.contact-grid + .lead-panel,
.map-block {
  margin-top: var(--space-4);
}
.map-block .inquiry-note {
  margin: 0 0 var(--space-2);
}

.lead-form .form-group {
  margin-bottom: var(--space-2);
}
.lead-form .form-group label,
.lead-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-dark);
}
.lead-form .form-group input:not([type="checkbox"]):not([type="radio"]),
.lead-form .form-group textarea,
.lead-form .form-group select,
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: var(--tap-min);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--input-bg, var(--surface));
  color: var(--input-text, var(--text-dark));
}
.lead-form .form-group textarea,
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.lead-form .form-group input:focus-visible:not([type="checkbox"]):not([type="radio"]),
.lead-form .form-group textarea:focus-visible,
.lead-form .form-group select:focus-visible,
.form-group input:focus-visible:not([type="checkbox"]):not([type="radio"]),
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  border-color: var(--primary-color);
  box-shadow: var(--focus-ring);
  outline: none;
}
.form-checkbox {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin: var(--space-3) 0;
  min-height: var(--tap-min);
}
.form-checkbox input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}
.form-checkbox label {
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}
.career-success,
.status-ok {
  margin: 0 0 var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.45;
  background: #e8f6ec;
  color: #1e6b3a;
  border: 1px solid #b7e0c2;
}

.faq-item {
  margin-bottom: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.faq-item__question {
  cursor: pointer;
  list-style: none;
  padding: var(--space-2) var(--space-3);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.35;
}
.faq-item__question::-webkit-details-marker {
  display: none;
}
.faq-item__answer,
.faq-answer {
  padding: 0 var(--space-3) var(--space-3);
  margin-top: 0;
  line-height: 1.7;
  color: var(--text-dark);
}
.faq-item__answer p {
  margin: 0 0 var(--space-2);
}
.faq-item__answer p:last-child {
  margin-bottom: 0;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.legal-doc {
  max-width: calc(var(--measure) + 2 * var(--space-4));
  margin: 0 auto;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border-color);
}
.legal-doc .page-title {
  margin-bottom: var(--space-3);
}
.legal-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}
.legal-content h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: var(--space-4) 0 var(--space-2);
  color: var(--primary-color);
}
.legal-content h3 {
  font-size: 1.05rem;
  margin: var(--space-3) 0 var(--space-1);
  color: var(--primary-color);
}
.legal-content p,
.legal-content li {
  margin-bottom: var(--space-2);
  max-width: var(--measure);
}
.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
  margin: 0 0 var(--space-3);
}
.legal-content a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-3);
  font-size: 0.95rem;
}
.legal-content th,
.legal-content td {
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.cta-band-inner p {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  line-height: 1.55;
}
.cta-band .hero-actions,
.cta-band .action-row {
  justify-content: center;
}
.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2);
}
.hero-content .hero-actions {
  margin-top: var(--space-1);
}
.hero--home .hero-subtitle {
  margin: var(--space-1) 0;
}
.hero--home .hero-lead {
  margin: 0 0 var(--space-3);
}

.steps-flow--compact .step-tile {
  padding: 0;
}
.steps-flow--compact .step-tile-btn {
  padding: var(--space-2);
}

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }
  .hero {
    min-height: min(70vh, 560px);
  }
  .hero--compact,
  .hero--landing {
    min-height: min(48vh, 420px);
  }
  .hero-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .steps-flow {
    flex-wrap: wrap;
  }
  .steps-flow .step-tile {
    flex: 1 1 140px;
    max-width: 180px;
  }
}

@media (min-width: 1024px) {
  .steps-flow {
    flex-wrap: nowrap;
  }
}

/* ========== Optical alignment (top OSK pattern) ========== */
/* Nagłówki sekcji wyśrodkowane, treść w kartach do lewej, równy rytm. */

.section-title {
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
.section-title--left,
.section-title--sm {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  letter-spacing: -0.015em;
}
.section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-4);
  line-height: 1.65;
  max-width: 52ch;
}
.page-title + .section-intro,
.section-lead--page {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: var(--measure);
}
.cennik-hero .section-intro,
.page-title--center + .section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 52ch;
}

/* Feature tiles: lewa krawędź jak u ADJ/Kursant, nie centered microcopy */
.tile,
.offer-tile {
  text-align: left;
  align-items: flex-start;
}
.tile h3,
.offer-tile h3 {
  text-align: left;
  text-wrap: balance;
}
.tile p {
  text-align: left;
}

/* Karty oferty: hierarchia cena → CTA */
.product-card {
  text-align: left;
  gap: 0;
}
.product-card h3 {
  text-wrap: balance;
  min-height: 0;
}
.product-card .offer-tile-price {
  text-align: left;
  margin-top: 0;
  padding-top: 0;
}
.product-card .offer-tile-installment,
.product-card .omnibus {
  text-align: left;
}
.product-card__footer {
  align-items: stretch;
}

/* Hero: zwarty blok tekstu, lewa krawędź, CTA w jednej linii optycznej */
.hero-content {
  text-align: left;
}
.hero--home .hero-content h1 {
  margin-bottom: var(--space-2);
  text-wrap: balance;
}
.hero--home .hero-subtitle {
  margin: 0 0 var(--space-1);
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.95;
}
.hero--home .hero-lead {
  margin: 0 0 var(--space-4);
  line-height: 1.55;
  opacity: 0.92;
}
.hero--landing .hero-content h1 {
  text-wrap: balance;
  margin-bottom: var(--space-2);
}
.hero--landing .hero-lead {
  margin: 0 0 var(--space-4);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

/* Sekcje: równy oddech */
.section-padding {
  padding-block: var(--space-6);
}
@media (min-width: 768px) {
  .section-padding {
    padding-block: var(--space-7);
  }
}
.section-cta {
  margin-top: var(--space-4);
  text-align: center;
}
.section-cta--text {
  margin-top: var(--space-2);
}

/* Kroki: wyśrodkowane etykiety w równych kafelkach */
.step-tile-btn {
  text-align: center;
}
.step-tile-label {
  text-wrap: balance;
  line-height: 1.25;
}

/* Kontakt: flex tylko na wierszach z ikoną */
.contact-card .contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
}
.contact-card .contact-row [data-osk-icon] {
  flex-shrink: 0;
  translate: 0 0.1em;
}
.contact-card__brand {
  display: block;
  margin-bottom: var(--space-2);
}
.contact-locations p {
  display: block;
}
.career-layout {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}
@media (min-width: 768px) {
  .career-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}
.career-list,
.checklist {
  margin: 0 0 var(--space-4);
  padding-left: 1.15rem;
  line-height: 1.6;
}
.career-list li,
.checklist li {
  margin-bottom: var(--space-1);
  padding-left: 0.15rem;
}
.career-list li::marker,
.checklist li::marker {
  color: var(--primary-color);
}
.career-subtitle {
  margin: 0 0 var(--space-2);
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

/* Cennik: TOC i panele */
.cennik-toc {
  gap: var(--space-1) var(--space-3);
  justify-content: center;
  text-align: center;
}
.cennik-toc a {
  font-weight: 600;
  text-underline-offset: 3px;
}
.cennik-included {
  text-align: center;
  line-height: 1.65;
}
.cennik-legal-note {
  text-align: center;
  line-height: 1.55;
  max-width: 58ch;
  margin-inline: auto;
}
.transfer-dl dd {
  text-align: left;
}

/* Legal: justowanie tylko przy wystarczającej szerokości */
.legal-content p,
.legal-content li {
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}
@media (min-width: 720px) {
  .legal-content p,
  .legal-content li {
    text-align: justify;
    text-justify: inter-word;
  }
}

/* FAQ: pytanie i odpowiedź w jednej osi */
.faq-item__question {
  text-align: left;
}
.faq-item__title {
  margin: 0;
  font: inherit;
  color: inherit;
  text-wrap: balance;
}
.faq-item__answer {
  text-align: left;
}
@media (min-width: 720px) {
  .faq-item__answer p {
    text-align: justify;
    hyphens: auto;
  }
}

/* CTA band: wyśrodkowany blok optyczny */
.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-band-inner h2 {
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 22ch;
}
.cta-band-inner p {
  max-width: 42ch;
}

/* Breadcrumb: mniejszy, nie konkuruje z H1 */
.breadcrumb {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.breadcrumb ol {
  align-items: center;
}

/* Formularze: etykiety wyrównane, pola pełna szerokość */
.lead-form .form-group label {
  text-align: left;
}
.btn-submit {
  width: 100%;
}

/* Oferta grid: równe wysokości już przez flex card */
.tile-grid--offer,
.offer-grid {
  align-items: stretch;
}
@media (min-width: 768px) {
  .tile-grid--offer,
  .offer-grid {
    gap: var(--space-3);
  }
}

/* ========== Home rhythm (inspired by strong OSK section bands) ========== */

.hero--home .hero-content {
  max-width: 40rem;
}

.hero--home .hero-subtitle {
  max-width: none;
  white-space: nowrap;
}

.hero--home .hero-lead {
  max-width: 38ch;
}

.features--band {
  position: relative;
  background: var(--bg-purple-light);
  overflow: hidden;
}

.features--band .section-intro {
  margin-bottom: var(--space-5);
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.tile-grid--why {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .tile-grid--why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }
}

.tile--why {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: var(--radius-md);
  box-shadow: none;
}

.tile--why h3 {
  margin: 0 0 var(--space-2);
  color: var(--primary-color);
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: none;
}

.tile--why p {
  margin: 0;
  width: 100%;
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

[data-theme="dark"] .features--band {
  background: #2A101C;
}

[data-theme="dark"] .tile--why {
  background: var(--surface);
  border-color: var(--border-color);
}

.offer {
  position: relative;
}

.offer .section-intro {
  margin-bottom: var(--space-5);
}

.steps--journey {
  position: relative;
  background: var(--surface);
}

.steps--journey .section-intro {
  margin-bottom: var(--space-5);
}

@media (min-width: 1024px) {
  .steps--journey .steps-flow {
    position: relative;
    gap: var(--space-4);
  }

  .steps--journey .step-tile {
    position: relative;
  }

  .steps--journey .step-tile:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 0.35rem);
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2.5px solid var(--accent-color);
    border-bottom: 2.5px solid var(--accent-color);
    transform: translateY(-50%) rotate(-45deg);
    background: none;
    pointer-events: none;
    z-index: 1;
  }
}

/* Strzałki w dół między kafelkami (mobile / tablet) */
@media (max-width: 1023px) {
  .steps--journey .steps-flow {
    gap: var(--space-3);
  }

  .steps--journey .step-tile {
    position: relative;
  }

  .steps--journey .step-tile:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 0.35rem);
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2.5px solid var(--accent-color);
    border-bottom: 2.5px solid var(--accent-color);
    transform: translateX(-50%) rotate(45deg);
    background: none;
    pointer-events: none;
    z-index: 1;
  }
}

/* Tablet 2-kolumnowy: bez strzałek między wierszami siatki */
@media (min-width: 768px) and (max-width: 1023px) {
  .steps--journey .step-tile:not(:last-child)::after {
    content: none;
  }
}

/* Cennik: hero + kompaktowy pas cech */
.cennik-hero-band .page-title {
  color: var(--text-light);
  text-align: left;
  max-width: 20ch;
  margin-bottom: var(--space-2);
}

.cennik-hero-band .hero-lead {
  max-width: 42ch;
}

.breadcrumb--on-dark {
  padding-top: var(--space-3);
  margin-bottom: var(--space-2);
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb--on-dark a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb--on-dark a:hover {
  color: var(--accent-color);
}

.breadcrumb--on-dark li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.45);
}

.features--compact {
  padding-block: var(--space-5);
}

.features--compact .section-intro {
  margin-bottom: var(--space-4);
}

.cta-band--brand {
  position: relative;
  padding-block: clamp(var(--space-5), 8vw, var(--space-7));
  border: 0;
  background: var(--primary-fill);
  color: var(--text-light);
  overflow: hidden;
}

.cta-band--brand .cta-band-inner {
  position: relative;
  z-index: 1;
}

.cta-band--brand h2 {
  color: var(--text-light);
  max-width: 16ch;
}

.cta-band--brand p {
  color: rgba(255, 255, 255, 0.88);
}

.cta-band--brand .btn-outline {
  border-color: color-mix(in srgb, var(--accent-color) 85%, transparent);
  color: var(--text-light);
}

.cta-band--brand .btn-outline:hover {
  background: var(--accent-color);
  color: var(--on-accent);
}

/* Cennik: sekcja zapytania (Stripe/Linear-style hierarchy) */
.cennik-enquire {
  text-align: center;
}

.cennik-enquire__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 36rem;
  margin-inline: auto;
  gap: 0;
}

.cennik-enquire__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.cennik-enquire h2 {
  margin: 0 0 0.75rem;
  max-width: none;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cennik-enquire__lead {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
}

.cennik-enquire__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  width: 100%;
}

.cennik-enquire__actions .btn {
  min-height: var(--tap-min);
  padding-inline: 1.35rem;
}

.cennik-enquire__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cennik-enquire__phone [data-osk-icon] {
  display: inline-flex;
  font-size: 0.95rem;
  line-height: 1;
}

.cennik-enquire .cennik-legal-note {
  margin: 0;
  max-width: 42ch;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .cta-band--brand {
  background: var(--header-bg);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--duration-out) var(--ease-out), transform var(--duration-out) var(--ease-out);
}

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

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

/* ========== Vision polish (brand colors preserved) ========== */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  letter-spacing: 0.005em;
}


/* Header: lekka głębia, bez zmiany koloru marki */
.header .nav a {
  position: relative;
  transition: color var(--duration-fast) var(--ease-fast), opacity var(--duration-fast) var(--ease-fast);
}

.header .nav a:not(.nav-link--active):hover {
  opacity: 0.88;
}

@media (min-width: 768px) {
  .header .nav a.nav-link--active::after,
  .header--inner .nav a.nav-link--active::after,
  .header .nav .nav-link--parent.nav-link--active::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-color);
  }

  .header .nav .nav-link--parent {
    position: relative;
    padding-bottom: 2px;
  }
}

/* Hero: jedno wejście, bez Ken Burns */
@keyframes ekspert-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero--home .hero-image {
  transform: none;
}

.hero--home .hero-content {
  animation: ekspert-rise var(--duration-out) var(--ease-out) both;
}

.hero--home .hero-content h1 {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.22);
}

.hero--landing .hero-content h1 {
  letter-spacing: -0.025em;
}

.hero-text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  font-weight: 700;
  font-size: var(--text-meta);
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.hero--home .hero-text-link,
.hero--landing .hero-text-link,
.cennik-hero-band .hero-text-link {
  color: var(--text-light);
}

.hero-text-link:hover {
  color: var(--accent-color);
}

.btn {
  transition:
    background-color var(--duration-fast) var(--ease-fast),
    color var(--duration-fast) var(--ease-fast),
    border-color var(--duration-fast) var(--ease-fast);
}

.btn-primary {
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:focus-visible {
  box-shadow: var(--focus-ring-on-accent);
}

.btn-outline {
  backdrop-filter: none;
}

/* Sekcje: spokojny rytm tła */
.steps {
  background: var(--surface);
  border-block: 1px solid var(--border-color);
}

.offer {
  background: var(--bg-purple-light);
}

[data-theme="dark"] .offer {
  background: color-mix(in srgb, var(--primary-fill) 28%, var(--surface));
}

[data-theme="dark"] .cta-band {
  background: var(--surface);
}

.section-title {
  position: relative;
  padding-bottom: 0;
}

/* Accent line: see unified block below (do not disable here) */

/* Feature tiles + product cards */
.tile,
.product-card {
  transition: border-color var(--duration-fast) var(--ease-fast);
}

.tile:hover,
.product-card:hover {
  border-color: color-mix(in srgb, var(--primary-color) 22%, transparent);
}

.product-card .offer-tile-price__current {
  letter-spacing: -0.02em;
}

.offer-tile-installment--inline {
  display: block;
  margin-top: 4px;
  font-size: var(--text-meta);
  font-weight: 600;
  color: var(--text-muted);
}

.product-card__features li {
  font-size: var(--text-meta);
}

.product-card .omnibus {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Steps: focus na karcie, bez lift */
.step-tile {
  box-shadow: none;
  transition: border-color var(--duration-fast) var(--ease-fast);
}

.step-tile:has(.step-tile-btn:hover),
.step-tile:has(.step-tile-btn:focus-visible) {
  border-color: color-mix(in srgb, var(--primary-color) 22%, transparent);
}

.step-tile:has(.step-tile-btn:focus-visible) {
  box-shadow: var(--focus-ring);
}

.step-tile-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.steps .section-cta .btn,
.offer .section-cta .btn {
  min-width: min(100%, 220px);
}

/* Contact / forms */
.contact-card,
.career-form-box,
.form-box,
.cennik-info-card,
.cennik-transfer {
  box-shadow: none;
}

.contact-card:hover,
.cennik-info-card:hover {
  border-color: color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.lead-form .form-group input:not([type="checkbox"]):not([type="radio"]),
.lead-form .form-group textarea,
.lead-form .form-group select {
  transition: border-color var(--duration-fast) var(--ease-fast), box-shadow var(--duration-fast) var(--ease-fast), background-color var(--duration-fast) var(--ease-fast);
}

.faq-item {
  box-shadow: none;
  transition: border-color var(--duration-fast) var(--ease-fast);
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.faq-item__question {
  transition: background-color var(--duration-fast) var(--ease-fast);
}

.faq-item__question:hover {
  background: color-mix(in srgb, var(--primary-color) 3%, transparent);
}

/* CTA band */
.cta-band {
  background: var(--surface-alt);
}

.cennik-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  justify-content: flex-start;
}

.cennik-facts li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 16%, var(--border-color));
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary-color);
  white-space: nowrap;
}

[data-theme="dark"] .cennik-facts li {
  background: var(--surface);
  border-color: var(--border-color);
  color: var(--text-main);
}

.cta-band-inner .hero-actions,
.cta-band-inner .action-row {
  justify-content: center;
}

/* Cennik TOC: spokojne chipy */
.cennik-toc a {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--surface);
  padding: var(--space-1) var(--space-2);
  transition: background-color var(--duration-fast) var(--ease-fast), border-color var(--duration-fast) var(--ease-fast), color var(--duration-fast) var(--ease-fast);
}

.cennik-toc a:hover {
  border-color: color-mix(in srgb, var(--primary-color) 25%, transparent);
  background: var(--surface-alt);
  color: var(--primary-color);
}

.entry--course .page-title {
  letter-spacing: -0.02em;
}

.entry__hero {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (prefers-reduced-motion: reduce) {
  .hero--home .hero-content {
    animation: none;
  }
}

/* ========== Layout audit fixes P1-P20 ========== */

:root {
  --header-offset: var(--header-height);
}

/* P17: warstwy */
.header {
  z-index: 1100;
}
.cookie-banner {
  z-index: 1200;
}
.course-promo {
  z-index: 1210;
}

/* P1: mobile header - mniej chrome */
@media (max-width: 767px) {
  .logo--brand .logo-img {
    width: min(148px, 38vw);
    height: auto;
  }

  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .header-signup {
    padding-inline: 10px;
    font-size: 0.8125rem;
    min-width: auto;
  }

  .header-phone {
    padding-inline: 4px;
  }
}

@media (max-width: 380px) {
  .header-actions .theme-toggle {
    display: none;
  }
}

/* P2: drawer pod realnym headerem (+ admin-bar) */
@media (max-width: 1023px) {
  .header .nav.nav--open {
    top: var(--header-offset);
    max-height: calc(100dvh - var(--header-offset));
    overflow-y: auto;
  }
}

/* P3: footer - układ 3 kolumn w Stopka (wyżej) */

/* P4: jedna drabinka tile-grid--4 (1 → 2 → 4) */
.tile-grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .tile-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

@media (min-width: 1024px) {
  .tile-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* P5 + P14: karty - równy slot badge, meta na dole */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: var(--space-3);
}

.product-card__badge-slot {
  min-height: 1.75rem;
  margin: 0 0 var(--space-1);
  display: flex;
  align-items: flex-start;
}

.product-badge {
  position: static;
  top: auto;
  left: auto;
  display: inline-block;
  margin: 0;
}

.product-card:has(.product-badge) {
  padding-top: var(--space-3);
}

.product-card__features {
  flex: 1 1 auto;
  margin-bottom: var(--space-2);
}

.product-card__meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-2);
}

.product-card__meta .offer-tile-price,
.product-card__meta .omnibus {
  margin: 0;
}

.product-card__footer {
  margin-top: var(--space-2);
  padding-top: 0;
}

.product-card__footer .btn {
  width: 100%;
}

/* P6: hero CTA left; CTA band center */
.hero-actions {
  justify-content: flex-start;
}

.hero-content .hero-actions {
  justify-content: flex-start;
}

.cta-band-inner .hero-actions,
.cta-band-inner .action-row {
  justify-content: center;
}

/* P7: section-intro + FAQ alignment */
.section-intro {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  max-width: var(--measure);
}

.section-title {
  text-align: left;
}

.features .section-title,
.offer .section-title,
.steps .section-title {
  text-align: center;
}

.features .section-intro,
.offer .section-intro,
.steps .section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
}

/* P8: cennik facts + TOC left */
.cennik-toc {
  justify-content: flex-start;
  margin-bottom: var(--space-5);
}

.cennik-section .section-title,
.cennik-section .section-intro {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: auto;
}

.page-title {
  text-align: left;
  max-width: none;
  margin-left: 0;
}

/* P10: kompaktowy hero cennika */
.hero--compact.hero--landing,
.cennik-hero-band.hero--landing {
  min-height: 0;
  padding-block: clamp(1.75rem, 5vw, 3.25rem);
}

@media (max-width: 767px) {
  .hero--compact.hero--landing,
  .cennik-hero-band.hero--landing {
    min-height: 0;
  }
}

/* P12: hero paragraphs bez kolizji */
.hero-content > p {
  margin: 0;
}

.hero-content .hero-subtitle {
  margin: 0 0 var(--space-3);
  font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1.125rem);
  line-height: 1.4;
  max-width: none;
  white-space: nowrap;
}

.hero-content .hero-lead {
  margin: 0 0 var(--space-4);
  font-size: var(--text-meta);
  line-height: 1.55;
  max-width: 42ch;
}

/* P13: kroki - kolumna do 1023, rząd od 1024 */
@media (min-width: 768px) and (max-width: 1023px) {
  .steps-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }

  .steps-flow .step-tile:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
}

@media (min-width: 1024px) {
  .steps-flow {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: var(--space-4);
  }

  .steps-flow .step-tile {
    flex: 1 1 0;
    max-width: none;
  }

  .steps-flow .step-tile:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }
}

/* P15: focus w dropdown */
.nav-dropdown a:focus-visible,
.lang-switcher-option:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Lead panel - jak contact-card, zwarty układ 1-kolumnowy */
.lead-panel {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-color);
}

.lead-panel__header {
  margin-bottom: var(--space-2);
}

.lead-panel__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.lead-panel__header h2 {
  margin: 0 0 0.35rem;
  color: var(--primary-color);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.lead-panel__lead {
  margin: 0 0 0.65rem;
  max-width: 42rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-wrap: pretty;
}

.lead-panel__shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lead-panel__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.125rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--primary-color);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-fast), border-color var(--duration-fast) var(--ease-fast), color var(--duration-fast) var(--ease-fast);
}

.lead-panel__chip:hover,
.lead-panel__chip:focus-visible {
  border-color: color-mix(in srgb, var(--accent-color) 55%, var(--border-color));
  background: color-mix(in srgb, var(--accent-color) 18%, var(--surface));
  color: var(--on-accent);
  outline: none;
}

.lead-panel__chip [data-osk-icon] {
  display: inline-flex;
  font-size: 0.875rem;
  line-height: 1;
}

.lead-panel .lead-form .form-group {
  margin-bottom: 0;
}

.lead-panel .lead-form .form-group label,
.lead-panel .lead-form label {
  margin-bottom: 0.3rem;
  font-size: 0.9375rem;
}

.lead-panel .lead-form .form-group input:not([type="checkbox"]):not([type="radio"]),
.lead-panel .lead-form .form-group select,
.lead-panel .lead-form .form-group textarea {
  min-height: 2.625rem;
  padding: 0.55rem 0.8rem;
}

.lead-panel .lead-form .form-group textarea {
  min-height: 5rem;
}

.lead-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .lead-form__grid--contact {
    grid-template-columns: 1.2fr 1fr;
    gap: 0.75rem;
  }

  .lead-form__grid--contact .form-group:last-child {
    grid-column: 1 / -1;
  }
}

.lead-form__section {
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.lead-form__section--message {
  margin-bottom: 0.65rem;
}

.lead-form__legend {
  display: block;
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 0 0 0.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  color: var(--primary-color);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.form-optional {
  margin-left: 0.25rem;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.875em;
}

.lead-panel .form-hint {
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.form-checkbox--pref {
  margin: 0;
  align-items: center;
  min-height: 2.625rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.form-checkbox--pref.is-disabled {
  opacity: 0.65;
}

.form-checkbox--pref.is-disabled label {
  cursor: not-allowed;
}

.form-checkbox--pref label {
  display: inline;
  margin: 0;
  padding-block: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-main);
}

.lead-form__footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.lead-form__trust {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.lead-form__consent {
  margin: 0;
}

.lead-form__consent .form-checkbox {
  margin: 0 0 0.3rem;
  min-height: 0;
  gap: 0.55rem;
}

.lead-form__consent .form-checkbox label {
  padding-block: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.lead-form__retention {
  margin: 0;
  padding-left: calc(1.25rem + 0.55rem);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.lead-panel .btn-submit,
.lead-form__actions .btn-submit {
  width: 100%;
  max-width: 20rem;
  margin-top: 0;
}

.lead-panel__foot {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
}

.lead-panel__foot a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-panel__foot a:hover {
  color: var(--primary-color);
}

[data-theme="dark"] .lead-panel {
  background: var(--surface);
  border-color: var(--border-color);
  border-left-color: var(--accent-color);
}

[data-theme="dark"] .lead-panel__chip {
  background: var(--surface-alt);
  color: var(--text-main);
}

/* P16: submit full-width w lead form */
.lead-form > .btn,
.lead-form .btn-submit {
  width: 100%;
}

/* P19: CTA band - brand nie nadpisywany */
.cta-band:not(.cta-band--brand) {
  background: var(--surface-alt);
}

.cta-band--brand {
  background: var(--primary-fill);
}

[data-theme="dark"] .cta-band:not(.cta-band--brand) {
  background: var(--surface);
}

[data-theme="dark"] .cta-band--brand {
  background: var(--header-bg);
}

/* P20: checkbox hit-area */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: var(--space-2) 0 var(--space-3);
  min-height: var(--tap-min);
}

.form-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin-top: 0.2em;
  padding: 0;
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: var(--primary-color);
  background: transparent;
  border: none;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.form-checkbox label {
  padding-block: 6px;
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox.form-checkbox--pref {
  margin: 0;
  min-height: 2.5rem;
  align-items: center;
}

.form-checkbox.form-checkbox--pref label {
  padding-block: 0;
}

.lead-panel .lead-form .form-checkbox label {
  display: inline;
  margin-bottom: 0;
}

.lead-form__consent .form-checkbox {
  margin: 0 0 0.35rem;
  min-height: 0;
}

.lead-form__consent .form-checkbox label {
  padding-block: 0;
}

/* Hierarchia sekcji - krótki żółty akcent pod nagłówkiem, do lewej (bez hero) */
.page-title,
.section-title,
.career-subtitle,
.form-heading,
.contact-card > h2,
.lead-panel__header > h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-bottom: var(--space-2);
}

.page-title::after,
.section-title::after,
.career-subtitle::after,
.form-heading::after,
.contact-card > h2::after,
.lead-panel__header > h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: var(--space-2);
  margin-left: 0;
  margin-right: auto;
  border-radius: 3px;
  background: var(--accent-color);
}

.features .section-title,
.offer .section-title,
.steps .section-title {
  margin-inline: auto;
}

.features .section-title::after,
.offer .section-title::after,
.steps .section-title::after {
  margin-left: 0;
  margin-right: auto;
}

/* Hero: bez akcentu pod nagłówkiem */
.hero .page-title::after,
.hero h1::after,
.hero-content h1::after,
.hero--home .hero-content h1::after,
.hero--landing .hero-content h1::after,
.cennik-hero-band .page-title::after {
  content: none;
  display: none;
}

/* Offer grid 3 cols desktop */
@media (min-width: 1100px) {
  .tile-grid--offer {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== Layout audit pass 2 (P1-P20) ========== */

/* P15: sticky header nie zasłania kotwic */
html {
  scroll-padding-top: calc(var(--header-offset, var(--header-height)) + 12px);
}

#zapytanie,
#kroki,
#kursy-b,
#kursy-a,
#platnosci,
#uslugi-dodatkowe,
#dlaczego-my,
#oferta,
#main-content {
  scroll-margin-top: calc(var(--header-offset, var(--header-height)) + 12px);
}

/* P3: jeden gutter containera */
.container {
  padding-inline: clamp(var(--space-2), 3.5vw, var(--space-3));
}

@media (min-width: 768px) {
  .container {
    padding-inline: clamp(var(--space-2), 3.5vw, var(--space-3));
  }
}

/* P2 + P17: tytuły bez pułapki 16/20/28ch */
.cta-band--brand h2,
.cta-band-inner h2 {
  max-width: min(28rem, 100%);
  text-wrap: balance;
}

.cennik-hero-band .page-title {
  max-width: min(22rem, 100%);
}

.features .section-title,
.offer .section-title,
.steps .section-title {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.page-title,
.cennik-section .section-title,
.section-title--left,
.section-title--sm,
.entry .page-title,
.entry .section-title {
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

/* P4: spójna skala ikon */
.contact-card .contact-row [data-osk-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* P5: statusy w dark mode */
.career-success,
.status-ok {
  background: color-mix(in srgb, var(--success-color) 14%, var(--surface));
  color: color-mix(in srgb, var(--success-color) 70%, var(--text-main));
  border: 1px solid color-mix(in srgb, var(--success-color) 35%, transparent);
}

.form-error {
  background: color-mix(in srgb, var(--danger-color) 12%, var(--surface));
  color: color-mix(in srgb, var(--danger-color) 75%, var(--text-main));
  border: 1px solid color-mix(in srgb, var(--danger-color) 35%, transparent);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.5;
}

/* P6: spójne pola formularza */
.form-group label,
.lead-form .form-group label {
  margin-bottom: var(--space-1);
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea,
.lead-form .form-group input:not([type="checkbox"]):not([type="radio"]),
.lead-form .form-group select,
.lead-form .form-group textarea {
  min-height: var(--tap-min);
  padding: 10px 14px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  appearance: none;
  background-color: var(--input-bg);
  color: var(--input-text);
}

.form-group textarea,
.lead-form .form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select,
.lead-form .form-group select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

/* P7: kariera - jeden breakpoint, oddech przed telefonem */
.career-layout {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-2);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .career-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-5);
  }
}

.career-alt {
  margin-top: var(--space-4);
}

/* P8: FAQ chevron + hit target */
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--tap-min);
  padding: var(--space-2) var(--space-3);
  padding-inline-end: var(--space-3);
}

.faq-item__title {
  margin: 0;
  flex: 1 1 auto;
  text-align: left;
  font: inherit; /* Keep visual size when title is an h2 for SEO outline */
  color: inherit;
  text-wrap: balance;
}

.faq-item__question::after {
  content: "";
  flex: 0 0 0.65rem;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: -0.2rem;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-fast);
}

.faq-item[open] > .faq-item__question::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.faq-list {
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
}

/* Legal pages: czytelny dokument */
.legal-page.section-padding {
  padding-block: var(--space-4);
}

@media (min-width: 768px) {
  .legal-page.section-padding {
    padding-block: var(--space-5);
  }
}

.legal-doc {
  max-width: calc(var(--measure) + 2 * var(--space-4));
  margin: 0 auto;
  padding: var(--space-3) var(--space-3) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

@media (min-width: 768px) {
  .legal-doc {
    padding: var(--space-4) var(--space-5) var(--space-6);
  }
}

.legal-doc .page-title {
  max-width: none;
  margin: 0 0 var(--space-3);
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem);
  line-height: 1.25;
  text-wrap: balance;
  text-align: left;
}

.legal-back {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 var(--space-3);
  font-size: var(--text-meta);
}

.legal-back a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.legal-back a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-back-sep {
  color: var(--text-muted);
}

.legal-lead {
  margin: 0 0 var(--space-4);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: var(--measure);
}

.legal-content h2 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  scroll-margin-top: calc(var(--header-offset, var(--header-height)) + 12px);
}

.legal-content h2:first-of-type {
  margin-top: var(--space-3);
}

.legal-content p,
.legal-content li {
  text-align: left;
  max-width: var(--measure);
  hyphens: manual;
}

.legal-content ul {
  margin-bottom: var(--space-3);
}

.section-padding .legal-doc .page-title {
  margin-top: 0;
}

/* P10: dialog - chrome stały, body scroll. display:flex TYLKO gdy [open] - inaczej dialog zawsze widoczny */
.step-dialog {
  padding: 0;
  overflow: hidden;
  height: auto;
  max-height: min(85vh, 720px);
}

.step-dialog[open] {
  display: flex;
  flex-direction: column;
}

.step-dialog__chrome {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 52px 14px 24px;
  background: var(--dialog-bg);
  border-bottom: 1px solid var(--border-color);
}

.step-dialog-title {
  margin: 0;
  padding-right: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--primary-color);
}

.step-dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.step-dialog-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 24px 24px;
  min-height: 0;
  color: var(--dialog-text);
}

.step-dialog-body p {
  margin: 0 0 12px;
  color: var(--dialog-text);
}

.step-dialog-body ul,
.step-dialog-list,
.step-links {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  color: var(--dialog-text);
}

.step-dialog-body li,
.step-dialog-list li,
.step-links li {
  margin-bottom: 6px;
}

.step-dialog-body a,
.step-dialog-link-list a,
.step-links a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.step-dialog-body a:hover,
.step-dialog-link-list a:hover,
.step-links a:hover {
  color: var(--accent-hover);
}

.step-dialog-note,
.step-note {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
  background: var(--surface-alt);
  color: var(--dialog-text);
  font-size: 0.95rem;
}

.step-dialog-close {
  color: var(--dialog-muted);
}

.step-dialog-close:hover {
  color: var(--accent-color);
  background: var(--surface-alt);
}

[data-theme="dark"] .step-dialog {
  border-color: var(--border-color);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .step-dialog__chrome {
  background: color-mix(in srgb, var(--dialog-bg) 88%, #000);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .step-dialog-title {
  color: var(--accent-color);
}

[data-theme="dark"] .cookie-banner__panel {
  background: var(--surface);
  border-color: var(--border-color);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .cookie-banner-title {
  color: var(--accent-color);
}

/* Popup najbliższego kursu */
.course-promo {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.course-promo.is-visible {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.course-promo__frame {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
}

.course-promo__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: #550A35;
  border: 4px solid #F6BE00;
  border-radius: 1.15rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-promo__card:hover,
.course-promo__card:focus-visible {
  transform: translateY(-2px) scale(1.01);
  /* Keep elevation + WCAG focus ring (do not drop --focus-ring on focus-visible). */
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), var(--focus-ring);
  outline: none;
}

.course-promo__brand {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.course-promo__accent {
  color: #F6BE00;
}

.course-promo__label {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.course-promo__date {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-display, inherit);
  font-size: clamp(2rem, 7vw, 2.65rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #F6BE00;
}

.course-promo__cta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}

.course-promo__phone {
  color: #F6BE00;
  font-weight: 800;
}

.course-promo__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 2px solid #F6BE00;
  border-radius: 999px;
  background: #550A35;
  color: #F6BE00;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.course-promo__close:hover,
.course-promo__close:focus-visible {
  background: #F6BE00;
  color: #550A35;
  outline: none;
}

[data-theme="dark"] .faq-item {
  background: var(--surface);
  border-color: var(--border-color);
}

[data-theme="dark"] .legal-doc {
  background: var(--surface);
  border-color: var(--border-color);
  color: var(--text-main);
}

[data-theme="dark"] .legal-toc {
  background: var(--surface-alt);
  border-color: var(--border-color);
}

[data-theme="dark"] .legal-note {
  background: color-mix(in srgb, var(--accent-color) 12%, var(--surface));
}

[data-theme="dark"] .contact-card,
[data-theme="dark"] .map-consent {
  background: var(--surface);
  border-color: var(--border-color);
  color: var(--text-main);
}

/* P12: info-grid bez podwójnego margin; checklist flush */
.cennik-info-grid {
  margin-top: var(--space-6);
}

.cennik-info-card .checklist,
.cennik-info-card .career-list {
  margin-bottom: 0;
}

/* P16: drabinka przycisków */
.btn-large {
  font-size: 1.0625rem;
  min-height: 48px;
}

.hero--home .btn-large {
  font-size: 1.0625rem;
}

.btn-small {
  min-height: var(--tap-min);
  padding: 8px 14px;
}

.btn-compact {
  min-height: var(--tap-min);
}

/* P18: hero crop + single course image */
.hero-image {
  object-fit: cover;
  object-position: center 40%;
}

.entry__hero {
  margin: 0 0 var(--space-4);
  overflow: hidden;
  border-radius: var(--radius-md);
}

.entry__hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.entry__cta {
  margin-top: var(--space-4);
}

/* P19: paginacja archiwum */
.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-1);
  margin-top: var(--space-5);
}

.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--primary-fill);
  border-color: var(--primary-fill);
  color: var(--text-light);
}

.page-header .section-intro {
  text-align: left;
  margin-inline: 0;
}

/* P20: overflow + print */
@media (max-width: 1023px) {
  .header .nav.nav--open {
    width: min(280px, 100%);
  }
}

.contact-map {
  width: 100%;
  margin-inline: 0;
}

@media print {
  .header,
  .cookie-banner,
  .nav-toggle,
  .theme-toggle,
  .lang-switcher,
  .header-actions,
  .cta-band,
  .step-dialog {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero--home {
    min-height: 0;
  }

  .hero-image,
  .hero-overlay {
    display: none;
  }

  a[href]::after {
    content: none;
  }
}

/* ========== Layout rhythm (estetyka / mniej pustki) ========== */

.hero-brand-e {
  color: var(--accent-color);
}

.hero--home {
  min-height: min(68vh, 620px);
}

@media (max-width: 767px) {
  .hero--home {
    min-height: min(56vh, 460px);
  }

  .hero-subtitle,
  .hero--home .hero-subtitle,
  .hero-content .hero-subtitle {
    white-space: normal;
  }
}

.hero--landing:not(.cennik-hero-band):not(.hero--compact) {
  min-height: min(42vh, 360px);
}

.hero--compact.hero--landing,
.cennik-hero-band.hero--landing {
  padding-block: clamp(1.35rem, 3.5vw, 2.5rem);
}

main.section-padding:not(.legal-page) {
  padding-block: var(--space-4) var(--space-5);
}

@media (min-width: 768px) {
  main.section-padding:not(.legal-page) {
    padding-block: var(--space-5) var(--space-6);
  }
}

.breadcrumb {
  padding-top: var(--space-1);
  margin-bottom: var(--space-2);
}

.breadcrumb--on-dark {
  padding-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.page-title {
  margin-bottom: var(--space-2);
}

.page-title + .section-intro {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.section-title {
  margin-bottom: var(--space-2);
}

.section-intro {
  margin-bottom: var(--space-4);
}

.features .section-intro,
.offer .section-intro,
.steps .section-intro {
  margin-bottom: var(--space-4);
}

/* Fiolet tylko w „Kurs bez nerwówki”; oferta na surface - bez podwójnej pustki */
.offer {
  background: var(--surface);
}

[data-theme="dark"] .offer {
  background: var(--surface);
}

.features--band.section-padding {
  padding-block: var(--space-5);
}

.offer.section-padding,
.steps.section-padding {
  padding-block: var(--space-5);
}

@media (min-width: 768px) {
  .features--band.section-padding,
  .offer.section-padding,
  .steps.section-padding {
    padding-block: var(--space-5) var(--space-6);
  }
}

.features--band + .offer.section-padding {
  padding-top: var(--space-4);
}

.offer + .steps.section-padding {
  padding-top: var(--space-4);
}

.steps.steps--journey {
  background: var(--bg-light);
}

[data-theme="dark"] .steps.steps--journey {
  background: var(--surface);
}

.section-cta {
  margin-top: var(--space-3);
}

@media (min-width: 768px) {
  .section-cta {
    margin-top: var(--space-4);
  }
}

.cennik-section {
  margin-top: var(--space-5);
}

@media (min-width: 768px) {
  .cennik-section {
    margin-top: var(--space-5);
  }
}

.cennik-section + .cennik-section {
  margin-top: var(--space-5);
}

.cennik-facts {
  margin-bottom: var(--space-3);
}

.cennik-toc {
  margin-bottom: var(--space-3);
}

.cennik-info-grid,
.cennik-transfer {
  margin-top: var(--space-4);
}

.page-template-page-cennik .container.section-padding,
.page-template-page-cennik-php .container.section-padding,
body.page-cennik .container.section-padding,
.cennik-hero-band + .container.section-padding {
  padding-block: var(--space-4) var(--space-5);
}

@media (min-width: 768px) {
  .page-template-page-cennik .container.section-padding,
  .page-template-page-cennik-php .container.section-padding,
  body.page-cennik .container.section-padding,
  .cennik-hero-band + .container.section-padding {
    padding-block: var(--space-5) var(--space-6);
  }
}

.page-title + .contact-grid {
  margin-top: var(--space-3);
}

.contact-grid {
  margin-bottom: 0;
  gap: var(--space-3);
}

.contact-grid + .lead-panel,
.contact-grid + .map-block,
.lead-panel + .map-block,
.map-block {
  margin-top: var(--space-4);
}

.lead-panel {
  margin-top: var(--space-4);
}

/* map-block: accent handled in unified heading rules */

.faq-list {
  display: grid;
  gap: var(--space-2);
}

.faq-list .faq-item {
  margin-bottom: 0;
}

.career-layout {
  margin-top: var(--space-1);
}

.cta-band--brand {
  padding-block: clamp(var(--space-4), 4.5vw, var(--space-5));
}

.section-padding + .cta-band--brand,
.steps.section-padding + .cta-band--brand {
  margin-top: 0;
}

.footer {
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 1rem;
}

.footer-grid {
  margin-bottom: 1.25rem;
  gap: 1.5rem;
}

.footer-nav {
  margin-bottom: 0.85rem;
}

.legal-toc {
  margin: 0 0 var(--space-4);
  padding: var(--space-3);
  list-style: none;
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.legal-toc li {
  margin: 0 0 0.35rem;
}

.legal-toc li:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  margin-top: var(--space-4);
}

.legal-page .breadcrumb {
  margin-bottom: var(--space-2);
}

/* ========== Mobile / tablet harden (2026-07) ==========
   Fix: floaty step tiles, 2-2-1 steps grid, squeezed footer, CTA edges.
   Header / hamburger: see max-width 1023 block above (no !important fights).
*/
@media (max-width: 1023px) {
  /* Steps: one full-width column (no 2-2-1 floaty grid) */
  .steps-flow,
  .steps--journey .steps-flow {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
    gap: var(--space-3) !important;
  }

  .steps-flow .step-tile,
  .steps--journey .step-tile {
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .steps-flow .step-tile:last-child,
  .steps--journey .step-tile:last-child {
    grid-column: auto !important;
    max-width: none !important;
    justify-self: stretch !important;
  }

  /* Down arrows between steps on phone/tablet */
  .steps--journey .step-tile:not(:last-child)::after {
    content: "" !important;
    position: absolute;
    left: 50%;
    top: calc(100% + 0.4rem);
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2.5px solid var(--accent-color);
    border-bottom: 2.5px solid var(--accent-color);
    transform: translateX(-50%) rotate(45deg);
    pointer-events: none;
  }

  /* Footer: stack until true desktop */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    text-align: left;
  }

  .footer-col {
    padding: 0 !important;
  }

  .footer-col + .footer-col {
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    padding-top: 1.25rem !important;
  }

  .footer-heading {
    font-size: 0.9rem;
  }

  .footer-col-body {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 0.65rem 1rem;
  }

  .footer-nav a,
  .footer-link-btn {
    font-size: 0.9rem;
  }

  /* CTA band: stack buttons full width */
  .cta-band-inner .action-row,
  .cta-band .action-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
  }

  .cta-band-inner .action-row .btn,
  .cta-band .action-row .btn {
    width: 100%;
    justify-content: center;
  }

  .offer .section-cta .btn,
  .steps .section-cta .btn {
    width: 100%;
    max-width: 22rem;
  }
}

@media (max-width: 767px) {
  .header-container {
    gap: 8px;
  }

  .logo--brand .logo-img {
    width: min(132px, 36vw);
  }

  .header-signup__label {
    font-size: 0.75rem;
  }

  .tile-grid--why {
    grid-template-columns: 1fr !important;
  }

  .container {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }
}

