/* Kolor akcentu zmieniasz w --accent. Reszta palety zostaje czarno-kremowa. */
:root {
    --bg: #070707;
    --bg-raised: #121212;
    --ink: #f4f1ea;
    --ink-muted: #c8c2ba;
    --line: rgba(244, 241, 234, 0.85);
    --line-soft: rgba(244, 241, 234, 0.22);
    --accent: #ff4d3a;
    --font-display: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", serif;
    --font-ui: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
    --header-h: 4rem;
    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --container: 76rem;
    --measure: 36rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --space-9: 7rem;
    --section-y: clamp(3.5rem, 8vw, 6.5rem);
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f3ec;
    --bg-raised: #fffdf8;
    --ink: #161513;
    --ink-muted: #4e4944;
    --line: rgba(22, 21, 19, 0.78);
    --line-soft: rgba(22, 21, 19, 0.16);
    --accent: #c43122;
}

@media (min-width: 1600px) {
    :root {
        --container: 86rem;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
    margin: 0;
    max-width: 100%;
    min-height: 100%;
    overflow-x: clip;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    line-height: 1.55;
    font-weight: 400;
}

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

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

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
}

address {
    font-style: normal;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: 0;
    transform: translateY(-120%);
    background: var(--ink);
    color: var(--bg);
    padding: 0.75rem 1rem;
    z-index: 50;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.skip-link:focus {
    transform: none;
}

/* Siatka i sekcje */

.container {
    width: min(100% - (2 * var(--gutter)), var(--container));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-y);
}

.section-rule {
    border-top: 1px solid var(--line-soft);
}

.section-head {
    margin-bottom: var(--space-6);
}

.section-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4) var(--space-6);
}

.section-head-row > div {
    max-width: 44rem;
}

.section-head .title-lg,
.section-head .lede {
    margin-bottom: 0;
}

.section-head .lede {
    margin-top: var(--space-4);
}

/* Typografia: display dla wordmarku i trzech poziomów nagłówków */

.section-kicker {
    margin: 0 0 var(--space-3);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title,
.title-lg,
.title-md,
.title-sm {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.section-title {
    margin: 0 0 var(--space-5);
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    line-height: 0.95;
}

.title-lg {
    margin: 0 0 var(--space-5);
    font-size: clamp(2.3rem, 5.6vw, 4.25rem);
    line-height: 0.98;
}

.title-md {
    margin: 0 0 var(--space-4);
    font-size: clamp(1.85rem, 3.8vw, 2.9rem);
    line-height: 1.02;
}

.title-sm {
    margin: 0 0 var(--space-3);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    line-height: 1.08;
}

.lede {
    max-width: var(--measure);
    color: var(--ink-muted);
    font-size: 1.05rem;
}

.meta {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.9rem;
}

/* Przyciski */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.btn-fill {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
}

.btn:hover,
.btn:active {
    background: var(--ink);
    color: var(--bg);
}

.btn-fill:hover,
.btn-fill:active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--accent);
}

/* Nagłówek i nawigacja */

.has-staff {
    padding-bottom: 5.5rem;
}

.staff-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    padding: 0.45rem var(--gutter) max(0.45rem, env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--accent);
}

.staff-role {
    margin: 0 auto 0 0;
    color: var(--ink-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.staff-bar .btn {
    min-height: 44px;
}

.staff-bar form {
    margin: 0;
}

.staff-edit {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 0 0 var(--space-3);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.staff-edit:hover,
.staff-edit:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-height: var(--header-h);
    padding: 0.25rem var(--gutter);
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
}

.brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
    line-height: 0.9;
}

.brand-mark {
    align-self: flex-end;
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-desktop {
    display: none;
    align-items: center;
    min-width: 0;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-list a:hover {
    color: var(--ink-muted);
}

.nav-list a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle,
.nav-close,
.theme-toggle {
    flex: none;
    min-height: 44px;
    min-width: 44px;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-toggle,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    letter-spacing: 0.08em;
    padding-inline: 0.7rem;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    overflow: auto;
    background: var(--bg);
}

.nav-dialog {
    width: 100%;
    min-height: 100%;
    padding: 0 var(--gutter) var(--space-8);
    outline: none;
}

.nav-dialog-bar {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: var(--header-h);
    background: var(--bg);
}

.nav-dialog-bar .section-kicker {
    margin: 0;
}

.nav-overlay-groups {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-5);
}

.nav-overlay-list {
    display: grid;
    margin: var(--space-2) 0 0;
    padding: 0;
    list-style: none;
}

.nav-overlay-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.1rem 0;
    color: inherit;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 4.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.nav-overlay-list a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--accent);
}

