/* Accessibility: visually-hidden text + skip link */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link.screen-reader-text:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    margin: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
    z-index: 100000;
    background: var(--wp--preset--color--black, #1A1A25);
    color: var(--wp--preset--color--white);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* ── Honeypot (spam trap) — hidden from real users, left for bots to fill ─── */

.aob-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Form autosave notice ────────────────────────────────────────────────── */

.aob-autosave-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(255, 229, 0, 0.1);
    border: 1px solid rgba(255, 229, 0, 0.3);
    border-radius: 4px;
    color: var(--wp--preset--color--white);
    font-size: 14px;
    line-height: 20px;
}

.aob-autosave-notice .aob-autosave-clear {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    color: var(--wp--preset--color--yellow, #FFE500);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
}

.aob-autosave-notice .aob-autosave-clear:hover {
    text-decoration: none;
}

/* ── Browser autofill on dark forms ──────────────────────────────────────
   Chrome/Firefox paint autofilled fields with their own pale-yellow
   background + near-black text (not overridable via `background`/`color`),
   which is unreadable against our dark inputs and washes out the floating
   label sitting on top of it. Force the field's own background back with
   the inset box-shadow trick and keep the text/caret white. Covers every
   dark-background form on the site (fd-/ff-/fc-/fp- custom forms, newsletter,
   CF7) since they all share the same black field background. ─────────── */
.fd-input:-webkit-autofill,
.fd-select:-webkit-autofill,
.ff-input:-webkit-autofill,
.ff-textarea:-webkit-autofill,
.ff-select:-webkit-autofill,
.fc-input:-webkit-autofill,
.fc-select:-webkit-autofill,
.fp-input:-webkit-autofill,
.fp-select:-webkit-autofill,
.fw-input:-webkit-autofill,
.fw-select:-webkit-autofill,
.fr-input:-webkit-autofill,
.fr-select:-webkit-autofill,
.nw-input:-webkit-autofill,
.nw-select:-webkit-autofill,
.wpcf7-form input:-webkit-autofill,
.wpcf7-form select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--wp--preset--color--black, #1A1A25) inset !important;
    box-shadow: 0 0 0 1000px var(--wp--preset--color--black, #1A1A25) inset !important;
    -webkit-text-fill-color: var(--wp--preset--color--white, #fff) !important;
    caret-color: var(--wp--preset--color--white, #fff);
}

.fd-input:autofill,
.fd-select:autofill,
.ff-input:autofill,
.ff-textarea:autofill,
.ff-select:autofill,
.fc-input:autofill,
.fc-select:autofill,
.fp-input:autofill,
.fp-select:autofill,
.fw-input:autofill,
.fw-select:autofill,
.fr-input:autofill,
.fr-select:autofill,
.nw-input:autofill,
.nw-select:autofill,
.wpcf7-form input:autofill,
.wpcf7-form select:autofill {
    box-shadow: 0 0 0 1000px var(--wp--preset--color--black, #1A1A25) inset !important;
    -webkit-text-fill-color: var(--wp--preset--color--white, #fff) !important;
    caret-color: var(--wp--preset--color--white, #fff);
}

/* ── Breadcrumbs: horizontal scroll on mobile ────────────────────────────────
   .hl-breadcrumb is reused across many templates (gutenberg/headline*,
   single.php, single-studies.php, the WooCommerce product templates, etc.).
   gutenberg/headline/style.css already scrolls its own ".hl-breadcrumb
   .container" wrapper (and forces .hl-bc-text to one line) on templates that
   load it - but several templates print aob_breadcrumb() straight into the
   <nav> with no .container child, and studies/ksiazka/egzamin don't load
   that stylesheet at all. Covering both the scroll container and the nowrap
   here, sitewide, is simpler than patching every template individually. */
@media (max-width: 767px) {
    .hl-breadcrumb {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hl-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .hl-breadcrumb .hl-bc-text {
        flex-wrap: nowrap;
        white-space: nowrap;
        width: 100%;
    }
}

/* Fonts */

@font-face {
    font-family: 'EYInterstate';
    src: url('../fonts/EYInterstate/EYInterstate-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EYInterstate';
    src: url('../fonts/EYInterstate/EYInterstate-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EYInterstate';
    src: url('../fonts/EYInterstate/EYInterstate-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EYInterstate';
    src: url('../fonts/EYInterstate/EYInterstate-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EYInterstate';
    src: url('../fonts/EYInterstate/EYInterstate-LightBold.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EYInterstate';
    src: url('../fonts/EYInterstate/EYInterstate-LightBoldItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EYInterstate';
    src: url('../fonts/EYInterstate/EYInterstate-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EYInterstate';
    src: url('../fonts/EYInterstate/EYInterstate-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Fonts */

:root {
    --nav-height: 116px;
}

@media (max-width: 1199px) {
    :root {
        --nav-height: 60px;
    }
}

/* DEFAULTS */

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--text);
    color: var(--wp--preset--color--black);
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
}

img,
object,
embed {
    max-width: 100%;
}

a:hover,
a:focus,
a:active {
    outline: none !important;
}

strong,
b {
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--wp--preset--font-family--heading);
    color: var(--wp--preset--color--black);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

h1,
.h1 {
    font-size: var(--wp--preset--font-size--xxxl);
}

h2,
.h2 {
    font-size: var(--wp--preset--font-size--xxl);
}

h3,
.h3 {
    font-size: var(--wp--preset--font-size--xl);
}

h4,
.h4,
h5,
.h5,
h6,
.h6 {
    font-size: var(--wp--preset--font-size--large);
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    transition: color .3s ease;
}

textarea {
    resize: vertical;
    height: 120px;
}

img {
    max-width: 100%;
    height: auto;
}

picture {
    display: flex;
    /* height: auto; */
    height: 100%;
}

button {
    outline: none !important;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

body.nav-opened {
    overflow: hidden;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.container {
    position: relative;
    /* max-width: 1664px; */
    max-width: 1376px;
    margin: 0 auto;
    width: 100%;
    padding: 0 32px;
}

@media (min-width:1999px) {
    .container {
        max-width: 1664px;
    }
}

.container-md {
    max-width: 1504px;
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
    /* padding-top: var(--nav-height); */
    transition: padding-top .3s ease;
}

main>section:not(.block-fw),
main>div:not(.block-fw) {
    padding-inline: 32px;
}

.grecaptcha-badge {
    display: none !important;
}

@media (max-width:1199px) {

    main>section:not(.block-fw),
    main>div:not(.block-fw) {
        padding-inline: 24px;
    }

    main>section:not(.block-fw):not(.wp-block-group),
    main>div:not(.block-fw):not(.wp-block-group) {
        padding-inline: 0;
    }

    .container {
        padding: 0 24px;
    }

}

/* btns */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    padding: 18px 40px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Dark border — for light backgrounds */
.btn-primary {
    border-color: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--dark);
    background: transparent;
}

.btn-primary:hover,
.btn-primary:active {
    background: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--white);
}

/* White border — for dark backgrounds */
.btn-secondary {
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--white);
    background: transparent;
}

.btn-secondary:hover,
.btn-secondary:active {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
}

/* btns */

/* custom */

/* ── Global block visibility ────────────────────────────────── */

@media (min-width: 1200px) {
    .hide-desktop {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    .hide-mobile {
        display: none !important;
    }
}

.block-anchor {
    position: absolute;
    top: calc(var(--nav-height) * -1);
    left: 0;
}

/* custom */

/* ─── Site header ──────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

body.admin-bar .site-header {
    top: 32px;
}


.nav-hamburger .icon-close {
    display: none;
}

.nav-opened .nav-hamburger .icon-hamburger {
    display: none;
}

.nav-opened .nav-hamburger .icon-close {
    display: block;
}

/* Top bar */

.nav-top {
    background-color: var(--wp--preset--color--black);
    height: 44px;
    display: flex;
    align-items: center;
}

.nav-top .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.nav-top-nav {
    display: flex;
    align-items: center;
}

.nav-top-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 16px;
}

.nav-top-list li a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    color: var(--wp--preset--color--white);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    transition: opacity .2s ease;
}

.nav-top-list li a:hover {
    opacity: .65;
    color: var(--wp--preset--color--white);
}

/* External link icon — visible on hover for target="_blank" links */

.nav-top-list li a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 14px;
    flex-shrink: 0;
    overflow: hidden;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 8.66667V12.6667C14 13.0203 13.8595 13.3594 13.6095 13.6095C13.3594 13.8595 13.0203 14 12.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V3.33333C2 2.97971 2.14048 2.64057 2.39052 2.39052C2.64057 2.14048 2.97971 2 3.33333 2H7.33333M14 2L8 8M14 6V2H10' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: left center;
    transition: width .2s ease;
}

.nav-top-list li a[target="_blank"]:hover::after {
    width: 14px;
}

/* Theme toggle */

.nav-theme-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    border-left: 1px solid rgba(255, 255, 255, .2);
    padding-left: 16px;
}

.nav-theme-btn {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wp--preset--color--white);
    padding: 4px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: background-color .2s ease, color .2s ease;
    flex-shrink: 0;
}

.nav-theme-btn.is-active {
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
}

/* Main navbar */

.nav-main {
    background-color: var(--wp--preset--color--dark);
    height: 72px;
}

.nav-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

/* Logo */

.nav-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity .2s ease;
    line-height: 1;
}

.nav-logo:hover {
    opacity: .8;
}

.nav-logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Desktop menu */

.nav-menu-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.nav-list .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    color: var(--wp--preset--color--white);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    transition: opacity .2s ease;
}

.nav-list .nav-link:hover,
.nav-list .menu-item-has-children:focus-within>.nav-link {
    opacity: .65;
    color: var(--wp--preset--color--white);
}

.nav-list .nav-link.is-active {
    opacity: .65;
}

.nav-chevron {
    flex-shrink: 0;
    display: block;
    transition: transform .25s ease;
}

/* Dropdown */

.nav-list .menu-item-has-children {
    position: relative;
}

/* Invisible bridge fills the 4px gap so hover doesn't break when moving cursor toward dropdown */
.nav-list .menu-item-has-children:not(.has-mega)::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background-color: var(--wp--preset--color--dark);
    border-top: 2px solid var(--wp--preset--color--yellow);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 10;
}

.nav-list .menu-item-has-children:hover>.nav-dropdown,
.nav-list .menu-item-has-children:focus-within>.nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-list .menu-item-has-children:hover>.nav-link .nav-chevron,
.nav-list .menu-item-has-children:focus-within>.nav-link .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown .nav-sub-link {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    line-height: 1.4;
    transition: background-color .15s ease, color .15s ease;
    white-space: nowrap;
}

.nav-dropdown .nav-sub-link:hover {
    background-color: rgba(255, 255, 255, .08);
    color: var(--wp--preset--color--white);
}

/* Action buttons: search, cart, hamburger */

.nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--wp--preset--color--white);
    cursor: pointer;
    transition: opacity .2s ease;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-btn:hover,
.nav-btn:focus-visible {
    opacity: .65;
    color: var(--wp--preset--color--white);
}

.nav-divider {
    width: 1px;
    height: 25px;
    background-color: rgba(255, 255, 255, .25);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Cart count badge */

.nav-cart {
    position: relative;
}

.nav-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    background: var(--wp--preset--color--yellow);
    color: var(--wp--preset--color--black);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    border-radius: 8px;
    text-align: center;
}

.nav-cart-count:empty {
    display: none;
}

/* Hamburger: hidden on desktop */

.nav-hamburger {
    display: none;
}

/* Divider variants */

.nav-divider--m {
    display: none;
}

/* Notification bar */

.notification-bar {
    background-color: var(--wp--preset--color--yellow);
    padding: 6px 0;
    display: flex;
    text-align: center;
    align-items: center;
    overflow: hidden;
    max-height: 200px;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
}

.notification-bar.is-closing,
.notif-hidden .notification-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    display: none;
}

.notification-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.notification-bar-close {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--wp--preset--color--black);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    line-height: 0;
    transition: opacity .15s;
}

.notification-bar-close:hover {
    opacity: 1;
}

.notification-bar-text {
    font-size: 13px;
    font-weight: 400;
    color: var(--wp--preset--color--black);
    text-align: center;
    line-height: 1.4;
    margin: 0;
    padding-right: 48px;
    padding-left: 48px;
}

@media (max-width: 640px) {
    .notification-bar .container {
        flex-direction: column;
        gap: 4px;
    }

    .notification-bar-close {
        position: static;
        transform: none;
        padding: 4px;
        opacity: 1;
    }

    .notification-bar-text {
        padding-right: 0;
        padding-left: 0;
    }
}

/* ─── Mobile overlay ────────────────────────────────────────────── */

.nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, .55);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ─── Mobile drawer ─────────────────────────────────────────────── */

.nav-mobile {
    position: fixed;
    top: var(--nav-height, 0px);
    right: 0;
    width: min(420px, 100vw);
    height: calc(100dvh - var(--nav-height, 0px));
    background-color: var(--wp--preset--color--dark);
    z-index: 999;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform .3s ease;
}

.nav-mobile.is-open {
    transform: translateX(0);
}

/* ─── Panel container ─────────────────────────────────────────── */

.nm-panels {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ─── Individual panels ───────────────────────────────────────── */

.nm-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .28s ease;
    will-change: transform;
    overflow: hidden;
}

.nm-panel.is-active {
    transform: translateX(0);
}

.nm-panel.is-prev {
    transform: translateX(-25%);
}

.nm-panel--1 {
    background-color: var(--wp--preset--color--dark);
}

.nm-panel--2 {
    background-color: var(--wp--preset--color--dark);
}

.nm-panel--3 {
    background-color: var(--wp--preset--color--black);
}

/* ─── Top bar ─────────────────────────────────────────────────── */

.nm-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 8px;
    flex-shrink: 0;
    background-color: var(--wp--preset--color--dark);
}

.nm-bar-label {
    padding: 8px 16px;
    color: var(--wp--preset--color--neutral-300);
    font-size: 12px;
    letter-spacing: .06em;
}

.nm-back {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    color: var(--wp--preset--color--white);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
}

.nm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: none;
    border: none;
    color: var(--wp--preset--color--white);
    cursor: pointer;
}

