:root {
    --site-bg: #f6f7f8;
    --site-surface: #ffffff;
    --site-surface-soft: #eef3f0;
    --site-text: #18201d;
    --site-muted: #66716c;
    --site-border: #dfe5e2;
    --site-primary: #0f6b57;
    --site-primary-dark: #0a463a;
    --site-accent: #c49b42;
    --site-shadow: 0 16px 42px rgba(20, 38, 32, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body.site-page {
    min-height: 100%;
    margin: 0;
    color: var(--site-text);
    background: var(--site-bg);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--site-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus {
    color: var(--site-primary-dark);
}

body.site-page :where(a, button, input, textarea, select, [tabindex]):focus,
body.site-page :where(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid rgba(24, 32, 29, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.site-navbar {
    min-height: 78px;
    padding: 0.8rem 0;
}

.site-header-sidebar .site-navbar {
    width: 100%;
}

.site-header-sidebar .site-sidebar-navbar-inner {
    display: grid;
    grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: none;
}

.site-header-sidebar .navbar-toggler {
    justify-self: start;
    padding: 0.25rem 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.site-header-sidebar .site-brand {
    justify-self: center;
    margin: 0;
}

.site-sidebar-header-social {
    display: flex;
    justify-self: end;
    min-width: 44px;
}

.site-sidebar-header-social .site-social {
    display: none;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
}

.site-brand-logo {
    width: auto;
    max-width: 178px;
    max-height: 54px;
    object-fit: contain;
}

.site-navbar .nav-link {
    position: relative;
    padding: 0.5rem 0.7rem;
    color: #25302c;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.site-navbar .nav-link::after {
    position: absolute;
    right: 0.7rem;
    bottom: 0.25rem;
    left: 0.7rem;
    height: 2px;
    background: var(--site-accent);
    content: "";
    opacity: 0;
    transform: scaleX(0.2);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link:focus::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-navbar .nav-link-panel {
    color: var(--site-muted);
}

.site-main {
    overflow: hidden;
}

.page-hero,
.publication-hero {
    position: relative;
    padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
    background:
        linear-gradient(135deg, rgba(15, 107, 87, 0.92), rgba(24, 32, 29, 0.9)),
        url("../../img/logo_main.svg") right clamp(1rem, 5vw, 5rem) center / min(46vw, 520px) no-repeat;
    color: #fff;
}

.page-hero::after,
.publication-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--site-accent), rgba(255, 255, 255, 0));
    content: "";
}

.page-hero-inner {
    max-width: 780px;
}

.page-kicker,
.segment-type,
.segment-kicker {
    margin: 0 0 0.65rem;
    color: var(--site-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-title {
    max-width: 920px;
    margin: 0;
    font-family: "League Spartan", "Raleway", "Open Sans", Arial, sans-serif;
    font-size: clamp(2.15rem, 5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.08;
}

.page-content-section,
.publication-section,
.publication-gallery-section {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.rich-content {
    max-width: 980px;
    color: #25302c;
}

.rich-content > :first-child {
    margin-top: 0;
}

.rich-content > :last-child {
    margin-bottom: 0;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    margin: 0;
    font-family: "Roboto", "League Spartan", "Raleway", "Open Sans", Arial, sans-serif;
    line-height: 1.18;
}

.rich-content h2 {
    font-size: calc(2.5rem + 0.3vw);
}

.rich-content h3 {
    font-size: calc(2rem + 0.3vw);
}

.rich-content h1 {
    font-size: calc(3rem + 0.3vw);
}

.rich-content h4 {
    font-size: calc(1.5rem + 0.3vw);
}

.rich-content ul,
.rich-content ol,
.rich-content table {
    margin: 0 0 1.15rem;
}

.rich-content p {
    margin: 0;
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.35rem;
    text-align: left;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 6px;
}

.rich-content th,
.rich-content td {
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--site-border);
    vertical-align: top;
}

.rich-content th {
    background: var(--site-surface-soft);
    font-weight: 700;
}

.segment-list {
    background: #fff;
}

.content-segment {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    border-top: 1px solid var(--site-border);
}

.content-segment:nth-child(even) {
    background: var(--site-surface-soft);
}

.segment-media {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #d8dfdc;
    box-shadow: var(--site-shadow);
}

.segment-media img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.segment-body {
    max-width: 680px;
}

.segment-title,
.section-title {
    margin: 0 0 1rem;
    font-family: "Raleway", "Open Sans", Arial, sans-serif;
    font-size: clamp(1.85rem, 4vw, 3.35rem);
    font-weight: 300;
    line-height: 1.12;
}

.segment-content {
    font-size: 1.02rem;
}

.white,
.white .rich-content,
.white a:not(.btn-site) {
    color: #fff;
}

.black,
.black .rich-content {
    color: var(--site-text);
}

.a1,
.a2 {
    color: #fff;
}

.btn-site {
    --bs-btn-padding-x: 1.4rem;
    --bs-btn-padding-y: 0.72rem;
    --bs-btn-border-radius: 0;
    --bs-btn-font-weight: 400;
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--site-primary);
    --bs-btn-border-color: var(--site-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--site-primary-dark);
    --bs-btn-hover-border-color: var(--site-primary-dark);
    font-family: "Roboto", "League Spartan", "Raleway", "Open Sans", Arial, sans-serif;
    margin-top: 0.65rem;
    text-transform: uppercase;
}

.btn-kmn {
    display: inline-block;
    align-self: flex-start;
    margin: 30px 0 0;
    border: 1px solid #000;
    background: none;
    color: #000;
    font-family: "Roboto", "League Spartan", "Raleway", "Open Sans", Arial, sans-serif;
    font-weight: 400;
    font-size: calc(0.8rem + 0.3vw);
    font-style: normal;
    letter-spacing: normal;
    text-align: center;
    text-decoration: none;
    user-select: none;
    transition: transform .2s;
}

.btn-kmn span {
    display: inline-block;
    width: 100%;
    padding: 5px 70px 4px;
}

.legacy-text-right .btn-kmn,
.bgp-full-right .btn-kmn {
    align-self: flex-end;
}

.segment.white .btn-kmn,
.subsegment.white .btn-kmn {
    border-color: #fff;
    color: #fff;
}

.segment.white .btn-kmn span,
.subsegment.white .btn-kmn span {
    background: #00083c;
    color: #fff;
}

.segment.black .btn-kmn,
.subsegment.black .btn-kmn {
    border-color: #00083c;
    color: #00083c;
}

.segment.black .btn-kmn span,
.subsegment.black .btn-kmn span {
    background: #fff;
    color: #00083c;
}

.segment.white .btn-kmn:hover,
.subsegment.white .btn-kmn:hover {
    background: #fff;
    color: #00083c;
    transform: scale(1.1);
}

.segment.black .btn-kmn:hover,
.subsegment.black .btn-kmn:hover {
    background: #00083c;
    color: #fff;
    transform: scale(1.1);
}

.segment.white .btn-kmn:hover span,
.segment.black .btn-kmn:hover span,
.subsegment.white .btn-kmn:hover span,
.subsegment.black .btn-kmn:hover span {
    background: none;
    color: inherit;
}

.segment-body-right {
    margin-left: auto;
    text-align: right;
}

.segment-full-bg {
    position: relative;
    min-height: clamp(420px, 68vh, 760px);
    display: flex;
    align-items: center;
    color: #fff;
}

.segment-full-bg::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(13, 25, 21, 0.68), rgba(13, 25, 21, 0.28));
    content: "";
}

.segment-full-bg > .container-xl {
    position: relative;
    z-index: 2;
}

.segment-full-bg .rich-content,
.segment-full-bg .segment-title,
.segment-full-bg .segment-type {
    color: inherit;
}

.segment-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.segment-backgrounds img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 150%;
    max-width: none !important;
    max-height: none;
}

.segment.bgp-left .segment-backgrounds img {
    right: 0;
    left: auto;
}

.segment.bgp-right .segment-backgrounds img {
    right: auto;
    left: 0;
}

@media (max-width: 1199.98px) {
    .segment.bgp-center .segment-backgrounds {
        left: -50%;
        width: 200%;
    }

    .segment.bgp-center .segment-backgrounds img {
        right: 0;
        left: 0;
        min-width: 50%;
        min-height: 130%;
        margin: 0 auto;
    }
}

.segment {
    position: relative;
    overflow: hidden;
}

.vertical-align {
    display: flex;
    align-items: center;
}

.col-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: clamp(320px, 42vw, 620px);
    padding: clamp(2rem, 5vw, 5rem);
    flex-direction: column;
    justify-content: center;
    font-size: 17px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: 1px;
}

.legacy-text-right {
    align-items: flex-end;
    text-align: right;
}

.legacy-text-left {
    align-items: flex-start;
    text-align: left;
}

.legacy-col-content-x0 {
    padding-right: 0;
    padding-left: 0;
}

.legacy-col-image-gap-right {
    padding-right: 15px;
}

.legacy-col-image-gap-left {
    padding-left: 15px;
}

/* tekst_pelny_* horizontal alignment (legacy bgp-full-* classes) */
.bgp-full-center {
    align-items: center;
    text-align: center;
}

.bgp-full-center .rich-content {
    max-width: none;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.bgp-full-right {
    align-items: flex-end;
    text-align: right;
}

.bgp-full-left {
    align-items: flex-start;
    text-align: left;
}

.legacy-segment-img,
.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.bgp-full-center .rich-content img.img-responsive,
.rich-content.text-center img.img-responsive,
.text-center .rich-content img.img-responsive {
    margin-left: auto;
    margin-right: auto;
}

.bgp-img-left .segment-backgrounds,
.bgp-img-right .segment-backgrounds {
    width: 50%;
}

.bgp-img-left .segment-backgrounds {
    right: 0;
    left: auto;
}

.bgp-img-right .segment-backgrounds {
    right: auto;
    left: 0;
}

.legacy-image-bg,
.legacy-image-bg .carousel-inner,
.legacy-image-bg .carousel-item {
    height: 100%;
}

.legacy-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bgp-img-left-r .legacy-segment-img,
.bgp-img-right-r .legacy-segment-img {
    width: 100%;
}

.segment.bgp-img-left-r .col-content,
.segment.bgp-img-right-r .col-content {
    min-height: 100px;
}

.segment.bgp-img-left-r .col-content {
    padding-right: clamp(2rem, 5vw, 6.25rem);
    padding-left: clamp(1rem, 2.5vw, 3.125rem);
}

.segment.bgp-img-right-r .col-content {
    padding-right: clamp(1rem, 2.5vw, 3.125rem);
    padding-left: clamp(2rem, 5vw, 6.25rem);
}

.wideo_lewy_r .vertical-align,
.wideo_prawy_r .vertical-align {
    align-items: stretch;
}

.wideo_lewy_r .video-col,
.wideo_prawy_r .video-col {
    display: flex;
}

.inne_aktualnosci_blog .vertical-align {
    align-items: stretch;
}

.inne_aktualnosci_blog .news-main-image {
    display: flex;
    justify-content: flex-end;
}

.inne_aktualnosci_blog .news-main-image img {
    width: 100%;
    height: 100%;
    margin-left: auto;
    object-fit: cover;
}

.inne_aktualnosci_blog .news-main {
    align-items: flex-end;
    justify-content: center;
    padding: 0 !important;
    text-align: right;
}

.inne_aktualnosci_blog .news-main > div {
    width: 100%;
    padding: clamp(2rem, 5vw, 4.375rem) clamp(2rem, 5vw, 5rem);
}

.inne_aktualnosci_blog .news-main > div > div {
    text-align: right;
}

.inne_aktualnosci_blog .news-main .btn-kmn {
    display: inline-block;
}

.segment.bgp-products.inne_aktualnosci_blog .row-item-product {
    display: flex;
    flex-wrap: wrap;
}

.segment.bgp-products.inne_aktualnosci_blog .item-product {
    display: flex;
    padding-bottom: 50px;
    flex-direction: column;
}

.segment.bgp-products.inne_aktualnosci_blog .item-product img {
    width: 100%;
    margin: 0 auto;
}

.segment.bgp-products.inne_aktualnosci_blog .item-product .item-desc {
    min-height: 0;
    margin-top: 1.25rem;
    margin-bottom: 0.65rem;
}

.segment.bgp-products.inne_aktualnosci_blog .item-product p {
    display: -webkit-box;
    flex: 1 1 auto;
    margin-bottom: 1rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.segment.bgp-products.inne_aktualnosci_blog .item-product br {
    display: none;
}

.segment.bgp-products.inne_aktualnosci_blog .item-product > div:last-child {
    margin-top: auto;
}

.segment.bgp-products.inne_aktualnosci_blog .item-product a.btn-kmn {
    display: inline-flex;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.legacy-segment-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bgp-btn {
    min-height: 10px;
    text-align: center;
}

.bgp-btn .btn-site {
    margin-top: 50px;
    margin-bottom: 50px;
}

.inne_guziki .button-image-list {
    display: block;
    width: 100%;
    padding: 0;
    margin: 1rem 0 0;
    text-align: center;
}

.inne_guziki .button-image-list li {
    display: inline-block;
    width: 200px;
    margin: 10px;
    vertical-align: top;
}

.inne_guziki .button-image-list a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.inne_guziki .button-image-list a:hover {
    opacity: 0.8;
}

.inne_guziki .button-image-list span {
    display: block;
    margin-top: 5px;
}

.segment-form {
    padding-top: 100px;
    padding-bottom: 100px;
}

.form-kmn {
    margin-top: 30px;
}

.form-kmn .form-control,
.form-kmn .form-select {
    border-color: #000;
    border-radius: 0;
}

.form-kmn textarea.form-control {
    min-height: 150px;
    margin-bottom: 10px;
}

.form-kmn .btn-kmn {
    margin-top: 10px;
}

.form-kmn .fg-file {
    text-align: left;
}

.form-kmn .fileinput-button {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.form-kmn .fileinput-button input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.aliasy .alias-list {
    margin-top: 1.25rem;
    line-height: 2;
}

.aliasy .alias-list a {
    display: inline-block;
    margin-right: 0.85rem;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.aliasy .alias-list a:hover {
    color: var(--site-primary);
}

.bgp-img-left-col .subsegment {
    min-height: clamp(360px, 48vw, 680px);
}

.form-search,
.form-search2 {
    width: min(100%, 520px);
    margin: 1.4rem 0 0;
}

.form-search .input-group-text,
.form-search2 .input-group-text {
    border-radius: 0;
    background: #fff;
    color: var(--site-primary);
}

.form-search .form-control,
.form-search2 .form-control {
    border-radius: 0;
}

.pricelist-d {
    margin-top: 1.5rem;
}

.pricelist-d h3 {
    margin: 2rem 0 1rem;
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    font-weight: 300;
}

.pricelist-panel {
    margin-bottom: 1.25rem;
    border: 1px solid var(--site-border);
    background: #fff;
}

.pricelist-heading {
    padding: 0.85rem 1rem;
    background: var(--site-primary);
    color: #fff;
    font-weight: 700;
}

.pricelist-description {
    padding: 1rem;
}

.pricelist-table {
    margin-bottom: 0;
}

.pricelist-table h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
}

.pricelist-table small {
    color: #626c68;
}

.pricelist-link {
    cursor: pointer;
}

.pricelist-link:hover {
    background: var(--site-surface-soft);
}

/* Fitnet segments (cennik / grafik / ilość) */
.fitnet-credit {
    margin-top: 1.25rem;
}

.fitnet-credit a {
    font-size: 0.8rem;
    color: #8a938f;
    text-decoration: none;
}

.fitnet-info {
    cursor: help;
    color: var(--site-primary);
}

/* Grafik zajęć (schedule) — aligned with fitnet3 reference */
.schedule {
    padding-top: 20px;
}

#schedule {
    margin-bottom: 20px;
}

#schedule th,
.schedule th {
    text-align: center;
    padding: 5px;
    background: none !important;
    color: rgba(0, 0, 0, 0.3);
}

#schedule th small,
.schedule th small {
    font-weight: 400;
}

#schedule td.schedule-hour {
    padding: 5px;
    background: none !important;
    color: rgba(0, 0, 0, 0.3);
    font-weight: bold;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}

#schedule td {
    padding: 10px 5px;
    background: none;
    border-top: 2px solid rgba(0, 0, 0, 0.07);
    border-bottom: 2px solid rgba(0, 0, 0, 0.07);
    vertical-align: top;
}

#schedule td > div {
    margin-bottom: 10px;
}

#schedule td div:last-child {
    margin: 0;
}

#schedule td a {
    display: block;
    height: 100%;
    color: #fff;
    margin: -5px;
    padding: 5px;
}