/* Hero: jedno zdjęcie na cały ekran, nazwa grupy na dole */

.hero {
    position: relative;
    display: flex;
    min-height: calc(100svh - var(--header-h));
    overflow: hidden;
    background: var(--bg);
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 38%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom, rgba(7, 7, 7, 0.55) 0%, rgba(7, 7, 7, 0) 26%),
        linear-gradient(to top, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.78) 26%, rgba(7, 7, 7, 0) 62%);
    pointer-events: none;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-7);
    width: 100%;
    min-width: 0;
    padding: var(--space-5) var(--gutter) clamp(2rem, 6vh, 4rem);
}

.hero-brand {
    align-self: flex-end;
    display: flex;
    justify-content: flex-end;
    max-width: min(16rem, 52vw);
}

.hero-logo {
    display: block;
    width: auto;
    max-width: min(16rem, 52vw);
    max-height: 12rem;
    object-fit: contain;
    object-position: right center;
    mix-blend-mode: screen;
}

.hero-foot {
    min-width: 0;
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-optical-sizing: auto;
}

.wordmark-mgt {
    align-self: flex-end;
    margin: 0 27% 0.12em 0;
    font-size: clamp(1.3rem, 5.4vw, 4rem);
    line-height: 1;
    letter-spacing: 0.01em;
}

.wordmark-name {
    font-size: clamp(3.6rem, 16.5vw, 12rem);
    padding-bottom: 0.16em;
    line-height: 0.82;
    letter-spacing: -0.035em;
}

.hero-lede {
    max-width: 30rem;
    margin: var(--space-5) 0 0;
    color: var(--ink);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.hero-actions .btn {
    flex: 1 1 9rem;
    max-width: 14rem;
}

/* Najbliższe wydarzenie */

.section-event {
    background: var(--bg-raised);
}

.event {
    display: grid;
    gap: var(--space-5);
}

.event-date {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-weight: 700;
}

.event-day {
    font-size: clamp(4rem, 10vw, 6.5rem);
    line-height: 0.8;
    letter-spacing: -0.04em;
}

.event-month {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1;
}

.event-body .title-md {
    max-width: 28ch;
}

.event-text {
    max-width: var(--measure);
    margin: var(--space-4) 0 0;
}

.event-cta {
    justify-self: start;
}

/* Spektakle */

.shows {
    display: grid;
    gap: var(--space-7) var(--space-6);
}

.show {
    display: block;
    color: inherit;
    text-decoration: none;
}

.show .media {
    margin-bottom: var(--space-4);
}

.show p {
    max-width: var(--measure);
    margin: 0;
    color: var(--ink-muted);
}

.show:hover .title-sm {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--bg-raised);
}

.media picture,
.mosaic-item picture {
    display: contents;
}

.media img,
.mosaic-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* O grupie */

.about {
    display: grid;
    gap: var(--space-5) var(--space-8);
}

.about-body {
    max-width: 38rem;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: var(--space-5);
    margin: var(--space-6) 0;
}

.facts > div {
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}

.facts dt {
    color: var(--ink-muted);
    font-size: 0.85rem;
}

.facts dd {
    order: -1;
    margin: 0 0 var(--space-1);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    line-height: 1.05;
}

.facts > div {
    display: flex;
    flex-direction: column;
}

/* Aktualności jako lista, bez kart */

.news-list {
    display: grid;
    gap: var(--space-5) var(--space-6);
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-item {
    display: grid;
    align-content: start;
    gap: var(--space-2);
    height: 100%;
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.news-item .title-sm {
    margin: 0;
}

.news-item p {
    margin: 0;
    color: var(--ink-muted);
}

.news-item:hover .title-sm {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

/* Galeria: jedno duże zdjęcie i dwa mniejsze */

.mosaic {
    display: grid;
    gap: var(--space-3);
}

.mosaic-item {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--bg-raised);
}

/* #oTeatrze */

.essay {
    max-width: 52rem;
}

.essay-quote {
    margin: var(--space-5) 0;
    padding-left: var(--space-5);
    border-left: 3px solid var(--accent);
}

.essay-quote p {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    font-weight: 500;
    line-height: 1.15;
}

/* Newsletter i formularze */

.newsletter {
    display: grid;
    gap: var(--space-6);
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--bg-raised);
}

.newsletter .lede {
    margin: 0;
}

.form {
    display: grid;
    gap: var(--space-4);
    align-content: start;
}

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

.field label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-error {
    margin: 0;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent);
}

