/* Kraków 48h – nocny, miejski, editorial */
:root {
    --bg-page: #040716;
    --bg-main: #070d1b;
    --bg-section: #0b1020;
    --bg-panel: #0f172a;
    --bg-panel-soft: #111827;
    --accent: #f97316; /* pomarańcz dla świateł miasta */
    --accent-alt: #22d3ee; /* neonowy cyjan */
    --accent-soft: rgba(248, 171, 103, 0.2);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --line-soft: rgba(148, 163, 184, 0.45);
    --shadow-soft: 0 32px 120px rgba(15, 23, 42, 0.9);
    --radius-card: 18px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, #1f2937 0, #020617 55%, #000 100%);
    color: var(--text-main);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(31, 41, 55, 0.55) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(31, 41, 55, 0.35) 1px, transparent 1px);
    background-size: 72px 72px;
    mix-blend-mode: soft-light;
    opacity: 0.16;
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--accent-alt);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: none;
    color: var(--accent-alt);
}

img {
    max-width: 100%;
    display: block;
}

main {
    padding-top: 0;
}

.section {
    position: relative;
    padding: 80px 16px 96px;
}

.hero,
.section {
    scroll-margin-top: 96px;
}

.section__header {
    max-width: var(--max-width);
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 3px solid var(--accent-soft);
    padding-left: 16px;
}

.section__title {
    font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

.section__kicker {
    margin: 0;
    color: var(--text-muted);
    max-width: 42rem;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color 0.16s ease, transform 0.12s ease;
}

.site-header__brand::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    transition: width 0.18s ease;
}

.site-header__brand:hover,
.site-header__brand:focus-visible {
    color: var(--accent-alt);
    transform: translateY(-1px);
}

.site-header__brand:hover::after,
.site-header__brand:focus-visible::after {
    width: 100%;
}

.brand-text {
    font-size: 0.9rem;
    color: inherit;
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    position: relative;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-main);
    padding: 4px 2px 6px;
    transition: color 0.15s ease, transform 0.08s ease;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-alt));
    opacity: 0.85;
    transition: width 0.18s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    text-decoration: none;
    color: var(--accent-alt);
    transform: translateY(-1px);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
    width: 100%;
}

.nav-list a.nav-link--active {
    color: var(--accent-alt);
}

.nav-list a.nav-link--active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    width: 42px;
    height: 34px;
    padding: 6px 9px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
}

/* HERO */
.hero {
    position: relative;
    padding: 88px 16px 96px;
    background:
        radial-gradient(circle at top left, #111827 0, #020617 55%, #000 100%);
    overflow: hidden;
}

.hero::after {
    content: "KRK • WEEKEND";
    position: absolute;
    top: 24px;
    right: max(8px, calc((100vw - var(--max-width)) / 2));
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
}

.hero__grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
}

.hero__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-alt);
    margin: 0 0 12px;
}

.hero__title {
    font-size: clamp(2.6rem, 2.1rem + 2.4vw, 3.6rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0 0 16px;
}

.hero__title span {
    display: inline-block;
    padding: 4px 6px 2px;
    border-top: 4px solid var(--accent);
    border-bottom: 4px solid var(--accent-alt);
}

.hero__subtitle {
    margin: 0 0 20px;
    color: var(--text-muted);
    max-width: 34rem;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hero__meta span {
    border-radius: 999px;
    padding: 5px 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.9);
}

.hero__image-column {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1.25fr) minmax(0, 0.9fr);
    gap: 16px;
}

.hero-image {
    background: #020617;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-image--main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image figcaption {
    font-size: 0.78rem;
    padding: 9px 14px 11px;
    color: var(--text-muted);
    background: radial-gradient(circle at top left, #020617 0, #020617 35%, #030712 100%);
}

.hero__image-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hero__line--bottom {
    max-width: var(--max-width);
    margin: 40px auto 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.6);
}

/* SEKCJE Z CZASEM */
.section--timed {
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.timeline {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 2px solid rgba(56, 189, 248, 0.6);
    padding-left: 26px;
}

.timeline__block {
    position: relative;
    padding: 14px 16px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.85);
}

.timeline__block::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 14px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid var(--accent-alt);
    background: #020617;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
}

.timeline__time {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-alt);
    margin-bottom: 4px;
}

.timeline__content h3 {
    font-size: 1.08rem;
    margin: 0 0 6px;
}

.timeline__content p {
    margin: 0;
    color: #e5e7eb;
}

.timeline--two-column {
    border-left: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 28px;
}

.timeline--two-column .timeline__block {
    padding-left: 22px;
    border-left: 2px solid rgba(56, 189, 248, 0.5);
}

.timeline--two-column .timeline__block::before {
    left: -9px;
}

