/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #c0392b; --brand-dark: #962d22; --brand-light: #f9eae8;
  --accent: #e67e22; --text: #1a1a2e; --muted: #6b7280;
  --bg: #f8f7f4; --card: #ffffff; --border: #e5e7eb;
  --green: #16a34a; --green-light: #d1fae5; --green-dark: #065f46;
  --shadow: 0 2px 12px rgba(0,0,0,.08); --r: 12px; --nav: 72px;
}
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
button { cursor: pointer; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ===== NAV ===== */
nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav);
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 24px; gap: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.logo { display: flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; font-weight: 800; color: var(--brand); font-size: 17px; }
.logo .logo-mark { font-size: 26px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  background: none; border: none; padding: 6px 12px; border-radius: 8px;
  color: var(--muted); font-size: 14px; font-weight: 500; transition: .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--brand-light); color: var(--brand); }
.sp { flex: 1; }
.langs { display: flex; gap: 3px; }
.lang-btn { background: none; border: 1px solid transparent; border-radius: 6px; padding: 3px 5px; font-size: 19px; line-height: 1; transition: .15s; }
.lang-btn:hover { border-color: var(--border); }
.lang-btn.active { border-color: var(--brand); background: var(--brand-light); }

.btn { border: none; border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 600; transition: .15s; display: inline-flex; align-items: center; gap: 6px; }
.btn:active { transform: scale(.97); }
.btn-out { background: none; border: 1.5px solid var(--border); color: var(--text); }
.btn-out:hover { border-color: var(--brand); color: var(--brand); }
.btn-p { background: var(--brand); color: #fff; }
.btn-p:hover { background: var(--brand-dark); }
.btn-a { background: var(--accent); color: #fff; }
.btn-a:hover { background: #cf6d17; }
.btn-g { background: none; border: none; color: var(--muted); font-size: 13px; }
.btn-g:hover { color: var(--brand); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #c0392b 100%);
  color: #fff; padding: 60px 24px 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 40px;
  background: var(--bg); clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-label { display: inline-block; background: rgba(255,255,255,.15); padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: 36px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.hero p { font-size: 17px; opacity: .9; max-width: 560px; margin: 0 auto 8px; }

/* ===== SECTION ===== */
.sec { max-width: 1100px; margin: 0 auto; padding: 36px 24px; }
.sec-narrow { max-width: 860px; }
.sec-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.sec-title { font-size: 21px; font-weight: 700; }
.sec-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ===== HUB TILES ===== */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.tile { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.tile:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(0,0,0,.14); }
.tile-top { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 52px; color: #fff; }
.tile-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-body h3 { font-size: 19px; font-weight: 800; }
.tile-body p { font-size: 14px; color: var(--muted); flex: 1; }
.tile-body ul { font-size: 13px; color: var(--muted); padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.tile .btn { width: 100%; justify-content: center; padding: 12px; }

.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-top: 10px; }
.howto-step { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.howto-step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.howto-step strong { display: block; margin-bottom: 4px; }
.howto-step span { font-size: 13px; color: var(--muted); }

/* ===== FILTERS / CHIPS ===== */
.filters { background: #fff; border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.fg { display: flex; flex-direction: column; gap: 4px; min-width: 130px; flex: 1; }
.fg label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.fg select, .fg input[type=date] { border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 14px; background: #fff; outline: none; transition: .15s; }
.fg select:focus, .fg input:focus { border-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; border: 1.5px solid var(--border); background: #fff; color: var(--muted); transition: .15s; }
.chip:hover, .chip.on { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }

/* ===== GRID / CARDS ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.13); }
.thumb { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 52px; position: relative; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.badge.new { background: var(--accent); }
.badge.free { background: var(--green); }
.cbody { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.ctags { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.ctag { font-size: 11px; background: var(--brand-light); color: var(--brand); padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.ctitle { font-size: 16px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.cdesc { font-size: 13px; color: var(--muted); margin-bottom: 10px; flex: 1; }
.cmeta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.stars { color: #f59e0b; letter-spacing: -1px; }
.cfooter { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
.price { font-size: 20px; font-weight: 800; color: var(--brand); }
.price span { font-size: 12px; font-weight: 400; color: var(--muted); }
.price.free { color: var(--green); }
.dates { font-size: 12px; color: var(--muted); }

/* ===== ATTRACTION PICKER (obszar 1) ===== */
.builder { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.attr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.attr { background: #fff; border: 2px solid var(--border); border-radius: var(--r); padding: 14px; cursor: pointer; transition: .15s; position: relative; }
.attr:hover { border-color: var(--brand); }
.attr.sel { border-color: var(--brand); background: var(--brand-light); }
.attr.disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.6); }
.attr.disabled:hover { border-color: var(--border); }
.attr .a-icon { font-size: 28px; }
.attr strong { display: block; font-size: 14px; margin: 6px 0 2px; }
.attr span { font-size: 12px; color: var(--muted); }
.attr .a-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; display: none; align-items: center; justify-content: center; }
.attr.sel .a-check { display: flex; }

.scenarios { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.scenario { border: 2px solid var(--border); border-radius: var(--r); padding: 14px 16px; cursor: pointer; transition: .15s; }
.scenario:hover, .scenario.sel { border-color: var(--brand); background: var(--brand-light); }
.scenario strong { display: block; }
.scenario span { font-size: 13px; color: var(--muted); }

.side-panel { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); position: sticky; top: calc(var(--nav) + 16px); }
.side-panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 8px 12px; border-radius: 8px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 500; cursor: pointer; transition: .15s; text-align: center; }
.slot:hover, .slot.sel { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }
.slot.full { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.tabbar { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.tabbar button { background: none; border: none; padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; transition: .15s; }
.tabbar button.active { color: var(--brand); border-bottom-color: var(--brand); }

.info-box { background: var(--brand-light); border-radius: 8px; padding: 12px 14px; font-size: 13px; color: var(--brand); }
.warn-box { background: #fef3c7; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #92400e; }
.ok-box { background: var(--green-light); border-radius: 8px; padding: 12px 14px; font-size: 13px; color: var(--green-dark); }
hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sum-row:last-child { border-bottom: none; }

/* ===== FORM ===== */
.fr { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.fg2 { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 4px; }
.fg2 label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.fg2 input, .fg2 select, .fg2 textarea { border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14px; outline: none; font-family: inherit; transition: .15s; }
.fg2 input:focus, .fg2 select:focus, .fg2 textarea:focus { border-color: var(--brand); }
.bcard { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.bcard h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }

/* ===== SCHEDULE (obszar 3) ===== */
.sched-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.sched-meta b { color: var(--text); }
.seats { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.seats.ok { background: var(--green-light); color: var(--green-dark); }
.seats.low { background: #fef3c7; color: #92400e; }
.seats.none { background: #f3f4f6; color: #6b7280; }

/* ===== SCHOOL ORDERS (obszar 2) ===== */
.order { border: 1.5px solid var(--border); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.order-hdr { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.order-hdr .o-icon { font-size: 30px; }
.order-hdr strong { font-size: 15px; }
.order-hdr span { font-size: 12px; color: var(--muted); }
.o-status { margin-left: auto; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.o-status.ok { background: var(--green-light); color: var(--green-dark); }
.o-status.pend { background: #fef3c7; color: #92400e; }
.o-status.done { background: #f3f4f6; color: #6b7280; }
.thread { background: var(--bg); border-radius: 8px; padding: 12px; margin-top: 8px; }
.msg { font-size: 13px; padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; background: #fff; }
.msg.me { background: var(--brand-light); }
.msg .who { font-weight: 700; font-size: 12px; }
.msg .ts { font-size: 11px; color: var(--muted); margin-left: 6px; }

/* ===== MODAL ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.show { display: flex; }
.modal { background: #fff; border-radius: var(--r); max-width: 460px; width: 100%; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.modal p { color: var(--muted); margin-bottom: 16px; font-size: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ===== STEPS ===== */
.steps { display: flex; margin-bottom: 28px; }
.si { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.si::after { content: ''; position: absolute; top: 16px; left: 50%; right: -50%; height: 2px; background: var(--border); z-index: 0; }
.si:last-child::after { display: none; }
.sc { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); background: #fff; font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; transition: .2s; }
.si.done .sc { background: var(--brand); border-color: var(--brand); color: #fff; }
.si.done::after { background: var(--brand); }
.si.cur .sc { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-light); }
.sl { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 6px; text-align: center; }
.si.cur .sl, .si.done .sl { color: var(--brand); }

/* ===== SUCCESS ===== */
.success { text-align: center; padding: 40px 24px; }
.success .si-icon { font-size: 60px; margin-bottom: 12px; }
.success h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }

/* ===== FOOTER ===== */
footer { background: #1a1a2e; color: rgba(255,255,255,.65); padding: 32px 24px; text-align: center; font-size: 13px; margin-top: 40px; }
footer strong { color: #fff; }
.flinks { display: flex; justify-content: center; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.flinks a { color: rgba(255,255,255,.55); font-size: 13px; }
.flinks a:hover { color: #fff; }

/* ===== TOAST ===== */
#toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; background: #1a1a2e; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.3); transform: translateY(80px); opacity: 0; transition: .3s; pointer-events: none; max-width: 340px; }
#toast.show { transform: translateY(0); opacity: 1; }

/* ===== RESPONSIVE ===== */
@media(max-width: 900px) { .builder { grid-template-columns: 1fr; } .side-panel { position: static; } }
@media(max-width: 600px) { .hero h1 { font-size: 26px; } .filters { flex-direction: column; } .fr { flex-direction: column; } .sl { display: none; } nav { padding: 0 14px; gap: 8px; } .nav-links a { padding: 6px 8px; font-size: 13px; } }