.check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    min-height: 44px;
    line-height: 1.4;
}

.check input {
    width: 1.25rem;
    height: 1.25rem;
    min-height: 0;
    margin: 0.1rem 0 0;
    accent-color: var(--accent);
    flex: none;
}

.form .btn {
    justify-self: stretch;
}

.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.reservation-form .field > label:has(~ :is(input, textarea, select)[required])::after {
    content: " *";
    color: var(--accent);
}

.seat-map {
    --seat-size: 44px;
    --seat-gap: 0.25rem;
    overflow-x: auto;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-2);
}

.seat-stage {
    width: calc(var(--seat-columns) * (var(--seat-size) + var(--seat-gap)) - var(--seat-gap));
    min-width: max-content;
    margin: 0 0 var(--space-4) calc(5.5rem + var(--space-3));
    padding: 0.45rem;
    border: 1px solid var(--line);
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
}

.seat-row {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    width: max-content;
    margin-bottom: 0.35rem;
}

.seat-row-label {
    flex: 0 0 5.5rem;
    color: var(--ink-muted);
    font-size: 0.75rem;
}

.seat-row-seats {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    width: calc(var(--seat-columns) * (var(--seat-size) + var(--seat-gap)) - var(--seat-gap));
}

.seat {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--ink);
    position: relative;
}

.seat span {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
}

.seat input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
}

.seat:has(input:checked),
.seat.is-picked {
    background: var(--ink);
    color: var(--bg);
}

.seat.is-taken {
    color: #aaa39b;
    border-color: #d7332c;
    background: rgba(215, 51, 44, 0.08);
    overflow: hidden;
}

.seat.is-taken::before,
.seat.is-taken::after {
    position: absolute;
    z-index: 1;
    width: 78%;
    height: 3px;
    background: #ef4136;
    content: "";
    pointer-events: none;
}

.seat.is-taken::before {
    transform: rotate(45deg);
}

.seat.is-taken::after {
    transform: rotate(-45deg);
}

.seat input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    margin-top: var(--space-4);
}

.seat-legend .seat,
.seat-legend .seat span {
    min-width: 28px;
    min-height: 28px;
}

.ticket-code {
    font-size: 2rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Organizatorzy */

.partners {
    display: grid;
    gap: var(--space-5) var(--space-8);
}

.partner-list {
    display: grid;
    gap: var(--space-4);
    margin: 0;
}

.partner-list > div {
    display: grid;
    gap: var(--space-1);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}

.partner-list dt {
    color: var(--ink-muted);
    font-size: 0.85rem;
}

.partner-list dd {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* Komunikaty */

.flashes {
    display: grid;
    gap: var(--space-3);
    padding-top: var(--space-4);
}

.flash {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--ink);
}

.flash-error {
    border-left-color: var(--accent);
}

/* Podstrony */

.page {
    min-height: calc(100svh - var(--header-h) - 16rem);
}

.page-head {
    padding-block: var(--space-8) var(--space-7);
}

.page-head .lede + .lede {
    margin-top: var(--space-4);
}

/* Stopka */

.site-footer {
    padding: var(--space-8) 0 var(--space-6);
    border-top: 1px solid var(--line-soft);
}

.footer-grid {
    display: grid;
    gap: var(--space-6);
}

.footer-brand {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 0.9;
}

.footer-kicker {
    margin: var(--space-3) 0 0;
    color: var(--ink-muted);
}

.footer-contact p {
    margin: 0 0 var(--space-2);
}

.footer-social {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-social a,
.footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    overflow-wrap: anywhere;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: 0 0 var(--space-4);
    padding: 0;
    list-style: none;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    color: inherit;
}

.social-icons svg {
    flex: none;
    width: 20px;
    height: 20px;
}

.social-lead,
.social-more {
    display: grid;
    gap: var(--space-5);
    min-width: 0;
}

.social-photo {
    min-width: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-raised);
}