#schedule td a:hover {
    text-decoration: none;
    opacity: 0.9;
}

#schedule .day-highlight {
    background: none;
}

.list-table-event {
    cursor: pointer !important;
}

.list-entry {
    color: #fff;
    text-transform: uppercase;
    position: relative;
    min-height: 120px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.list-entry > div {
    padding-left: 5px;
    padding-right: 5px;
}

.list-entry-color {
    background: var(--site-primary);
}

.list-entry-color .list-entry-header {
    color: var(--site-primary);
}

.list-entry-busy {
    background: #d9534f !important;
    opacity: 1;
}

.list-entry-busy .list-entry-header {
    color: #d9534f !important;
}

.list-entry-inactive {
    background: #606060 !important;
    opacity: 0.2 !important;
}

.list-entry-inactive .list-entry-header {
    color: #606060 !important;
}

.list-entry-cancel {
    background: rgba(0, 0, 0, 0.2) !important;
}

.list-entry-cancel .list-entry-header {
    color: rgba(0, 0, 0, 0.2) !important;
}

.list-entry-info-cancel {
    padding-top: 5px;
    font-weight: bold;
    color: red !important;
}

.list-table-event:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.list-entry-header {
    font-weight: bold;
    font-size: 0.8rem;
    line-height: 1rem;
    min-height: 40px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.list-entry-time,
.list-entry-info,
.list-entry-instructor {
    font-size: 0.75rem;
    line-height: 0.8125rem;
}

.list-entry-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: right;
    font-size: 0.625rem;
    padding: 5px;
    cursor: help;
}

/* Cennik (pricelist) — aligned with fitnet3 reference */
#pricelist-d h3 {
    display: block;
    color: #fff;
    background: var(--site-primary);
    padding: 5px;
}

