/* COLORS */

:root {
    --nav-height: 84.4px;

    --red: #BE1E2D;
    --bordo: #461111;
    --brick: #A13333;
    --bcc-1: #BE1E2D;

    --black: #1D1D1D;
    --antracyte: #16171D;
    --graphite: #313235;
    --content: #3F3F3F;
    --input: #979797;
    --bg: #F6F6F8;

    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-900: #111928;
}

/* COLORS */

/* FONTS */

@font-face {
    font-family: 'Alegreya';
    src: url('../fonts/woff2/alegreya-v39-latin_latin-ext-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya';
    src: url('../fonts/woff2/alegreya-v39-latin_latin-ext-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya';
    src: url('../fonts/woff2/alegreya-v39-latin_latin-ext-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya';
    src: url('../fonts/woff2/alegreya-v39-latin_latin-ext-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url('../fonts/woff2/alegreya-sans-v26-latin_latin-ext-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url('../fonts/woff2/alegreya-sans-v26-latin_latin-ext-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url('../fonts/woff2/alegreya-sans-v26-latin_latin-ext-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya Sans SC';
    src: url('../fonts/woff2/alegreya-sans-sc-v24-latin_latin-ext-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya Sans SC';
    src: url('../fonts/woff2/alegreya-sans-sc-v24-latin_latin-ext-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya Sans SC';
    src: url('../fonts/woff2/alegreya-sans-sc-v24-latin_latin-ext-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya Sans SC';
    src: url('../fonts/woff2/alegreya-sans-sc-v24-latin_latin-ext-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Playfair Display + Inter - zgodnie z makietami (bbc-website-202.netlify.app)
   i motywem Portalu. Self-hosted woff2 w assets/fonts/woff2. */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/woff2/playfair-display-v40-latin-var.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/woff2/playfair-display-v40-latin-ext-var.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/woff2/playfair-display-v40-latin-italic-var.woff2') format('woff2');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/woff2/playfair-display-v40-latin-ext-italic-var.woff2') format('woff2');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/woff2/inter-v20-latin-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/woff2/inter-v20-latin-ext-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113;
}

/* FONTS */

/* DEFAULTS */

html {
    height: 100%;
    scroll-behavior: smooth;
    background: #fff;
}

body {
    background: #fff;
    font-family: "Inter", "Arial", sans-serif;
    color: var(--content);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    font-variant-numeric: lining-nums tabular-nums;
}

/* Link „Przejdź do treści" - niewidoczny do czasu otrzymania fokusu (Tab). */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 20px;
    background: #16171d;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top .15s ease;
}

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

/* Front publiczny - nieco mniejsza typografia bazowa (Portal zostaje na 18px) */
body:not(.is-portal-app) {
    font-size: 16px;
}

@media (max-width:1024px) {

    body:not(.is-portal-app) {
        font-size: 15px;
    }
}

img,
object,
embed {
    max-width: 100%;
}

a:hover,
a:focus,
a:active {
    outline: none !important;
}

strong,
b {
    font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: "Playfair Display", Georgia, serif;
    color: var(--black);
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

h1,
.h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 80px;
}

h2,
.h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 40px;
}

h3,
.h3 {
    font-size: 28px;
    font-weight: 400;
}

h4,
.h4 {
    font-size: 22px;
    font-weight: 500;
}

h5,
.h5,
h6,
.h6 {
    font-size: 13px;
}

@media (max-width:1440px) {

    h1,
    .h1 {
        font-size: 54px;
    }

    h2,
    .h2 {
        font-size: 32px;
    }

    h3,
    .h3 {
        font-size: 23px;
    }
}

/* ul,
ol {
    font-weight: 500;
} */

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none !important;
    transition: color .3s ease;
}

p a {
    color: var(--red);
}

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

picture {
    display: flex;
    /* height: auto; */
    height: 100%;
}

input[type='submit'],
button {
    outline: none !important;
    background-color: transparent;
    cursor: pointer;
}

body.nav-opened {
    overflow: hidden !important;
}

*::selection {
    color: #fff;
    background: var(--red);
}

* {
    -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: 1140px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

.container-fw {
    max-width: 100%;
}

body.wide-container .container,
.container-wide {
    max-width: 1320px;
}

body.search-results .container-md,
.container-md {
    max-width: 1140px;
}

.container-sm {
    max-width: 960px;
}

body.bg-custom main {
    background-color: var(--bg);
}

ul.wp-block-list {
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    text-align: left;
}

ul.wp-block-list li {
    position: relative;
    list-style-type: none;
    padding-left: 36px;
}

ul.wp-block-list li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url(../images/list-check.svg);
    background-size: cover;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
}

@media (max-width:991px) {
    ul.wp-block-list li {
        padding-left: 20px;
    }

    ul.wp-block-list li::before {
        left: 0;
    }
}

.is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    padding-left: 15px;
    padding-right: 15px;
}

.is-layout-constrained.alignwide> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: var(--wp--style--global--wide-size);
    padding-left: 15px;
    padding-right: 15px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
    transition: padding .3s ease;
}

.grecaptcha-badge {
    display: none !important;
}

.w-100 {
    width: 100%;
}

/* btns */

.btn {
    color: #fff;
    font-family: 'Inter';
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 1.8px;
    text-transform: capitalize;
    font-variant-numeric: lining-nums proportional-nums;
    padding: 13px 32px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 0;
    transition: color .3s ease, background .3s ease, border .3s ease, filter .3s ease;
    position: relative;
    text-align: center;
}

.btn.disabled,
.btn[disabled] {
    pointer-events: none;
    filter: grayscale(0.5);
}

.btn svg {
    min-width: 12px;
}

.btn svg path {
    fill: #fff;
    stroke: #fff;
}

.btn svg path.no-fill {
    fill: transparent;
}

.btn svg path.no-stroke {
    stroke: transparent;
}

.btn-normal {
    background: var(--red);
}

.btn-normal:hover,
.btn-normal:active,
.btn-normal:focus-within {
    background: var(--brick);
    color: #fff;
}

.btn-normal-white {
    background: #fff;
    color: var(--antracyte);
    gap: 26px;
}

.btn-normal-white svg path {
    fill: var(--antracyte);
    stroke: var(--antracyte);
    transition: fill .3s ease, stroke .3s ease;
}

.btn-normal-white:hover,
.btn-normal-white:active,
.btn-normal-white:focus-within {
    background: var(--antracyte);
    color: #fff;
}

.btn-normal-white:hover svg path,
.btn-normal-white:active svg path,
.btn-normal-white:focus-within svg path {
    fill: #fff;
    stroke: #fff;
}

.btn-outline {
    border: 1px solid var(--graphite);
    color: var(--graphite);
    background-color: var(--bcc-1);
    padding: 19px 40px;
    gap: 26px;
    z-index: 4;
}

.btn-primary {
    padding: 20px 40px;
    gap: 26px;
    background: var(--graphite);
    z-index: 4;
}

.btn-white {
    padding: 20px 40px;
    gap: 26px;
    background: var(--brick);
    z-index: 4;
    color: var(--graphite);
}

.btn-outline svg path {
    fill: var(--graphite);
    stroke: var(--graphite);
}

.btn-white svg path {
    fill: var(--graphite);
    stroke: var(--graphite);
}

.btn-graphite {
    padding: 20px 40px;
    gap: 26px;
    background: var(--brick);
    z-index: 4;
    color: #fff;
}

.btn-graphite svg path {
    fill: #fff;
    stroke: #fff;
}

.btn-outline::before,
.btn-graphite::before,
.btn-primary::before,
.btn-white::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 46px) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 46px) 100%, 0 100%);
    z-index: -1;
    transition: clip-path 0.3s ease;
}

.btn-primary::before {
    background-color: var(--brick);
}

.btn-white::before {
    background-color: #fff;
}

.btn-outline::before {
    background-color: #fff;
}

.btn-graphite::before {
    background-color: var(--graphite);
}

.btn-normal-white.has-icon:not(.icon-reverse),
.btn-outline.has-icon:not(.icon-reverse),
.btn-graphite.has-icon:not(.icon-reverse),
.btn-white.has-icon:not(.icon-reverse),
.btn-primary.has-icon:not(.icon-reverse) {
    padding-right: 32px;
}

.btn-normal-white.has-icon.icon-reverse,
.btn-outline.has-icon.icon-reverse,
.btn-graphite.has-icon.icon-reverse,
.btn-white.has-icon.icon-reverse,
.btn-primary.has-icon.icon-reverse {
    padding-left: 32px;
}

.btn-normal-white svg,
.btn-outline svg,
.btn-graphite svg,
.btn-white svg,
.btn-primary svg {
    max-width: 12px;
    height: auto;
}

.btn-outline:hover::before,
.btn-outline:active::before,
.btn-outline:focus-within::before,
.btn-graphite:hover::before,
.btn-graphite:active::before,
.btn-graphite:focus-within::before,
.btn-white:hover::before,
.btn-white:active::before,
.btn-white:focus-within::before,
.btn-primary:hover::before,
.btn-primary:active::before,
.btn-primary:focus-within::before {
    clip-path: polygon(0 0, 100% 0, 100% calc(100%), calc(100%) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100%), calc(100%) 100%, 0 100%);
}