/* ─── Nav list ────────────────────────────────────────────────── */

.nm-nav {
    flex: 1;
    overflow-y: auto;
}

.nm-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.nm-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    color: var(--wp--preset--color--neutral-100);
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    background: none;
    border: none;
    border-left: 2px solid transparent;
    text-align: left;
    cursor: pointer;
    gap: 8px;
    transition: background-color .15s;
}

.nm-item span {
    flex: 1;
}

.nm-item svg {
    flex-shrink: 0;
    margin-left: auto;
}

.nm-item:hover {
    background-color: rgba(255, 255, 255, .06);
}

.nm-item.is-active {
    background-color: var(--wp--preset--color--black);
    border-left-color: var(--wp--preset--color--yellow);
}

/* Split item: tekst → strona, strzałka → podmenu */
.nm-item-split {
    display: flex;
    align-items: center;
    border-left: 2px solid transparent;
}

.nm-item-split .nm-item--link {
    flex: 1;
    border-left: none;
    /* border-right: 1px solid rgba(255, 255, 255, .08); */
    padding-right: 8px;
}

.nm-item-split .nm-item-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    color: var(--wp--preset--color--neutral-100);
    cursor: pointer;
    transition: background-color .15s;
}

.nm-item-split .nm-item-chevron:hover {
    background-color: rgba(255, 255, 255, .06);
}

.nm-item-split:has(.is-active) {
    background-color: var(--wp--preset--color--black);
    border-left-color: var(--wp--preset--color--yellow);
}

.nm-item-split .nm-item--link.is-active,
.nm-item-split .nm-item-chevron.is-active {
    background-color: transparent;
    border-left: none;
}

.nm-panel--2 .nm-item,
.nm-panel--3 .nm-item {
    font-size: 14px;
    line-height: 20px;
}

.nm-item--l3 {
    justify-content: flex-start;
}

.nm-panel--3 .nm-item:hover {
    background-color: var(--wp--preset--color--dark);
}

.nm-panel--3 .nm-item.is-active {
    background-color: var(--wp--preset--color--dark);
    border-left-color: var(--wp--preset--color--yellow);
}

.nm-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--wp--preset--color--neutral-300);
    font-size: 12px;
    letter-spacing: .06em;
    flex-shrink: 0;
}

.nm-section-label svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* ─── Tabs ────────────────────────────────────────────────────── */

.nm-tabs {
    display: flex;
    align-items: center;
    padding: 24px 16px 8px;
    gap: 4px;
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
    overflow-x: auto;
}