#pricelist-d .panel {
    margin-bottom: 20px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#pricelist-d .panel-heading {
    padding-left: 0;
    color: var(--site-primary);
    text-transform: uppercase;
    font-size: 1.25rem;
    font-weight: 700;
}

#pricelist-d .panel-body {
    padding-left: 0;
    padding-top: 0;
}

#pricelist-d table td {
    vertical-align: middle;
}

#pricelist-d .table td {
    border-top: 4px solid var(--site-surface-soft);
    color: #1d1c21;
    background: rgba(0, 0, 0, 0.07);
}

#pricelist-d .table th {
    border-bottom: 2px solid var(--site-surface-soft);
    color: rgba(0, 0, 0, 0.3);
    background: var(--site-surface-soft);
}

/* Ilość osób (occupancy) — big total + per-zone circular badges */
.fitnet-occupancy {
    margin: 1.5rem 0 2.5rem;
}

.fitnet-occupancy-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    color: var(--site-muted);
}

.fitnet-occupancy-total {
    font-weight: 700;
    line-height: 1;
    font-size: clamp(3.5rem, 10vw, 6rem);
    color: var(--site-primary);
}

.fitnet-occupancy-areas {
    --bs-gutter-y: 1.75rem;
}

.fitnet-occupancy-card {
    padding: 0.5rem;
}

.fitnet-occupancy-badge {
    width: clamp(72px, 14vw, 96px);
    height: clamp(72px, 14vw, 96px);
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--site-primary);
    color: #fff;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    box-shadow: var(--site-shadow);
}