.btn-portal {
    border-radius: 20px 20px 0 20px;
    border: 1px solid #A13333;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.4px;
    background: linear-gradient(93deg, #A13333 0%, #313235 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 4px 12px 4px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-radius .3s ease;
}

.btn-portal:hover {
    border-radius: 0;
}

.btn-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.icon-reverse {
    flex-direction: row-reverse;
}

/* btns */

.hvr-stroke {
    transition: stroke .3s ease;
}

.hvr-fill {
    transition: fill .3s ease;
}

.hvr-stroke,
.hvr-fill {
    transition: fill .3s ease, stroke .3s ease;
}

/* nav sticky */

.navbar-default {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    -webkit-transition: top .3s ease, box-shadow .3s ease, background .3s ease;
    transition: top .3s ease, box-shadow .3s ease, background .3s ease;
    z-index: 1002;
    background-color: #fff;
}

body.admin-bar .navbar-default {
    top: 32px;
}

/* nav sticky */

/* nav */

.nav-wrapper {
    padding: 20px 0;
    position: relative;
    transition: padding .3s ease;
}

.nav-wrapper-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-wrapper .main-logo {
    transition: transform .3s ease;
    position: relative;
    z-index: 9;
    max-width: 55px;
    height: auto;
}

.nav-wrapper .hamburger {
    display: none;
    /* <button> zamiast <div> - dostępny z klawiatury (WCAG 2.1.1) */
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
}

.nav-wrapper-scroll {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.nav-wrapper-scroll.nav-wrapper-outer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 40px;
    padding: 0;
    margin: 0;
    scrollbar-width: thin;
}

.navbar-nav a {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.64px;
    font-family: 'Inter';
    font-weight: 400;
}

.navbar-nav a.dropdown-toggle {
    position: relative;
}

.navbar-nav a.dropdown-toggle::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    mask-image: url(../images/nav-dropdown.svg);
    width: 15px;
    height: 15px;
    mask-size: cover;
    background: var(--input);
    transition: transform .3s ease, background .3s ease;
}

/* .navbar-nav li.active a.dropdown-toggle::before, */
.navbar-nav a.dropdown-toggle:hover::before {
    background-color: #000;
    transform: translateX(-50%) translateY(5px);
}

/* .navbar-nav .menu-item-type-custom:not(.disable-bold) a[target="_blank"] {
    font-weight: 700;
} */


@media (min-width:1199px) {
    .navbar-nav a {
        padding: 32px 0;
        display: flex;
    }

    .navbar-nav a.dropdown-toggle::before {
        top: 60px;
    }
}

.nav-primary .home-url {
    display: flex;
    align-items: center;
}

.navbar-nav li.active>a,
.navbar-nav a:hover {
    color: var(--red);
}

.nav-primary .nav-social {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.nav-primary .nav-social a {
    width: calc(50% - 1px);
    max-width: 40px;
    border: 1px solid rgba(151, 151, 151, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    height: auto;
    transition: background .3s ease;
}

.nav-primary .nav-social a:hover {
    background-color: var(--brick);
}

.nav-primary .nav-social a:hover svg path {
    transition: fill .3s ease, stroke .3s ease;
}

.nav-primary .nav-social a:hover .hvr-stroke path {
    stroke: #fff
}

.nav-primary .nav-social a:hover .hvr-fill path {
    fill: #fff
}

/* .navbar-nav>li {
    position: relative;
} */

.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 1168px;
    width: auto;
    padding: 32px;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) translateX(-50%);
    transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
    z-index: 100;
}

.navbar-nav .dropdown-menu>* {
    width: calc(33.33333333% - 16px);
}

.navbar-nav>li>.dropdown-menu {
    background: rgba(246, 246, 248, 0.95);
    backdrop-filter: blur(7.5px);
}

.navbar-nav li:hover>.dropdown-menu,
.navbar-nav li>.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(20px) translateX(-50%);
    transition: opacity .3s ease, transform .6s ease, visibility 0s 0s;
}

/* .dropdown-menu li {
    position: relative;
} */

.dropdown-menu li.dropdown {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 
.dropdown-menu li.is-title>a {
    color: var(--input);
    font-size: 15px;
    text-transform: capitalize;
    pointer-events: none;
} */

.dropdown-menu a {
    display: block;
    color: var(--black);
    text-decoration: none;
    font-size: 16px;
    transition: .3s;
    border: 1px solid var(--brick);
    background-color: var(--bg);
    padding: 24px;
    color: #000 !important;
    white-space: normal;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
}

.current_page_ancestor a.dropdown-toggle {
    color: var(--brick);
}

.dropdown-menu li.active a,
.dropdown-menu a:hover {
    background-color: var(--brick);
    color: #fff !important;
}

.dropdown-menu a svg {
    width: 40px;
    height: auto;
    aspect-ratio: 1;
}

.dropdown-menu .menu-item-type-custom a {
    font-weight: 400;
}

/* 
.dropdown-menu .dropdown-menu {
    position: relative;
    top: auto;
    left: auto;
    min-width: auto;
    transform: none;
    visibility: visible;
    opacity: 1;
    padding: 0;
} */


/* .dropdown-menu .dropdown-menu a {
    padding-left: 40px;
    position: relative;
}

.dropdown-menu .dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url(../images/subnav-arrow.svg);
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform .3s ease;
}

.dropdown-menu .dropdown-menu a:hover::before {
    transform: translateY(-50%) translatex(10px);
} */

/* nav search */

.navbar-default .nav-search {
    position: relative;
}

.navbar-default .search-toggle {
    background: var(--bg);
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: tranform .3s ease, background .3s ease, opacity .3s ease;
}

.navbar-default .nav-search.active .search-toggle,
.navbar-default .search-toggle:hover {
    background: var(--red);
}

.navbar-default .nav-search.active .search-toggle svg path,
.navbar-default .search-toggle:hover svg path {
    fill: var(--bg);
}

.navbar-default .search-dropdown {
    position: absolute;
    right: 0;
    top: 120%;
    width: 320px;
    padding: 8px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    background: var(--bg);
    transition: .25s;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.15);
}

.navbar-default .nav-search.active .search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-default .search-dropdown input {
    flex: 1;
    border-bottom: 1px solid var(--red) !important;
    background: transparent !important;
    font-family: 'Playfair Display';
    /* padding-inline: 0 !important; */
}

.navbar-default .search-dropdown button {
    display: none;
}

.nav-wrapper-lower {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-wrapper-portal {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-wrapper-portal ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style-type: none;
    border-bottom: 1px solid #979797;
}

.nav-wrapper-portal ul a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 16px;
    font-family: 'Playfair Display';
    color: var(--antracyte);
    text-transform: capitalize;
    letter-spacing: 1.6px;
    font-weight: 500;
}

.nav-wrapper-portal ul a:hover {
    color: var(--bordo);
}

.nav-wrapper-portal ul a:hover svg .hvr-fill {
    fill: var(--bordo);
}

.nav-wrapper-portal ul a:hover svg .hvr-stroke {
    stroke: var(--bordo);
}

/* nav search */

/* Desktop menu jest za szerokie miedzy ~1200 a ~1400px (hamburger wchodzi
   dopiero <=1199): zaciskamy odstepy/font i chowamy ikony social, zeby menu
   nie zachodzilo na logo ani sie nie zawijalo. */
@media (min-width:1200px) and (max-width:1400px) {
    .nav-wrapper-scroll {
        gap: 24px;
    }

    .navbar-nav {
        gap: 22px;
    }

    .navbar-nav a {
        font-size: 15px;
        letter-spacing: .2px;
    }

    .nav-social {
        display: none;
    }
}

@media (min-width: 1200px) and (max-width: 1300px) {
    .navbar-nav {
        gap: 24px;
    }
}

@media (min-width:1200px) and (max-width:1300px) {
    .nav-wrapper-scroll {
        gap: 18px;
    }

    .navbar-nav {
        gap: 16px;
    }

    .navbar-nav a {
        font-size: 14px;
        letter-spacing: 0;
    }
}

@media (min-width:1200px) {
    .hamburger-logo {
        display: none;
    }
}

@media (max-width:1199px) {

    .nav-primary {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        transform: translateX(100%);
        transition: transform .3s ease;
        padding: 32px 32px 48px;
        background-color: #fff;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        margin-top: 48px;
        /* gap: 32px; */
        overflow: hidden;
    }

    .nav-wrapper-scroll {
        max-height: calc(100dvh - var(--nav-height));
        min-height: calc(100dvh - var(--nav-height));
        height: calc(100dvh - var(--nav-height));
        padding-bottom: 60px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 32px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        width: 100%;
    }

    .nav-wrapper-scroll.nav-wrapper-outer {
        flex-direction: column-reverse;
        align-items: flex-end;
        justify-content: flex-end;
        gap: 32px;
    }

    .nav-wrapper-scroll.nav-wrapper-outer>* {
        width: 100%;
    }

    .nav-wrapper-portal ul,
    .nav-wrapper-portal {
        flex-wrap: wrap;
        align-items: flex-start
    }

    .nav-wrapper-portal ul {
        border: 0;
        gap: 16px;
    }

    .nav-primary.active {
        transform: translateX(0);
    }

    .navbar-nav li.active>a,
    .navbar-nav a:hover {
        color: var(--red);
    }

    .navbar-nav>li>.dropdown-menu {
        background-color: transparent;
    }

    .nav-wrapper {
        padding: 12px 0;
        position: relative;
    }

    .nav-wrapper .hamburger {
        display: none;
        flex-direction: column;
        cursor: pointer;
        z-index: 99;
    }

    .navbar-nav .dropdown-menu>* {
        width: 100%;
    }

    .nav-wrapper .bar {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--graphite);
        margin: 4px 0;
        transition: 0.4s;
    }

    .nav-wrapper .hamburger {
        display: flex;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        height: 100%;
        width: 100%;
    }

    .nav-menu-wrapper {
        width: 100%;
        padding: 0;
    }

    .nav-menu-wrapper.active nav {
        transform: translateX(0);
    }

    .nav-wrapper .bar.active:nth-child(1) {
        transform: rotate(-45deg) translate(-8px, 6px);
    }

    .nav-wrapper .bar.active:nth-child(2) {
        opacity: 0;
    }

    .nav-wrapper .bar.active:nth-child(3) {
        transform: rotate(45deg) translate(-8px, -6px);
    }

    .nav-menu-wrapper {
        border-bottom: 0;
    }

    .nav-primary .home-url {
        display: none;
    }

    .menu-menu-glowne-container {
        width: 100%;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .navbar-nav>li {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
        transition: gap .3s ease;
    }

    .navbar-nav>li.active {
        gap: 24px;
    }

    .navbar-nav>li>a {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
    }

    /* dropdown */

    .dropdown-menu a {
        white-space: normal;
        gap: 24px;
        padding: 16px;
    }

    .dropdown-menu a svg {
        width: 32px;
    }


    .navbar-nav a.dropdown-toggle::before {
        left: auto;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .navbar-nav a.dropdown-toggle:hover::before {
        transform: translateY(-50%);
    }

    .navbar-nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height .35s ease;
        max-width: 100%;
        min-width: 100%;
        transform: translateY(0) translateX(0) !important;
        gap: 16px;
    }

    .navbar-nav li.active>.dropdown-menu {
        max-height: 1500px;
    }

    .dropdown-menu li.dropdown {
        gap: 8px;
    }

    .dropdown-menu {
        position: relative;
        overflow: auto;
        max-height: 1500px;
        padding-left: 0;
        min-width: 100%;
    }

    .dropdown-menu a:hover::before {
        transform: translateY(-50%) translatex(8px);
    }

    /* nav search */

    .navbar-default .search-dropdown {
        position: relative;
        right: auto;
        top: auto;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        width: 100%;
    }

    .navbar-default .search-dropdown form {
        display: flex;
        align-items: center;
    }

    .navbar-default .search-dropdown input {
        padding: 14px 16px !important;
    }

    .navbar-default .search-toggle {
        display: none;
    }

    .navbar-default .nav-search {
        display: flex;
        align-items: center;
    }

    .navbar-default .search-dropdown button {
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        width: 49px;
        aspect-ratio: 1;
        border: 0;
        background-color: transparent;
        transition: background .3s ease;
        border-bottom: 1px solid var(--red);
    }

    .navbar-default .search-dropdown button:hover {
        background-color: var(--red);
    }

    .navbar-default .search-dropdown button:hover svg path {
        fill: var(--bg)
    }

    /* nav search */
}