.nm-tabs::-webkit-scrollbar {
    display: none;
}

.nm-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 4px;
    color: var(--wp--preset--color--white);
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color .15s, color .15s;
}

.nm-tab.is-active {
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark);
}

.nm-tab.is-active svg {
    color: var(--wp--preset--color--neutral-300);
}

/* ─── Tab panels ──────────────────────────────────────────────── */

.nm-tab-panel {
    display: none;
    flex-direction: column;
}

.nm-tab-panel.is-active {
    display: flex;
}

/* nm-panel--2 can hold content after the active tab-panel (e.g. the
   "Newsletter tematyczny" posts block on Zainspiruj się) - the tab-panel
   used to be flex:1 with its own scroll, which stretched it to the full
   panel height and shoved that trailing content down to the bottom edge
   with no breathing room. Scrolling the whole panel as one unit instead
   keeps the tab-panel's natural content height and lets padding-bottom
   give real space below the last block. */
.nm-panel--2 {
    overflow-y: auto;
    padding-bottom: 32px;
}

/* ─── L3 layout ───────────────────────────────────────────────── */

.nm-panel-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.nm-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 16px;
    color: var(--wp--preset--color--neutral-100);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    flex-shrink: 0;
}

.nm-all-link:hover {
    color: var(--wp--preset--color--white);
}

/* ─── Chips ───────────────────────────────────────────────────── */

.nm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 16px 16px;
}

.nm-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, .1);
    border: 1px solid var(--wp--preset--color--neutral-300);
    border-radius: 4px;
    color: var(--wp--preset--color--white);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, color .15s;
}

.nm-chip:hover,
.nm-chip.is-active {
    border-color: var(--wp--preset--color--yellow);
    color: var(--wp--preset--color--yellow);
}

/* Sub-grouping inside an L3 panel (np. Diagnoza: "Osobowość i motywacja"
   nad Talenty Gallupa/RMP/... jako rząd chipów) */
.nm-chip-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
}

.nm-chip-group .nm-chips {
    padding: 0;
}

.nm-chip-group-label {
    padding: 8px 0;
    color: var(--wp--preset--color--white);
    font-size: 12px;
    line-height: normal;
}

/* ─── Card grid (np. Finansowanie) ───────────────────────────────── */

.nm-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 16px 16px;
}

.nm-grid-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background-color: var(--wp--preset--color--neutral-400, #33333b);
    border: .5px solid var(--wp--preset--color--neutral-300, #747481);
    border-radius: 4px;
    text-decoration: none;
}

.nm-grid-card.is-active {
    background-color: var(--wp--preset--color--black, #1a1a25);
}

.nm-grid-card-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 229, 0, .1);
    border: .5px solid rgba(255, 229, 0, .3);
    border-radius: 4px;
    color: var(--wp--preset--color--yellow);
}

.nm-grid-card-icon svg {
    width: 20px;
    height: 20px;
}

.nm-grid-card-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.nm-grid-card-title {
    color: var(--wp--preset--color--white);
    font-size: 14px;
    line-height: 20px;
}

.nm-grid-card-desc {
    color: var(--wp--preset--color--neutral-150, #e4e4ea);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
}

/* ─── Auto lista nadchodzących konferencji (np. Konferencje) ─────── */

.nm-conf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nm-conf-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-left: 2px solid transparent;
    text-decoration: none;
    transition: background-color .15s, border-color .15s;
}

.nm-conf-item.is-active a {
    background-color: var(--wp--preset--color--black);
    border-left-color: var(--wp--preset--color--yellow);
}

.nm-conf-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    white-space: nowrap;
}

.nm-conf-day {
    color: var(--wp--preset--color--yellow);
    font-size: 14px;
    line-height: 20px;
}

.nm-conf-mon {
    color: var(--wp--preset--color--neutral-100);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
}

.nm-conf-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.nm-conf-title {
    color: var(--wp--preset--color--neutral-100);
    font-size: 14px;
    line-height: 20px;
}

.nm-conf-loc {
    color: var(--wp--preset--color--neutral-100);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
}

.nm-conf-empty {
    padding: 8px 16px;
    color: var(--wp--preset--color--neutral-300);
    font-size: 13px;
}

/* ─── Footer (L1 bottom) — NavExternal: tagi + linki + język + EY Polska ── */

.nm-external {
    background-color: var(--wp--preset--color--black);
    padding: 24px 16px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nm-ext-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nm-ext-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 24px;
    background-image: linear-gradient(110deg, rgba(223, 0, 110, .5) 4%, rgba(67, 11, 142, .5) 93%);
    backdrop-filter: blur(6px);
    color: var(--wp--preset--color--white);
    font-size: 12px;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
}

.nm-ext-links {
    display: flex;
    flex-direction: column;
}

.nm-ext-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    color: var(--wp--preset--color--white);
    font-size: 14px;
    line-height: 18px;
    text-decoration: none;
    opacity: .85;
    transition: opacity .15s;
}

.nm-ext-link:hover {
    opacity: 1;
}

.nm-ext-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nm-lang {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wp--preset--color--white);
}

.nm-lang-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nm-lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    color: var(--wp--preset--color--white);
    font-size: 14px;
    line-height: 20px;
    font-family: inherit;
    padding-right: 20px;
    cursor: pointer;
}

.nm-lang-select option {
    color: var(--wp--preset--color--black);
    background-color: var(--wp--preset--color--white);
}

.nm-lang-chevron {
    position: absolute;
    right: 0;
    pointer-events: none;
}

.nm-ey-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wp--preset--color--white);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.nm-ey-mark {
    display: block;
    width: 20px;
    height: 20px;
}

/* ─── Google Translate widget — hidden, driven by our own .nm-lang UI ──── */

.aob-gt-hidden,
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