.social-photo:not(:has(img)) {
    display: none;
}

.social-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-copy,
.social-card {
    min-width: 0;
}

.social-copy time,
.social-card time {
    display: block;
    margin-bottom: var(--space-3);
    color: var(--ink-muted);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.social-card {
    display: grid;
    gap: var(--space-3);
    align-content: start;
}

.social-copy .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, max-content);
}

.social-copy .hero-actions .btn {
    max-width: none;
    white-space: normal;
}

.youtube-placeholder {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.youtube-thumb {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.youtube-lead .social-copy .title-sm {
    margin-bottom: var(--space-4);
}

.instagram-inner {
    display: grid;
    gap: var(--space-5);
    align-items: end;
}

.instagram-inner .lede {
    margin-bottom: 0;
}

@media (min-width: 48rem) {
    .instagram-inner,
    .social-follow {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .calendar-switch,
    .departments,
    .nav-overlay-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-switch {
        justify-content: start;
        column-gap: var(--space-7);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .social-lead {
        animation: social-rise 0.7s ease both;
    }
}

@keyframes social-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.footer-note,
.footer-legal {
    margin-top: var(--space-6);
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 0.85rem;
}

.footer-legal {
    padding-bottom: var(--space-5);
}

/* Zgoda na ciasteczka: mały panel, nie pas przez całą stronę */

body:has(.cookie-banner:not([hidden])) {
    padding-bottom: 12rem;
}

.cookie-banner {
    position: fixed;
    right: var(--space-3);
    bottom: var(--space-3);
    left: var(--space-3);
    z-index: 45;
    padding: var(--space-4) var(--space-4) max(var(--space-4), env(safe-area-inset-bottom));
    border: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.cookie-inner {
    display: grid;
    gap: var(--space-3);
}

.cookie-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink);
}

.cookie-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ink-muted);
}

.cookie-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
}

.cookie-actions .btn {
    width: 100%;
    padding-inline: 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    white-space: normal;
}

@media (min-width: 768px) {
    .cookie-banner {
        right: var(--gutter);
        bottom: var(--gutter);
        left: auto;
        width: 28rem;
    }

    .cookie-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cookie-actions .btn:last-child {
        grid-column: 1 / -1;
    }
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: var(--gutter);
    background: rgba(0, 0, 0, 0.92);
}

.cookie-modal[hidden] {
    display: none;
}

.cookie-dialog {
    width: min(100%, 38rem);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: var(--space-5);
    outline: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.cookie-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
}

.btn-close {
    background: none;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-close:hover,
.btn-close:focus-visible {
    border-color: var(--ink);
    color: var(--accent);
}

.cookie-dialog-desc {
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.cookie-category {
    padding: var(--space-3);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.cookie-category .hint {
    margin: var(--space-2) 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--ink-muted);
}

.cookie-meta {
    font-size: 0.8rem;
    color: var(--ink-muted);
    border-top: 1px solid var(--line);
    padding-top: var(--space-2);
}

.cookie-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.cookie-dialog-actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
}

.cookie-dialog-footer {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin: 0;
    border-top: 1px solid var(--line);
    padding-top: var(--space-3);
}

.footer-btn-link {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: inherit;
    display: inline;
    min-height: 44px;
}

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

.film-container {
    width: 100%;
}

.film-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d0d0d;
    border: 1px solid rgba(244, 241, 234, 0.35);
    color: #f4f1ea;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    box-sizing: border-box;
}

.film-placeholder-inner {
    max-width: 32rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
}

.film-placeholder-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #c8c2ba;
    margin: 0;
}

.film-placeholder-text {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #f4f1ea;
    margin: 0;
}

.film-placeholder .btn {
    color: #f4f1ea;
    border-color: rgba(244, 241, 234, 0.85);
}

.film-placeholder .btn:hover,
.film-placeholder .btn:active {
    background: #f4f1ea;
    color: #070707;
}

.film-placeholder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
}

.film-placeholder-actions .btn {
    min-height: 44px;
}

