:root {
    --bg-primary: #f8fafc;
    --color-primary: #065f46;
    --color-primary-light: #10b981;
    --color-secondary: #1e293b;
    --color-text: #334155;
    --color-text-muted: #64748b;
    --white: #fff;
    --border: #e2e8f0;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--color-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #863bff;
}
.logo-icon i {
    width: 28px;
    height: 28px;
}

.logo-text strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-size: .75rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color .2s;
}

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

/* ===== HERO ===== */
.hero {
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0;
}

.hero h1 {
    color: var(--color-secondary);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: .75rem 1.5rem;
    font-weight: 600;
    transition: background-color .2s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #044e3a;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--color-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    padding: .75rem 1.5rem;
    font-weight: 600;
    transition: all .2s;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--bg-primary);
    border-color: #cbd5e1;
}

/* ===== OBJECTS SECTION ===== */
.objects-section {
    padding: 4rem 0 5rem;
}

.objects-section h2 {
    text-align: center;
    color: var(--color-secondary);
    font-size: 2rem;
    margin-bottom: .5rem;
}

.objects-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: .9375rem;
    margin-bottom: 2.5rem;
}

.objects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.object-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 1.75rem;
    text-align: left;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: block;
}

.object-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-closed {
    cursor: pointer;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.object-card .object-icon {
    width: 44px;
    height: 44px;
    background: #f0fdf4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.object-card .object-icon i { width: 22px; height: 22px; }

.object-card h3 {
    color: var(--color-secondary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.card-desc {
    color: var(--color-text-muted);
    font-size: .875rem;
    margin-bottom: .75rem;
    line-height: 1.5;
}

/* Badge dostępności */
.avail-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .65rem;
    border-radius: 999px;
    white-space: nowrap;
}
.avail-badge i { width: 13px; height: 13px; flex-shrink: 0; }
.badge-open   { background: #dcfce7; color: #166534; }
.badge-full   { background: #fef9c3; color: #854d0e; }
.badge-closed { background: #fee2e2; color: #991b1b; }

/* Meta (godziny, min. czas) */
.card-meta {
    display: flex;
    gap: 1rem;
    margin: .75rem 0;
    flex-wrap: wrap;
}
.card-meta span {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .8125rem;
    color: var(--color-text-muted);
}
.card-meta i { width: 13px; height: 13px; }

/* Pasek zajętości */
.avail-bar-wrap {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: .75rem 0;
}
.avail-bar {
    flex: 1;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.avail-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .3s;
}
.fill-open { background: #22c55e; }
.fill-full { background: #f59e0b; }
.avail-bar-label {
    font-size: .75rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.btn-reserve {
    display: block;
    text-align: center;
    background-color: var(--color-primary);
    color: var(--white);
    border-radius: 8px;
    padding: .65rem 1.25rem;
    font-weight: 600;
    font-size: .875rem;
    transition: background-color .2s;
    margin-top: 1rem;
}
.object-card:hover .btn-reserve { background-color: #044e3a; }

.btn-reserve-full {
    background-color: #f59e0b;
    cursor: default;
}
.btn-reserve-full:hover { background-color: #f59e0b; }

.btn-reserve-closed {
    background-color: #94a3b8;
    cursor: default;
    font-size: .8125rem;
}
.btn-reserve-closed:hover { background-color: #94a3b8; }

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--color-secondary);
    color: var(--white);
    padding: 3rem 0;
    margin-top: auto;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #94a3b8;
    font-size: .875rem;
    transition: color .2s;
}

.footer-nav a:hover {
    color: var(--white);
}

.copyright {
    color: #94a3b8;
    font-size: .875rem;
}

/* ===== STRONY STATYCZNE (regulamin, kontakt) ===== */
.static-page {
    padding: 3rem 0 4rem;
    flex: 1;
}

.static-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.static-hero i {
    display: inline-flex;
    width: 56px;
    height: 56px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.static-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: .5rem;
}

.static-hero p {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
}

/* Regulamin */
.static-content {
    max-width: 800px;
    margin: 0 auto;
}

.reg-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.reg-section h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    padding-bottom: .625rem;
    border-bottom: 2px solid var(--border);
}

.reg-section ol {
    list-style: decimal;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.reg-section ol li {
    color: var(--color-text);
    line-height: 1.65;
    font-size: .9375rem;
}

.reg-db-content h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 1.5rem 0 .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border);
}
.reg-db-content h2:first-child { margin-top: 0; }
.reg-db-content ol, .reg-db-content ul {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1rem;
}
.reg-db-content ol { list-style: decimal; }
.reg-db-content ul { list-style: disc; }
.reg-db-content li { color: var(--color-text); line-height: 1.65; font-size: .9375rem; }
.reg-db-content p  { margin-bottom: .75rem; line-height: 1.65; }

.reg-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px dashed var(--border);
}
.reg-empty i { width: 40px; height: 40px; margin-bottom: .75rem; opacity: .3; }
.reg-empty p { font-size: 1rem; margin-bottom: .25rem; }
.reg-empty small { font-size: .8125rem; }

/* Kontakt */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kontakt-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.kontakt-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kontakt-card-icon i {
    width: 22px;
    height: 22px;
}

.kontakt-card h3 {
    font-size: .875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .35rem;
}

.kontakt-card p {
    color: var(--color-text);
    font-size: .9375rem;
    line-height: 1.6;
}

.kontakt-card p strong {
    font-weight: 600;
}

.kontakt-card a {
    color: var(--color-primary);
    font-weight: 500;
}

.kontakt-card a:hover { text-decoration: underline; }

.kontakt-map {
    position: sticky;
    top: 5rem;
}


/* ===== ALERT BŁĘDU FORMULARZA ===== */
.alert-error-box {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.alert-error-box i { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== STRONA POTWIERDZENIA REZERWACJI ===== */
.rez-ok-wrap {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0 4rem;
}

.rez-ok-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #dcfce7;
    border-radius: 50%;
    color: #16a34a;
    margin-bottom: 1.5rem;
}
.rez-ok-icon i { width: 40px; height: 40px; }

.rez-ok-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: .5rem;
}

.rez-ok-subtitle {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.rez-ok-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 2rem;
    text-align: left;
}

.rez-ok-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
.rez-ok-row:last-child { border-bottom: none; }

.rez-ok-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    white-space: nowrap;
}
.rez-ok-label i { width: 15px; height: 15px; }

.rez-ok-value {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: .9375rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.rez-ok-day {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: .8125rem;
}

.rez-ok-badge {
    background: #dcfce7;
    color: #166534;
    font-size: .8125rem;
    font-weight: 600;
    padding: .3rem .75rem;
    border-radius: 999px;
}

.rez-ok-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rez-ok-actions .btn-primary,
.rez-ok-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.rez-ok-actions i { width: 16px; height: 16px; }

/* ===== 404 ===== */
.not-found-wrap {
    text-align: center;
    padding: 4rem 1rem;
}

.not-found-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    margin-bottom: 1rem;
}

.not-found-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: .75rem;
}

.not-found-sub {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    margin-bottom: 2.5rem;
}

.not-found-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== HAMBURGER ===== */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    border-radius: 6px;
    transition: background .2s;
}
.nav-hamburger:hover { background: #f1f5f9; }
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-secondary);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
    transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-hamburger { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        gap: 0;
        padding: .5rem 0;
        z-index: 200;
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        padding: .85rem 1.5rem;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }
    .main-nav a:last-child { border-bottom: none; }

    .site-header { position: relative; }

    .hero h1 { font-size: 2.25rem; }
    .hero-cta { flex-direction: column; align-items: center; }

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

    .kontakt-grid { grid-template-columns: 1fr; }
    .kontakt-map { display: none; }

    .not-found-code { font-size: 5rem; }

    .rez-ok-actions { flex-direction: column; align-items: center; }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s, background .2s;
    pointer-events: none;
    z-index: 900;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-top:hover { background: #044e3a; }