@media (max-width:679px) {

    .nav-wrapper-portal,
    .nav-wrapper-portal ul {
        flex-direction: column;
    }

    .nav-wrapper-portal ul a {
        padding-inline: 0;
    }
}

@media (max-width:380px) {
    .nav-primary {
        padding: 32px 16px 48px;
    }
}

/* nav */

/* footer */

footer {
    background-color: var(--graphite);
    /* WCAG AA: na grafitowym tle #979797 (--input) dawał 3,6:1 - jaśniejszy szary 4,6:1 */
    color: #ACACAC;
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    background-image: url(../images/footer-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

footer a:hover {
    color: #fff;
}

footer .footer-upper {
    padding: 64px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

footer .footer-upper-wrapper {
    display: flex;
}

footer .footer-info-column {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 16px;
    line-height: 1.37;
}

footer .footer-social {
    display: flex;
    flex-wrap: wrap;
}

footer .footer-social a {
    width: 50px;
    aspect-ratio: 1;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    transition: background .3s ease;
}

footer .footer-social a:nth-child(2) {
    background: rgba(190, 30, 45, 0.50);
}

footer .footer-social a:nth-child(4) {
    background: rgba(255, 255, 255, 0.10);
}

footer .footer-social a:hover {
    background-color: var(--brick);
}

footer .footer-nav-column {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

footer .footer-nav-column .h5,
footer .footer-nav-column h5 {
    color: #fff;
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.44px;
    line-height: 1.36;
}

footer .footer-nav-column ul {
    list-style-type: disclosure-closed;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 26px;
}

footer .footer-nav-column li {
    transition: color .3s ease;
}

footer .footer-nav-column li.active,
footer .footer-nav-column li:hover {
    color: #fff;
}

footer .footer-nav-column a {
    padding-left: 8px;
}

footer .footer-lower {
    padding: 36px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 60px;
}

footer .footer-lower em {
    font-style: normal;
    /* WCAG AA: --brick na grafitowym tle 1,5:1 - jasny odcień tej samej czerwieni 4,6:1 */
    color: #D39F9F;
}

footer .footer-copy {
    font-size: 16px;
}

footer .footer-lower ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 60px;
}

@media (max-width:1440px) {
    footer .footer-upper {
        padding: 48px 0;
    }

    footer .footer-info-column {
        width: 30%;
    }

    footer .footer-nav-column {
        width: 25%;
    }

    footer .footer-lower ul,
    footer .footer-lower {
        gap: 40px;
    }
}

@media (max-width:1024px) {
    footer .footer-upper-wrapper {
        flex-wrap: wrap;
        gap: 16px;
    }

    footer .footer-upper-wrapper>* {
        width: calc(50% - 8px);
    }

    footer .footer-lower {
        flex-wrap: wrap;
        padding: 16px 0;
        gap: 16px;
    }

    footer .footer-lower ul {
        gap: 16px;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    footer .footer-lower ul,
    footer .footer-lower ul a {
        font-size: 16px;
    }

    footer .footer-copy {
        text-align: center;
        width: 100%;
    }

    footer .footer-lower ul .li-separator:first-child {
        display: none;
    }

}

@media (max-width:679px) {
    footer .footer-upper-wrapper>* {
        width: 100%;
    }

    footer .footer-lower ul {
        flex-direction: column;
        gap: 8px;
    }

    footer .footer-lower .li-separator {
        display: none;
    }

    footer .footer-logo svg {
        max-width: 90px;
        height: auto;
    }
}

/* footer */

main {
    padding-top: 76px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.single-oferty-biznesowe .single-offer-post,
.single-poza-biznesem .single-offer-post,
main>section:last-child:not(.cta-block) {
    margin-bottom: 48px;
}

body.admin-bar main {
    padding-top: 96px;
}

@media (max-width:1199px) {
    main {
        padding-top: 64px;
    }

    .single-oferty-biznesowe .single-offer-post,
    .single-poza-biznesem .single-offer-post,
    main>section:last-child:not(.cta-block) {
        margin-bottom: 32px;
    }
}

/* breadcrumb */

.breadcrumb {
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.80);
    font-family: "Inter" !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.breadcrumb {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.80);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.80);
}

.breadcrumb a:hover {
    color: #fff;
}

@media (max-width:991px) {

    .breadcrumb,
    .breadcrumb a {
        font-size: 18px;
    }
}

/* breadcrumb */

/* back-top */

.scrollTop {
    position: fixed;
    bottom: 24px;
    right: 150px;
    background-color: var(--brick);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, clip-path .3s ease;
    z-index: 4;
}

.scrollTop::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    z-index: -1;
    transition: clip-path 0.3s ease;
    background-color: var(--antracyte)
}

.scrollTop:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% calc(100%), calc(100%) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100%), calc(100%) 100%, 0 100%);
}

.scrollTop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width:1900px) {
    .scrollTop {
        right: 24px;
    }
}

@media (max-width:1024px) {
    .scrollTop {
        width: 36px;
        height: 36px;
    }

    .scrollTop svg {
        max-width: 12px;
        height: auto;
    }

    .scrollTop::before {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
        -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    }
}

/* back-top */

/* block-title */

.block-title {
    position: relative;
}

.block-title.title-inner {
    margin-left: 38px;
}

.block-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 35px;
    background-image: url(../images/title-icon.svg);
    background-repeat: no-repeat;
    background-size: cover;
}

.block-title h1,
.block-title h2 {
    color: var(--antracyte);
    padding-top: 25px;
    padding-left: 32px;
    line-height: 0.95;
}

@media (max-width:991px) {
    .block-title.title-inner {
        margin-left: 0;
    }
}

/* block-title */

/* inputs */

.search-dropdown input,
.search-input-wrapper input:not([type="submit"]),
.search-input-wrapper textarea,
.acf-block-preview textarea,
.wp-front textarea,
.acf-block-preview input:not([type="submit"]),
.wp-front input:not([type="submit"]) {
    padding: 14px 16px;
    color: var(--input);
    background-color: #fff;
    border: 0;
    line-height: 1;
    font-size: 16px;
    font-weight: 400;
    width: 100%;
    max-height: 50px;
}

.wp-front.single-portal input:not([type="submit"]),
.single-portal input:not([type="submit"]) {
    padding: 8px 4px;
    color: var(--antracyte);
    background-color: #fff;
    border: 0;
    border-bottom: 1px solid #948E84; /* WCAG AA 3:1 */
    letter-spacing: 0.32px;
    line-height: 1;
    font-size: 16px;
    font-weight: 400;
    width: 100%;
}

.single-portal .blog-posts .select {
    max-height: auto !important;
}

.blog-posts input:not([type="submit"]) {
    padding: 14px 16px !important;
}

.wp-front.single-portal input:not([type="submit"])::placeholder,
.single-portal input:not([type="submit"])::placeholder {
    color: var(--input);
}

.wp-front textarea {
    max-height: 100%;
    height: 80px;
    width: 100%;
    min-height: 50px;
    resize: vertical;
}

.custom-select {
    width: 100%;
    /* padding: 16px; */
    border: 0;
    appearance: none;
    font-size: 16px;
    color: var(--input);
    height: 100%;
}

.single-portal .custom-select {
    padding: 7px 4px;
}

.s-hidden {
    visibility: hidden;
    padding-right: 10px;
}

.select {
    cursor: pointer;
    display: inline-block;
    position: relative;
    width: 100%;
    font-size: 16px;
    font-family: 'Inter';
    line-height: 1;
    font-weight: 400;
    max-height: 50px;
    padding: 16px;
}

.single-portal .select {
    max-height: 39px;
    height: 100%;
    padding: 0;
}