.fitnet-occupancy-name {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.panel-group-faq {
    margin: 1rem 0 2rem;
}

.faq-group-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.faq-group-content {
    margin-bottom: 1rem;
}

.panel-faq {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.panel-faq + .panel-faq {
    border-top: 0;
}

.panel-faq .accordion-button {
    position: relative;
    padding: 0.85rem 2rem 0.85rem 0;
    border-bottom: 1px solid var(--site-primary-dark);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--site-primary-dark);
    font-weight: 700;
}

.panel-faq .accordion-button::after {
    position: absolute;
    right: 0;
}

.panel-faq .accordion-button:not(.collapsed) {
    background: transparent;
    box-shadow: none;
    color: var(--site-primary-dark);
}

.panel-faq .accordion-body {
    padding: 1rem 0 1.25rem;
}

.bgp-products {
    min-height: 50px;
    padding-top: 100px;
    padding-bottom: 100px;
    overflow: hidden;
}

.bgp-products h2 {
    margin-bottom: 50px;
    text-align: center;
    font-size: calc(2rem + 0.3vw);
}

.item-product {
    padding-bottom: 30px;
    text-align: center;
}

.item-product .btn-cont {
    min-height: 100px;
}

.item-product .btn-kmn {
    display: inline-flex;
    width: auto;
    min-height: 0;
    align-self: center;
    align-items: center;
}

.item-product .btn-kmn span {
    display: inline-block;
    width: auto;
    padding: 5px 70px 4px;
}

.item-product .item-desc {
    min-height: 90px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: 1px;
}

#description {
    position: relative;
    margin-top: 20px;
    margin-bottom: 50px;
    padding-top: 50px;
    padding-bottom: 50px;
    background: #929292;
    color: #fff;
}

#description::before,
#description::after {
    position: absolute;
    top: 0;
    display: block;
    width: 1000px;
    height: 100%;
    background: #929292;
    content: " ";
}

#description::before {
    left: -1000px;
}

#description::after {
    right: -1000px;
}

#description .product-content {
    position: relative;
    z-index: 1;
}

#triangle {
    position: absolute;
    top: -60px;
    left: -25%;
    width: 0;
    height: 0;
    margin-left: -60px;
    border-style: solid;
    border-width: 0 60px 60px;
    border-color: transparent transparent #929292;
    transition: all 1s;
}

#triangle i {
    position: absolute;
    top: 45px;
    left: -5px;
    cursor: pointer;
}

.product-desc {
    font-size: 17px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: 1px;
}

.item-thumb {
    display: block;
    width: 100%;
    max-width: 70%;
    margin-left: 15%;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
}

.product-inline-children {
    position: relative;
    z-index: 2;
    margin-top: 50px;
    margin-bottom: -50px;
}

.item-productt,
.item-product-x {
    padding-top: 1rem;
    padding-bottom: 2rem;
    text-align: center;
}

.item-productt a,
.item-product-x a {
    color: inherit;
    text-decoration: none;
}

.item-productt .btn-site,
.item-product-x .btn-site {
    margin-top: 10px;
    margin-bottom: 30px;
}

.item-product-x .item-desc {
    margin-top: 0.75rem;
}

.offer-list-main {
    padding: 2.5rem 0 0;
}

.offer-search-heading {
    margin: 40px 0 20px;
}

.form-search-offer {
    margin: 0 auto 2.25rem;
}

.form-search-offer .input-group {
    width: min(100%, 560px);
}

.form-search-offer .offer-random {
    border-radius: 0;
    background: var(--site-primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.offer-col {
    position: relative;
    overflow: hidden;
    background: #111;
}

.offer-col a {
    display: block;
    position: relative;
    color: #fff;
    text-decoration: none;
}

.offer-col img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    opacity: 0.84;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.offer-col span {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.offer-col a:hover img {
    transform: scale(1.04);
    opacity: 0.68;
}

.item-product {
    text-align: center;
}

.item-product a {
    display: block;
    min-height: 180px;
    padding: 2rem 1.2rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.item-product h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.item-product .item-desc {
    margin-top: 0.75rem;
}

.blocks .item-product > div {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.blocks .item-product a {
    position: absolute;
    inset: 0;
    display: flex;
    min-height: 0;
    padding: 15px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
}

.blocks .item-product.black a {
    color: #00083c;
}

.blocks .item-product.white a {
    color: #fff;
}

.blocks .item-product a:hover {
    opacity: 0.8;
}

.blocks .item-product a h3 {
    font-family: "League Spartan", sans-serif;
    font-size: calc(0.8rem + 0.3vw);
    font-style: normal;
    font-weight: 700;
}

.blocks .item-product a .item-desc {
    min-height: 0;
    margin: 0;
}

.blocks #description {
    margin-top: 50px;
}

.legacy-map {
    width: 100%;
    min-height: 420px;
    background: var(--site-surface-soft);
}

.inne_mapa_embed iframe {
    width: 100%;
    height: 700px;
}

.site-map {
    width: 100%;
    height: 460px;
    background: var(--site-surface-soft);
}

.site-map .leaflet-popup-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

.tender-row + .tender-row {
    margin-top: 2rem;
}

.legacy-calendar {
    min-height: 420px;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.72);
}

.segment.inne_wydarzenia,
.segment.inne_cennik {
    padding: 3rem;
}

.segment.fitnet_cennik,
.segment.fitnet_grafik,
.segment.fitnet_ilosc {
    padding: 3rem;
}

.legacy-events-calendar {
    margin-top: 2rem;
}

.segment-people #map-poland,
.segment-people #agents {
    position: relative;
    z-index: 2;
}

.segment-people .poland,
.segment-people #agents ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.segment-people .poland {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.segment-people .poland a {
    display: block;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.86);
    color: var(--site-text);
    text-decoration: none;
}

.segment-people .poland a:hover {
    background: var(--site-primary);
    color: #fff;
}

.segment-people #agents li {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--site-border);
}

.segment-people #agents h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.reservation-tile {
    height: 100%;
    border: 1px solid var(--site-border);
    background: #fff;
}

.reservation-tile img,
.reservation-tile-placeholder {
    width: 100%;
    aspect-ratio: 1.2 / 1;
    object-fit: cover;
    background: var(--site-surface-soft);
}

.reservation-tile-body {
    padding: 1.25rem;
}

.reservation-tile h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.inne_liczby {
    min-height: 10px;
    padding-top: 30px;
    text-align: center;
    font-size: 18px;
}

.inne_liczby strong {
    display: block;
    font-size: clamp(1.6rem, 3vw, 30px);
    line-height: 1.3;
}

.inne_liczby .row > div {
    padding-bottom: 30px;
}

/* Counter content uses plain columns (no .col-content), so lift it above
   the absolutely-positioned .segment-backgrounds (z-index:0). */
.segment.inne_licznik .container {
    position: relative;
    z-index: 2;
}

.licznik-licznik {
    margin: 0 auto;
    text-align: center;
}

.licznik-licznik div {
    display: inline-block;
    padding: clamp(1rem, 3vw, 30px) clamp(1.2rem, 4vw, 40px);
    font-family: "Raleway", "Open Sans", Arial, sans-serif;
    font-size: clamp(3rem, 11vw, 170px);
    font-weight: 700;
    line-height: 1;
}