.nm-theme-toggle {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 16px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.nm-theme-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.nm-theme-btn.is-active {
    background-color: var(--wp--preset--color--yellow);
    border-color: var(--wp--preset--color--yellow);
    color: var(--wp--preset--color--black);
}

/* ─── Search panel ───────────────────────────────────────────────── */

.nav-search-panel {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    width: 640px;
    max-width: 100%;
    z-index: 1002;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}

.nav-search-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

.nav-search-bar {
    background-color: var(--wp--preset--color--black);
    height: 72px;
    display: flex;
    align-items: center;
}

.nav-search-bar .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search-input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: var(--wp--preset--color--white);
    font-size: 14px;
    line-height: 20px;
    font-family: inherit;
    padding: 0;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.nav-search-input::-webkit-search-decoration,
.nav-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.nav-search-close {
    color: var(--wp--preset--color--white);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.nav-search-results {
    background-color: var(--wp--preset--color--dark);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
}

.nav-search-results:empty {
    display: none;
}

.nav-search-results-inner {
    padding: 24px 0;
}

.nav-search-all {
    display: block;
    font-size: 14px;
    line-height: 20px;
    color: #c4c4cd;
    margin-bottom: 16px;
}

.nav-search-all strong {
    color: var(--wp--preset--color--white);
    font-weight: 700;
}

.nav-search-all:hover {
    color: var(--wp--preset--color--white);
}

.nav-search-sep {
    height: 1px;
    background-color: rgba(255, 255, 255, .12);
    margin-bottom: 16px;
}

.nav-search-group {
    padding-top: 16px;
    padding-bottom: 16px;
}

.nav-search-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.nav-search-category {
    font-size: 14px;
    line-height: 20px;
    color: var(--wp--preset--color--yellow);
    font-weight: 400;
}

.nav-search-see-all {
    font-size: 14px;
    line-height: 20px;
    color: var(--wp--preset--color--white);
    font-weight: 700;
    white-space: nowrap;
}

.nav-search-see-all:hover {
    opacity: .75;
    color: var(--wp--preset--color--white);
}

.nav-search-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-search-item {
    display: block;
    font-size: 14px;
    line-height: 20px;
    color: var(--wp--preset--color--white);
}

.nav-search-item strong {
    font-weight: 700;
}

.nav-search-item:hover {
    opacity: .75;
    color: var(--wp--preset--color--white);
}

.nav-search-item:focus-visible {
    opacity: .75;
    outline: 2px solid var(--wp--preset--color--yellow, #FFE500);
    outline-offset: 2px;
    border-radius: 2px;
}

.nav-search-item--plain {
    opacity: .75;
    cursor: default;
}

.nav-search-status {
    font-size: 14px;
    line-height: 20px;
    color: #c4c4cd;
    padding: 4px 0 8px;
}

/* ─── Responsive ────────────────────────────────────────────────── */

@media (min-width: 1200px) {
    .nav-hamburger {
        display: none !important;
    }

    .nav-divider--m {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    .nav-top {
        display: none;
    }

    .nav-main {
        height: 60px;
    }

    .nav-menu-wrap {
        display: none;
    }

    .nav-hamburger {
        display: inline-flex;
    }

    .nav-divider--d {
        display: none;
    }

    .nav-divider--m {
        display: flex;
    }
}

/* ─── Mega Menu ──────────────────────────────────────────────── */

.nav-list .has-mega {
    align-self: stretch;
    display: flex;
    align-items: center;
}

.mega-panel {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}

.nav-list .has-mega.is-mega-open>.nav-link .nav-chevron {
    transform: rotate(180deg);
}

.nav-list .has-mega>.mega-panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

.mega-col {
    width: 25%;
    flex: 0 0 25%;
    max-height: min(55vh, calc(100vh - var(--nav-height)));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Shorter viewports (small laptops) have less room in absolute pixels, so
   give the menu relatively more of it instead of feeling overly cramped. */
@media (max-height: 800px) {
    .mega-col {
        max-height: min(70vh, calc(100vh - var(--nav-height)));
    }
}

.mega-col--1 {
    background-color: var(--wp--preset--color--dark);
    padding: 24px;
    border-right: 1px solid var(--wp--preset--color--neutral-300, #747481);
}

.mega-col1-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.mega-col1-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: rgba(255, 229, 0, .1);
    border: .5px solid rgba(255, 229, 0, .3);
    color: var(--wp--preset--color--yellow);
}

.mega-col1-icon svg {
    width: 24px;
    height: 24px;
}

.mega-col1-eyebrow {
    color: var(--wp--preset--color--neutral-300);
    font-size: 12px;
    line-height: 1;
}

.mega-col1-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-col1-title {
    margin: 0;
    color: var(--wp--preset--color--white);
    font-size: 24px;
    line-height: normal;
    max-width: 100%;
}

.mega-col1-desc {
    margin: 0;
    color: var(--wp--preset--color--neutral-50, #fcfcff);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
    max-width: 100%;
}

.mega-col1-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--wp--preset--color--yellow);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
}

.mega-col1-link:hover {
    text-decoration: underline;
}

.mega-col--2 {
    background-color: var(--wp--preset--color--dark);
    padding: 16px;
}

.mega-col--3 {
    background-color: var(--wp--preset--color--black);
    padding: 16px;
}

.mega-col--4 {
    background-color: var(--wp--preset--color--dark);
    padding: 16px 16px 32px;
}

/* Flat-list mega menu type (e.g. Studia, Konferencje) */
.mega-col--wide {
    width: auto;
    flex: 1 1 auto;
}

.mega-col--4-divider {
    padding: 16px 8px 24px;
    border-left: 1px solid var(--wp--preset--color--neutral-300, #747481);
}

.mega-col--4-divider .mega-section {
    margin-bottom: 24px;
}

.mega-col--4-divider .mega-section:last-child {
    margin-bottom: 0;
}

.mega-col4-desc {
    margin: 0;
    padding: 0 16px 8px;
    color: var(--wp--preset--color--neutral-50, #fcfcff);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
}

.mega-dot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-dot-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--wp--preset--color--white);
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    transition: color .15s;
}

.mega-dot-item:hover {
    color: var(--wp--preset--color--yellow);
}

.mega-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--yellow);
}

/* Column 4c — stats (np. Dlaczego my) */
.mega-stats {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0 16px;
}

.mega-stat {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.mega-stat-num {
    color: var(--wp--preset--color--yellow);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    white-space: nowrap;
}

.mega-stat-label {
    color: var(--wp--preset--color--white);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
}

/* Column 4d — contact cards (np. Masz pytania) */
.mega-contacts {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 16px;
}

.mega-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mega-contact-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.mega-contact-avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 229, 0, .15);
    color: var(--wp--preset--color--yellow);
}

.mega-contact-info {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mega-contact-name {
    color: var(--wp--preset--color--white);
    font-size: 16px;
    line-height: 24px;
}

.mega-contact-role {
    color: var(--wp--preset--color--neutral-200);
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
}

.mega-contact-actions {
    display: flex;
    flex-shrink: 0;
    gap: 16px;
}

.mega-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--purple-500, #430B8E);
    transition: background-color .15s, color .15s;
}

.mega-contact-btn:hover {
    background-color: var(--wp--preset--color--yellow);
    color: var(--wp--preset--color--purple-500, #430B8E);
}

/* Column 4 — karty konferencji (np. Dostępne w pakiecie) */
.mega-events {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
}

.mega-event-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--wp--preset--color--black, #1a1a25);
    border: 1px solid var(--wp--preset--color--neutral-300, #747481);
    border-radius: 4px;
    text-decoration: none;
    transition: border-color .15s;
}

.mega-event-card:hover {
    border-color: var(--wp--preset--color--yellow);
}

.mega-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    white-space: nowrap;
}

.mega-event-day {
    color: var(--wp--preset--color--yellow);
    font-size: 14px;
    line-height: 20px;
}

.mega-event-mon {
    color: var(--wp--preset--color--neutral-100);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
}

.mega-event-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.mega-event-title {
    color: var(--wp--preset--color--neutral-100);
    font-size: 14px;
    line-height: 20px;
}

.mega-event-desc {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--wp--preset--color--neutral-100);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
}

.mega-event-desc svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--wp--preset--color--neutral-100);
}

/* Column 4 — zapis na newsletter (np. Bądź na bieżąco) */
.mega-newsletter {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 16px 24px;
    padding: 16px;
    background-color: rgba(255, 229, 0, .1);
    border: .5px solid rgba(255, 229, 0, .3);
    border-radius: 4px;
}

.mega-newsletter-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mega-newsletter-icon {
    flex-shrink: 0;
    display: flex;
    color: var(--wp--preset--color--yellow);
}

.mega-newsletter-icon svg {
    width: 24px;
    height: 24px;
}

.mega-newsletter-title {
    color: var(--wp--preset--color--white);
    font-size: 16px;
    line-height: 24px;
}

.mega-newsletter-desc {
    margin: 0;
    color: var(--wp--preset--color--neutral-50, #fcfcff);
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
}

.mega-newsletter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 32px;
    background-color: var(--wp--preset--color--yellow);
    color: var(--wp--preset--color--dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
    text-align: center;
    transition: opacity .15s;
}

.mega-newsletter-btn:hover {
    opacity: .85;
    color: var(--wp--preset--color--dark);
}

/* Column 4 / mobile — karty artykułów (np. Newsletter tematyczny) */
.mega-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
}

.mega-post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wp--preset--color--neutral-300, #747481);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .15s;
}

.mega-post-card:hover {
    border-color: var(--wp--preset--color--yellow);
}

.mega-post-thumb {
    position: relative;
    display: block;
    height: 72px;
    overflow: hidden;
}

.mega-post-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .3);
}

.mega-post-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-post-title {
    padding: 16px;
    background-color: var(--wp--preset--color--black, #1a1a25);
    color: var(--wp--preset--color--neutral-100);
    font-size: 14px;
    line-height: 20px;
}

/* Same cards, laid out sideways — used under the submenu list itself (np.
   Zainspiruj się), alongside the vertical version reused in column 4. */
.mega-post-card--horizontal {
    flex-direction: row;
    align-items: stretch;
    height: 72px;
}

.mega-post-card--horizontal .mega-post-thumb {
    flex-shrink: 0;
    width: 146px;
    height: 100%;
}

.mega-post-card--horizontal .mega-post-title {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Column 4 — wyróżniony produkt, rotacyjnie (np. Diagnoza: Najczęściej wybierane) */
.mega-featured {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
}

.mega-featured-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wp--preset--color--neutral-300, #747481);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .15s;
}

.mega-featured-card:hover {
    border-color: var(--wp--preset--color--yellow);
}

.mega-featured-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.mega-featured-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .3);
}

.mega-featured-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    padding: 4px 6px;
    background-color: var(--wp--preset--color--purple-100);
    border-radius: 4px;
    color: var(--wp--preset--color--purple);
    font-size: 12px;
    font-weight: 700;
    line-height: normal;
}

.mega-featured-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px;
    background-color: var(--wp--preset--color--black, #1a1a25);
}