/* KARTY – JEDZENIE I KAWIARNIE */
.section--cards {
    background: radial-gradient(circle at top left, #020617 0, #020617 40%, #000 100%);
}

.cards-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    position: relative;
    background: linear-gradient(150deg, var(--bg-panel) 0, var(--bg-panel-soft) 60%, #020617 100%);
    border-radius: var(--radius-card);
    padding: 20px 18px 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.card::after {
    content: "KAWIARNIE";
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.85);
}

.card:nth-child(2)::after {
    content: "ŚWIATŁO";
}

.card:nth-child(3)::after {
    content: "KOLACJE";
}

.card h3 {
    margin: 0 0 12px;
    font-size: 1.08rem;
}

.card ul {
    padding-left: 18px;
    margin: 0 0 10px;
}

.card li {
    margin-bottom: 4px;
}

.card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* KARTY-BILETY – BILETY I DOJAZD */
.section--tickets {
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.tickets-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ticket-card {
    position: relative;
    background: #020617;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 16px 18px 20px;
    border: 1px solid rgba(248, 171, 103, 0.65);
    overflow: hidden;
}

.ticket-card::before,
.ticket-card::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 36px;
    background: var(--bg-main);
}

.ticket-card::before {
    left: -10px;
    border-radius: 0 999px 999px 0;
}

.ticket-card::after {
    right: -10px;
    border-radius: 999px 0 0 999px;
}

.ticket-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.ticket-card__label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-soft);
}

.ticket-card__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.86rem;
    padding: 3px 8px 2px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.ticket-card__body p {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: #e5e7eb;
}

/* POGODA */
.section--weather {
    background: radial-gradient(circle at top left, #020617 0, #020617 40%, #000 100%);
}

.weather-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.weather-tip {
    background: linear-gradient(145deg, #020617 0, #020617 35%, #030712 100%);
    border-radius: var(--radius-card);
    padding: 18px 16px 20px;
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.weather-tip h3 {
    margin: 0 0 8px;
}

.weather-tip p {
    margin: 0;
    color: #e5e7eb;
}

/* KONTAKT */
.section--contact {
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.contact-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
}

.contact-block {
    background: linear-gradient(150deg, var(--bg-panel) 0, #020617 100%);
    border-radius: var(--radius-card);
    padding: 20px 18px 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.contact-block--note {
    box-shadow: none;
    border-style: dashed;
}

.contact-note {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* POLITYKI */
.section--policy {
    background: radial-gradient(circle at top left, #020617 0, #020617 40%, #000 100%);
}

.policy-text {
    max-width: var(--max-width);
    margin: 0 auto 32px;
    column-count: 2;
    column-gap: 40px;
}

.policy-text p {
    margin-top: 0;
    margin-bottom: 14px;
    break-inside: avoid;
    color: #e5e7eb;
}

.policy-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(150deg, var(--bg-panel) 0, #020617 100%);
    border-radius: var(--radius-card);
    padding: 22px 20px 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.policy-form-wrapper h3 {
    margin-top: 0;
}

.policy-form {
    margin-top: 10px;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font: inherit;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(34, 211, 238, 0.75);
    outline-offset: 1px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
}

.checkbox input[type="checkbox"] {
    margin-top: 4px;
}

.form-row--actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.form-error {
    display: block;
    color: #fecaca;
    font-size: 0.78rem;
    min-height: 1em;
}

.form-status {
    margin-top: 8px;
    font-size: 0.88rem;
}

/* PRZYCISKI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    background: #020617;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), #fb7185);
    color: #020617;
    box-shadow: 0 18px 40px rgba(248, 171, 103, 0.45);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 26px 60px rgba(248, 171, 103, 0.5);
}

.btn--ghost {
    border-color: rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
}

.btn--ghost:hover {
    background: rgba(15, 23, 42, 1);
}

.policy-cookie-reset {
    margin-top: 4px;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    max-width: 960px;
    width: calc(100% - 32px);
    display: none;
}

.cookie-banner__inner {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
    color: #f9fafb;
    border-radius: 18px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.82rem;
    flex: 1;
}

.cookie-banner__actions {
    display: flex;
    gap: 8px;
}

.cookie-banner__close {
    border: none;
    background: none;
    color: #e5e7eb;
    font-size: 1.2rem;
    cursor: pointer;
}

.cookie-banner--visible {
    display: block;
}

/* TOAST */
.toast {
    position: fixed;
    right: 18px;
    bottom: 90px;
    background: rgba(15, 23, 42, 0.96);
    color: #f9fafb;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 60;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.9);
}

.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

/* FOOTER */
.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.6);
    padding: 22px 16px 30px;
    background: #020617;
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.site-footer a {
    color: inherit;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 28px;
    }

    .policy-text {
        column-count: 1;
    }
}

@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__image-column {
        order: -1;
    }

    .cards-grid,
    .tickets-layout,
    .weather-grid,
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .timeline--two-column {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 76px;
    }

    .site-header__inner {
        padding-inline: 12px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-list {
        position: fixed;
        inset-inline: 0;
        top: 60px;
        background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
        border-bottom: 1px solid rgba(148, 163, 184, 0.6);
        flex-direction: column;
        gap: 0;
        padding: 10px 16px 14px;
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .nav-list--open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-list li a {
        display: block;
        padding-block: 9px;
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .toast {
        left: 50%;
        right: auto;
        transform: translate(-50%, 10px);
    }

    .toast--visible {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 540px) {
    .hero__title {
        letter-spacing: 0.14em;
    }

    .hero__meta span {
        font-size: 0.72rem;
    }

    .section {
        padding-inline: 14px;
    }
}