.licznik-licznik div span {
    display: block;
    font-size: clamp(1rem, 2.4vw, 36px);
    font-weight: 400;
}

.segment.white .licznik-licznik div {
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.segment.black .licznik-licznik div {
    border-right: 1px solid rgba(63, 24, 6, 0.5);
}

.segment.white .licznik-licznik div:last-child,
.segment.black .licznik-licznik div:last-child {
    border: 0;
}

.segment-full-bg .segment-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.segment-full-bg .segment-body {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(2px);
}

.segment-files {
    max-width: 520px;
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    background: #fff;
    color: var(--site-text);
}

.segment-body-right .segment-files {
    margin-left: auto;
}

.segment-files h3 {
    margin: 0;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--site-border);
    background: var(--site-surface-soft);
    font-size: 0.95rem;
    font-weight: 700;
}

.segment-files .list-group-item {
    padding: 0.82rem 1rem;
    color: var(--site-text);
}

.segment-heading {
    max-width: 780px;
    margin-bottom: 1.5rem;
}

.segment-gallery {
    background: #fff;
}

.gallery-grid-wide {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.segment-slider {
    padding: 0;
    border-top: 0;
    background: transparent;
}

.segment.banery {
    min-height: 100px !important;
}

.carousel2 .carousel-inner {
    max-width: 1920px;
    max-height: 800px;
    margin: 0 auto;
}

.carousel2 .carousel-item {
    position: relative;
    overflow: hidden;
    min-height: 0;
    padding-top: 40.66%;
}

.carousel2 .item-caption {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    max-width: calc(100% - 40px);
    color: #00083c;
    font-family: "League Spartan", "Roboto", "Open Sans", Arial, sans-serif;
    font-size: 2.5vw;
    font-weight: 700;
    line-height: 1.05;
}

.carousel2 .item.white .item-caption,
.carousel2 .white .item-caption {
    color: #fff;
}

.carousel2 .item-anim {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
}

.carousel2 div.item-anim {
    bottom: 0;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.carousel2 .item-anim-mobile {
    display: none !important;
}

.carousel2 .xd {
    display: none;
}

.delay-06 {
    animation-delay: 0.2s;
}

.delay-12 {
    animation-delay: 0.6s;
}

.delay-18 {
    animation-delay: 1s;
}

.delay-20 {
    animation-delay: 1.4s;
}

.carousel2 .carousel-control {
    position: absolute;
    top: 20px;
    z-index: 5;
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border: 2px solid #00083c;
    border-radius: 25px;
    background: #00083c;
    opacity: 1;
}

.carousel2 .carousel-control.right {
    right: 40px;
    left: auto;
}

.carousel2 .carousel-control.left {
    right: 100px;
    left: auto;
}

.carousel2 .carousel-control span {
    display: inline-block;
    width: 46px;
    height: 46px;
    border: 1px solid #fff;
    border-radius: 24px;
    color: #fff;
    font-size: 38px;
    font-weight: 300;
    line-height: 40px;
    text-align: center;
}

.carousel2 .item-anim-btn {
    position: absolute;
    bottom: 25px;
    left: 0;
    z-index: 4;
    width: 100%;
    text-align: center;
}

.carousel2 .banner-action {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 0;
}

.carousel2 .banner-action span {
    display: inline-block;
    padding: 7px 70px 5px;
    background: #00083c;
    color: #fff;
}

.carousel2 .banner-action:hover {
    background: #fff;
    color: #00083c;
}

.carousel2 .banner-action:hover span {
    background: none;
    color: #00083c;
}

.carousel2 .banner-click {
    cursor: pointer;
}

.segment-columns {
    padding: 0;
}

.segment-column {
    display: flex;
    min-height: clamp(360px, 52vw, 620px);
    padding: clamp(2rem, 5vw, 5rem);
    flex-direction: column;
    justify-content: center;
    background: var(--site-surface);
}

.segment-column.white,
.segment-column.black {
    color: inherit;
}

.segment-column.white {
    background: #111b18;
    color: #fff;
}

.segment-column.black {
    background: #fff;
    color: var(--site-text);
}

.segment-column .rich-content {
    color: inherit;
}

.segment-column-files {
    min-height: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background: var(--site-bg);
}

.segment-video-full {
    padding: 0;
    background: #000;
}

.video-cover {
    position: relative;
    display: flex;
    min-height: clamp(420px, 70vh, 780px);
    align-items: center;
    justify-content: center;
    background: #111 center / cover no-repeat;
}

.video-cover::before {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
    content: "";
}

.video-cover .video-play {
    position: relative;
    z-index: 2;
}

.video-cover iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-cover.is-playing::before {
    content: none;
}

.segment-video-bg {
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background: #000;
}

.segment-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.segment-down-arrow {
    position: absolute;
    right: 50%;
    bottom: 2rem;
    z-index: 2;
    width: 26px;
    height: 26px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateX(50%) rotate(45deg);
}

.segment-fullscreen-graphic {
    min-height: 100vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.segment-fullscreen-graphic > .container {
    position: relative;
    z-index: 2;
}

.inne_full-blank {
    min-height: 0;
    padding: 0;
}

.segment-video-split {
    padding: 0;
}

.segment-video {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.segment-video .video-player,
.segment-video .video-cover,
.segment-video .issuuiframe,
.segment-video .issuuembed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.segment-video .video-player iframe,
.segment-video .issuuiframe,
.segment-video .issuuembed {
    border: 0;
}

.segment-video .video-cover {
    background-position: center center;
    background-size: cover;
}

.segment-video .video-cover button {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -22px 0 0 -135px;
    cursor: pointer;
    border: 4px solid #fff;
}

.segment-video .video-cover button span {
    display: inline-block;
    padding: 7px 70px 5px;
    border: 1px solid #00083c;
    background: #fff;
    color: #00083c;
}

.segment-video .video-cover button i {
    display: none;
}

.segment-video .btn-kmn:hover {
    border: 4px solid #00083c;
    color: #fff;
}

.segment-video .btn-kmn:hover span {
    border: 1px solid #fff;
    background: #00083c;
    color: #fff;
}

.segment-video .video-cover.is-playing {
    display: none;
}

.segment-video-full {
    min-height: 100vh;
    padding-top: 0;
}

.segment-video-full .video-cover {
    position: relative;
}

.map-map {
    min-height: 420px;
}

.segment-video-panel,
.segment-video-copy {
    min-height: clamp(360px, 52vw, 620px);
}

.segment-video-panel {
    background: #000;
}

.segment-video-panel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.segment-video-copy {
    display: flex;
    padding: clamp(2rem, 5vw, 5rem);
    flex-direction: column;
    justify-content: center;
}

.segment-video-copy .rich-content {
    color: inherit;
}

.segment-publications,
.segment-publication-teasers,
.segment-news-blog {
    background: #fff;
}

.publication-list {
    display: grid;
    gap: 2rem;
}

.publication-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}

.publication-card-row {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
}

.publication-card-featured {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
}

.publication-card-image {
    display: block;
    overflow: hidden;
    background: #d8dfdc;
}

.publication-card-image img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.publication-card:hover .publication-card-image img,
.publication-card:focus-within .publication-card-image img {
    transform: scale(1.035);
}

.publication-card-body {
    display: flex;
    min-height: 250px;
    padding: clamp(1.25rem, 3vw, 2.2rem);
    flex-direction: column;
    justify-content: center;
}

.publication-card time {
    margin-bottom: 0.65rem;
    color: var(--site-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.publication-card h3 {
    margin: 0 0 0.75rem;
    font-family: "Raleway", "Open Sans", Arial, sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1.16;
}

.publication-card h3 a {
    color: var(--site-text);
    text-decoration: none;
}

.publication-card p {
    display: -webkit-box;
    margin: 0 0 1rem;
    overflow: hidden;
    color: var(--site-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.segment-publication-teasers-1 .vertical-align {
    align-items: stretch;
}

.segment-publication-teasers-1 .vertical-align > .col-content {
    flex: 0 0 50%;
    max-width: 50%;
    min-height: 400px;
    padding: 0;
}

.segment-publication-teasers-1 .vertical-align > .col-content:not(.subsegment) {
    padding: clamp(2rem, 5vw, 5rem);
}

.segment-publication-teasers-1 .vertical-align > .col-content:only-child {
    flex-basis: 100%;
    max-width: 100%;
    padding-right: 20px;
}

.segment-publication-teasers-1 .col-content > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.segment-publication-teasers-1 .subsegment {
    justify-content: center;
}

.segment-publication-teasers-1 .news-inner {
    width: 100%;
    padding: clamp(2rem, 5vw, 4.375rem);
}

.segment-publication-teasers-1 .news-inner h3 {
    margin-bottom: 0.75rem;
}

.segment-publication-teasers-1 .news-inner small {
    margin-top: 0 !important;
}

.segment-publication-teasers-legacy .publication-teasers-row {
    display: flex;
    flex-wrap: wrap;
}

.segment-publication-teasers-legacy .publication-teasers-row > .col-contentt {
    float: none;
    display: flex;
    flex-direction: column;
}

.segment-publication-teasers-3 .publication-teaser-body,
.segment-publication-teasers-4 .publication-teaser-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.segment-publication-teasers-3 .publication-teaser-body h4,
.segment-publication-teasers-4 .publication-teaser-body h4 {
    margin-top: 1.25rem;
}

.segment-publication-teasers-3 .publication-teaser-body p,
.segment-publication-teasers-4 .publication-teaser-body p {
    flex: 1 1 auto;
}

.segment-publication-teasers-3 .publication-teaser-body .btn-kmn,
.segment-publication-teasers-4 .publication-teaser-body .btn-kmn {
    align-self: center;
    margin-top: auto;
}

.segment-products {
    background: #fff;
}

.product-tile {
    height: 100%;
}

.product-tile a {
    display: flex;
    height: 100%;
    min-height: 260px;
    padding: 1.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.product-tile a:hover,
.product-tile a:focus {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: var(--site-shadow);
}

.product-tile-image {
    display: flex;
    width: 100%;
    min-height: 150px;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
}

.product-tile-image img {
    max-height: 170px;
    width: auto;
    object-fit: contain;
}

.product-tile h3 {
    margin: 0;
    font-family: "Raleway", "Open Sans", Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.product-tile .item-desc {
    margin-top: 0.75rem;
    color: inherit;
}

.publication-breadcrumb {
    margin-bottom: 1.2rem;
}

.publication-breadcrumb .breadcrumb {
    margin: 0;
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.65);
}

.publication-breadcrumb .breadcrumb-item,
.publication-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.82);
}

.publication-breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.publication-meta {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 600;
}

.publication-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-cover {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #d8dfdc;
    box-shadow: var(--site-shadow);
}

.publication-cover img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.attachment-box {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}

.attachment-box h2 {
    margin: 0;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--site-border);
    background: var(--site-surface-soft);
    font-size: 1rem;
    font-weight: 700;
}

.attachment-box .list-group-item {
    padding: 0.9rem 1.15rem;
    color: var(--site-text);
}

.attachment-box .list-group-item:hover,
.attachment-box .list-group-item:focus {
    color: var(--site-primary-dark);
    background: #f8faf9;
}

.publication-content {
    max-width: 760px;
    font-size: 1.03rem;
}

.publication-embed {
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.publication-gallery-section {
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #d8dfdc;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.gallery-item:hover img,
.gallery-item:focus img {
    transform: scale(1.04);
}

.site-footer {
    padding: 2.5rem 0;
    background: #18201d;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
    color: #fff;
}

.site-footer-content {
    max-width: 920px;
    margin-bottom: 1.5rem;
}

.site-footer-copy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.88rem;
}

@media (max-width: 991.98px) {
    .site-navbar {
        min-height: 68px;
    }

    .site-navbar .navbar-collapse {
        padding-top: 1rem;
    }

    .site-navbar .nav-link {
        padding: 0.65rem 0;
    }

    .site-navbar .nav-link::after {
        right: auto;
        left: 0;
        width: 34px;
    }

    .page-hero,
    .publication-hero {
        background:
            linear-gradient(135deg, rgba(15, 107, 87, 0.94), rgba(24, 32, 29, 0.92)),
            url("../../img/logo_main.svg") right -6rem center / 360px no-repeat;
    }

    .publication-card-row,
    .publication-card-featured {
        grid-template-columns: 1fr;
    }

    .publication-card-image img {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }

    .segment-publication-teasers-1 .vertical-align {
        display: block;
    }

    .segment-publication-teasers-1 .vertical-align > .col-content {
        max-width: 100%;
        min-height: 240px;
    }

    .obrazek_lewy .vertical-align,
    .obrazek_prawy .vertical-align {
        display: block;
    }

    .obrazek_lewy .segment-backgrounds,
    .obrazek_prawy .segment-backgrounds {
        position: relative;
        right: auto;
        left: auto;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .legacy-image-bg,
    .legacy-image-bg .carousel-inner,
    .legacy-image-bg .carousel-item {
        height: auto;
    }

    .legacy-image-bg img {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .obrazek_lewy .segment-backgrounds img,
    .obrazek_prawy .segment-backgrounds img {
        position: relative;
        width: 100%;
        min-width: 0;
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    body.site-page {
        font-size: 15px;
    }

    .site-brand-logo {
        max-width: 148px;
    }

    .page-hero,
    .publication-hero {
        padding-top: 2.6rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .carousel2 .item-anim {
        display: none;
    }

    .carousel2 .item-anim-mobile {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }

    .carousel2 .item {
        padding-top: 0 !important;
    }

    .carousel2 .item-caption {
        display: none;
    }
}

/* Back-to-top button */
.site-backtotop {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--site-primary);
    color: #fff;
    font-size: 1.1rem;
    line-height: 44px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.site-backtotop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-backtotop:hover {
    filter: brightness(1.08);
}

/* Gallery lightbox */
body.lightbox-open {
    overflow: hidden;
}

.site-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 3.5rem;
    background: rgba(10, 12, 11, 0.92);
}

.site-lightbox.is-open {
    display: flex;
}

.site-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.site-lightbox button {
    position: absolute;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.site-lightbox-close {
    top: 1rem;
    right: 1.25rem;
    font-size: 2.5rem;
}

.site-lightbox-prev,
.site-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    padding: 0 0.5rem;
}

.site-lightbox-prev {
    left: 0.75rem;
}

.site-lightbox-next {
    right: 0.75rem;
}

.gallery-item,
.gallery-grid a[href] {
    cursor: zoom-in;
}

.segment-image-attachment {
    display: block;
    width: 100%;
    height: 100%;
}

/* Events list (inne_wydarzenia) */
.events-list {
    margin-top: 1.5rem;
}

.event-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--site-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 46px rgba(20, 38, 32, 0.14);
}

.event-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.event-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.event-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1.2rem 1.3rem;
}

.event-card-date {
    color: var(--site-accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.event-card-title {
    font-family: "Raleway", "Open Sans", Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-card-excerpt {
    color: var(--site-muted);
    font-size: 0.92rem;
}

/* Publication tags */
.tag-box .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-pill {
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

/* Publication / tender / event detail (light, two-column, matches the rest of the site) */
.publication-detail {
    padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.publication-breadcrumb {
    margin-bottom: 1.25rem;
}

.publication-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 0.85rem;
}

.page-breadcrumbs {
    position: relative;
    z-index: 3;
    background: #fff;
}

.page-breadcrumbs .publication-breadcrumb {
    margin: 0;
}

.page-breadcrumbs .breadcrumb {
    padding: 20px 0;
    margin-bottom: 0;
    background: none;
}

.page-breadcrumbs .breadcrumb-item,
.page-breadcrumbs .breadcrumb-item a {
    color: #00083c;
}

.page-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    color: #00083c;
}

.publication-header {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--site-border);
}

.publication-title {
    margin: 0 0 0.4rem;
    font-family: "Raleway", "Open Sans", Arial, sans-serif;
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    font-weight: 300;
    line-height: 1.1;
}

.publication-detail .publication-meta {
    display: block;
    color: var(--site-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.publication-cover {
    margin: 0 0 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--site-shadow);
}

.publication-cover img {
    width: 100%;
    object-fit: cover;
}

.publication-media .attachment-box {
    margin-top: 1.5rem;
}

/* Publication listing: filter banner, archive sidebar, pager */
.publication-filter {
    margin-bottom: 1.5rem;
    padding: 0.6rem 1rem;
    background: var(--site-surface-soft);
    border-radius: 6px;
}

.publication-filter-clear {
    margin-left: 0.75rem;
    font-size: 0.85rem;
}

.publication-archive h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.publication-archive ul li {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--site-border);
}

.publication-archive a {
    text-decoration: none;
}

.publication-pager {
    margin-top: 2rem;
}

/* Shop sales form + cart */
.shop-form-group { margin-bottom: 2rem; }
.shop-form-group-title { font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; }
.shop-form-item { padding: 1rem 0; border-top: 1px solid var(--site-border); }
.shop-form-price { font-weight: 700; margin-bottom: .4rem; }
.shop-qty { max-width: 150px; margin: 0 auto; }
.shop-qty .number-input { max-width: 60px; }
.cart-table th, .cart-table td { vertical-align: middle; }
.order-summary { white-space: pre-wrap; background: var(--site-surface-soft); padding: 1rem; border-radius: 6px; }

/* Header dropdown menus (tree) */
.site-navbar .dropdown-menu {
    border: 0;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(20, 38, 32, 0.14);
    padding: 0.4rem 0;
}

.site-navbar .dropdown-item {
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus {
    background: var(--site-surface-soft);
    color: var(--site-primary-dark);
}

/* Nested submenu (grandchildren) */
.site-navbar .dropdown-submenu {
    position: relative;
}

.site-navbar .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.4rem;
}

.site-navbar .dropdown-submenu > .dropdown-toggle::after {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

@media (min-width: 992px) {
    .site-navbar .dropdown-toggle {
        pointer-events: none;
    }

    .site-navbar .dropdown > .dropdown-menu {
        display: none;
    }

    .site-navbar .dropdown:hover > .dropdown-menu,
    .site-navbar .dropdown:focus-within > .dropdown-menu,
    .site-navbar .dropdown.show > .dropdown-menu {
        display: block;
    }

    /* open submenu on hover for pointer devices */
    .site-navbar .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .site-navbar .dropdown-toggle {
        pointer-events: auto;
    }

    /* stacked, indented submenus on mobile */
    .site-navbar .dropdown-menu {
        box-shadow: none;
        padding-left: 1rem;
    }
    .site-navbar .dropdown-submenu > .dropdown-menu {
        left: 0;
        margin-top: 0;
    }
}

/* Header social icons */
.site-social {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.site-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #25302c;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.site-social-link:hover {
    background: var(--site-primary);
    color: #fff;
}

/* Inline SVG icons */
.svg-icon {
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* Sidebar (vertical) menu — offcanvas */
.site-sidebar { width: 320px; max-width: 85vw; }
.site-sidebar .offcanvas-body { padding-top: 0.5rem; }
.sidebar-menu { list-style: none; margin: 0; padding: 0; }
.sidebar-menu-l1 { padding-left: 0.9rem; border-left: 2px solid var(--site-border); margin: 0.25rem 0 0.5rem; }
.sidebar-item > a,
.sidebar-toggle {
    display: block;
    width: 100%;
    padding: 0.55rem 0.25rem;
    border: 0;
    border-bottom: 1px solid var(--site-border);
    background: transparent;
    color: #25302c;
    font-weight: 600;
    line-height: inherit;
    text-align: left;
    text-decoration: none;
}
.sidebar-menu-l1 .sidebar-item > a,
.sidebar-menu-l1 .sidebar-toggle { font-weight: 500; font-size: 0.92rem; }
.sidebar-item > a:hover,
.sidebar-toggle:hover,
.sidebar-toggle:focus { color: var(--site-primary); }
.sidebar-row { display: flex; align-items: center; justify-content: space-between; }
.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
}
.has-children > .sidebar-row { border-bottom: 1px solid var(--site-border); }
.sidebar-caret {
    display: inline-block;
    width: 38px;
    height: 38px;
    position: relative;
    flex: 0 0 auto;
}
.sidebar-caret::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid #6a746f;
    border-bottom: 2px solid #6a746f;
    transform: translate(-50%, -65%) rotate(45deg);
    transition: transform 0.18s ease;
}
.sidebar-toggle[aria-expanded="true"] .sidebar-caret::after { transform: translate(-50%, -35%) rotate(-135deg); }
.site-sidebar .site-social { margin-top: 1rem; }

@media (min-width: 992px) {
    .site-sidebar-header-social .site-social {
        display: flex;
    }
}

/* Footer menu columns */
.row-footer { margin-bottom: 2rem; }
.footer-menu, .footer-submenu { list-style: none; margin: 0; padding: 0; }
.footer-menu > li { margin-bottom: 0.35rem; }
.footer-menu a, .footer-menu span { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.92rem; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer-heading > a, .footer-heading > span { display: block; font-weight: 700; margin-bottom: 0.4rem; color: #fff; }
.footer-submenu { padding-left: 0; }
.footer-submenu li { margin-bottom: 0.25rem; }

/* Frontend splash modal */
.site-splash-modal .modal-content {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(20, 38, 32, 0.24);
}

.site-splash-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.86);
    border-radius: 50%;
}

.site-splash-image {
    display: block;
    width: 100%;
    max-height: min(54vh, 460px);
    object-fit: cover;
}

.site-splash-body {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.site-splash-body h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.site-splash-body .btn {
    margin-top: 0.75rem;
}

/* Career application */
.career-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.career-application-form {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--site-surface-soft);
    border: 1px solid var(--site-border);
    border-radius: 6px;
}

.career-consent {
    margin-top: 0.75rem;
    font-size: 0.92rem;
}

/* ── Galeria 100 (horizontal legacy-style strip with caption overlays) ───── */
.segment-gallery-100 { padding: 0; }
.gallery-100-frame {
    position: relative;
    overflow: hidden;
    background: #111;
}
.gallery-100-strip {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.gallery-100-strip::-webkit-scrollbar {
    display: none;
}
.gallery-100-item {
    flex: 0 0 min(78vw, 720px);
    scroll-snap-align: start;
}
.gallery-100-item img {
    display: block;
    width: auto;
    height: clamp(260px, 34vw, 520px);
    min-width: 100%;
    object-fit: cover;
}
.gallery-100-slide { position: relative; display: block; }
.gallery-100-caption {
    position: absolute;
    inset: 0;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #00083c;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.gallery-100-caption.black {
    color: #00083c;
}
.gallery-100-slide:hover .gallery-100-caption,
.gallery-100-slide:focus .gallery-100-caption,
.gallery-100-slide:focus-visible .gallery-100-caption {
    opacity: 1;
    visibility: visible;
}
.gallery-100-caption h2 {
    margin: 0 0 .25rem;
    font-family: "League Spartan", "Raleway", "Open Sans", Arial, sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.6rem);
    font-weight: 700;
}
.gallery-100-caption p { margin: 0; font-size: clamp(.95rem, 1.5vw, 1.15rem); }
.gallery-100-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    transform: translateY(-50%);
    cursor: pointer;
}
.gallery-100-control span {
    display: block;
    font-size: 2.25rem;
    line-height: 1;
}
.gallery-100-control-prev { left: 1rem; }
.gallery-100-control-next { right: 1rem; }

/* ── Galeria klocki (mosaic tiles revealed by a button) ──────────────────── */
.segment-gallery-mosaic {
    isolation: isolate;
}
.segment-gallery-mosaic .segment-backgrounds {
    z-index: 0;
    pointer-events: none;
}
.segment-gallery-mosaic .container {
    position: relative;
    z-index: 2;
}
.segment-gallery-mosaic .col-content {
    position: relative;
    z-index: 3;
    color: inherit;
}
.segment-gallery-mosaic .rich-content {
    position: relative;
    z-index: 3;
}
.segment-gallery-mosaic .btn-gallery {
    position: relative;
    z-index: 4;
    align-self: center;
}
.segment-gallery-tiles { padding: 0; }
.segment-gallery-tiles.is-collapsible .container-gallery { display: none; }
.segment-gallery-tiles.is-collapsible .container-gallery.is-open { display: block; }
.segment-gallery-tiles .container-gallery { padding: 0; }
.segment-gallery-tiles .col-gal {
    position: relative;
    aspect-ratio: 1 / 1;
}
.segment-gallery-tiles .col-gal a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: filter .25s ease;
}
.segment-gallery-tiles .col-gal a:hover { filter: brightness(1.08); }
.segment-gallery-tiles .col-gal a span { position: absolute; inset: 0; }
.btn-gallery {
    display: inline-block;
    padding: 0;
    border: 4px solid #fff;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.btn-gallery span {
    display: inline-block;
    padding: 0.45rem 3.5rem 0.35rem;
    background: #fff;
    color: #111;
}
.black .btn-gallery {
    border-color: #000;
    color: #000;
}
.black .btn-gallery span {
    background: #000;
    color: #fff;
}
.btn-gallery:hover {
    filter: brightness(1.08);
}
/* lightbox itself uses the existing .site-lightbox styles + frontend.js */

.digital-menu {
    padding: 3rem 0;
}
.digital-menu__header {
    margin-bottom: 2rem;
    text-align: center;
}
.digital-menu__intro {
    max-width: 760px;
    margin: 1rem auto 0;
}
.digital-menu__card {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
}
.digital-menu__card-title,
.digital-menu__group-title {
    margin-bottom: 1rem;
    text-align: center;
}
.digital-menu__card-info,
.digital-menu__group-info {
    margin-bottom: 1.5rem;
    text-align: center;
}
.digital-menu__group {
    margin-top: 1.5rem;
    padding: 1rem;
}
.digital-menu__items {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.digital-menu__group--columns .digital-menu__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.digital-menu__item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}
.digital-menu__item-img {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    object-fit: cover;
}
.digital-menu__item-body {
    min-width: 0;
    flex: 1 1 auto;
}
.digital-menu__item-head {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}
.digital-menu__item-name {
    font-weight: 700;
}
.digital-menu__item-price {
    white-space: nowrap;
    font-weight: 700;
}
.digital-menu__item-desc,
.digital-menu__item-extra,
.digital-menu__item-tags {
    margin-top: .5rem;
}
.digital-menu__item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.digital-menu__item-tags .tag {
    display: inline-flex;
    align-items: center;
    padding: .15rem .45rem;
    border: 1px solid currentColor;
    font-size: .8125rem;
    line-height: 1.2;
}
.digital-menu__footer {
    max-width: 760px;
    margin: 2rem auto 0;
    text-align: center;
}
@media (max-width: 767.98px) {
    .digital-menu__group--columns .digital-menu__items {
        grid-template-columns: 1fr;
    }
    .digital-menu__item {
        flex-direction: column;
    }
    .digital-menu__item-img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .digital-menu__item-head {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }
}
