/* Veřejné stránky rezervací – Fabrika Pizzeria & Bowling
   Černá a bílá z loga, betonová šedá, signální žlutá jako jediný akcent. */

@font-face { font-family: "Big Shoulders"; font-weight: 800; font-display: swap;
  src: url(/fonts/big-shoulders-display-latin-ext-800-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+2C60-2C7F; }
@font-face { font-family: "Big Shoulders"; font-weight: 800; font-display: swap;
  src: url(/fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-display: swap;
  src: url(/fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+2C60-2C7F; }
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-display: swap;
  src: url(/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); }

:root {
  --ink: #000;
  --text: #1c1e22;
  --muted: #5d636e;
  --line: #d3d6dc;
  --concrete: #eef0f2;
  --paper: #fff;
  --signal: #ffc61a;
  --signal-deep: #e0a800;
  --danger: #b3261e;
  --ok: #17663a;
  --radius: 10px;
  --display: "Big Shoulders", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--concrete); color: var(--text); font: 16px/1.55 var(--body); }
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--signal); }

/* ---------- hlavička ---------- */
.top { background: var(--ink); color: #fff; }
.top .inner { max-width: 1120px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-block; line-height: 0; }
.logo img { display: block; height: 46px; width: auto; filter: invert(1); }
.switch { display: inline-flex; background: #1f2126; border-radius: 999px; padding: 4px; }
.switch a { padding: 8px 18px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.switch a[aria-current] { background: var(--signal); color: var(--ink); }
.switch a:not([aria-current]):hover { background: #33363d; }
.hero { background: var(--ink); color: #fff; }
.hero .inner { max-width: 1120px; margin: 0 auto; padding: 18px 20px 34px; }
.hero h1 { font: 800 clamp(44px, 9vw, 76px)/.95 var(--display); letter-spacing: .01em; text-transform: uppercase; margin: 0 0 10px; }
.hero p { margin: 0; color: #c9ccd3; max-width: 46ch; }
.hero a { color: #fff; font-weight: 600; white-space: nowrap; }
/* výstražná páska: jediný ozdobný prvek stránky */
.tape { height: 10px; background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, var(--ink) 14px 28px); }

/* ---------- obsah ---------- */
main { max-width: 760px; margin: 0 auto; padding: 28px 20px 72px; }
main.wide { max-width: 1120px; }
.card { background: var(--paper); border-radius: 16px; padding: 24px; margin-bottom: 16px; }
h2 { font: 800 28px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 16px; }
.step h2 { display: flex; align-items: center; gap: 12px; }
.num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--signal); display: grid; place-items: center; font: 800 20px/1 var(--display); }
.step.off { opacity: .38; pointer-events: none; }
.hint { color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.empty { color: var(--muted); margin: 0; }

details.terms { background: var(--paper); border-radius: 16px; margin-bottom: 16px; }
details.terms summary { cursor: pointer; padding: 18px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; border-radius: 16px; }
details.terms summary::-webkit-details-marker { display: none; }
details.terms summary::after { content: "+"; font: 800 26px/1 var(--display); }
details.terms[open] summary::after { content: "–"; }
details.terms .inside { padding: 0 24px 20px; color: #33373e; font-size: 15px; max-width: 68ch; }
details.terms .inside p { margin: 0 0 10px; }
.terms-text { white-space: pre-line; }
/* souhlas a podmínky pohromadě u odeslání */
.consent { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px 6px; margin: 6px 0 14px; }
.consent .agree { margin: 0 0 8px; }
.consent .agree > label { font-weight: 600; }
.consent details.terms { background: none; margin: 0; border-top: 1px solid #e3e5ea; border-radius: 0; }
.consent details.terms summary { padding: 10px 0; font-weight: 400; color: var(--muted); border-radius: 6px; }
.consent details.terms .inside { padding: 0 0 10px; }
.consent:has(.agree.bad) { border-color: var(--danger); }

/* ---------- volby ---------- */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  min-width: 52px; min-height: 48px; padding: 10px 16px; cursor: pointer; font-weight: 600;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.choice:hover:not(:disabled) { border-color: var(--ink); }
.choice.on { background: var(--signal); border-color: var(--ink); color: var(--ink); }
.choice:disabled { color: #a9adb6; background: var(--concrete); cursor: default; text-decoration: line-through; }

/* kalendář */
.cal { max-width: 380px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 14px 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: 6px; padding-left: 8px; }
.cal-head button { border: 0; background: none; font-size: 24px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.cal-head button:hover:not(:disabled) { background: var(--concrete); }
.cal-head button:disabled { color: #c3c7ce; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid .dow { font-size: 13px; color: var(--muted); padding: 4px 0 6px; }
.cal-grid button { border: 0; background: none; height: 42px; width: 42px; max-width: 100%; margin: 0 auto; border-radius: 50%; cursor: pointer; font-weight: 600; }
.cal-grid button:hover:not(:disabled) { background: var(--concrete); }
.cal-grid button:disabled { color: #b9bdc5; font-weight: 400; cursor: default; }
.cal-grid button.today { box-shadow: inset 0 0 0 1.5px var(--line); }
.cal-grid button.on { background: var(--signal); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- formulář ---------- */
.pill { display: block; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 20px; font-weight: 600; border-left: 8px solid var(--signal); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form .col { display: flex; flex-direction: column; }
.field { display: flex; flex-direction: column; margin-bottom: 14px; }
.field > label { font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field input:not([type=checkbox]), .field textarea, .field select, .item select, .daybar input[type=date] {
  width: 100%; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-height: 48px;
}
.field input:not([type=checkbox]):hover, .field textarea:hover { border-color: #9aa0ab; }
.field textarea { flex: 1; min-height: 130px; resize: vertical; }
.field.grow { flex: 1; }
.field.bad input:not([type=checkbox]), .field.bad textarea { border-color: var(--danger); background: #fff6f5; }
.trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: block; margin: 4px 0 10px; }
.agree > label { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; margin: 0; font-size: 16px; cursor: pointer; }
.agree input[type=checkbox] { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.agree.bad > label { color: var(--danger); }
.linklike { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.box { background: var(--concrete); border-radius: var(--radius); padding: 14px 18px; margin: 12px 0; font-size: 15px; white-space: pre-line; max-width: 72ch; }
.msg { margin: 14px 0; padding: 14px 18px; border-radius: var(--radius); background: #fdecea; color: #7d1a14; font-weight: 600; border-left: 6px solid var(--danger); }
.msg.ok { background: var(--paper); color: var(--text); border-left: 8px solid var(--signal); border-radius: 16px; font-size: 19px; padding: 32px 26px; margin: 8px 0; }
.actions { margin-top: 18px; }
.btn {
  display: inline-block; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer;
  font-weight: 700; font-size: 17px; padding: 15px 30px; text-decoration: none; min-height: 52px;
}
.btn:hover:not(:disabled) { background: var(--signal); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn:disabled { background: #b8bcc4; cursor: default; }
.btn.light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; }
.btn.light:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper); }
.btn.danger { background: var(--danger); }
.btn.danger:hover:not(:disabled) { background: #8f1d17; color: #fff; box-shadow: none; }
footer { color: var(--muted); font-size: 14px; padding: 0 20px 36px; text-align: center; }

/* ---------- bowling ---------- */
.daybar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.daybar input[type=date] { width: auto; font-weight: 600; }
.daybar .choices { gap: 8px; }
.chip { border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); padding: 9px 15px; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; min-height: 44px; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--signal); border-color: var(--ink); }
.gridhead { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 0 0 14px; flex-wrap: wrap; }
.gridhead .day { font: 800 28px/1.05 var(--display); text-transform: uppercase; }
.gridhead .side { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart { font-weight: 700; white-space: nowrap; }
.gridwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid var(--line); border-radius: 12px; }
table.lanes { border-collapse: collapse; width: 100%; background: var(--paper); }
table.lanes th, table.lanes td { border: 1px solid #e3e5ea; font-weight: 400; font-size: 14px; color: var(--muted); }
table.lanes tr > :first-child { border-left: 0; } table.lanes tr > :last-child { border-right: 0; }
table.lanes thead th { border-top: 0; padding: 8px 4px; white-space: nowrap; text-align: left; padding-left: 8px; }
table.lanes tfoot th { border-bottom: 0; padding: 8px 4px 8px 8px; white-space: nowrap; text-align: left; font-size: 13px; }
table.lanes th.lane { font-weight: 700; color: var(--text); padding: 4px 14px; background: var(--paper); position: sticky; left: 0; z-index: 1; white-space: nowrap; }
table.lanes td { padding: 0; }
table.lanes td:nth-child(even) { border-left-color: #b9bdc6; }
table.lanes td button { display: block; width: 100%; min-width: 34px; height: 44px; border: 0; padding: 0; background: var(--paper); cursor: pointer; }
table.lanes td button:hover:not(:disabled) { background: #fff1bf; }
table.lanes td button.busy { background: repeating-linear-gradient(-45deg, #c4c8d0 0 5px, #dfe2e7 5px 10px); cursor: default; }
table.lanes td button.mine { background: var(--signal); box-shadow: inset 0 0 0 1.5px var(--ink); }
table.lanes td button.past { background: var(--concrete); cursor: default; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.legend i { display: inline-block; width: 16px; height: 16px; margin-right: 7px; vertical-align: -3px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); }
.legend i.busy { background: repeating-linear-gradient(-45deg, #c4c8d0 0 4px, #dfe2e7 4px 8px); }
.legend i.mine { background: var(--signal); border-color: var(--ink); }
.recap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.recap .card { margin: 0; }
.item { border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.item .name { background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.item .name .linklike { color: #fff; font-weight: 400; font-size: 14px; }
.item .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; flex-wrap: wrap; }
.item .row + .row { border-top: 1px solid #e3e5ea; }
.item select { width: auto; min-height: 44px; padding: 8px 12px; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; padding: 8px 2px 0; }

@media (max-width: 640px) {
  main { padding: 16px 12px 56px; }
  .card { padding: 20px 16px; border-radius: 14px; }
  .form, .recap { grid-template-columns: 1fr; }
  .logo img { height: 36px; }
  .switch a { padding: 8px 14px; }
  .choice { min-width: 48px; padding: 10px 12px; }
  .btn[type=submit] { width: 100%; }
  .field textarea { min-height: 96px; }
  h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: no-preference) {
  .choice, .chip, .btn, .cal-grid button { transition: background-color .12s, border-color .12s; }
}