.styledSelect {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 16px;
    color: var(--antracyte);
    background-color: #fff;
    border: 0;
    line-height: 1;
    font-size: 16px;
    font-weight: 400;
    width: 100%;
}

.styledSelect.is-placeholder {
    color: var(--input);
}

.single-portal .styledSelect {
    padding: 8px 4px;
    border-bottom: 1px solid #948E84; /* WCAG AA 3:1 */
}

.styledSelect:after {
    content: "";
    width: 0;
    height: 0;
    background-image: url('../images/arrow-down.svg');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 13px;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.single-portal .styledSelect:after {
    padding: 8px 4px;
    background-image: url('../images/angle-down.svg');
    background-position: right 12px center;
    background-size: 12px;
}

.styledSelect:active,
.styledSelect.active {
    background-color: #fff;
}

.options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    margin: 0 0;
    padding: 0 0;
    list-style: none;
    border: 1px solid transparent;
    background-color: white;
    font-size: 16px;
    font-family: 'Inter';
    line-height: 1;
    font-weight: 400;
    max-height: 400px;
    overflow: auto;
}

.options li {
    padding: 16px;
}

.options li:hover {
    background-color: var(--brick);
    color: white;
}

.input-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.select-single,
.input-single {
    padding: 8px;
    width: calc(50% - 8px);
}

.select-single label,
.input-single label {
    font-size: 18px;
    color: #1d1d1d;
    font-weight: 500;
    font-family: 'Playfair Display';
}

@media(max-width:768px) {

    .select-single,
    .input-single {
        width: 100%;
    }
}

/* inputs */

/* single post/event */

.single-blog-post {
    padding: 72px 0 48px;
}

div.single-review-post {
    padding: 0 0 48px;
}

div.single-review-post .post-thumb {
    line-height: 0.8;
    position: relative;
}

div.single-review-post .post-thumb img {
    aspect-ratio: 1320 / 200;
    object-fit: cover;
    width: 100%;
}

div.single-event-post .post-thumb img {
    width: 100%;
}

div.single-event-post .post-thumb {
    aspect-ratio: 1320 / 490;
    line-height: 0.8;
    position: relative;
}

div.single-review-post .post-thumb::before,
div.single-event-post .post-thumb::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.20);
}

div.single-offer-wrapper-outer {
    display: flex;
    flex-direction: column;
    gap: 32px 48px;
    width: 100%;
}

div.single-event-wrapper-outer {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}

.single-post-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
}

.single-post-content {
    width: calc(66.66666667% - 16px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

div.single-komisje-post .single-post-content {
    gap: 36px;
}

.single-post-content.without-sidebar {
    width: 100%;
}

.single-post-sidebar {
    width: calc(33.33333334% - 16px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 102px;
}

body.admin-bar .single-post-sidebar {
    top: var(--nav-height);
}

.post-sidebar-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: #F6F6F6;
}

.post-sidebar-box>h3 {
    font-size: 24px;
    font-weight: 500;
    color: #1D1D1D;
}

.blog-search .blog-search-input {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.blog-search .blog-search-input button {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    height: auto;
    border: 0;
    cursor: pointer;
    position: relative;
    background: var(--red);
}

.blog-search .blog-search-input button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    z-index: 0;
    transition: clip-path 0.3s ease;
    background-color: var(--antracyte);
}

.blog-search .blog-search-input button:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% calc(100%), calc(100%) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100%), calc(100%) 100%, 0 100%);
}

.blog-search .blog-search-input button svg {
    width: 14px;
    height: 14px;
    aspect-ratio: 1;
    z-index: 4;
    position: relative;
}

.blog-categories-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.blog-categories-list a {
    color: var(--content);
    font-size: 16px;
    padding: 17px 16px;
    line-height: 1;
    background-color: #fff;
    display: flex;
    width: 100%;
    transition: color .3s ease, background .3s ease;
}

.blog-categories-list a.active,
.blog-categories-list a:hover {
    background-color: var(--brick);
    color: #fff;
}

.share-post-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.share-post-wrapper.wrapper-mobile {
    display: none;
}

.share-post-single {
    width: 50px;
    height: auto;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF;
    transition: background .3s ease;
}

.share-post-single:nth-child(2) {
    background-color: var(--red);
}

.share-post-single:nth-child(4) {
    background: var(--input)
}

.share-post-single:hover {
    background-color: var(--brick);
}

.single-offer-post .post-thumb,
.single-blog-post .post-thumb {
    position: relative;
    line-height: 0.8;
    margin-bottom: 8px;
    display: flex;
}

.single-blog-post .post-thumb.post-promoted {
    border: 1px solid var(--red);
    position: relative;
    padding: 20px;
}

.single-blog-post .post-thumb.post-promoted::before {
    content: 'ARTYKUŁ SPONSOROWANY';
    position: absolute;
    right: 5px;
    top: 5px;
    font-family: 'Inter';
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--red);
    width: auto;
    height: auto;
    text-align: right;
}

