@font-face { font-family: "Adventor"; src: url(fonts/adventor-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Adventor"; src: url(fonts/adventor-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

/* Barvy převzaté z plakátu: papír, inkoust, krojová červená, oranžová z loga Vonice */
:root {
    --bg: #f5ead8;
    --paper: #ecd3a8;
    --card: #fffdf9;
    --text: #1f1a16;
    --muted: #75685c;
    --line: #e3d3ba;
    --brand: #b3342a;
    --brand-dark: #8b261f;
    --gold: #e8692c;
    --heading: "Adventor", "Century Gothic", "URW Gothic", "Avant Garde", system-ui, sans-serif;

    --seat-free: #e6f2e7;
    --seat-free-line: #2e7d32;
    --seat-selected: #f2b705;
    --seat-selected-line: #9a6d00;
    --seat-taken: #e4a59c;
    --seat-taken-line: #b3342a;
    --seat-blocked: #dcd8d3;
    --seat-blocked-line: #b2aca5;
    --seat-paid: #9ccfa0;
    --seat-mine: #8fbbe8;
    --seat-mine-line: #1f5fa8;

    --table: #fffdf8;
    --table-line: #6f6255;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; font-family: var(--heading); font-weight: 700; }
h2 { font-size: 1.2rem; margin: 0 0 .5rem; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 720px; }

/* Záhlaví ve stylu plakátu */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 34% 90% at 84% 55%, rgba(255, 246, 228, .85), rgba(255, 246, 228, 0) 70%),
                url(img/papir.webp) center / cover, var(--paper);
    color: var(--text);
    border-bottom: 4px solid var(--gold);
    margin-bottom: 24px;
}
.hero-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 300px; }
.hero-text { position: relative; z-index: 1; padding: 34px 0 30px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(2.3rem, 7vw, 4.6rem); letter-spacing: -.01em; line-height: 1.02; }
.hero h1 a { color: inherit; text-decoration: none; }
.hero-kicker { margin: 0 0 10px; font-family: var(--heading); font-size: clamp(1rem, 2.2vw, 1.35rem); }
.hero-meta { margin: 0; font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-dancers { flex: none; height: 290px; width: auto; margin: 18px 0 -4px; align-self: flex-end; }

.hero-small .hero-inner { min-height: 0; }
.hero-small .hero-text { padding: 20px 0 18px; }
.hero-small h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 8px; }
.hero-small .hero-kicker { margin-bottom: 4px; }
.hero-small .hero-meta { font-size: .98rem; }
.hero-small .hero-dancers { height: 150px; }

@media (max-width: 720px) {
    .hero-inner { min-height: 0; }
    .hero-dancers { position: absolute; right: -10px; bottom: 0; height: 78%; opacity: .32; margin: 0; }
    .hero-small .hero-dancers { height: 90%; }
}