.mega-featured-title {
    color: var(--wp--preset--color--neutral-100);
    font-size: 14px;
    line-height: 20px;
}

.mega-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wp--preset--color--neutral-100);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
}

.mega-featured-meta svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.mega-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: center;
    color: var(--wp--preset--color--yellow);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
}

.mega-featured-link:hover {
    text-decoration: underline;
}

/* Column 1 */
.mega-headline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--wp--preset--color--neutral-300);
    font-size: 12px;
    line-height: 1;
}

.mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-list-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-left: 2px solid transparent;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.mega-list-item:hover,
.mega-list-item.is-active {
    background-color: var(--wp--preset--color--black);
    border-left-color: var(--wp--preset--color--yellow);
}

.mega-list-item a {
    flex: 1;
    min-width: 0;
    color: var(--wp--preset--color--neutral-100);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.mega-chevron-r {
    flex-shrink: 0;
    color: var(--wp--preset--color--neutral-100);
}

/* Column 2 — card grid (np. Finansowanie) */
.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 8px 16px;
}

.mega-grid-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background-color: var(--wp--preset--color--neutral-400, #33333b);
    border: .5px solid var(--wp--preset--color--neutral-300, #747481);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color .15s;
}

.mega-grid-card:hover,
.mega-grid-card.is-active {
    background-color: var(--wp--preset--color--black, #1a1a25);
}

.mega-grid-card-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 229, 0, .1);
    border: .5px solid rgba(255, 229, 0, .3);
    border-radius: 4px;
    color: var(--wp--preset--color--yellow);
}

.mega-grid-card-icon svg {
    width: 20px;
    height: 20px;
}

.mega-grid-card-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.mega-grid-card-title {
    color: var(--wp--preset--color--white);
    font-size: 14px;
    line-height: 20px;
}

.mega-grid-card-desc {
    color: var(--wp--preset--color--neutral-150, #e4e4ea);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
}

.mega-grid-card-arrow {
    flex-shrink: 0;
    align-self: center;
    color: var(--wp--preset--color--white);
    opacity: 0;
    transition: opacity .15s;
}

.mega-grid-card:hover .mega-grid-card-arrow,
.mega-grid-card.is-active .mega-grid-card-arrow {
    opacity: 1;
}

/* Column 2 — auto lista nadchodzących konferencji (np. Konferencje) */
.mega-conf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-conf-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-left: 2px solid transparent;
    text-decoration: none;
    transition: background-color .15s, border-color .15s;
}

.mega-conf-item:hover a,
.mega-conf-item.is-active a {
    background-color: var(--wp--preset--color--black);
    border-left-color: var(--wp--preset--color--yellow);
}

.mega-conf-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    white-space: nowrap;
}

.mega-conf-day {
    color: var(--wp--preset--color--yellow);
    font-size: 14px;
    line-height: 20px;
}

.mega-conf-mon {
    color: var(--wp--preset--color--neutral-100);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
}

.mega-conf-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.mega-conf-title {
    color: var(--wp--preset--color--neutral-100);
    font-size: 14px;
    line-height: 20px;
}

.mega-conf-loc {
    color: var(--wp--preset--color--neutral-100);
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
}

.mega-conf-empty {
    padding: 8px 16px;
    color: var(--wp--preset--color--neutral-300);
    font-size: 13px;
}

/* Column 2 */
.mega-subpanel {
    display: none;
}

.mega-subpanel.is-active {
    display: block;
}

.mega-subheadline {
    padding: 8px 16px;
    color: var(--wp--preset--color--neutral-300);
    font-size: 12px;
    line-height: 1;
    margin-bottom: 4px;
}

.mega-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-sublist-item {
    border-left: 2px solid transparent;
}

.mega-sublist-item.is-active {
    background-color: var(--wp--preset--color--dark);
    border-left-color: var(--wp--preset--color--yellow);
}

.mega-sub-link {
    display: block;
    padding: 12px 16px;
    color: var(--wp--preset--color--neutral-100);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    transition: background-color .15s ease, border .15s ease;
    border-left: 2px solid transparent;
}

.mega-sub-link:hover {
    background-color: rgba(255, 255, 255, .06);
    color: var(--wp--preset--color--white);
    border-left-color: var(--wp--preset--color--yellow);
}

/* Sub-grouping inside column 3 (np. Diagnoza: "Osobowość i motywacja" nad
   Talenty Gallupa/RMP/...) — a plain label + dot, not a link. */
.mega-sublist-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--wp--preset--color--white);
    font-size: 12px;
    line-height: normal;
}

/* Column 3 */
.mega-right-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.mega-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 4px;
}

.mega-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--wp--preset--color--neutral-300);
    font-size: 12px;
    line-height: 1;
}

.mega-section-head svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.mega-tag-grid {
    display: flex;
    gap: 0;
    padding: 0 16px 8px;
}

.mega-tag-col {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mega-tag-item {
    color: var(--wp--preset--color--white);
    font-size: 12px;
    line-height: 28px;
    white-space: nowrap;
    padding: 0;
    text-decoration: none;
    transition: color .15s;
}

.mega-tag-item:hover {
    color: var(--wp--preset--color--yellow);
}

.mega-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 16px 8px;
}

.mega-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background-color: rgba(255, 255, 255, .1);
    border: 1px solid var(--wp--preset--color--neutral-300);
    border-radius: 4px;
    color: var(--wp--preset--color--white);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}

.mega-chip:hover {
    border-color: var(--wp--preset--color--yellow);
    color: var(--wp--preset--color--yellow);
}

.mega-chip--hidden {
    display: none;
}

.mega-chip--more {
    background-color: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .3);
    cursor: pointer;
    font-weight: 600;
    letter-spacing: .02em;
}

.mega-chip--more:hover {
    background-color: rgba(255, 255, 255, .14);
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--white);
}

.mega-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--wp--preset--color--neutral-300);
    margin-top: auto;
}

.mega-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--wp--preset--color--white);
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(95deg, rgba(223, 0, 110, 0.50) 4.14%, rgba(67, 11, 142, 0.50) 92.88%);
    backdrop-filter: blur(calc(var(--blur-md, 12px) / 2));
    transition: opacity .15s;
    cursor: pointer;
}

.mega-cta:hover {
    opacity: .8;
    color: var(--wp--preset--color--white);
}

@media (max-width: 1199px) {
    .mega-panel {
        display: none;
        /* handled by mobile drawer */
    }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

/* ─── Base ───────────────────────────────────────────────────── */

.site-footer {
    background-color: var(--wp--preset--color--white);
    /* border-top: 1px solid #e4e4ea; */
    color: var(--wp--preset--color--dark);
}

/* ─── Main area ──────────────────────────────────────────────── */

.footer-main {
    padding-top: 40px;
}

.footer-top {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    padding-bottom: 48px;
}

/* ─── Brand column ───────────────────────────────────────────── */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 320px;
    flex-shrink: 0;
}

.footer-brand-logo a,
.footer-brand-logo img {
    display: block;
    height: auto;
}

/* Light/dark logo swap — the light-theme logo is the default; the dark
   variant only shows once html[data-theme="dark"] is set (before first
   paint, via the inline script in <head>), so there's no flash.
   Specificity has to match/beat ".footer-brand-logo img" above (a class
   + a type selector), so these repeat that same shape. */
.footer-brand-logo img.footer-brand-logo__img--dark {
    display: none;
}

html[data-theme="dark"] .footer-brand-logo img.footer-brand-logo__img--light {
    display: none;
}

html[data-theme="dark"] .footer-brand-logo img.footer-brand-logo__img--dark {
    display: block;
}

.footer-brand-desc {
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    color: var(--wp--preset--color--neutral-300);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e4e4ea;
    background-color: transparent;
    color: var(--wp--preset--color--dark);
    flex-shrink: 0;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.footer-social-link svg {
    transition: inherit;
}

.footer-social-link:hover {
    border-color: var(--wp--preset--color--dark);
    background-color: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--white);
}

/* ─── Nav columns wrapper ────────────────────────────────────── */

.footer-nav-cols {
    display: flex;
    flex: 1;
    gap: 80px;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: 0;
}

/* ─── Single nav column ──────────────────────────────────────── */

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
}

.footer-col-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-col-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: default;
    pointer-events: none;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--wp--preset--color--dark);
    white-space: nowrap;
}