.single-offer-post .post-thumb img,
.single-blog-post .post-thumb img {
    aspect-ratio: 872 / 340;
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* Aktualności (single post): zdjęcie główne w proporcji 4:3. */
.single-blog-post .post-thumb img {
    aspect-ratio: 4 / 3;
}

.single-blog-post .post-thumb .cat-badges {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.single-blog-post .post-thumb .badge-single {
    background-color: #1d1d1d;
    padding: 8px 16px;
    color: #FFF;
    font-family: "Playfair Display";
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: 0.8px;
    transition: background .3s ease;
}

.single-blog-post .post-thumb .badge-single:hover {
    background-color: var(--brick);
}

.single-offer-post .post-date,
.single-blog-post .post-date {
    color: #737478; /* WCAG AA (było #A0A1A6, 2,6:1) */
    font-family: "Playfair Display";
    font-size: 16px;
    line-height: 1.5;
}

.current-post-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-expert-post .current-post-title {
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

.single-expert-post .post-data {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.single-expert-post .post-thumb {
    min-width: 230px;
    max-width: 230px;
    aspect-ratio: 1;
    width: 100%;
    display: flex;
    position: relative;
}

.single-expert-post .post-thumb img {
    object-fit: cover;
    object-position: 50% 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    border-radius: 999px;
}

.single-expert-post .post-data p {
    text-transform: uppercase;
}

.single-expert-post .post-data div {
    display: flex;
    flex-direction: column;
}

.single-expert-post .post-data div:last-child {
    padding: 4px 0;
}

.current-post-title h1 {
    color: #1d1d1d;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 16px;
}

.single-expert-post .current-post-title h1 {
    margin: 0;
}

.current-post-title .post-author {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #737478; /* WCAG AA (było #A0A1A6, 2,6:1) */
    font-family: "Playfair Display";
    font-size: 16px;
    line-height: 1;
}

.current-post-title .author-thumb {
    width: 48px;
    height: 48px;
    aspect-ratio: 1;
}

.current-post-title .author-thumb img {
    border-radius: 999px;
}

.single-post-wrapper .post-tags {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
}

.single-post-wrapper .post-tags>p {
    font-size: 24px;
    font-weight: 500;
    color: #1d1d1d;
}

.single-post-wrapper .post-tags-wrapper {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.single-post-wrapper .post-tag-single {
    border: 1px solid var(--input);
    background: #F6F6F6;
    padding: 7px 16px;
    color: var(--content);
    font-size: 16px;
    line-height: 1;
    transition: background .3s ease, color .3s ease;
}

.single-post-wrapper .post-tag-single:hover {
    background-color: var(--input);
    color: #fff;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 32px 0;
    border-top: 1px solid rgba(29, 29, 29, 0.10);
    border-bottom: 1px solid rgba(29, 29, 29, 0.10);
}

.post-navigation a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d1d1d;
    font-weight: 700;
    font-family: 'Playfair Display';
}

.post-navigation a svg path {
    transition: stroke .3s ease;
}

.post-navigation a:hover {
    color: var(--brick);
}

.post-navigation a:hover svg path {
    stroke: var(--brick);
}

.post-navigation a.prev-post {
    margin-right: auto;
}

.post-navigation a.next-post {
    margin-left: auto;
}

.author-data-wrapper {
    background: #F6F6F6;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.author-data-wrapper .author-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.author-data-wrapper .author-text h3 {
    color: #1d1d1d;
    font-size: 24px;
    font-weight: 500;
}

.author-data-wrapper .author-image {
    min-width: 112px;
    display: flex;
    align-items: center;
}

.author-data-wrapper .author-social {
    min-width: 50px;
    display: flex;
    flex-direction: column;
}

.author-data-wrapper .author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    transition: background .3s ease;
    min-width: 50px;
}

.author-data-wrapper .author-social a.social-fb {
    background-color: #1d1d1d;
}

.author-data-wrapper .author-social a.social-in {
    background-color: #fff
}

.author-data-wrapper .author-social a:hover {
    background-color: var(--brick);
}

.post-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-content h3 {
    font-size: 24px;
    font-weight: 500;
}

.post-content p {
    padding: 8px 0;
}

.post-content p:empty {
    display: none;
}

.post-content h3+p {
    margin-top: -8px;
}

.post-content:not(.single-komisje-post .post-content) blockquote {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 32px;
    gap: 32px;
    border: 1px solid var(--input);
    font-size: 20px;
    margin: 8px 0;
}

.post-content:not(.single-komisje-post .post-content) blockquote>* {
    margin: 0;
}

/* Komisje: blockquote traktujemy jak zwykły div - bez ramki i wcięć przeglądarki. */
.single-komisje-post .post-content blockquote {
    margin: 0;
    padding: 0;
}

.post-content:not(.single-komisje-post .post-content) blockquote img {
    min-width: 64px;
}

.event-post-back a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0A0A0A;
    font-family: "Playfair Display";
    font-size: 18px;
    font-weight: 700;
}

.event-post-back a svg path {
    transition: stroke .3s ease;
}

.event-post-back a:hover {
    color: var(--brick);
}

.event-post-back a:hover svg path {
    stroke: var(--brick);
}

.single-offer-post .post-sidebar-item:first-of-type {
    margin-top: -32px;
}

.single-offer-post .post-sidebar-item {
    padding: 32px;
    gap: 16px;
    display: flex;
    flex-direction: column;
}

.single-offer-post .single-post-sidebar {
    gap: 0;
}

.single-offer-post .key-informations ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.single-offer-post .key-informations li {
    font-size: 16px;
    line-height: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.single-offer-post .key-informations li a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.single-offer-post .key-icon {
    max-width: 16px;
    min-width: 16px;
}

.single-offer-post .key-label {
    color: var(--input);
}

.single-offer-post .key-informations .btn-wrapper {
    width: 100%;
    padding-left: 24px;
}

.post-sidebar-item .cat-badges h3 {
    font-size: 24px;
    color: #1d1d1d;
    font-weight: 500;
}

.post-sidebar-item .cat-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.post-sidebar-item .cat-badges a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.7px;
    font-family: 'Playfair Display';
    color: #fff;
    background-color: var(--bordo);
}

.post-sidebar-item.post-sidebar-cat-wrapper .tax-single {
    width: 100%;
    /* border-collapse: collapse; */
    border-spacing: 0 16px;
    table-layout: fixed;
}

.post-sidebar-item.post-sidebar-cat-wrapper .tax-single th {
    text-align: left;
    width: 25%;
}

.post-sidebar-item.post-sidebar-cat-wrapper .tax-single td {
    width: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.post-sidebar-item.post-sidebar-cat-wrapper .tax-single td .item {
    background-color: var(--content);
    padding: 4px 8px;
    color: #fff;
    font-size: 16px;
    font-family: 'Playfair Display';
}

.price-box-price {
    font-size: 48px;
    text-align: center;
    color: var(--red);
    font-family: "Playfair Display";
    font-weight: 500;
    padding: 8px 0;
    line-height: 1.2;
}

.location-box-content {
    font-size: 20px;
    font-family: 'Playfair Display';
}

.post-sidebar-box.box-dark {
    background-color: var(--graphite);
    padding-bottom: 48px;
    background-image: url(../images/event-agenda-box-bg.svg);
    background-repeat: no-repeat;
    background-position: bottom right;
    color: #fff;
    gap: 0;
}

.post-sidebar-box.box-dark h3 {
    color: #fff;
    font-size: 20px;
    line-height: 2;
}

.agenda-box-content p,
.agenda-box-content ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 20px;
    font-family: 'Playfair Display';
    line-height: 2;
}

.experts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.experts-wrapper .expert-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.experts-wrapper .expert-thumb {
    width: 64px;
    max-width: 64px;
    min-width: 64px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    display: flex;
}

.experts-wrapper .expert-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    aspect-ratio: 1;
}

.experts-wrapper .expert-content strong {
    font-size: 18px;
}

.experts-wrapper .expert-content {
    font-size: 14px;
    min-width: 0;
}

.experts-wrapper .expert-content a {
    color: inherit;
    text-decoration: none;
    transition: color .3s ease;
}

.experts-wrapper .expert-content a:hover {
    color: var(--brick);
}

.experts-wrapper .expert-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-offer-post .block-files {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.single-offer-post .post-additional-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-offer-post .file-single {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
    background: #F6F6F6;
    padding: 24px 32px;
}

.single-offer-post .file-single .file-icon {
    display: flex;
    align-items: center;
    padding: 0 9px;
    max-width: 80px;
    min-width: 80px;
    width: 100%;
}

.single-offer-post .file-single .file-title {
    color: var(--black);
    font-family: "Playfair Display";
    font-size: 18px;
    font-weight: 500;
    transition: color .3s ease;
}

.single-offer-post .block-files .btn-wrapper {
    justify-content: flex-end;
    margin-left: auto;
}

.single-offer-post .block-files .btn-outline::before {
    background-color: #F6F6F6;
}

@media (max-width:991px) {

    div.single-expert-post,
    div.single-event-post,
    .single-blog-post {
        padding: 36px 0;
    }

    .current-post-title h1 {
        font-size: 32px;
    }

    .post-content h2 {
        font-size: 24px;
    }

    .post-content h3 {
        font-size: 20px;
    }

    div.single-event-wrapper-outer {
        gap: 36px;
    }

    .single-post-sidebar,
    .single-post-content {
        width: 100%;
    }

    .single-post-sidebar {
        gap: 24px;
    }

    .post-sidebar-box {
        gap: 16px;
        padding: 16px;
    }

    .post-sidebar-box.box-dark {
        padding-bottom: 32px;
    }

    .post-content:not(.single-komisje-post .post-content) blockquote {
        padding: 16px;
        gap: 16px;
        font-size: 18px;
    }

    .price-box-price {
        font-size: 28px;
        padding: 0;
    }

    .single-post-wrapper .post-tags {
        padding: 16px;
        gap: 16px;
    }

    .single-post-wrapper .author-data-wrapper {
        padding: 16px;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .single-post-wrapper .post-tags-wrapper {
        gap: 8px;
    }

    .single-post-wrapper .post-tags>p {
        font-size: 18px;
    }

    .single-post-wrapper .post-tag-single {
        padding: 4px 12px;
    }

    .author-data-wrapper .author-text {
        order: 3;
        width: 100%;
    }

    .author-data-wrapper .author-social {
        min-width: 100px;
        flex-direction: row;
    }

    .author-data-wrapper .author-image {
        min-width: 64px;
        max-width: 64px;
    }

    .single-blog-post .post-thumb img {
        aspect-ratio: 4 / 3;
    }

    .share-post-wrapper.wrapper-desktop {
        display: none;
    }

    .share-post-wrapper.wrapper-mobile {
        display: flex;
    }

    .single-offer-post .post-sidebar-item:first-of-type {
        margin: 0;
    }

    .single-offer-post .post-sidebar-item {
        padding: 16px 0;
    }

    .single-offer-post .block-files .file-single {
        padding: 24px;
        gap: 24px;
    }

    .single-offer-post .block-files .file-single .file-icon {
        padding: 0;
    }

    .single-offer-post .block-files .file-single .file-icon svg {
        max-width: 64px;
        min-width: 64px;
        height: auto;
    }
}

@media (max-width:768px) {
    .single-expert-post .current-post-title {
        flex-wrap: wrap;
    }

    .single-expert-post .post-data {
        width: 100%;
        gap: 12px;
    }

    div.single-review-post .post-thumb img {
        aspect-ratio: 1320 / 400;
    }

    .single-offer-post .block-files .file-single {
        padding: 16px;
        gap: 16px;
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .single-offer-post .block-files .file-single .file-title {
        font-size: 16px;
    }

    .single-offer-post .block-files .file-single .file-icon svg {
        max-width: 48px;
        min-width: 48px;
        height: auto;
    }

    .single-offer-post .block-files .btn-wrapper {
        justify-content: center;
        margin-left: 0;
    }
}

/* single post/event */

/* single lodge/loża */

body.single-loze-regionalne .blog-posts .blog-wrapper,
div.single-lodge-post .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

div.single-lodge-post .post-content p:empty {
    display: block;
    padding: 0;
    height: 20px;
}

div.single-lodge-post .post-content {
    gap: 8px;
}

@media (max-width:1199px) {

    body.single-loze-regionalne .blog-posts .blog-wrapper,
    div.single-lodge-post .content-wrapper {
        gap: 32px;
    }
}

div.single-lodge-post .lodge-office {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--brick);
    background: #fff;
}

div.single-lodge-post .lodge-office__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 32px;
    min-width: 0;
}

div.single-lodge-post .lodge-office__item + .lodge-office__item {
    border-left: 1px solid var(--gray-200);
}

div.single-lodge-post .lodge-office__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    color: var(--brick);
}

div.single-lodge-post .lodge-office__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

div.single-lodge-post .lodge-office__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-500);
}

div.single-lodge-post .lodge-office address {
    font-style: normal;
    line-height: 1.6;
    color: var(--graphite);
}

div.single-lodge-post .lodge-office a {
    color: var(--graphite);
    font-weight: 500;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: color .2s ease;
}

div.single-lodge-post .lodge-office a:hover,
div.single-lodge-post .lodge-office a:focus-visible {
    color: var(--brick);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width:991px) {
    div.single-lodge-post .lodge-office {
        grid-template-columns: 1fr 1fr;
    }

    div.single-lodge-post .lodge-office__item--address {
        grid-column: 1 / -1;
        border-bottom: 1px solid var(--gray-200);
    }

    div.single-lodge-post .lodge-office__item--address + .lodge-office__item {
        border-left: 0;
    }
}

@media (max-width:679px) {
    div.single-lodge-post .lodge-office {
        grid-template-columns: 1fr;
    }

    div.single-lodge-post .lodge-office__item {
        padding: 20px;
    }

    div.single-lodge-post .lodge-office__item + .lodge-office__item {
        border-left: 0;
        border-top: 1px solid var(--gray-200);
    }

    div.single-lodge-post .lodge-office__item--address {
        border-bottom: 0;
    }
}

/* single lodge/loża */

/* single komisje branżowe */

.chairman-block {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    align-items: flex-start;
}

.chairman-block .chairman-image {
    width: calc(30% - 24px);
    position: sticky;
    top: var(--nav-height);
    display: flex;
}

.chairman-block .chairman-image img {
    max-width: 235px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 999px;
}

