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

        :root {
            --bg: #f3f0e9;
            --paper: #ffffff;
            --text: #111111;
            --muted: #77736c;
            --line: #d9d5cd;
            --accent: #d94f45;
            --dark: #111111;
        }

        * { box-sizing: border-box; }

        html { scroll-behavior: smooth; }

        body {
            margin: 0;
            background: var(--bg);
            color: var(--text);
            font-family: Inter, Arial, Helvetica, sans-serif;
        }

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

        button, input { font-family: inherit; }

        header {
            border-bottom: 1px solid var(--line);
            background: var(--bg);
        }

        .header-inner {
            max-width: 1440px;
            margin: 0 auto;
            padding: 28px 42px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
        }

        .header-inner {
            position: relative;
        }

        /* Centralne logo serwisu. Nie wpływa na wysokość belki nagłówka. */
        .site-mark {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            align-items: center;
            justify-content: center;
            width: min(32vw, 240px);
            height: 52px;
            overflow: hidden;
        }

        .site-mark img {
            display: block;
            width: auto;
            height: 100%;
            max-width: 100%;
            object-fit: contain;
        }

        .logo {
            font-size: 22px;
            font-weight: 900;
            letter-spacing: -.06em;
            text-transform: uppercase;
        }

        .logo span { color: var(--accent); }

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

        nav a {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .1em;
        }

        nav a:hover,
        nav .nav-active {
            color: var(--accent);
        }

        .hero {
            max-width: 1440px;
            margin: 0 auto;
            padding: 28px 42px;
        }

        .eyebrow {
            margin-bottom: 18px;
            color: var(--accent);
            font-size: 17px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .15em;
        }

        .hero h1 {
            max-width: 1050px;
            margin: 0;
            font-size: clamp(58px, 8vw, 132px);
            line-height: .82;
            letter-spacing: -.075em;
            text-transform: uppercase;
            font-weight: 900;
        }

        .hero-bottom {
            /* margin-top: 45px; */
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 30px;
        }

        .hero-description {
            max-width: 500px;
            color: var(--muted);
            font-size: 15px;
            /* line-height: 1.6; */
        }

        .hero-count {
            font-size: 15px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .08em;
            white-space: nowrap;
        }

        .filters {
            border-top: 1px solid var(--line);
            border-bottom: 1px solid var(--line);
        }

        .filters-inner {
            max-width: 1440px;
            margin: 0 auto;
            padding: 18px 42px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .date-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .filter {
            min-height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 16px;
            border: 1px solid var(--line);
            background: transparent;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .08em;
            cursor: pointer;
        }

        .filter:hover,
        .filter.active {
            border-color: var(--dark);
            background: var(--dark);
            color: #fff;
        }

        .search {
            display: flex;
            gap: 6px;
        }

        .search input {
            height: 40px;
            width: 230px;
            border: 1px solid var(--line);
            background: transparent;
            padding: 0 12px;
            font-size: 12px;
            outline: none;
        }

        .search input:focus {
            border-color: var(--dark);
        }

        .search button {
            height: 40px;
            border: 0;
            background: var(--dark);
            color: white;
            padding: 0 18px;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            cursor: pointer;
        }

        .calendar-wrapper {
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 42px;
            max-height: 0;
            overflow: hidden;
            transition: max-height .25s ease, padding .25s ease;
        }

        .calendar-wrapper.open {
            max-height: 160px;
            padding-top: 18px;
            padding-bottom: 18px;
        }

        .calendar-form {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .calendar-form label {
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        .calendar-form input,
        .calendar-form button {
            height: 40px;
            border: 1px solid var(--line);
            background: var(--paper);
            padding: 0 12px;
        }

        .calendar-form button {
            background: var(--dark);
            color: white;
            border-color: var(--dark);
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            cursor: pointer;
        }

        .content {
            max-width: 1440px;
            margin: 0 auto;
            padding: 55px 42px 90px;
        }

        .view-heading {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 30px;
        }

        .view-heading h2 {
            margin: 0;
            font-size: 42px;
            line-height: .95;
            letter-spacing: -.055em;
            text-transform: uppercase;
        }

        .view-heading span {
            color: var(--muted);
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .1em;
        }

        .selected-date {
            margin-bottom: 45px;
            padding-bottom: 18px;
            border-bottom: 1px solid var(--line);
        }

        .selected-date-label {
            color: var(--accent);
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .1em;
        }

        .selected-date-value {
            margin-top: 8px;
            font-size: 30px;
            font-weight: 900;
            letter-spacing: -.04em;
            text-transform: uppercase;
        }

        .featured {
            display: grid;
            grid-template-columns: 1.25fr .75fr;
            min-height: 460px;
            margin-bottom: 55px;
            background: var(--dark);
            color: white;
        }

        .featured-image {
            min-height: 460px;
            background: #2b2b2b;
            overflow: hidden;
        }

        .featured-image img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

        .featured-placeholder {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #aaa;
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .1em;
            background: linear-gradient(135deg, #303030, #151515);
        }

        .featured-content {
            padding: 48px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .featured-meta {
            color: #aaa;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        .featured-title {
            margin: 25px 0 12px;
            font-size: clamp(34px, 4vw, 62px);
            line-height: .9;
            letter-spacing: -.055em;
            text-transform: uppercase;
            font-weight: 900;
        }

        .featured-location {
            color: #bbb;
            font-size: 13px;
            line-height: 1.5;
        }

        .featured-footer {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            padding-top: 20px;
            border-top: 1px solid #444;
            font-size: 9px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        .events-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 45px 22px;
        }

        .event-card { min-width: 0; }

        .event-image {
            aspect-ratio: 4 / 3;
            margin-bottom: 20px;
            overflow: hidden;
            background: #ddd8cf;
        }

        .event-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform .5s ease;
        }

        .event-card:hover .event-image img {
            transform: scale(1.04);
        }

        .event-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #777;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .1em;
        }

        .event-meta {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
            font-size: 9px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        .event-meta .source {
            color: var(--muted);
            text-align: right;
        }

        .event-card h3 {
            margin: 0;
            font-size: 25px;
            line-height: 1;
            letter-spacing: -.04em;
            text-transform: uppercase;
            font-weight: 900;
        }

        .event-location {
            margin-top: 14px;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.5;
        }

        .event-link {
            display: inline-block;
            margin-top: 20px;
            padding-bottom: 4px;
            border-bottom: 1px solid var(--text);
            font-size: 9px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .1em;
        }

        .event-link:hover {
            color: var(--accent);
            border-color: var(--accent);
        }

        .active-section {
            margin-top: 80px;
            margin-bottom: 80px;
            padding-top: 35px;
            border-top: 2px solid var(--dark);
        }

        .active-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .active-card {
            padding: 28px;
            border-left: 5px solid var(--accent);
            background: var(--paper);
        }

        .active-label {
            margin-bottom: 14px;
            color: var(--accent);
            font-size: 9px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: .1em;
        }

        .active-card h3 {
            margin: 0;
            font-size: 25px;
            line-height: 1;
            letter-spacing: -.04em;
            text-transform: uppercase;
        }

        .active-card .event-location {
            margin-top: 12px;
        }

        .week-list {
            display: flex;
            flex-direction: column;
            gap: 45px;
        }

        .week-day {
            padding-top: 25px;
            border-top: 1px solid var(--line);
        }

        .week-day:first-child {
            padding-top: 0;
            border-top: 0;
        }

        .week-day-heading {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 25px;
        }

        .week-day-heading h3 {
            margin: 0;
            font-size: 28px;
            line-height: 1;
            letter-spacing: -.04em;
            text-transform: uppercase;
        }

        .week-day-heading span {
            color: var(--muted);
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .week-empty {
            color: var(--muted);
            font-size: 12px;
        }

        .empty {
            padding: 70px 0;
            border-top: 1px solid var(--line);
            color: var(--muted);
            font-size: 15px;
        }

        footer {
            border-top: 1px solid var(--line);
        }

        .footer-inner {
            max-width: 1440px;
            margin: 0 auto;
            padding: 30px 42px;
            display: flex;
            justify-content: space-between;
            gap: 20px;
            font-size: 9px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .1em;
        }


        /* =========================================================
           INTERAKTYWNOŚĆ / WIDOK KAFELKI-LISTA
           ========================================================= */

        .view-controls {
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .view-switcher {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            padding: 3px;
            border: 1px solid var(--line);
            background: rgba(255,255,255,.28);
        }

        .view-btn {
            width: 36px;
            height: 32px;
            border: 0;
            background: transparent;
            color: var(--muted);
            cursor: pointer;
            font-size: 16px;
            line-height: 1;
            transition: background .2s ease, color .2s ease, transform .2s ease;
        }

        .view-btn:hover {
            background: var(--paper);
            color: var(--dark);
            transform: translateY(-1px);
        }

        .view-btn.active {
            background: var(--dark);
            color: #fff;
        }

        .view-btn:focus-visible,
        .filter:focus-visible,
        .search button:focus-visible,
        .calendar-form button:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        /* Delikatne interakcje filtrów */
        .filter {
            transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
        }

        .filter:hover {
            transform: translateY(-1px);
        }

        /* Karty */
        .event-card {
            position: relative;
            transition: transform .25s ease, opacity .25s ease;
        }

        .event-card:hover {
            transform: translateY(-5px);
        }

        .event-card h3 {
            transition: color .2s ease;
        }

        .event-card:hover h3 {
            color: var(--accent);
        }

        .event-image {
            position: relative;
        }

        .event-image::after {
            content: "↗";
            position: absolute;
            right: 12px;
            bottom: 12px;
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--dark);
            color: #fff;
            font-size: 15px;
            opacity: 0;
            transform: translateY(5px);
            transition: opacity .2s ease, transform .2s ease;
        }

        .event-card:hover .event-image::after {
            opacity: 1;
            transform: translateY(0);
        }

        .event-image img {
            transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease;
        }

        .event-card:hover .event-image img {
            transform: scale(1.055);
            filter: saturate(1.05);
        }

        .event-link {
            transition: color .2s ease, border-color .2s ease, padding-left .2s ease;
        }

        .event-link:hover {
            padding-left: 5px;
        }

        /* Featured */
        .featured {
            overflow: hidden;
            transition: transform .35s ease, box-shadow .35s ease;
        }

        .featured:hover {
            transform: translateY(-4px);
            box-shadow: 0 18px 45px rgba(17,17,17,.12);
        }

        .featured-image {
            position: relative;
        }

        .featured-image img {
            transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;
        }

        .featured:hover .featured-image img {
            transform: scale(1.035);
            filter: saturate(1.06);
        }

        .featured-title {
            transition: color .2s ease;
        }

        .featured:hover .featured-title {
            color: #f0aaa4;
        }

        /* Trwające */
        .active-card {
            position: relative;
            transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
        }

        .active-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 28px rgba(17,17,17,.08);
        }

        .active-card h3 {
            transition: color .2s ease;
        }

        .active-card:hover h3 {
            color: var(--accent);
        }

        /* =========================================================
           WIDOK LISTY
           Zdjęcie po lewej, informacje po prawej.
           ========================================================= */

        .events-grid.list-view {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .events-grid.list-view .event-card {
            display: grid;
            grid-template-columns: 190px minmax(0, 1fr);
            grid-template-areas:
                "image meta"
                "image title"
                "image location"
                "image link";
            column-gap: 26px;
            padding: 18px 0;
            border-top: 1px solid var(--line);
            transform: none;
            transition: background .2s ease, padding .2s ease;
        }

        .events-grid.list-view .event-card:last-child {
            border-bottom: 1px solid var(--line);
        }

        .events-grid.list-view .event-card:hover {
            background: rgba(255,255,255,.35);
            padding-left: 10px;
            padding-right: 10px;
        }

        .events-grid.list-view .event-card > a:first-child {
            grid-area: image;
        }

        .events-grid.list-view .event-image {
            width: 190px;
            height: 135px;
            aspect-ratio: auto;
            margin: 0;
        }

        .events-grid.list-view .event-meta {
            grid-area: meta;
            align-self: end;
            margin: 0 0 7px;
        }

        .events-grid.list-view .event-card h3 {
            grid-area: title;
            align-self: start;
            margin: 0;
            font-size: clamp(20px, 2vw, 30px);
            line-height: 1.05;
        }

        .events-grid.list-view .event-location {
            grid-area: location;
            margin-top: 9px;
        }

        .events-grid.list-view .event-link {
            grid-area: link;
            justify-self: start;
            margin-top: 12px;
        }

        .search button {
            transition: background .2s ease, transform .2s ease;
        }

        .search button:hover {
            background: var(--accent);
            transform: translateY(-1px);
        }

        .search button:active {
            transform: translateY(0);
        }

        .search input {
            transition: border-color .2s ease, background .2s ease;
        }

        .search input:focus {
            background: var(--paper);
        }

        .search {
            position: relative;
        }

        .search-clear {
            display: none;
            position: absolute;
            right: 74px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            border: 0;
            background: transparent;
            color: var(--muted);
            cursor: pointer;
            font-size: 18px;
            line-height: 1;
            padding: 0;
        }

        .search.has-value .search-clear {
            display: block;
        }

        .calendar-form button {
            transition: background .2s ease, transform .2s ease;
        }

        .calendar-form button:hover {
            background: var(--accent);
            border-color: var(--accent);
            transform: translateY(-1px);
        }

                /* Zapamiętanie układu nie powoduje mignięcia po inicjalizacji */
        .view-transition {
            transition: opacity .15s ease;
        }

        @media (max-width: 600px) {

            .view-controls {
                width: 100%;
                justify-content: space-between;
                align-items: center;
            }

            .view-switcher {
                flex-shrink: 0;
            }

            .events-grid.list-view .event-card {
                grid-template-columns: 92px minmax(0, 1fr);
                grid-template-areas:
                    "image meta"
                    "image title"
                    "image location"
                    "image link";
                column-gap: 13px;
                padding: 13px 0;
            }

            .events-grid.list-view .event-card:hover {
                padding-left: 5px;
                padding-right: 5px;
            }

            .events-grid.list-view .event-image {
                width: 92px;
                height: 112px;
            }

            .events-grid.list-view .event-meta {
                font-size: 8px;
                line-height: 1.25;
                margin-bottom: 5px;
            }

            .events-grid.list-view .event-meta .source {
                display: none;
            }

            .events-grid.list-view .event-card h3 {
                font-size: 16px;
                line-height: 1.08;
            }

            .events-grid.list-view .event-location {
                margin-top: 7px;
                font-size: 10px;
                line-height: 1.35;
                display: -webkit-box;
                /* -webkit-line-clamp: 2; */
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .events-grid.list-view .event-link {
                margin-top: 7px;
                font-size: 8px;
            }

            .events-grid.list-view .event-image::after {
                display: none;
            }

            .search {
                width: 100%;
            }

            .search input {
                min-width: 0;
            }

            .search button {
                flex: 0 0 auto;
                padding: 0 14px;
            }

            .search-clear {
                right: 66px;
            }
        }

        @media (max-width: 900px) {
            .header-inner,
            .hero,
            .filters-inner,
            .content,
            .footer-inner {
                padding-left: 20px;
                padding-right: 20px;
            }

            .filters-inner {
                align-items: flex-start;
                flex-direction: column;
            }

            .search {
                width: 100%;
            }

            .search input {
                flex: 1;
                width: auto;
            }

            .featured {
                grid-template-columns: 1fr;
            }

            .featured-image,
            .featured-placeholder {
                min-height: 360px;
            }

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

            .calendar-wrapper {
                padding-left: 20px;
                padding-right: 20px;
            }
        }

        @media (max-width: 600px) {
            .header-inner {
                align-items: flex-start;
            }

            .site-mark {
                width: 26vw;
                height: 24px;
            }

            nav {
                gap: 15px;
            }

            nav a {
                font-size: 9px;
            }

            .hero {
                padding: 18px 20px;
            }

            .hero h1 {
                font-size: 58px;
            }

            .hero-bottom {
                display: block;
            }

            .hero-count {
                margin-top: 20px;
            }

            .content {
                padding-top: 40px;
            }

            .featured-content {
                padding: 30px;
            }

            .featured-title {
                font-size: 42px;
            }

            .events-grid,
            .active-grid {
                grid-template-columns: 1fr;
            }

            .date-filters {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                width: 100%;
            }

            .filter {
                width: 100%;
            }

            .calendar-form {
                flex-direction: column;
                align-items: stretch;
            }

            .calendar-form input,
            .calendar-form button {
                width: 100%;
            }

            .footer-inner {
                display: block;
            }

            .footer-inner div + div {
                margin-top: 10px;
            }

            .week-day-heading {
                display: block;
            }

            .week-day-heading span {
                display: block;
                margin-top: 6px;
            }
        }
    
        /* W widoku listy nie pokazujemy dużego bannera/featured.
           Lista zaczyna się od zwykłych wpisów. */
        body.list-mode .featured,
        .list-view-mode .featured {
            display: none !important;
        }

        /* W widoku kafelków pierwszy event jest już pokazany jako featured.
           W widoku listy pokazujemy również pierwszy event, ponieważ featured
           jest wtedy ukryty. */
        body:not(.list-mode) .all-events-grid .event-card:first-child {
            display: none;
        }

        /* Delikatny przełącznik klasy na body dla listy. */

        /* =========================================================
           TRYB LISTY — kompaktowy nagłówek zamiast dużego bannera
           ========================================================= */

        /* body.list-mode .hero {
            padding-top: 28px;
            padding-bottom: 28px;
        }

        body.list-mode .hero-bottom {
            margin-top: 25px;
            align-items: flex-end;
        }

        body.list-mode .hero-count {
            font-size: 12px;
        } */

        @media (max-width: 600px) {
            body.list-mode .hero {
                padding-top: 18px;
                padding-bottom: 18px;
            }
        }

        /* =========================================================
           NADCHODZĄCE — banner
           ========================================================= */

        body.list-mode .featured {
            display: none !important;
        }



/* =========================================================
   KONTAKT
   ========================================================= */

.contact-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 100px;
}

.contact-kicker {
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.contact-heading {
    display: block;
    width: 100%;
    margin: 0 0 56px;
    padding: 0;
    border-bottom: 1px solid var(--line);
}

.contact-heading h1 {
    display: block;
    position: static;
    width: 100%;
    margin: 0;
    padding: 0 0 28px;
    font-size: clamp(48px, 8vw, 104px);
    line-height: .92;
    letter-spacing: -.065em;
    text-transform: uppercase;
    font-weight: 900;
}

.contact-description {
    display: block;
    position: static;
    width: min(680px, 100%);
    margin: 0;
    padding: 0 0 38px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 42px;
}

.contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.contact-card::after {
    content: "↗";
    position: absolute;
    top: 24px;
    right: 26px;
    font-size: 28px;
    line-height: 1;
    opacity: .3;
    transition: transform .2s ease, opacity .2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
    box-shadow: 0 18px 40px rgba(17,17,17,.12);
}

.contact-card:hover::after {
    opacity: 1;
    transform: translate(4px, -4px);
}

.contact-card:active {
    transform: translateY(-1px);
}

.contact-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.contact-card-main {
    display: block;
    min-width: 0;
}

.contact-label {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.contact-value {
    display: block;
    max-width: 100%;
    margin: 0;
    font-size: clamp(22px, 3vw, 36px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-note {
    max-width: 330px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.contact-card:hover .contact-note {
    color: #aaa;
}

.contact-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.contact-back:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
    transform: translateX(-3px);
}

@media (max-width: 800px) {
    .contact-page {
        width: min(100% - 40px, 1180px);
        padding: 48px 0 70px;
    }

    .contact-heading {
        margin-bottom: 38px;
    }

    .contact-heading h1 {
        font-size: clamp(52px, 13vw, 92px);
    }

    .contact-description {
        padding-bottom: 30px;
        font-size: 16px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-card {
        min-height: 190px;
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .contact-page {
        width: calc(100% - 28px);
        padding: 34px 0 58px;
    }

    .contact-kicker {
        margin-bottom: 16px;
        font-size: 10px;
        letter-spacing: .13em;
    }

    .contact-heading {
        margin-bottom: 30px;
    }

    .contact-heading h1 {
        padding-bottom: 20px;
        font-size: clamp(44px, 15vw, 70px);
        line-height: .9;
        letter-spacing: -.07em;
    }

    .contact-description {
        padding-bottom: 25px;
        font-size: 15px;
        line-height: 1.5;
    }

    .contact-card {
        min-height: 175px;
        padding: 22px;
        border-radius: 14px;
    }

    .contact-card::after {
        top: 19px;
        right: 19px;
        font-size: 23px;
    }

    .contact-label {
        margin-bottom: 14px;
        font-size: 9px;
    }

    .contact-value {
        max-width: calc(100% - 25px);
        font-size: clamp(22px, 7vw, 30px);
        line-height: 1.05;
    }

    .contact-note {
        margin-top: 22px;
        font-size: 11px;
    }

    .contact-back {
        width: 100%;
        justify-content: center;
    }
}


/* =========================================================
   KONTAKT — MOBILE OVERFLOW FIX
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.contact-page {
    max-width: 100%;
    box-sizing: border-box;
}

.contact-heading {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.contact-heading h1 {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 600px) {
    .contact-page {
        width: calc(100% - 28px);
        max-width: calc(100% - 28px);
        margin-left: auto;
        margin-right: auto;
    }

    .contact-heading h1 {
        /*
         * "POROZMAWIAJMY." jest długim słowem.
         * Na telefonie 15vw było zbyt duże i wychodziło poza ekran.
         */
        font-size: clamp(36px, 11.5vw, 54px);
        line-height: .92;
        letter-spacing: -.075em;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .contact-description {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 15px;
    }

    .contact-cards,
    .contact-card,
    .contact-card-main {
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-value {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 600px) {

    .contact-heading h1 {
        width: 100%;
        font-size: clamp(30px, 10.8vw, 54px);
        line-height: 0.92;
        letter-spacing: -0.075em;
        white-space: nowrap;
    }

}

.black-text {
    color: #000;
}

/* ------------------------------------------------------------
   SEO / EVENT DETAIL
   ------------------------------------------------------------ */

.hero-title {
    max-width: 1050px;
    margin: 0 0 34px;
    font-size: clamp(52px, 7vw, 112px);
    line-height: .86;
    letter-spacing: -.075em;
    text-transform: uppercase;
    font-weight: 900;
}

.event-detail-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 55px 42px 100px;
}

.event-detail-kicker {
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.event-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    background: var(--dark);
    color: #fff;
}

.event-detail-image {
    min-height: 520px;
    overflow: hidden;
    background: #222;
}

.event-detail-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.event-detail-content {
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-detail-content h1 {
    margin: 25px 0 20px;
    font-size: clamp(38px, 4.5vw, 68px);
    line-height: .9;
    letter-spacing: -.06em;
    text-transform: uppercase;
    font-weight: 900;
}

.event-detail-location {
    margin: 0 0 22px;
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
}

.event-detail-description {
    max-width: 560px;
    margin: 0;
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.65;
}

.event-detail-actions {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.event-detail-actions .event-link {
    color: #fff;
    border-color: #fff;
}

.event-detail-actions .contact-back {
    color: #bbb;
}

@media (max-width: 800px) {
    .hero-title {
        font-size: clamp(44px, 13vw, 78px);
        line-height: .88;
    }

    .event-detail-page {
        padding: 35px 20px 70px;
    }

    .event-detail {
        grid-template-columns: 1fr;
    }

    .event-detail-image {
        min-height: 330px;
        aspect-ratio: 4 / 3;
    }

    .event-detail-content {
        padding: 32px 24px 38px;
    }

    .event-detail-content h1 {
        font-size: clamp(34px, 10vw, 58px);
    }
}


/* =========================================================
   FINAL RESPONSIVE / MOBILE
   ========================================================= */

/* Prevent accidental horizontal overflow */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

/* Flex/grid children must be allowed to shrink */
.header-inner,
.hero,
.hero-bottom,
.filters-inner,
.content,
.view-heading,
.featured,
.featured-content,
.featured-footer,
.event-card,
.active-card,
.week-day-heading,
.footer-inner,
.search,
.calendar-form {
    min-width: 0;
}

/* Media must never create horizontal scrolling */
img,
svg,
video,
iframe {
    max-width: 100%;
}

/* Long words, URLs and event titles */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
.event-location,
.event-link,
.featured-location,
.featured-meta {
    overflow-wrap: anywhere;
}

/* Forms */
input,
button,
select,
textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   TABLETS / SMALL SCREENS
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .header-inner,
    .hero,
    .filters-inner,
    .content,
    .footer-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .filters-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .search {
        width: 100%;
    }

    .search input {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .featured {
        grid-template-columns: 1fr;
    }

    .featured-image,
    .featured-placeholder {
        min-height: 360px;
    }

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

    .calendar-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .event-detail {
        grid-template-columns: 1fr;
    }

    .event-detail-image {
        min-height: 330px;
        aspect-ratio: 4 / 3;
    }

    .event-detail-content {
        padding: 32px 24px 38px;
    }
}

/* ---------------------------------------------------------
   PHONES
   --------------------------------------------------------- */

@media (max-width: 600px) {

    body {
        font-size: 15px;
    }

    /* HEADER */

    .header-inner {
        width: 100%;
        padding: 16px;
        gap: 12px;
        align-items: center;
    }

    .logo {
        min-width: 0;
        max-width: 48%;
        font-size: 19px;
        line-height: 1;
        letter-spacing: -.055em;
        overflow-wrap: normal;
        word-break: normal;
    }

    nav {
        max-width: 52%;
        min-width: 0;
        gap: 10px 14px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    nav a {
        font-size: 8px;
        line-height: 1.2;
        letter-spacing: .08em;
        white-space: nowrap;
    }

    /* HERO */

    .hero {
        width: 100%;
        padding: 18px 16px 24px;
    }

    .eyebrow {
        margin-bottom: 14px;
        font-size: 11px;
        letter-spacing: .12em;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;
        font-size: clamp(38px, 12.5vw, 58px);
        line-height: .88;
        letter-spacing: -.065em;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero-bottom {
        display: block;
        width: 100%;
        margin-top: 24px;
    }

    .hero-description {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.5;
    }

    .hero-count {
        max-width: 100%;
        margin-top: 16px;
        font-size: 12px;
        line-height: 1.35;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* FILTERS */

    .filters-inner {
        width: 100%;
        padding: 14px 16px;
        gap: 12px;
    }

    .date-filters {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .filter {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        padding: 0 8px;
        font-size: 9px;
        line-height: 1.15;
        text-align: center;
    }

    .search {
        width: 100%;
        min-width: 0;
        display: flex;
    }

    .search input {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
        height: 40px;
        font-size: 12px;
    }

    .search button {
        flex: 0 0 auto;
        height: 40px;
        padding: 0 13px;
    }

    /* CALENDAR */

    .calendar-wrapper {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        overflow: hidden;
    }

    .calendar-wrapper.open {
        max-height: 300px;
    }

    .calendar-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .calendar-form label {
        font-size: 9px;
    }

    .calendar-form input,
    .calendar-form button {
        width: 100%;
        min-width: 0;
        height: 40px;
    }

    /* CONTENT */

    .content {
        width: 100%;
        padding: 38px 16px 60px;
    }

    .view-heading {
        display: block;
        margin-bottom: 24px;
    }

    .view-heading h2 {
        max-width: 100%;
        font-size: clamp(28px, 9vw, 42px);
        line-height: .95;
    }

    .view-heading span {
        display: block;
        margin-top: 10px;
        font-size: 9px;
    }

    .selected-date {
        margin-bottom: 32px;
    }

    .selected-date-value {
        font-size: clamp(22px, 7vw, 30px);
    }

    /* FEATURED */

    .featured {
        width: 100%;
        min-width: 0;
        margin-bottom: 40px;
    }

    .featured-image,
    .featured-placeholder {
        width: 100%;
        min-height: 240px;
    }

    .featured-content {
        padding: 24px;
    }

    .featured-title {
        max-width: 100%;
        margin: 18px 0 10px;
        font-size: clamp(28px, 9vw, 42px);
        line-height: .92;
        overflow-wrap: anywhere;
    }

    .featured-location {
        font-size: 12px;
    }

    .featured-footer {
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 16px;
    }

    /* EVENTS */

    .events-grid,
    .active-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .event-card {
        width: 100%;
        overflow: hidden;
    }

    .event-image {
        width: 100%;
        margin-bottom: 14px;
    }

    .event-meta {
        align-items: flex-start;
        gap: 8px;
        font-size: 8px;
        line-height: 1.3;
    }

    .event-meta .source {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .event-card h3 {
        max-width: 100%;
        font-size: clamp(20px, 6vw, 25px);
        line-height: 1.03;
        overflow-wrap: anywhere;
    }

    .event-location {
        margin-top: 10px;
        font-size: 11px;
        line-height: 1.45;
    }

    .event-link {
        margin-top: 14px;
        font-size: 8px;
    }

    /* ACTIVE EVENTS */

    .active-section {
        margin-top: 55px;
        margin-bottom: 55px;
        padding-top: 25px;
    }

    .active-card {
        padding: 20px;
    }

    .active-card h3 {
        font-size: clamp(20px, 6vw, 25px);
    }

    /* WEEK VIEW */

    .week-list {
        gap: 30px;
    }

    .week-day {
        padding-top: 20px;
    }

    .week-day-heading {
        display: block;
        margin-bottom: 18px;
    }

    /* LIST VIEW */

    .events-grid.list-view {
        gap: 18px;
    }

    .events-grid.list-view .event-card {
        min-width: 0;
    }

    /* EVENT DETAIL */

    .hero-title {
        width: 100%;
        max-width: 100%;
        font-size: clamp(38px, 12vw, 70px);
        line-height: .88;
        overflow-wrap: anywhere;
    }

    .event-detail-page {
        width: 100%;
        padding: 35px 16px 60px;
    }

    .event-detail {
        width: 100%;
        min-width: 0;
    }

    .event-detail-image {
        width: 100%;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .event-detail-content {
        min-width: 0;
        padding: 28px 20px 32px;
    }

    .event-detail-content h1 {
        max-width: 100%;
        font-size: clamp(30px, 9.5vw, 54px);
        line-height: .92;
        overflow-wrap: anywhere;
    }

    .event-detail-description,
    .event-detail-location {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .event-detail-actions {
        gap: 14px;
    }

    /* FOOTER */

    .footer-inner {
        display: block;
        width: 100%;
        padding: 24px 16px;
    }

    .footer-inner div + div {
        margin-top: 9px;
    }
}

/* ---------------------------------------------------------
   VERY SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .header-inner {
        align-items: flex-start;
    }

    .logo {
        font-size: 17px;
    }

    nav {
        gap: 7px 10px;
    }

    nav a {
        font-size: 7.5px;
    }

    .hero h1 {
        font-size: clamp(34px, 12vw, 46px);
    }

    .date-filters {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-title {
        font-size: clamp(26px, 8.5vw, 36px);
    }

    .search button {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.dot {
    color: var(--accent);
}

/* =========================================================
   FINAL MOBILE TYPOGRAPHY FIX
   - skaluje POROZMAWIAJ.MY do szerokości telefonu
   - e-mail pozostaje w jednej linii, jeśli jest to możliwe
   - przy bardzo długim adresie pokazuje wielokropek zamiast
     łamania adresu na przypadkowych znakach
   ========================================================= */

@media (max-width: 600px) {

    .contact-heading h1 {
        width: 100%;
        max-width: 100%;
        font-size: clamp(28px, 10.5vw, 54px);
        line-height: .92;
        letter-spacing: -.075em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
    }

    .contact-card:first-child .contact-value {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        font-size: clamp(16px, 5.8vw, 30px);
        line-height: 1.05;
        letter-spacing: -.04em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        overflow-wrap: normal;
        word-break: normal;
    }

    .contact-card:nth-child(2) .contact-value {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        font-size: clamp(20px, 6.8vw, 30px);
        white-space: nowrap;
    }
}

/* Bardzo małe telefony */
@media (max-width: 360px) {

    .contact-heading h1 {
        font-size: clamp(26px, 10vw, 38px);
        letter-spacing: -.08em;
    }

    .contact-card:first-child .contact-value {
        font-size: clamp(15px, 5.6vw, 21px);
    }

    .contact-card:nth-child(2) .contact-value {
        font-size: clamp(19px, 6.5vw, 25px);
    }
}


/* =========================================================
   DODAJ DO KALENDARZA
   ========================================================= */

.event-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.event-actions .event-link {
    margin-top: 0;
}

.calendar-add {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.calendar-add svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.calendar-add:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
    transform: translateY(-1px);
}

.calendar-add.added {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.calendar-add:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.events-grid.list-view .event-actions {
    grid-area: link;
    justify-self: start;
    margin-top: 12px;
}

.events-grid.list-view .event-actions .event-link {
    margin-top: 0;
}

@media (max-width: 600px) {
    .event-actions {
        gap: 11px;
        margin-top: 15px;
    }

    .calendar-add {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .calendar-add svg {
        width: 14px;
        height: 14px;
    }

    .events-grid.list-view .event-actions {
        margin-top: 7px;
    }
}