.footer-acc-icon {
    display: none;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.footer-col-line {
    width: 32px;
    height: 4px;
    background-color: var(--wp--preset--color--yellow);
    flex-shrink: 0;
}

.footer-col-body {
    display: flex;
    flex-direction: column;
}

/* ─── Nav list ───────────────────────────────────────────────── */

.footer-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col-list li a {
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
}

.footer-col-list li a:hover {
    text-decoration: underline;
    color: var(--wp--preset--color--dark);
}

/* ─── Services 2-col grid ────────────────────────────────────── */

.footer-services-grid {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* ─── Contact ────────────────────────────────────────────────── */

.footer-contact {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: var(--wp--preset--color--dark);
}

.footer-contact-row svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-row a {
    font-size: 14px;
    font-weight: 300;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
}

.footer-contact-row a:hover {
    text-decoration: underline;
    color: var(--wp--preset--color--dark);
}

/* ─── Newsletter ─────────────────────────────────────────────── */

.footer-newsletter-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-newsletter--desktop {
    margin-top: 40px;
}

.footer-newsletter--mobile {
    display: none;
}

.footer-newsletter-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--wp--preset--color--dark);
    margin: 0;
}

.footer-newsletter-desc {
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    color: var(--wp--preset--color--dark);
    margin: 0;
}

.footer-newsletter-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
}

.footer-newsletter-link:hover {
    color: var(--wp--preset--color--dark);
    text-decoration: underline;
}

/* ─── Bottom bar ─────────────────────────────────────────────── */

.footer-bottom {
    border-top: 1px solid #e4e4ea;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.footer-copy {
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    color: var(--wp--preset--color--neutral-300);
    margin: 0;
}

/* ─── Legal links ────────────────────────────────────────────── */

.footer-legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.footer-legal-list li {
    display: flex;
    align-items: center;
}

.footer-legal-list li+li::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 16px;
    background-color: var(--wp--preset--color--neutral-200);
    margin: 0 16px;
}

.footer-legal-list li a {
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    color: var(--wp--preset--color--neutral-300);
    text-decoration: none;
    white-space: nowrap;
}

.footer-legal-list li a:hover {
    color: var(--wp--preset--color--dark);
}

/* ─── Mobile footer (accordion) ──────────────────────────────── */