.chairman-block .chairman-content {
    width: calc(70% - 24px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chairman-block .chairman-content h3 {
    font-size: 24px;
    font-weight: 500;
}

.chairman-block .chairman-content h4 {
    font-family: 'Playfair Display', Georgia, serif;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 400;
    color: var(--content);
}

.chairman-block .chairman-content .text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chairman-block .chairman-content .contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chairman-block .chairman-content .contact-wrapper a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chairman-block .chairman-content .contact-wrapper a:hover {
    color: var(--red);
}

.chairman-block .chairman-content .btn-wrapper {
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.post-sidebar-files {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-sidebar-files a {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    font-size: 16px;
    color: var(--brick);
    font-weight: 400;
    font-family: 'Playfair Display';
}

.post-sidebar-files .file-download-icon,
.post-sidebar-files .file-icon {
    display: flex;
    position: relative;
}

.post-sidebar-files .file-download-icon {
    margin-left: auto;
    transition: transform .3s ease;
}

.post-sidebar-files a:hover .file-download-icon {
    transform: translateY(5px);
}

.single-komisje-post .block-people-wrapper {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

@media (max-width:1199px) {
    .chairman-block .chairman-content .btn-wrapper {
        padding: 8px 0;
    }
}

@media (max-width:768px) {
    .chairman-block {
        gap: 24px;
    }

    .chairman-block .chairman-image {
        position: relative;
        top: auto;
    }

    .chairman-block .chairman-image,
    .chairman-block .chairman-content {
        width: 100%;
    }
}

/* single komisje branżowe */

/* blog posts */

.blog-posts .blog-wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.blog-posts .search-input-wrapper button::before {
    background-color: var(--graphite);
}

.blog-posts .posts {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 40px;
}

.blog-posts .posts-related {
    gap: 40px;
}

.blog-posts .posts>a {
    width: calc(33.33333333% - 30px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-posts .posts-related>a {
    width: calc(50% - 30px);
}

.blog-posts .single-post.post-promoted {
    border: 1px solid var(--red);
    position: relative;
    padding: 20px;
}

.blog-posts .single-post.post-promoted::before {
    content: 'ARTYKUŁ SPONSOROWANY';
    position: absolute;
    right: 5px;
    top: 2px;
    font-family: 'Inter';
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--red);
    width: auto;
    height: auto;
    text-align: right;
}


.blog-posts .post-thumb {
    position: relative;
    display: flex;
    overflow: hidden;
}

.blog-posts .post-thumb::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: opacity .3s ease;
    opacity: 1;
    background: rgba(0, 0, 0, 0.20);
}

.blog-posts .single-post:hover .post-thumb::before {
    opacity: 0;
}

.blog-posts .post-thumb,
.blog-posts .post-thumb img {
    aspect-ratio: 640 / 340;
}

.blog-posts .post-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.blog-posts .posts:not(.posts-related) .post-thumb,
.blog-posts .posts:not(.posts-related) .post-thumb img {
    aspect-ratio: 413 / 230;
}

.blog-posts .post-thumb .cat-badges {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    pointer-events: none;
}

.blog-posts .post-thumb .badge-single {
    background-color: #1d1d1d;
    padding: 4px 12px;
    color: #FFF;
    font-family: "Playfair Display";
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: 0.8px;
    transition: background .3s ease;
}

.blog-posts .post-thumb .badge-single:hover {
    background-color: var(--brick);
}

.blog-posts .post-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-posts .post-date {
    color: #737478; /* WCAG AA (było #A0A1A6, 2,6:1) */
    font-family: "Playfair Display";
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.blog-posts .single-post h3 {
    color: #1d1d1d;
    font-size: 20px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: color .3s ease;
}

.blog-posts .posts:not(.posts-related) .single-post h3 {
    font-size: 17px;
}

.blog-posts .single-post:hover h3 {
    color: var(--brick);
}

.blog-posts .post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #737478; /* WCAG AA (było #A0A1A6, 2,6:1) */
    font-family: "Playfair Display";
    font-size: 16px;
    line-height: 1;
    margin-top: 8px;
}

.blog-posts .author-thumb {
    width: 32px;
    height: 32px;
    aspect-ratio: 1;
}

.blog-posts .posts-related .author-thumb {
    width: 48px;
    height: 48px;
}

.blog-posts .author-thumb img {
    border-radius: 999px;
}

.blog-posts .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(29, 29, 29, 0.10);
    border-bottom: 1px solid rgba(29, 29, 29, 0.10);
    padding: 32px 0;
}

.pagination:empty {
    display: none;
}

.blog-posts .next,
.blog-posts .prev {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1D1D1D;
    font-family: "Playfair Display";
    font-size: 18px;
    font-weight: 700;
    line-height: 1.66;
    transition: color .3s ease;
    text-transform: capitalize;
}

.blog-posts .next svg path,
.blog-posts .prev svg path {
    transition: stroke .3s ease;
}

.blog-posts .next:hover,
.blog-posts .prev:hover {
    color: var(--bcc-1);
}

.blog-posts .next:hover svg path,
.blog-posts .prev:hover svg path {
    stroke: var(--bcc-1);
}

.blog-posts .pagination-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

}

.blog-posts .pagination-numbers>* {
    color: #1d1d1d;
    text-align: center;
    font-family: "Inter";
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    border-radius: 999px;
    transition: color .3s ease, background .3s ease;
    width: 50px;
    height: 50px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-posts .pagination-numbers a:hover,
.blog-posts .pagination-numbers span.current {
    color: #fff;
    background-color: var(--brick);
}

@media (max-width:1199px) {
    .blog-posts .posts>a {
        width: calc(50% - 20px);
    }
}

@media (max-width:991px) {
    .blog-posts {
        padding: 32px 0;
    }

    .blog-posts .blog-wrapper {
        gap: 32px;
    }

    .blog-posts .posts-related>a {
        width: 100%;
    }

    .blog-posts .posts>a {
        gap: 8px;
    }
}

@media (max-width:768px) {
    .blog-posts .posts {
        gap: 40px;
    }

    .blog-posts .posts>a {
        width: 100%
    }

    .blog-posts .post-author {
        margin-top: 0;
    }

}

/* blog posts */

/* search results */

.search-results-block {
    padding: 48px 0;
}

.search-block-wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.search-phrase {
    display: flex;
    align-items: center;
    padding: 8px 0;
    gap: 8px;
    font-size: 22px;
    font-weight: 500;
    font-family: 'Playfair Display';
    line-height: 1.36;
    letter-spacing: 0.44px;
    color: #1d1d1d;
}

.search-phrase strong {
    font-size: 30px;
    font-weight: 700;
    font-family: 'Playfair Display';
}

.search-results-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-results-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display';
    font-size: 16px;
    font-weight: 400;
}

.results-title {
    font-size: 22px;
    font-weight: 500;
    font-family: 'Playfair Display';
    letter-spacing: 0.44px;
    color: #1d1d1d;
    margin-bottom: 16px;
    padding: 8px 0;
}

.search-results-list .result-title {
    color: var(--red);
}

.search-results-list .result-date {
    color: var(--input);
}

.search-results-list .result-icon {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.search-box {
    background: #F6F6F6;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-box-title {
    font-size: 24px;
    font-weight: 500;
    color: #1d1d1d;
}

.search-box-content form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box-item {
    flex: 1 auto;
    min-width: 200px;
    max-width: 200px;
}

.search-box-item.box-sort {
    min-width: 160px;
    max-width: 160px;
    margin-left: auto;
}

.search-box-item.search-input-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 300px;
    max-width: 300px;
}

.search-input-wrapper input[type="search"] {
    width: 100%;
}

.search-input-wrapper button {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    height: 100%;
    border: 0;
    cursor: pointer;
    position: relative;
    background: var(--red);
}

.search-input-wrapper button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    z-index: 0;
    transition: clip-path 0.3s ease;
    background-color: var(--antracyte);
}

.search-input-wrapper button:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% calc(100%), calc(100%) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100%), calc(100%) 100%, 0 100%);
}

.search-input-wrapper button svg {
    width: 14px;
    height: 14px;
    aspect-ratio: 1;
    z-index: 4;
    position: relative;
    stroke: white;
}

@media (max-width:1260px) {
    .search-box-item.search-input-wrapper {
        max-width: 100%;
        flex: 2;
    }

    .search-box-item {
        flex: 1;
    }

    .search-box-item.box-sort,
    .search-box-item {
        max-width: 100%;
    }
}

@media (max-width:1199px) {
    .search-results-block {
        padding: 36px 0;
    }

    .search-block-wrapper {
        gap: 36px;
    }

}

@media (max-width:991px) {
    .search-results-block {
        padding: 32px 0;
    }

    .search-block-wrapper {
        gap: 32px;
    }

    .search-box {
        padding: 16px;
        gap: 16px;
    }

}

@media (max-width:479px) {
    .search-box-item {
        min-width: 100%;
    }
}

/* search results */

/* 404 */

.error-page {
    padding: 48px 0;
}

.error-page-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.error-page .btn-wrapper {
    justify-content: center;
}

/* 404 */

/* event posts */

.events {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
}

.posts-area {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.has-loader {
    position: relative;
}

.has-loader::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    z-index: 99;
    transition: opacity 0.3s;
    pointer-events: none;
}

.has-loader.loading::before {
    opacity: 1;
}

.has-loader.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #1D1D1D;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

div.single-event {
    background: #FFF;
    box-shadow: 0 4px 15px 0 rgba(30, 33, 190, 0.10);
    padding: 32px;
    display: flex;
    align-items: stretch;
    gap: 48px;
    position: relative;
}


div.single-event .btn-normal-white {
    padding: 20px 40px;
}

div.single-event.sold {
    background-color: #f4f4f4;
}

div.single-event.sold .btn:hover {
    pointer-events: none;
}

div.single-event .btn-normal-white .hvr-fill {
    stroke: none;
}

div.single-event.sold .btn .hvr-fill {
    fill: var(--input);
}

div.single-event.sold .btn .hvr-stroke {
    stroke: var(--input);
}

div.single-event.sold .btn-outline::before {
    background: #CDCDCD;
}

