@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap');

:root {
    --bs-body-font-family: 'Jost', sans-serif;
}

body {
    font-family: 'Jost', sans-serif;
    background-color: #000;
}

.history-page {
    position: relative;
    z-index: 0;
    max-width: none;
    min-height: 100%;
    margin: 0 auto;
    padding: 48px 24px 88px;
    overflow: hidden;
    background: #101b24;
}

.history-page::before {
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 100vh;
    background: linear-gradient(120deg, rgba(8, 17, 24, .96), rgba(11, 28, 38, .84) 52%, rgba(8, 17, 24, .94)), url('../images/stoisko.webp') center / cover;
    content: '';
    opacity: .98;
}

.history-page > * {
    position: relative;
}

.history-heading {
    max-width: 50vw;
    margin: 0 auto 72px;
    text-align: center;
}

.history-kicker {
    margin: 0 0 12px;
    color: #1684a6;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.history-heading h1 {
    margin: 0;
    color: #f7f3eb;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
}

.history-intro {
    max-width: 540px;
    margin: 24px auto 0;
    color: #c1cbd0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.history-timeline {
    position: relative;
    display: grid;
    gap: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.history-timeline::before {
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 50%;
    width: 2px;
    background: rgba(220, 169, 82, .55);
    content: '';
    transform: translateX(-50%);
}

.history-event {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 64px 1fr;
    align-items: center;
}

.history-event:nth-child(odd) .history-entry {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

.history-event:nth-child(even) .history-entry {
    grid-column: 3;
    grid-row: 1;
}

.history-marker {
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    display: grid;
    justify-self: center;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 6px solid #101b24;
    border-radius: 50%;
    background: #c9a961;
    color: #101b24;
    font-size: .7rem;
    font-weight: 800;
}

.history-marker-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.history-entry {
    padding: 26px 30px;
    border: 1px solid rgba(220, 169, 82, .28);
    border-radius: 8px;
    background: rgba(17, 32, 42, .82);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
    backdrop-filter: blur(5px);
}

.history-year {
    display: block;
    margin-bottom: 0px;
    color: #1684a6;
    font-size: 1.25rem;
    font-weight: 800;
}

.history-date {
    display: block;
    margin-top: -5px;
    margin-bottom: 10px;
    color: #1684a6;
    font-size: 1rem;
    font-weight: 800;
}

.history-entry p {
    margin: 0;
    color: #d5dcdf;
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 767.98px) {
    .history-page {
        padding: 32px 16px 56px;
    }

    .history-heading {
        margin-bottom: 48px;
    }

    .history-heading h1 {
        font-size: 2.5rem;
    }

    .history-timeline {
        gap: 28px;
    }

    .history-timeline::before {
        left: 23px;
        transform: none;
    }

    .history-event {
        grid-template-columns: 48px 1fr;
        gap: 16px;
        align-items: start;
    }

    .history-marker {
        grid-column: 1;
    }

    .history-event:nth-child(odd) .history-entry,
    .history-event:nth-child(even) .history-entry {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
    }

    .history-entry {
        padding: 20px;
    }
}

main > .container {
    padding: 70px 15px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.not-set {
    color: var(--bs-danger);
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px var(--bs-body-color);
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px var(--bs-body-color);
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: var(--bs-secondary-color);
}

.error-summary {
    color: var(--bs-danger-text-emphasis);
    background: var(--bs-danger-bg-subtle);
    border-left: 3px solid var(--bs-danger-border-subtle);
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* full-width transparent navigation overlay */
#header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 3;
    transition: transform .25s ease;
}

#footer {
    position: relative;
    z-index: 3;
}

#header.header-hidden {
    transform: translateY(-100%);
}

#main {
    padding-top: 82px;
}

#main.homepage-main {
    padding-top: 0;
}

#main.homepage-main > .container-fluid {
    padding-right: 0;
    padding-left: 0;
}

#main.people-main {
    padding-top: 0;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 82px;
    padding: 14px 32px;
    background: transparent;
}

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