@media (min-width: 768px) {
    .event {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        column-gap: var(--space-7);
    }

    .event-date {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .event-cta {
        grid-column: 2;
    }

    .shows {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mosaic {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        grid-template-rows: repeat(2, minmax(0, 1fr));
        aspect-ratio: 16 / 8;
    }

    .mosaic-item {
        aspect-ratio: auto;
    }

    .mosaic-item-lead {
        grid-row: 1 / span 2;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
    }

    .form .btn {
        justify-self: start;
    }
}

@media (min-width: 960px) {
    .event {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .event-cta {
        grid-column: auto;
    }

    .about,
    .partners {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .newsletter {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        column-gap: var(--space-8);
    }

    .social-lead {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
        align-items: end;
    }

    .social-copy .hero-actions {
        display: flex;
    }

    .social-more {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .partner-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .departments {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .nav-desktop {
        display: flex;
        margin-left: auto;
    }

    .header-tools {
        margin-left: 0;
    }

    .nav-toggle {
        display: none;
    }
}

/* Podstrony treści */

.page-body {
    padding-bottom: var(--space-8);
}

.install-steps,
.install-checks {
    margin: 0 0 var(--space-6);
    padding-left: 1.2rem;
}

.install-steps li,
.install-checks li {
    margin: 0.35rem 0;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0;
    margin: 0 0 var(--space-4);
    padding: 0;
    list-style: none;
}

.crumbs li {
    display: inline-flex;
    align-items: center;
    color: var(--ink-muted);
}

.crumbs li:not(:last-child)::after {
    margin: 0 0.55rem;
    content: "/";
}

.crumbs a,
.crumbs span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.search-form,
.pager,
.month-nav,
.share,
.lightbox-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: end;
}

.search-form .field {
    flex: 1 1 16rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0 0 var(--space-5);
}

.calendar-switch {
    display: grid;
    gap: var(--space-4);
    margin: 0 0 var(--space-5);
}

.calendar-switch .section-kicker {
    margin-bottom: var(--space-2);
}

.calendar-switch .filters {
    margin: 0;
}

.departments {
    display: grid;
    gap: var(--space-4);
    margin: var(--space-5) 0 var(--space-6);
}

.department {
    display: grid;
    align-content: start;
    gap: var(--space-3);
    min-width: 0;
    padding: var(--space-4);
    border: 1px solid var(--line-soft);
}

.department .title-sm {
    margin: 0;
}

.department a {
    color: inherit;
    text-decoration: none;
}

.department a:hover {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.social-follow {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line-soft);
}

.social-follow .lede {
    margin-bottom: 0;
}

.featured,
.contact-card,
.prose {
    max-width: 46rem;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose h2,
.prose h3 {
    margin: 0 0 1rem;
}

.prose ul,
.prose ol {
    padding-left: 1.25rem;
}

.prose a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.check a {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.hint {
    color: var(--ink-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.cover,
.photo-open img,
.person img,
.show .media img {
    display: block;
    width: 100%;
    height: auto;
}

.cover {
    margin: var(--space-5) 0;
}

.photo-grid,
.people,
.film-list,
.event-list {
    display: grid;
    gap: var(--space-5);
}

.photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.people {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    margin-bottom: var(--space-7);
}

.photo-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.photo-open img,
.person img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.person img {
    aspect-ratio: 1;
    margin-bottom: var(--space-3);
}

.plain-list,
.timeline,
.event-list,
.search-hits {
    margin: 0 0 var(--space-6);
    padding: 0;
    list-style: none;
}

.plain-list li,
.timeline li,
.event-list li,
.search-hits li {
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
}

.plain-list a,
.event-list a,
.search-hits a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.search-hits p,
.share p,
.contact-card p {
    margin: 0 0 var(--space-2);
}

mark {
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

.month-wrap {
    overflow-x: auto;
    margin-bottom: var(--space-6);
}

.month {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
}

.month th,
.month td {
    width: 14.28%;
    padding: 0.35rem;
    border: 1px solid var(--line-soft);
    vertical-align: top;
}

.month a {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.day-num {
    display: block;
    color: var(--ink-muted);
}

.contact-form {
    max-width: 36rem;
}

.film iframe,
.film-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: var(--gutter);
    background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-dialog {
    width: min(100%, 72rem);
    outline: none;
}

.lightbox-dialog img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
}

.empty {
    padding: var(--space-5) 0 var(--space-6);
    border-top: 1px solid var(--line);
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