div.single-event.sold .btn-outline {
    border: 0;
    background-color: var(--input);
}

div.single-event.sold .btn-normal-white {
    background-color: transparent;
}

div.single-event.sold .btn,
div.single-event.sold .event-data-single,
div.single-event.sold .event-data-wrapper>p,
div.single-event.sold h3 {
    color: var(--input);
}

div.single-event.sold h3 {
    pointer-events: none;
}

div.single-event.sold h3 a,
div.single-event.sold .btn {
    cursor: not-allowed;
}

div.single-event .post-register-date-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 300px;
    color: #fff;
    background-color: var(--brick);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    font-family: 'Playfair Display';
    text-align: center;
    margin-bottom: 16px;
}

div.single-event .post-register-date-left span {
    font-size: 24px;
    font-weight: 800;
}

div.single-event .post-thumb {
    position: relative;
}

div.single-event:hover .post-thumb::before {
    opacity: 0;
}

div.single-event .post-thumb,
div.single-event .post-thumb img {
    aspect-ratio: 1;
    max-width: 320px;
    min-width: 320px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

div.single-event .post-register-wrapper {
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

div.single-event .post-register-wrapper .btn-wrapper {
    margin-top: auto;
    flex-direction: column;
    gap: 16px;
}

div.single-event .price-wrapper {
    padding: 16px 0;
    color: var(--red);
    text-align: center;
    font-family: "Playfair Display";
    font-size: 24px;
    font-weight: 500;
    line-height: normal;
}

div.single-event .btn {
    white-space: nowrap;
    width: 100%;
}

div.single-event .btn svg {
    min-width: 10px;
}

div.single-event .post-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

div.single-event h3 {
    color: #1d1d1d;
    line-height: 1.1;
    padding: 8px 0;
}

div.single-event .event-data-wrapper {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

div.single-event .event-data-wrapper>p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
}

div.single-event .event-data-single {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 16px;
    font-weight: 500;
    line-height: 1.66;
}

div.single-event .event-data-single svg {
    min-width: 16px;
}

div.single-event .cat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

div.single-event .badge-single {
    color: #fff;
    padding: 8px 16px;
    color: #FFF;
    font-family: "Playfair Display";
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.7px;
}

.search-boxes {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.search-box-years {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.search-box-years a.btn-normal-white:hover,
.search-box-years a.btn-normal-white.active {
    background-color: var(--brick);
    color: #fff;
}

.search-box-years a.see-more-years {
    color: var(--content);
}

.search-box-years .year-hidden:not(.active) {
    display: none;
}

.search-box-months-wrapper {
    margin: 0 auto;
}

.search-box-months {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: relative;
}

.search-box-months::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background-color: #fff;
}

.search-box-month-single {
    position: relative;
    border-radius: 999px;
    border: 5px solid #FFF;
    width: 64px;
    height: 64px;
    aspect-ratio: 1;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: capitalize;
    color: var(--content);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
    cursor: pointer;
    background: #F6F6F6;
}

.search-box-month-single:hover,
.search-box-month-single.active {
    background: var(--brick);
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.10);
    color: #fff;
}

@media (max-width:1440px) {
    div.single-event {
        gap: 32px;
    }
}

@media (max-width:1199px) {

    div.single-event .post-thumb,
    div.single-event .post-thumb img {
        max-width: 240px;
        min-width: 240px;
    }

    .search-box-months {
        gap: 16px;
        flex-wrap: wrap;
    }

    .search-box-months::before {
        display: none;
        content: none;
    }
}

@media (max-width:991px) {
    div.single-event {
        flex-wrap: wrap;
        padding: 16px;
        gap: 16px 32px;
    }

    div.single-event .post-content-wrapper {
        max-width: calc(100% - 32px - 240px);
    }

    div.single-event .post-register-wrapper {
        min-width: 100%;
    }
}

@media (max-width:768px) {
    div.single-event .post-content-wrapper {
        max-width: 100%;
    }

    div.single-event .post-thumb,
    div.single-event .post-thumb img {
        max-width: 100%;
        min-width: 100%;
        aspect-ratio: 4/2;
    }
}

/* event posts */

/* contact form */

.wpcf7-spinner {
    position: absolute !important;
    left: 50%;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    margin: 0;
}

.wpcf7 form.sent .wpcf7-response-output {
    width: 100%;
}

.wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
}

.wpcf7-form .form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.wpcf7-form .form-wrapper>* {
    width: 100%;
}

.wpcf7-form p {
    width: 100%;
    color: #737478; /* WCAG AA (było #A0A1A6, 2,6:1) */
    font-size: 18px;
    font-weight: 400;
    line-height: 1.66;
}

.wpcf7-form h2,
.wpcf7-form h3 {
    width: 100%;
    color: #1d1d1d;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 1.28px;
}

.wpcf7-form .form-column {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.wpcf7-form label {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: #1D1D1D;
    font-family: Inter;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.66;
    width: 100%;
}

.wpcf7-form label>span:not(.wpcf7-form-control-wrap) {
    padding: 8px 8px 0;
    color: #1D1D1D;
    font-family: Inter;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.66;
    width: 100%;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-textarea {
    font-family: Inter;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    border-bottom: 1px solid rgba(22, 23, 29, 0.10);
    padding: 8px;
    color: #1d1d1d;
}

.wpcf7-form .wpcf7-text::placeholder,
.wpcf7-form .wpcf7-textarea::placeholder {
    color: var(--input);
}

.wpcf7-form .char-counter {
    display: block;
    width: 100%;
    padding: 4px 8px 0;
    text-align: right;
    font-family: Inter;
    font-size: 13px;
    line-height: 1;
    color: #737478; /* WCAG AA (było #A0A1A6, 2,6:1) */
}

.wpcf7-form .char-counter.is-limit {
    color: #8E1616;
}

.wpcf7-form .form-column>* {
    width: calc(50% - 16px);
}

.wpcf7-form .wpcf7-submit {
    padding: 20px 48px 20px 40px;
    border: 0;
    color: #fff;
    background: transparent;
    position: relative;
    z-index: 2;
    text-transform: capitalize;
}

.wpcf7-form .form-submit {
    position: relative;
    background: var(--graphite);
    z-index: 9;
    font-family: 'Playfair Display';
}

.wpcf7-form .form-submit::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 46px) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 46px) 100%, 0 100%);
    z-index: 1;
    transition: clip-path 0.3s ease;
    background-color: var(--brick);
}

.wpcf7-form .form-submit:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% calc(100%), calc(100%) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100%), calc(100%) 100%, 0 100%);
}

.wpcf7-form .form-submit::after {
    content: '';
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url(../images/btn-icon.svg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 9px;
    height: 9px;
    z-index: 4;
}

.wpcf7-form .wpcf7-response-output {
    flex: 0 0 100%;
    width: 100%;
    order: 99;
    margin: 0 !important;
}

.wpcf7-not-valid-tip {
    font-size: 14px;
}

.wpcf7-form-control {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.wpcf7-form-control.wpcf7-checkbox {
    margin: 0 8px;
}

.wpcf7-list-item {
    color: var(--content);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.66;
    margin: 0;
    position: relative;
    cursor: pointer;
}

.wpcf7-form .wpcf7-list-item .wpcf7-list-item-label {
    display: inline-block;
    padding: 0 0 0 34px;
    position: relative;
    cursor: pointer;
}

.wpcf7-form .wpcf7-list-item .wpcf7-list-item-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--red);
    width: 20px;
    height: 20px;
    border-radius: 999px;
}

.wpcf7-form .wpcf7-list-item .wpcf7-list-item-label::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--red);
    width: 14px;
    height: 14px;
    border-radius: 999px;
    opacity: 0;
    transition: opacity .3s ease;
}

.wpcf7-form-control.wpcf7-radio.vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wpcf7-list-item input[type="radio"],
.wpcf7-list-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.wpcf7-list-item input[type="radio"]:checked+.wpcf7-list-item-label::after,
.wpcf7-list-item input[type="checkbox"]:checked+.wpcf7-list-item-label::after {
    opacity: 1;
}

@media (max-width:768px) {
    .wpcf7-form .form-column {
        gap: 16px;
    }

    .wpcf7-form .form-column>* {
        width: 100%;
    }
}


@media (max-width:479px) {

    .wpcf7-form .wpcf7-submit,
    .wpcf7-form .form-submit {
        width: 100%;
    }
}

/* contact form */

/* modal hello */

/* ===== OVERLAY ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ===== MODAL ===== */
#modal-hello {
    position: relative;
    width: 817px;
    height: 576px;
    max-width: 95vw;
    max-height: 90vh;
    background: #F6F6F8;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s ease;
}

.modal-overlay.is-open #modal-hello {
    transform: translateY(0) scale(1);
}

#modal-hello .modal-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #F6F6F8;
    box-shadow: 0 4px 25px 0 rgba(0, 0, 0, 0.25);
}

#modal-hello .modal-content {
    width: 50%;
    flex-shrink: 0;
    padding: 40px 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#modal-hello .modal-heading {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

#modal-hello .modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(18, 12, 13, 0.15);
    background: #fff;
    cursor: pointer;
    transition: background .3s;
}

#modal-hello .modal-close:hover {
    background: #f3f0f0;
}

#modal-hello .modal-data {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

#modal-hello .modal-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#modal-hello .modal-text-wrapper strong {
    font-weight: 700;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width:991px) {
    #modal-hello .modal-content {
        width: 100%;
    }
}

/* modal hello */

/* sticky banner */

.sticky-banner {
    background: linear-gradient(90deg, #A13333 0%, #3B1313 100%);
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.25);
    width: 100%;
    padding: 46px 32px;
    z-index: 999;
}

.sticky-banner.position-bottom {
    position: sticky;
    bottom: 0;
}