/* Patička s logy */
.site-footer {
    margin-top: 32px;
    padding: 22px 0 26px;
    background: url(img/papir.webp) center / cover, var(--paper);
    border-top: 4px solid var(--gold);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-logo img, img.footer-logo { display: block; height: 56px; width: auto; }
.logo-zlin { mix-blend-mode: multiply; height: 50px !important; }
.footer-text { margin: 0; font-size: .9rem; color: var(--muted); }
.footer-text a { color: var(--text); font-weight: 600; }

.info { margin-bottom: 16px; }
.info p:first-child { margin-top: 0; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-bottom: 40px; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.layout > * { min-width: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.form-card { position: sticky; top: 16px; }
@media (max-width: 960px) { .form-card { position: static; } }

.hint, .muted { color: var(--muted); font-size: .9rem; }

.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid; display: inline-block; }
.dot-free { background: var(--seat-free); border-color: var(--seat-free-line); }
.dot-selected { background: var(--seat-selected); border-color: var(--seat-selected-line); }
.dot-taken { background: var(--seat-taken); border-color: var(--seat-taken-line); }
.dot-blocked { background: var(--seat-blocked); border-color: var(--seat-blocked-line); }
.dot-mine { background: var(--seat-mine); border-color: var(--seat-mine-line); }
.dot-paid { background: var(--seat-paid); border-color: var(--seat-free-line); }

/* Plánek */
.plan-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
.plan { display: block; width: 100%; min-width: 680px; height: auto; user-select: none; }
.plan-floor { fill: #fbf8f2; stroke: var(--line); stroke-width: 2; }
.plan-bg { opacity: .9; }
.plan-area rect { fill: #efe7da; stroke: #d4c6b1; stroke-dasharray: 6 4; }
.plan-area-label { font-size: 14px; font-weight: 600; fill: #9a8b78; letter-spacing: .1em; }

.tbl-top circle { fill: var(--table); stroke: var(--table-line); stroke-width: 2; }
.tbl-no { font-size: 20px; font-weight: 700; fill: var(--text); pointer-events: none; }
.tbl-note { font-size: 9px; fill: var(--muted); pointer-events: none; }
.tbl-blocked .tbl-top circle { fill: #eeeae5; stroke: var(--seat-blocked-line); stroke-dasharray: 4 3; }
.tbl-blocked .tbl-no { fill: var(--muted); }
.tbl-active .tbl-top circle { stroke: var(--brand); stroke-width: 4; }

.seat circle { stroke-width: 2; transition: fill .12s; }
.seat-no { font-size: 10px; font-weight: 600; pointer-events: none; fill: #333; }
.seat.is-free circle { fill: var(--seat-free); stroke: var(--seat-free-line); }
.seat.is-free { cursor: pointer; }
.seat.is-free:hover circle { fill: #c3e4c6; }
.seat.is-selected circle { fill: var(--seat-selected); stroke: var(--seat-selected-line); }
.seat.is-selected { cursor: pointer; }
.seat.is-taken circle { fill: var(--seat-taken); stroke: var(--seat-taken-line); }
.seat.is-paid circle { fill: var(--seat-paid); stroke: var(--seat-free-line); }
.seat.is-blocked circle { fill: var(--seat-blocked); stroke: var(--seat-blocked-line); }
.seat.is-blocked .seat-no { fill: #999; }
.seat.is-mine circle { fill: var(--seat-mine); stroke: var(--seat-mine-line); }
.tbl-mine .tbl-top circle { stroke: var(--seat-mine-line); stroke-width: 4; }
.plan-readonly { min-width: 0; }
.plan-readonly .seat { cursor: default; }
.plan-readonly .seat.is-free:hover circle { fill: var(--seat-free); }
.seat.is-highlight circle { stroke: var(--brand); stroke-width: 4; }

/* Formulář */
form label { display: block; margin-bottom: 12px; font-size: .92rem; font-weight: 600; }
form label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], textarea, select {
    display: block; width: 100%; margin-top: 4px; padding: 9px 11px;
    font: inherit; font-weight: 400; color: inherit; background: #fff;
    border: 1px solid #cfc4b5; border-radius: 8px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--muted); }
label.check input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
    display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid #cfc4b5;
    background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #f6f1e8; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-danger { background: #fff; border-color: #c62828; color: #c62828; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 4px 10px; font-size: .85rem; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }

.selection { background: #fbf6ea; border: 1px dashed #e2cf9f; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.selection p { margin: 0 0 4px; }

.notice { padding: 10px 14px; border-radius: 8px; background: #eef4fb; border: 1px solid #c9dbf0; margin-bottom: 14px; }
.notice-warn { background: #fff6e0; border-color: #f0d68a; }
.notice-error { background: #fdecec; border-color: #f2b8b8; color: #8f1d1d; }
.success { background: #edf7ee; border: 1px solid #b9dfbd; border-radius: 8px; padding: 14px; }
.success h3 { margin-top: 0; color: #1f6a25; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: #fff1cc; color: #7a5a00; }
.badge-paid { background: #d8f0da; color: #1f6a25; }
.badge-cancelled { background: #eee; color: #777; }
.badge-admin { background: #e5e0f5; color: #4b3a8a; }

.seats-table th, .seats-table td { text-align: left; padding: 4px 16px 4px 0; }

.mobile-bar { display: none; }
@media (max-width: 960px) {
    .mobile-bar:not([hidden]) {
        display: flex; justify-content: space-between; align-items: center; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px;
        background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -2px 8px rgba(0,0,0,.08);
    }
    .mobile-bar .btn-primary { width: auto; }
    body { padding-bottom: 70px; }
}

/* Ceník, kontakty, upozornění */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
.fact { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 16px; }
.fact h3 { margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.fact p { margin: 4px 0 0; }
.prices td { padding: 1px 18px 1px 0; }
.cancel-note { font-size: .82rem; color: var(--muted); background: #fff8e6; border-radius: 6px; padding: 8px 10px; margin: 0 0 12px; }
.cancel-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
.cancel-form legend { font-weight: 600; font-size: .92rem; padding: 0 4px; }
.cancel-form label.check { color: var(--text); font-size: .95rem; margin-bottom: 6px; }
.notice-early { background: #f3eefc; border-color: #d3c4f0; }
.badge-early { background: #ece4fb; color: #5a3c99; }