.site-header__logo {
    display: block;
    width: min(190px, 42vw);
    height: auto;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__icon-button,
.site-header__menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(0, 0, 0, .16);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.site-header__icon-button:hover,
.site-header__icon-button:focus-visible,
.site-header__menu-button:hover,
.site-header__menu-button:focus-visible {
    border-color: #fff;
    background: rgba(0, 0, 0, .38);
}

.site-header__menu-button {
    flex-direction: column;
    gap: 4px;
}

.site-header__menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.site-menu {
    --bs-offcanvas-width: min(360px, 88vw);
    --bs-offcanvas-bg: #101b24;
    --bs-offcanvas-color: #f7f3eb;
    color: var(--bs-offcanvas-color);
    background: var(--bs-offcanvas-bg);
    box-shadow: -18px 0 40px rgba(0, 0, 0, .3);
}

.site-menu .offcanvas-header {
    border-bottom: 1px solid rgba(247, 243, 235, .14);
}

.site-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

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

.site-menu__logo {
    display: block;
    width: min(160px, 46vw);
    height: auto;
}

.site-menu .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

.site-menu .nav-link {
    color: #c1cbd0;
}

.site-menu .nav-link:hover,
.site-menu .nav-link:focus,
.site-menu .nav-link.active {
    color: #dca952;
}

.site-menu .nav-link {
    padding: .65rem .75rem;
}

@media (max-width: 767.98px) {
    #main:not(.homepage-main):not(.people-main) {
        padding-top: 70px;
    }

    .site-header__bar {
        min-height: 70px;
        padding: 12px 18px;
    }
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    color: var(--bs-navbar-color);
}