.sticky-banner .banner-content {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sticky-banner .banner-content * {
    color: #fff;
    text-transform: none;
    text-align: center;
}

/* Z linkiem: cały pasek klikalny */
a.sticky-banner {
    display: block;
    text-decoration: none;
    transition: filter .2s ease;
}

a.sticky-banner:hover,
a.sticky-banner:focus-visible {
    filter: brightness(1.12);
}

a.sticky-banner:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -6px;
}

@media (prefers-reduced-motion: reduce) {
    a.sticky-banner {
        transition: none;
    }
}

.sticky-banner .sticky-title {
    font-family: 'Playfair Display';
    letter-spacing: 2.8px;
}

.sticky-banner .sticky-description {
    font-family: 'Inter';
    letter-spacing: 4.8px;
}

@media (max-width:991px) {
    .sticky-banner .banner-content {
        flex-direction: column;
        gap: 16px;
    }

    .sticky-banner {
        padding: 16px;
    }

    .sticky-banner .sticky-title {
        letter-spacing: 1.5px;
    }

    .sticky-banner .sticky-description {
        letter-spacing: 2px;
    }
}

/* sticky banner */

/* anchor */

section {
    position: relative;
}

.block-anchor {
    position: absolute;
    top: calc(var(--nav-height) * -1);
}

/* anchor */

/* select2 */

/* kontener */

body.admin-bar .select2-container--open .select2-dropdown--below {
    top: 32px !important;
}

body.admin-bar .select2-container--open .select2-dropdown--above {
    top: 32px;
}

.select2-container {
    width: 100% !important;
    font-size: 14px;
}

/* widoczny select */
.select2-container--default .select2-selection--single {
    height: 50px;
    border: 1px solid #fff;
    border-radius: 0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    transition: .3s;
}

/* tekst */
.select2-container--default .select2-selection__rendered {
    line-height: normal;
    padding: 0;
    color: #222;
}

/* strzałka */
.select2-container--default .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

/* hover / focus */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #000;
}

/* dropdown */
.select2-dropdown {
    border-radius: 0;
    border: 1px solid #fff;
    overflow: hidden;
}

/* search input */
.select2-search__field {
    padding: 10px;
    border: none;
    outline: none;
}

/* opcje */
.select2-results__option {
    padding: 10px 12px;
}

/* hover na opcjach */
.select2-results__option--highlighted {
    background: #000;
    color: #fff;
}

/* wybrana opcja */
.select2-results__option[aria-selected="true"] {
    background: #f2f2f2;
}

.select2-container--default .select2-selection--single {
    background: #fff;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    background: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: 0;
    margin: 0;
    background-image: url(../images/arrow-down.svg);
    background-size: cover;
    width: 13px;
    height: 13px;
    transform: translateY(-50%);
    left: auto;
    right: auto;
    transition: transform .3s ease;
}

.select2-angle+.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: 0;
    margin: 0;
    background-image: url(../images/angle-down.svg);
    background-size: cover;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    left: auto;
    right: auto;
    transition: transform .3s ease;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-color: var(--graphite);
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: translateY(-50%) rotateZ(180deg);
    border: 0;
}

.select2-container--default .select2-results__option {
    transition: color .3s ease, background .3s ease;
}

.select2-container--default .select2-results__option--selected {
    background-color: var(--graphite);
    color: #fff;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--red);
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 8px;
    padding: 0;
    height: auto;
}

/* select2 */

/* checkbox */

.custom-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-checkbox {
    display: block;
    margin: 0;
    color: var(--content);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.66;
    cursor: pointer;
    padding: 8px 0;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox .checkbox-label {
    position: relative;
    padding-left: 34px;
}

/* obramowanie */
.custom-checkbox .checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--red);
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* wypełnienie */
.custom-checkbox .checkbox-label::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--red);
    width: 14px;
    height: 14px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .3s ease;
}

/* checked */
.custom-checkbox input[type="checkbox"]:checked+.checkbox-label::after {
    opacity: 1;
}

/* checkbox */

/* nav login btn */
.nav-login-btn .btn {
    gap: 0;
}

.nav-login-btn .button {
    color: #fff;
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 1.8px;
    text-transform: capitalize;
    font-variant-numeric: lining-nums proportional-nums;
    padding: 20px 40px;
    z-index: 4;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    border: 0;
    transition: color .3s ease, background .3s ease, border .3s ease;
    position: relative;
    text-align: center;
    background: var(--graphite);
}

.nav-login-btn .button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 46px) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 46px) 100%, 0 100%);
    z-index: -1;
    transition: clip-path 0.3s ease;
    background-color: var(--brick);
}

.nav-login-btn .button:hover::before,
.nav-login-btn .button:active::before,
.nav-login-btn .button:focus-within::before {
    clip-path: polygon(0 0, 100% 0, 100% calc(100%), calc(100%) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100%), calc(100%) 100%, 0 100%);
}

/* Menu icons */

.navbar-nav a .menu-icon,
.dropdown-menu a .menu-icon {
    color: var(--brick);
    flex-shrink: 0;
    transition: color .25s ease;
}

.dropdown-menu li.active .menu-icon,
.navbar-nav a:hover .menu-icon,
.dropdown-menu a:hover .menu-icon {
    color: #fff;
}

/* nav login btn */

/* tryb żałobny */

body.mourning_mode {
    filter: grayscale(1);
}

/* tryb żałobny */
/* Placeholder zdjęcia osoby (functions/person-placeholder.php) */
.person-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: #F1F1F3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.person-placeholder svg {
    width: 38%;
    height: auto;
    max-width: 90px;
}

.chairman-block .chairman-image .person-placeholder {
    max-width: 235px;
}

.portal-team .team-front .person-thumb .person-placeholder {
    width: 150px;
}


/* Logotypy UE - pasek na samym dole strony i portalu (functions/eu-logos.php). */
.bcc-eu-logos {
    background: #fff;
    padding: 20px 16px;
}
.bcc-eu-logos__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.bcc-eu-logos img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
}
.bcc-eu-logos--portal {
    margin-top: 32px;
    border-top: 1px solid #eceae5;
}

/* ==========================================================================
   Dostępność (WCAG 2.1/2.2 AA) - wspólne dla strony i portalu
   ========================================================================== */

/* 2.4.7 - widoczny fokus z klawiatury (myszka bez zmian dzięki :focus-visible) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
iframe:focus-visible,
.select2-container--focus .select2-selection,
.wpcf7-list-item input:focus-visible + .wpcf7-list-item-label,
.p-consent__box input:focus-visible + .p-consent__mark {
    outline: 2px solid #8B1A2B !important;
    outline-offset: 2px;
}

/* na ciemnym tle ramka fokusu biała */
footer a:focus-visible,
footer button:focus-visible,
.bcc-dark-focus a:focus-visible,
.bcc-dark-focus button:focus-visible,
.user-dashboard .p-premium a:focus-visible,
.portal-meetings .sp-video__feed a:focus-visible {
    outline-color: #fff !important;
}

/* 2.4.11 - element z fokusem nie chowa się pod pływającym przyciskiem dostępności */
html {
    scroll-padding-bottom: 96px;
}

/* tekst tylko dla czytników ekranu */
.screen-reader-text,
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 2.2.2 / 2.3.3 - bez automatycznych animacji dla osób, które je wyłączyły */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 2.1.1 / 1.4.13 - menu główne z klawiatury: podmenu otwierane fokusem (klasa
   .is-open z assets/js/script.js), Esc zamyka (.is-dismissed wygrywa z :hover) */

/* linki podmenu miały "transition: .3s" także na visibility, przez co szybki Tab
   przeskakiwał świeżo otwarte podmenu albo wpadał do zamykanego */
.navbar-nav .dropdown-menu a {
    transition: all .3s, visibility 0s;
}

@media (min-width: 1200px) {
    .navbar-nav li.is-open > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(20px) translateX(-50%);
        transition: opacity .3s ease, transform .6s ease, visibility 0s 0s;
    }

    .navbar-nav li.is-open > a.dropdown-toggle::before {
        background-color: #000;
        transform: translateX(-50%) translateY(5px);
    }

    .navbar-nav li.is-dismissed > .dropdown-menu {
        opacity: 0 !important;
        visibility: hidden !important;
        transition: none !important;
    }
}

/* menu mobilne: zamknięte menu i zwinięte podmenu nie łapią fokusu z klawiatury */
@media (max-width: 1199px) {
    .nav-primary {
        visibility: hidden;
        transition: transform .3s ease, visibility 0s .3s;
    }

    .nav-primary.active {
        visibility: visible;
        transition: transform .3s ease, visibility 0s 0s;
    }

    /* wyszukiwarka w menu mobilnym ma własne "visibility: visible" */
    .nav-primary:not(.active) .search-dropdown {
        visibility: hidden;
        transition: visibility 0s .3s;
    }

    .navbar-nav li:not(.active) > .dropdown-menu {
        visibility: hidden;
        transition: max-height .35s ease, padding .35s ease, visibility 0s .35s;
    }

    .navbar-nav li.active > .dropdown-menu {
        visibility: visible;
        transition: max-height .35s ease, padding .35s ease, visibility 0s 0s;
    }
}

/* 2.1.1 - przycisk "do góry" jest przyciskiem: bez domyślnej ramki, a ukryty
   (przed przewinięciem strony) nie łapie fokusu */
button.scrollTop {
    border: 0;
    padding: 0;
    font: inherit;
    visibility: hidden;
    transition: opacity 0.3s ease, clip-path .3s ease, visibility 0s .3s;
}

button.scrollTop.is-visible {
    visibility: visible;
    transition: opacity 0.3s ease, clip-path .3s ease, visibility 0s 0s;
}

/* BCC Kobiety: nieaktywne zakładki zespołu i zamknięte okno osoby nie łapią fokusu */
.bcc-k-team .tab-content[hidden],
.bcc-k-modal.modal[hidden] {
    display: none !important;
}