@media (max-width: 1199px) {
    .footer-main {
        padding-top: 24px;
    }

    .footer-top {
        flex-direction: column;
        gap: 0;
        padding-bottom: 0;
    }

    .footer-brand {
        width: 100%;
        padding: 0 0 32px;
    }

    .footer-nav-cols {
        flex-direction: column;
        gap: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .footer-col {
        width: 100%;
    }

    .footer-col-head {
        gap: 0;
        margin-bottom: 0;
    }

    .footer-col-toggle {
        cursor: pointer;
        pointer-events: auto;
        padding: 20px 0 8px;
    }

    .footer-acc-icon {
        display: block;
        color: var(--wp--preset--color--neutral-300);
    }

    .js-footer-col.is-open .footer-acc-icon {
        transform: rotate(180deg);
    }

    .footer-col-line {
        display: block;
        margin-bottom: 16px;
    }

    .footer-col-body {
        overflow: hidden;
        max-height: 0;
        padding-bottom: 0;
        transition: max-height 0.35s ease, padding-bottom 0.35s ease;
    }

    .js-footer-col.is-open .footer-col-body {
        max-height: 600px;
        padding-bottom: 24px;
    }

    .footer-services-grid {
        flex-direction: column;
        gap: 16px;
    }

    .footer-newsletter--desktop {
        display: none;
    }

    .footer-newsletter--mobile {
        display: block;
        padding: 24px 0;
        border-bottom: 1px solid #e4e4ea;
    }

    .footer-bottom .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .footer-legal-list {
        flex-wrap: wrap;
        row-gap: 8px;
    }
}

/* ── Dark mode: body + default page content ─────────────────────
   Custom ACF blocks each set their own dark background/text (see
   their individual style.css files). Plain pages that are just raw
   core Gutenberg blocks (paragraph/list/heading — e.g. regulamin,
   polityka prywatności) sit directly on <body> with no block of
   their own to carry a dark background, so without this they stay
   white-on-black-text regardless of the theme toggle. ────────────── */

html[data-theme="dark"] body {
    background-color: var(--wp--preset--color--black, #1A1A25);
}

html[data-theme="dark"] .wp-block-paragraph,
html[data-theme="dark"] .wp-block-list,
html[data-theme="dark"] .wp-block-list li {
    color: rgba(255, 255, 255, .75);
}

html[data-theme="dark"] .wp-block-heading {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .wp-block-paragraph a,
html[data-theme="dark"] .wp-block-list a {
    color: var(--wp--preset--color--yellow, #FFE500);
}

html[data-theme="dark"] .wp-block-paragraph a:hover,
html[data-theme="dark"] .wp-block-list a:hover {
    color: var(--wp--preset--color--white);
}

/* ── Dark mode ────────────────────────────────────────────────── */

html[data-theme="dark"] .site-footer {
    background-color: var(--wp--preset--color--black, #1A1A25);
    color: rgba(255, 255, 255, .8);
    transition: background-color .25s ease, color .25s ease;
}

html[data-theme="dark"] .footer-brand-desc,
html[data-theme="dark"] .footer-copy {
    color: rgba(255, 255, 255, .5);
}

html[data-theme="dark"] .footer-social-link {
    border-color: rgba(255, 255, 255, .2);
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .footer-social-link:hover {
    border-color: var(--wp--preset--color--white);
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black, #1A1A25);
}

html[data-theme="dark"] .footer-col-title,
html[data-theme="dark"] .footer-col-list li a,
html[data-theme="dark"] .footer-col-list li a:hover,
html[data-theme="dark"] .footer-contact-row,
html[data-theme="dark"] .footer-contact-row a,
html[data-theme="dark"] .footer-contact-row a:hover,
html[data-theme="dark"] .footer-newsletter-title,
html[data-theme="dark"] .footer-newsletter-link,
html[data-theme="dark"] .footer-newsletter-link:hover {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .footer-newsletter-desc {
    color: rgba(255, 255, 255, .65);
}

html[data-theme="dark"] .footer-acc-icon {
    color: rgba(255, 255, 255, .5);
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, .12);
}

html[data-theme="dark"] .footer-legal-list li+li::before {
    background-color: rgba(255, 255, 255, .2);
}

html[data-theme="dark"] .footer-legal-list li a {
    color: rgba(255, 255, 255, .5);
}

html[data-theme="dark"] .footer-legal-list li a:hover {
    color: var(--wp--preset--color--white);
}

@media (max-width: 1199px) {
    html[data-theme="dark"] .footer-newsletter--mobile {
        border-bottom-color: rgba(255, 255, 255, .12);
    }
}

/* nav */

/* ── Section intro (shared across all content blocks) ─────────── */

.sec-headline-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sec-headline-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--wp--preset--color--purple-500);
    line-height: 0;
}

.sec-headline-icon svg {
    width: 20px;
    height: 20px;
}

.sec-headline {
    margin: 0;
    color: var(--wp--preset--color--purple-500);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.sec-title {
    margin: 0;
    color: var(--wp--preset--color--black);
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
}

.sec-desc {
    margin: 0;
    color: var(--wp--preset--color--dark);
    font-size: 20px;
    font-weight: 300;
    line-height: 28px;
    max-width: 640px;
}

@media (max-width: 991px) {
    .sec-headline {
        font-size: 14px;
        line-height: 20px;
    }

    .sec-title {
        font-size: 40px;
    }

    .sec-desc {
        font-size: 16px;
        line-height: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MODALS (generic — .aob-modal system)
   ═══════════════════════════════════════════════════════════════ */

body.modal-opened {
    overflow: hidden;
}

.aob-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.aob-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.aob-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 37, 0.72);
    cursor: pointer;
}

.aob-modal-inner {
    position: relative;
    z-index: 1;
    background: var(--wp--preset--color--dark);
    width: 100%;
    max-width: 640px;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 48px;
    transform: translateY(12px);
    transition: transform 0.25s ease;
}

.aob-modal.is-open .aob-modal-inner {
    transform: translateY(0);
}

.aob-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.aob-modal-close:hover {
    color: var(--wp--preset--color--white);
}

.aob-modal-close svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ─── Modal title ────────────────────────────────────────────── */

.aob-modal-head {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.aob-modal-title {
    margin: 0;
    color: var(--wp--preset--color--white);
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.aob-modal-subtitle {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 300;
    text-align: center;
}

@media (max-width: 767px) {
    .aob-modal {
        padding: 16px;
        align-items: flex-end;
    }

    .aob-modal-inner {
        max-width: 100%;
        max-height: calc(100dvh - 32px);
        padding: 40px 24px;
    }

    .aob-modal-title {
        font-size: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT FORM 7 — global (dark-theme)
   ═══════════════════════════════════════════════════════════════ */

.wpcf7 {
    width: 100%;
}

.wpcf7-form p {
    margin: 0 0 16px;
}

.wpcf7-form p:last-of-type {
    margin-bottom: 0;
}

.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 16px;
}

.wpcf7-form .wpcf7-form-control-wrap:last-child {
    margin-bottom: 0;
}

/* ─── Text inputs / textarea / select ─────────────────────────── */

.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.wpcf7-form select {
    height: 56px;
    padding: 0 24px;
}

.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.wpcf7-form textarea,
.wpcf7-form select {
    display: block;
    width: 100%;
    background: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: var(--wp--preset--font-family--text);
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color 0.2s ease, padding-top 0.15s ease, padding-bottom 0.15s ease;
    box-sizing: border-box;
}

.wpcf7-form textarea {
    padding: 18px 24px;
}

/* Floating fields shift value down to make room for the label growing in
   above it (see .wpcf7-floating-label below) — same mechanism as the
   fc-/fd-/nw- custom forms. Non-floating fields (no JS-generated label,
   e.g. hidden/unsupported types) are untouched. */
.wpcf7-floating-wrap input:not([type="checkbox"]):not([type="radio"]):focus,
.wpcf7-floating-wrap input:not([type="checkbox"]):not([type="radio"]):not(:placeholder-shown),
.wpcf7-floating-wrap textarea:focus,
.wpcf7-floating-wrap textarea:not(:placeholder-shown),
.wpcf7-floating-wrap.is-floated select {
    padding-top: 18px;
    padding-bottom: 0;
}

.wpcf7-floating-wrap textarea:focus,
.wpcf7-floating-wrap textarea:not(:placeholder-shown) {
    padding-top: 26px;
    padding-bottom: 10px;
}

.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"])::placeholder,
.wpcf7-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: rgba(255, 255, 255, 0.35);
    outline: none;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid {
    border-color: #fc8181;
}

/* ─── Floating labels (injected by script.js from each field's own
   placeholder — same mechanism as the fc-/fd- custom forms) ─────── */

.wpcf7-form-control-wrap.wpcf7-floating-wrap {
    position: relative;
}

.wpcf7-floating-label {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    transition: top 0.15s ease, font-size 0.15s ease, transform 0.15s ease, color 0.15s ease, line-height 0.15s ease;
}

textarea+.wpcf7-floating-label {
    top: 18px;
    transform: none;
}

.wpcf7-floating-wrap input:focus+.wpcf7-floating-label,
.wpcf7-floating-wrap input:not(:placeholder-shown)+.wpcf7-floating-label,
.wpcf7-floating-wrap textarea:focus+.wpcf7-floating-label,
.wpcf7-floating-wrap textarea:not(:placeholder-shown)+.wpcf7-floating-label,
.wpcf7-floating-wrap.is-floated .wpcf7-floating-label {
    top: 10px;
    transform: none;
    font-size: 10px;
    line-height: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Select: no :placeholder-shown equivalent — script.js toggles is-floated
   on the wrap once a real (non-empty, non-disabled) option is chosen.
   Right offset is wider than inputs to clear the select's chevron icon. */
select+.wpcf7-floating-label {
    right: 52px;
}

/* Unlike inputs (whose native placeholder gets reduced to a single space —
   see script.js), a select's own displayed text can't be blanked without
   losing the real placeholder option — so while unfloated it shows the same
   "Wybierz ..." text as the floating label on top of it, doubled/blurred.
   Hide the select's own text until a real value is chosen instead; the
   dropdown's own option list is unaffected (color set explicitly below). */
.wpcf7-floating-wrap:not(.is-floated) select {
    color: transparent;
}

.wpcf7-floating-wrap select option {
    color: var(--wp--preset--color--black, #1A1A25);
}

/* Select custom chevron */
.wpcf7-form select {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 52px;
    cursor: pointer;
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ─── Submit ───────────────────────────────────────────────────── */

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 18px 40px;
    background: transparent;
    border: 1px solid var(--wp--preset--color--white);
    border-radius: 0;
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
}

.aob-modal .wpcf7-form input[type="submit"],
.aob-modal .wpcf7-form .wpcf7-submit {
    display: block;
    margin: 0 auto;
}

/* ─── Checkbox / Radio ─────────────────────────────────────────── */

.wpcf7-form .wpcf7-list-item {
    margin: 0 0 8px;
}

.wpcf7-form .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.wpcf7-form .wpcf7-list-item label a {
    color: var(--wp--preset--color--white);
}

.wpcf7-form .wpcf7-list-item label a:hover {
    text-decoration: underline;
}

.wpcf7-form .wpcf7-list-item input[type="checkbox"],
.wpcf7-form .wpcf7-list-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.wpcf7-form .wpcf7-list-item input[type="radio"] {
    border-radius: 50%;
}

.wpcf7-form .wpcf7-list-item input[type="checkbox"]:checked,
.wpcf7-form .wpcf7-list-item input[type="radio"]:checked {
    background: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--white);
}

.wpcf7-form .wpcf7-list-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 2px solid var(--wp--preset--color--black);
    border-top: none;
    border-left: none;
    transform: rotate(40deg);
}

.wpcf7-form .wpcf7-list-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--wp--preset--color--black);
    border-radius: 50%;
}

/* ─── Validation / Response ────────────────────────────────────── */

.wpcf7-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 0;
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    color: #fc8181;
    position: absolute;
}

.wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    border-radius: 4px;
    border: none !important;
}

.wpcf7-form.sent .wpcf7-response-output {
    background: rgba(72, 187, 120, 0.15);
    color: #9ae6b4;
    border: 1px solid rgba(72, 187, 120, 0.35) !important;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
    background: rgba(252, 129, 129, 0.12);
    color: #fc8181;
    border: 1px solid rgba(252, 129, 129, 0.35) !important;
}

/* ── WooCommerce / WP Notices ────────────────────────────────────── */

/* Constrain notices to page container width */
.woocommerce-notices-wrapper:not(:empty) {
    max-width: 1664px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 24px 32px 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .woocommerce-notices-wrapper:not(:empty) {
        padding: 16px 16px 0;
    }
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    border-radius: 8px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 20px;
}

.woocommerce-message li,
.woocommerce-error li,
.woocommerce-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
}

/* Icon before text */
.woocommerce-message li::before,
.woocommerce-error li::before,
.woocommerce-info li::before {
    content: '';
    display: inline-flex;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Text (everything except the button link) */
.woocommerce-message li,
.woocommerce-error li,
.woocommerce-info li {
    color: inherit;
}

/* Inner link = "Zobacz koszyk" button — push to right */
.woocommerce-message li>a.button,
.woocommerce-error li>a.button,
.woocommerce-info li>a.button,
.woocommerce-message li>a.wc-forward,
.woocommerce-error li>a.wc-forward,
.woocommerce-info li>a.wc-forward {
    order: 1;
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--wp--preset--color--dark);
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    background: transparent;
    border-radius: 0;
    white-space: nowrap;
    transition: background 0.15s;
}

.woocommerce-message li>a.button:hover,
.woocommerce-error li>a.button:hover,
.woocommerce-info li>a.button:hover,
.woocommerce-message li>a.wc-forward:hover,
.woocommerce-error li>a.wc-forward:hover,
.woocommerce-info li>a.wc-forward:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--wp--preset--color--dark);
}

/* ── Success (zielony) ───────────────────────────────────────────── */

.woocommerce-message {
    background: #ddf1e7;
    border: 1px solid #bfe3cf;
    color: #06522f;
}

.woocommerce-message li::before {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%2306522f' stroke-width='1.5'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%2306522f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── Error (czerwony) ────────────────────────────────────────────── */

.woocommerce-error {
    background: #fde8e8;
    border: 1px solid #f5c6cb;
    color: #7a1c1c;
}

.woocommerce-error li::before {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%237a1c1c' stroke-width='1.5'/%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' stroke='%237a1c1c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.woocommerce-error li>a.button,
.woocommerce-error li>a.wc-forward {
    border-color: #7a1c1c;
    color: #7a1c1c;
}

.woocommerce-error li>a.button:hover,
.woocommerce-error li>a.wc-forward:hover {
    background: rgba(122, 28, 28, 0.05);
}

/* ── Info (niebieski) ────────────────────────────────────────────── */

.woocommerce-info {
    background: #e8f1fd;
    border: 1px solid #b8ceee;
    color: #1a3a6b;
    padding: 8px 16px;
}

.woocommerce-info li::before {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%231a3a6b' stroke-width='1.5'/%3E%3Cpath d='M8 7v5' stroke='%231a3a6b' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='5' r='0.75' fill='%231a3a6b'/%3E%3C/svg%3E");
}

.woocommerce-info li>a.button,
.woocommerce-info li>a.wc-forward {
    border-color: #1a3a6b;
    color: #1a3a6b;
}

.woocommerce-info li>a.button:hover,
.woocommerce-info li>a.wc-forward:hover {
    background: rgba(26, 58, 107, 0.05);
}

/* Remove WC's default border-top on notices */
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    display: none;
}

/* Wrapper spacing */
.woocommerce-notices-wrapper:not(:empty) {
    margin-bottom: 24px;
}

/* ── Dark mode ───────────────────────────────────────────────────────────── */

/* jobs-list */
html[data-theme="dark"] .jobs-list-block .btn-primary {
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .jobs-list-block .btn-primary:hover,
html[data-theme="dark"] .jobs-list-block .btn-primary:active {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark, #2E2E39);
}

html[data-theme="dark"] .jobs-list-desc2 a {
    color: var(--wp--preset--color--white);
}

/* ── /Dark mode ──────────────────────────────────────────────────────────── */

/* ── 404 Error Page ──────────────────────────────────────────────────────── */

.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: var(--theme-404-bg);
    padding: 80px 0;
    min-height: calc(100vh - var(--nav-height));
    transition: background-color .25s ease;
}

.error-page-inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

.error-page-code {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(120px, 16vw, 220px);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--wp--preset--color--purple);
    letter-spacing: -0.04em;
    flex-shrink: 0;
    user-select: none;
    transition: -webkit-text-stroke-color .25s ease;
}

.error-page-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.error-page-label {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wp--preset--color--purple);
}