@media (max-width: 767.98px) {
    .navbar-nav .nav-link.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar-nav .nav-link.logout:focus,
.navbar-nav .nav-link.logout:hover {
    color: var(--bs-navbar-hover-color);
}

/* footer logo: light logo by default (light bg-body-tertiary), dark logo for dark theme */
.footer-logo-dark { display: none; }

[data-bs-theme="dark"] .footer-logo-light { display: none; }
[data-bs-theme="dark"] .footer-logo-dark  { display: inline-block; }

/* login inputs: seamless icon inside input (Volt style) */
.login-split-card .input-group {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.login-split-card .input-group .input-group-text {
    background: transparent;
    border: 0;
    padding-left: 1rem;
    padding-right: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-split-card .input-group .form-control {
    border: 0;
    background: transparent;
}

.login-split-card .input-group .form-control:focus {
    box-shadow: none;
}

.login-split-card .input-group:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

/* validation styles for login split card (browsers with :has()) */
@supports selector(.input-group:has(.is-invalid)) {
    .login-split-card .input-group:has(.is-invalid) ~ .invalid-feedback {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .login-split-card .input-group:has(.is-invalid) {
        border-color: var(--bs-danger);
    }

    .login-split-card .input-group:has(.is-invalid):focus-within {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* fallback validation styles for login split card (browsers without :has()) */
@supports not selector(.input-group:has(.is-invalid)) {
    .login-split-card .invalid-feedback:not(:empty) {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .login-split-card .input-group .form-control.is-invalid {
        border: var(--bs-border-width) solid var(--bs-danger);
    }

    .login-split-card .input-group .form-control.is-invalid:focus {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* login split card */
.login-split-card {
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
    background-color: var(--bs-gray-100);
    width: 100%;
    max-width: 900px;
}

.login-split-card-wide {
    max-width: 960px;
}

.login-brand-title {
    font-size: 1.75rem;
    line-height: 1.3;
}

.login-brand-text {
    font-size: .9rem;
}

.login-brand-panel {
    background: linear-gradient(135deg, #40B3D8 0%, #3a9cbd 40%, #83C933 100%);
    position: relative;
    min-height: 480px;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(241, 138, 42, .25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(131, 201, 51, .2) 0%, transparent 40%);
    pointer-events: none;
}

.login-btn {
    background: linear-gradient(135deg, #40B3D8, #3a9cbd);
    border: none;
    font-weight: 600;
    letter-spacing: .02em;
    transition: opacity .2s, transform .1s;
}

.login-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

/* dark mode login card */
[data-bs-theme="dark"] .login-split-card {
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 4px 24px rgba(0, 0, 0, .4);
}

[data-bs-theme="dark"] .login-mobile-logo {
    filter: invert(1);
}

/* contact form textarea height */
.site-contact textarea.form-control {
    height: 140px;
}

/* captcha: blend with card background */
.site-contact img[src*="captcha"] {
    border-radius: var(--bs-border-radius);
    mix-blend-mode: multiply;
}

/* dark mode: invert captcha for visibility on dark background */
[data-bs-theme="dark"] .site-contact img[src*="captcha"] {
    mix-blend-mode: screen;
    filter: invert(1) hue-rotate(180deg);
}

/* centered page layout */
.site-login,
.site-contact,
.site-index,
.site-error,
.site-about,
.site-contact-success {
    flex: 1;
}

.site-error .site-error-content,
.site-about .site-about-content,
.site-contact-success .site-contact-success-content {
    width: 100%;
    max-width: 90%;
}

@media (min-width: 576px) {
    .site-error .site-error-content,
    .site-about .site-about-content,
    .site-contact-success .site-contact-success-content {
        max-width: 80%;
    }
}

@media (min-width: 768px) {
    .site-error .site-error-content,
    .site-about .site-about-content,
    .site-contact-success .site-contact-success-content {
        max-width: 60%;
    }
}

@media (min-width: 992px) {
    .site-error .site-error-content,
    .site-about .site-about-content,
    .site-contact-success .site-contact-success-content {
        max-width: 50%;
    }
}

.hero-btn {
    position: relative;
    display: inline-block;
    padding: 14px 36px !important;
    font-size: 16px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ecf0f1 0%, #fff 100%);
    color: #856b2e !important;
    border: 3px solid #856b2e;
    border-radius: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-btn:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(52, 152, 219, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.hero-btn svg {
    display: inline-block;
    margin-left: 8px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-btn:hover svg {
    transform: translateX(3px);
}

.hero-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.hero-lead {
    margin: 0 0 1.5rem !important;
}

.hero-slide-next {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-slide-next:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(-3px);
}

.hero-slide-next svg {
    width: 20px;
    height: 20px;
}

/* Fullscreen Swiper Hero */
.hero-swiper {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-swiper .swiper-wrapper {
    height: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-slide-video {
    background: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 1;
    backdrop-filter: blur(2px);
}

.hero-video-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #dca952;
    border-right-color: #dca952;
    border-radius: 50%;
    animation: hero-spinner-spin 0.8s linear infinite;
}

@keyframes hero-spinner-spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 800px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-slide-content .hero-lead {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    user-select: none;
    pointer-events: none;
}

.hero-scroll-hint__arrow {
    width: 18px;
    height: 18px;
    border-right: 3px solid rgba(255, 255, 255, 0.95);
    border-bottom: 3px solid rgba(255, 255, 255, 0.95);
    transform: rotate(45deg);
    animation: hero-scroll-arrow 1.6s ease-in-out infinite;
}

.hero-scroll-hint__text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.5;
    text-align: center;
}

@keyframes hero-scroll-arrow {
    0%, 100% {
        opacity: 1;
        transform: translateY(0) rotate(45deg);
    }
    50% {
        opacity: 0.45;
        transform: translateY(8px) rotate(45deg);
    }
}

@media (max-width: 767.98px) {
    .hero-scroll-hint {
        display: none;
    }
}


/* Swiper pagination */
.hero-swiper .swiper-pagination {
    z-index: 3;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: background 0.3s, transform 0.3s;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.3);
}

/* Swiper navigation */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #fff;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-swiper .swiper-button-next {
    right: 1.5rem;
}

.hero-swiper .swiper-button-prev {
    left: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video-spinner {
        animation: none;
        border-top-color: #dca952;
        border-right-color: #dca952;
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .hero-swiper {
        min-height: 500px;
    }

    .hero-slide-content h1 {
        font-size: 2rem;
    }

    .hero-slide-content h2 {
        font-size: 1.75rem;
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        display: none;
    }
}

/* hero banner */
.hero-banner {
    background: linear-gradient(135deg, #83C933 0%, #3a9cbd 40%, #40B3D8 100%);
    position: relative;
}

.hero-lead {
    max-width: 520px;
}

.hero-logo {
    height: 120px;
    opacity: .45;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 15% 85%, rgba(241, 138, 42, .3) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(131, 201, 51, .25) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(64, 179, 216, .15) 0%, transparent 60%);
    pointer-events: none;
}

/* extension cards */
.extension-card {
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
}

.extension-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
}

.extension-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* dark mode: extension cards */
[data-bs-theme="dark"] .extension-card {
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 2px 8px rgba(0, 0, 0, .3);
}

[data-bs-theme="dark"] .extension-card:hover {
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 8px 24px rgba(0, 0, 0, .4) !important;
}

.publikacje-page {
    position: relative;
    z-index: 0;
    max-width: none;
    min-height: 100%;
    margin: 0 auto;
    padding: 56px 24px 88px;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(8, 17, 24, .96), rgba(11, 28, 38, .84) 52%, rgba(8, 17, 24, .94)), url('../images/publikacje-color.webp') center / cover fixed;
}

.media-page {
    position: relative;
    z-index: 0;
    max-width: none;
    min-height: 100%;
    margin: 0 auto;
    padding: 56px 24px 88px;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(8, 17, 24, .96), rgba(11, 28, 38, .84) 52%, rgba(8, 17, 24, .94)), url('../images/media-new.webp') center / cover fixed;
}

.publikacje-page::before {
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 100vh;
    background: linear-gradient(120deg, rgba(8, 17, 24, .96), rgba(11, 28, 38, .84) 52%, rgba(8, 17, 24, .94)), url('../images/publikacje-color.webp') center / cover;
    content: '';
    opacity: .98;
}

.media-page::before {
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 100vh;
    background: linear-gradient(120deg, rgba(8, 17, 24, .96), rgba(11, 28, 38, .84) 52%, rgba(8, 17, 24, .94)), url('../images/media-new.webp') center / cover;
    content: '';
    opacity: .98;
}

.media-page > *,
.publikacje-page > * {
    position: relative;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

.media-heading,
.publikacje-heading {
    max-width: 50vw;
    margin-bottom: 56px;
    text-align: center;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.publikacje-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
}

.media-card,
.publikacja-card {
    display: flex;
    min-height: 240px;
    overflow: hidden;
    border: 1px solid rgba(220, 169, 82, .28);
    border-radius: 8px;
    background: rgba(17, 32, 42, .82);
    color: #d5dcdf;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
    backdrop-filter: blur(5px);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.media-card:hover,
.media-card:focus-visible,
.publikacja-card:hover,
.publikacja-card:focus-within {
    border-color: rgba(220, 169, 82, .7);
    color: #d5dcdf;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .38);
    transform: translateY(-4px);
}

.media-card__content,
.publikacja-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
}

.media-card__badge {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 18px;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(22, 132, 166, .18);
    color: #c9a961;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.media-card h2,
.publikacja-card h2 {
    margin: 0 0 18px;
    color: #f7f3eb;
    font-size: 1.35rem;
    line-height: 1.35;
}

.media-card__link,
.publikacja-card__link {
    margin-top: auto;
    color: #c9a961;
    font-weight: 700;
    text-decoration: none;
}

.publikacja-card__link--disabled {
    color: #b8c1c5;
    cursor: default;
}

.publikacja-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    min-height: 260px;
    overflow: hidden;
}

.publikacja-card__image-wrap {
    min-height: 100%;
    background: #101b24;
}

.publikacja-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publikacja-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.publikacja-card__text {
    margin: 0 0 20px;
    color: #d5dcdf;
    line-height: 1.65;
}

.publikacja-card__text br {
    display: block;
    margin-bottom: 6px;
    content: '';
}

/* people profiles */
.people-page,
.person-profile {
    position: relative;
    z-index: 0;
    max-width: none;
    min-height: 100%;
    margin: 0 auto;
    padding: 56px 24px 88px;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(8, 17, 24, .96), rgba(11, 28, 38, .84) 52%, rgba(8, 17, 24, .94)), url('../images/ludzie.webp') center / cover fixed;
}

.people-page {
    max-width: none;
    min-height: 100%;
    overflow: hidden;
    background: #101b24;
}

.people-page::before {
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 100vh;
    background: linear-gradient(120deg, rgba(8, 17, 24, .96), rgba(11, 28, 38, .84) 52%, rgba(8, 17, 24, .94)), url('../images/ludzie.webp') center / cover;
    content: '';
    opacity: .98;
}

.people-page > * {
    position: relative;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

.person-profile > * {
    position: relative;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

.people-page .people-heading {
    max-width: 50vw;
    text-align: center;
}

.people-page__eyebrow,
.person-profile__eyebrow,
.person-card__eyebrow {
    margin: 0 0 10px;
    color: #c9a961;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.people-page h1 {
    margin: 0 0 36px;
    color: #f7f3eb;
    font-size: clamp(2.25rem, 5vw, 4rem);
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.person-card {
    display: grid;
    grid-template-columns: minmax(150px, 38%) 1fr;
    overflow: hidden;
    border: 1px solid rgba(220, 169, 82, .28);
    border-radius: 8px;
    background: rgba(17, 32, 42, .82);
    color: #d5dcdf;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
    backdrop-filter: blur(5px);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.person-card:hover,
.person-card:focus-visible {
    border-color: rgba(220, 169, 82, .7);
    color: #d5dcdf;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .38);
    transform: translateY(-4px);
}

.person-card__image-wrap {
    min-height: 260px;
    background: #101b24;
}

.person-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.person-card h2 {
    margin: 0 0 12px;
    color: #f7f3eb;
    font-size: 1.35rem;
}

.person-card p:not(.person-card__eyebrow) {
    margin: 0 0 24px;
    color: #d5dcdf;
}

.person-card__link {
    color: #c9a961;
    font-weight: 700;
}

.person-profile__back {
    display: inline-block;
    margin-bottom: 36px;
    color: #c9a961;
    font-weight: 700;
    text-decoration: none;
}

.person-profile__content {
    display: grid;
    grid-template-columns: minmax(240px, 380px) 1fr;
    align-items: center;
    gap: 56px;
}

.person-profile__image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.person-profile__details {
    padding: 40px;
    border: 1px solid rgba(220, 169, 82, .28);
    border-radius: 8px;
    background: rgba(17, 32, 42, .9);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
    backdrop-filter: blur(5px);
}

.person-profile h1 {
    margin: 0 0 16px;
    color: #f7f3eb;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
}

.person-profile__excerpt {
    margin: 0;
    color: #d5dcdf;
    font-size: 1.25rem;
    line-height: 1.5;
}

.person-profile__text {
    max-width: 820px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(220, 169, 82, .28);
    color: #d5dcdf;
    font-size: 1.05rem;
    line-height: 1.8;
}

.person-profile__text p {
    margin-bottom: 1.25rem;
}

.person-profile__text h3 {
    margin: 3rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(220, 169, 82, .28);
    color: #c9a961;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .media-grid,
    .publikacje-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .publikacja-card {
        grid-template-columns: minmax(150px, 220px) 1fr;
    }
}

@media (max-width: 767.98px) {
    .media-page,
    .publikacje-page,
    .people-page,
    .person-profile {
        padding: 106px 18px 64px;
    }

    .media-grid,
    .publikacje-grid,
    .people-grid,
    .person-profile__content {
        grid-template-columns: 1fr;
    }

    .publikacja-card {
        grid-template-columns: 1fr;
    }

    .media-page .media-heading,
    .publikacje-page .publikacje-heading,
    .people-page .people-heading {
        max-width: none;
    }

    .person-card {
        grid-template-columns: 120px 1fr;
    }

    .person-card__image-wrap {
        min-height: 190px;
    }

    .person-card__content {
        padding: 20px;
    }

    .person-profile__details {
        padding: 28px 22px;
    }
}