.error-page-title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--theme-404-title);
    margin: 0;
}

.error-page-desc {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--theme-text-muted);
}

.error-page-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.error-page-cta {
    border: 1px solid var(--theme-404-cta-border);
    color: var(--theme-404-cta-color);
    background: transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.error-page-cta:hover,
.error-page-cta:active {
    background: var(--theme-404-cta-hover-bg);
    color: var(--theme-404-cta-hover-c);
    border-color: var(--theme-404-cta-hover-bg);
}

.error-page-ghost {
    border-color: transparent;
    color: var(--theme-text-muted);
    background: transparent;
    padding-left: 0;
    padding-right: 0;
    transition: color .15s ease;
}

.error-page-ghost:hover {
    color: var(--theme-404-title);
}

@media (max-width: 991px) {
    .error-page-inner {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .error-page-code {
        font-size: clamp(100px, 28vw, 160px);
        margin-bottom: 8px;
    }

    .error-page-actions {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .error-page {
        padding: 48px 0;
        align-items: flex-start;
    }

    .error-page-cta,
    .error-page-ghost {
        width: 100%;
    }
}

/* ── Dark mode ──────────────────────────────────────────────────────────── */

html[data-theme="dark"] .error-page {
    background-color: var(--wp--preset--color--black, #1A1A25);
}

html[data-theme="dark"] .error-page-code {
    -webkit-text-stroke-color: var(--wp--preset--color--yellow, #FFE500);
}

html[data-theme="dark"] .error-page-label {
    color: var(--wp--preset--color--yellow, #FFE500);
}

html[data-theme="dark"] .error-page-title {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .error-page-desc {
    color: rgba(255, 255, 255, .65);
}

html[data-theme="dark"] .error-page-actions .btn-primary {
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .error-page-actions .btn-primary:hover,
html[data-theme="dark"] .error-page-actions .btn-primary:active {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black, #1A1A25);
}

html[data-theme="dark"] .error-page-actions .btn:not(.btn-primary) {
    color: rgba(255, 255, 255, .8);
}

html[data-theme="dark"] .error-page-actions .btn:not(.btn-primary):hover {
    color: var(--wp--preset--color--white);
}

/* ── WooCommerce tabs — global reset + minimalist style ──────────────────── */

.woocommerce-tabs ul.tabs {
    display: flex;
    list-style: none;
    margin: 0 0 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid #e4e4ea;
    gap: 0;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 400;
    color: var(--wp--preset--color--neutral-300);
    text-decoration: none;
    background: none !important;
    border: none !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
    border-radius: 0 !important;
}

.woocommerce-tabs ul.tabs li a:hover,
.woocommerce-tabs ul.tabs li a:focus {
    color: var(--wp--preset--color--black);
    background: none !important;
    text-decoration: none;
}

.woocommerce-tabs ul.tabs li.active {
    background: none !important;
    border: none !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--wp--preset--color--black);
    font-weight: 500;
    border-bottom: 2px solid var(--wp--preset--color--black) !important;
    background: none !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 24px 0;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    font-size: 14px;
    line-height: 1.75;
    color: #111;
}

.woocommerce-tabs .woocommerce-Tabs-panel p {
    color: #111;
}

/* ── Badges (ac-badge) ────────────────────────────────────────────────────── */

.ac-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border-width: 1px;
    text-transform: uppercase;
}

.ac-badge--promo {
    background: #ddf1e7;
    border: 1px solid #bfe3cf;
    color: #098257;
}

.ac-badge--promo svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── WC gallery sale flash overlay ───────────────────────────────────────── */

.woocommerce-product-gallery {
    position: relative;
}

.woocommerce-product-gallery .wc-sale-flash {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

/* ── /404 ────────────────────────────────────────────────────────────────── */

/* wp-blocks */

.wp-block-group {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

.wp-block-group>* {
    max-width: 100%;
}

.woocommerce.wp-block-group.alignwide,
.wp-block-group.alignwide {
    max-width: 1400px;
}

.wp-block-group.alignfull {
    max-width: 1664px;
    margin-left: auto;
    margin-right: auto;
}

/* zeby pełna szerokość nadal miała wewnętrzny kontener */
.wp-block-group.alignfull>* {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.wp-block-group.alignfull ul,
.wp-block-group.alignfull ol {
    padding-left: 24px !important;
}

@media (max-width:1199px) {

    .wp-block-group.alignfull,
    .wp-block-group {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width:1199px) and (max-width:1730px) {
    .wp-block-group {
        padding-left: 64px !important;
        padding-right: 64px !important;
    }

}

/* ===================================================================
   PRINT — global (chrome shared by every template)
   Page-specific print rules live in each template's own stylesheet
   (e.g. single-szkolenie.css).
   =================================================================== */
@media print {

    /* Site chrome */
    .site-header,
    .nav-overlay,
    .nav-mobile,
    .nav-search-panel,
    #notification-bar,
    .site-footer,
    #wpadminbar {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
        background: var(--wp--preset--color--white) !important;
        color: #000;
    }

    /* Links: show as plain text, no underline noise, but keep URLs legible */
    a {
        color: inherit;
        text-decoration: none;
    }

    /* Avoid splitting headings/images awkwardly across pages */
    h1,
    h2,
    h3,
    h4,
    img,
    svg {
        break-inside: avoid;
    }

    h1,
    h2,
    h3,
    h4 {
        break-after: avoid;
    }
}

/* One-time reminder shown next to "Zapisz stronę do PDF" before the browser
   print dialog opens — see .js-print-pdf handler in script.js. */
.print-pdf-hint {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 240px;
    background: var(--wp--preset--color--black, #1A1A25);
    color: var(--wp--preset--color--white, #fff);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 20;
}

.print-pdf-hint.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.print-pdf-hint__ok {
    display: block;
    margin-top: 8px;
    padding: 6px 10px;
    background: var(--wp--preset--color--yellow, #FFE500);
    color: var(--wp--preset--color--black, #1A1A25);
    font-size: 12px;
    font-weight: 600;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.print-pdf-hint::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--wp--preset--color--black, #1A1A25);
}

/* wp-blocks */