/* Půjčovna minibagru – styly */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede6;
  --ink: #16181b;
  --ink-2: #4a4f57;
  --muted: #7b808a;
  --line: #e1ded5;
  --accent: #f4b000;
  --accent-ink: #1b1600;
  --accent-soft: #fff3cc;
  --dark: #15171a;
  --dark-2: #1f2226;
  --ok: #1f8a4c;
  --ok-soft: #dff3e7;
  --warn: #b7791f;
  --warn-soft: #fdf0d8;
  --busy: #c2410c;
  --busy-soft: #fde4d8;
  --accent-hover: #ffc21a;
  --accent-strong: #a87800;   /* tmavší akcent – ikony, checkboxy, nadpisky */
  --accent-text: #5d4600;     /* text na světlém akcentu */
  --accent-line: #f3dc92;
  --accent-range: #ffe38a;
  --accent-glow: rgba(244, 176, 0, .26);
  --on-dark-accent: #f4b000;  /* akcent na tmavém pozadí */
  --line-strong: #d3cfc4;
  --footer: #0e0f11;
  --free-ink: #134d2c;
  --free-hover: #c6ead4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 10px; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--dark) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; color: rgba(255,255,255,.78); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: #fff; }
.nav .btn { color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .98rem; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s ease, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.btn-ghost:hover { opacity: 1; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); }
.btn-sm { padding: 8px 12px; font-size: .88rem; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 20%, var(--accent-glow), transparent 60%), var(--dark); color: #fff; padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero p.lead { color: rgba(255,255,255,.75); max-width: 540px; }
.hero h1 span { color: var(--on-dark-accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 540px; }
.badge-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 14px 16px; }
.badge-card b { display: block; font-size: 1.35rem; letter-spacing: -.02em; }
.badge-card span { font-size: .82rem; color: rgba(255,255,255,.6); }
.hero-visual { position: relative; align-self: end; }
.hero-visual .photo { border-radius: 18px 18px 0 0; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-price { position: absolute; top: 18px; right: 18px; background: var(--accent); color: var(--accent-ink); border-radius: 14px; padding: 12px 16px; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.3); text-align: right; }
.hero-price small { display: block; font-weight: 600; font-size: .78rem; opacity: .8; }
.hero-price b { font-size: 1.5rem; }

/* Cards / grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 16px; color: var(--accent-strong); }
.card p:last-child { margin-bottom: 0; }

/* Specs */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.spec { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec:nth-child(odd) { border-right: 1px solid var(--line); }
.spec span { color: var(--ink-2); }
.spec b { text-align: right; }

/* Pricing */
.price-table { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; }
.price-main { background: var(--dark); color: #fff; border-color: var(--dark); }
.price-main .price { color: var(--on-dark-accent); }
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 4px; }
.price small { font-size: 1rem; font-weight: 600; opacity: .7; }
.price-main ul { padding-left: 18px; margin: 14px 0 0; color: rgba(255,255,255,.8); }
.note-box { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text); font-size: .95rem; }

/* Booking */
.booking { background: var(--surface-2); }
.booking-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.cal-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 84px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h3 { margin: 0; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cal-month-title { font-weight: 700; text-transform: capitalize; margin-bottom: 8px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { font-size: .72rem; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; border: 0; border-radius: 8px; background: var(--ok-soft); color: var(--free-ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; display: grid; place-items: center; position: relative; transition: background .12s, transform .06s; padding: 0; }
.cal-day:hover:not([disabled]) { background: var(--free-hover); }
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.past { background: transparent; color: #c2c4c8; cursor: default; font-weight: 500; }
.cal-day.busy { background: var(--busy-soft); color: var(--busy); cursor: not-allowed; text-decoration: line-through; }
.cal-day.pending { background: repeating-linear-gradient(135deg, var(--warn-soft), var(--warn-soft) 5px, #fbe3b5 5px, #fbe3b5 10px); color: #7a4f10; }
.cal-day.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cal-day.in-range { background: var(--accent-range); color: var(--accent-text); border-radius: 4px; }
.cal-day.sel-start, .cal-day.sel-end { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--accent-strong); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: .84rem; color: var(--ink-2); }
.cal-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.lg-free { background: var(--ok-soft); border: 1px solid var(--free-hover); }
.lg-pending { background: repeating-linear-gradient(135deg, var(--warn-soft), var(--warn-soft) 3px, #fbe3b5 3px, #fbe3b5 6px); }
.lg-busy { background: var(--busy-soft); }
.lg-sel { background: var(--accent); }
.cal-hint { margin-top: 12px; font-size: .88rem; color: var(--muted); }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label, .field .label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=date], .field input[type=number], .field input[type=password], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .12s, box-shadow .12s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.choice:hover { border-color: var(--muted); }
.choice input { accent-color: var(--accent-strong); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice .choice-text { flex: 1; }
.choice .choice-text small { display: block; color: var(--muted); font-size: .8rem; }
.choice-inline { grid-template-columns: 1fr 1fr; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); margin: 6px 0 16px; }
.consent input { margin-top: 3px; accent-color: var(--accent-strong); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.summary { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin: 6px 0 16px; font-size: .94rem; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px; font-weight: 800; font-size: 1.08rem; }
.summary .muted { font-size: .8rem; margin-top: 6px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: .93rem; margin-bottom: 14px; }
.alert-error { background: var(--busy-soft); color: #8a2c07; }
.alert-ok { background: var(--ok-soft); color: #134d2c; }
.alert-warn { background: var(--warn-soft); color: #6f4a0f; }
.hidden { display: none !important; }

/* Transport */
.transport { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.transport .card h3 { display: flex; align-items: center; gap: 10px; }

/* Callback */
.callback { background: var(--dark); color: #fff; }
.callback .lead { color: rgba(255,255,255,.72); }
.callback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.callback .form-card { color: var(--ink); }
.phone-big { display: inline-flex; align-items: center; gap: 12px; font-size: 1.6rem; font-weight: 800; color: var(--accent); text-decoration: none; margin-top: 8px; letter-spacing: -.01em; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 17px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-strong); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 6px; }

/* Footer */
.site-footer { background: var(--footer); color: rgba(255,255,255,.65); padding: 40px 0; font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer a { color: rgba(255,255,255,.85); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .booking-grid, .callback-grid { grid-template-columns: 1fr; }
  .price-table { grid-template-columns: 1fr 1fr; }
  .cal-wrap { position: static; }
  .hero { padding-top: 48px; }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--dark); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 4px; display: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 4px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .transport, .specs, .price-table { grid-template-columns: 1fr; }
  .spec:nth-child(odd) { border-right: 0; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-months .cal-month:nth-child(2) { display: none; }
  .form-row, .choice-inline { grid-template-columns: 1fr; }
  .hero-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .badge-card { padding: 10px 12px; }
  .badge-card b { font-size: 1.1rem; }
  .phone-big { font-size: 1.3rem; }
}

/* opravy */
.field label.choice { display: flex; margin-bottom: 0; font-size: .98rem; font-weight: 500; color: var(--ink); }
.specs { grid-template-columns: 1fr; }
.spec:nth-child(odd) { border-right: 0; }
.spec:last-child { border-bottom: 0; }

/* Kauce, body u formuláře */
.deposit-box { margin-top: 20px; display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 12px; background: var(--dark); color: #fff; }
.deposit-box .small { color: rgba(255,255,255,.72); }
.deposit-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.summary-row.deposit { color: var(--ink-2); font-size: .9rem; }
.cb-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: rgba(255,255,255,.82); }
.cb-points li { display: flex; gap: 10px; align-items: center; }
.cb-points li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* =========================================================
   Barevné palety – přepíná se v administraci (Nastavení → Vzhled)
   ========================================================= */
/* Lesní zelená – venkov, zahrady, příroda */
:root[data-theme="les"] {
  --bg: #f3f5ef; --surface-2: #e6ebe0; --line: #dbe1d3; --line-strong: #c7cfbd;
  --ink: #141a15; --ink-2: #445046; --muted: #76827a;
  --dark: #13201a; --dark-2: #1d2e25; --footer: #0b140f;
  --accent: #a3c93a; --accent-hover: #b3d64e; --accent-ink: #13200a; --accent-soft: #eef5d8;
  --accent-strong: #5b7a12; --accent-text: #3d5209; --accent-line: #d3e5a0; --accent-range: #d6ea9a;
  --accent-glow: rgba(163, 201, 58, .28); --on-dark-accent: #b9dc55;
  --ok-soft: #e6eff6; --ok: #2a6f97; --free-ink: #1d4e6b; --free-hover: #cddfed; --busy: #9f1d3a; --busy-soft: #f7dfe4;
}
/* Terakota – teplá, zemitá, „hlína a cihla“ */
:root[data-theme="terakota"] {
  --bg: #f7f3ee; --surface-2: #efe6dc; --line: #e6dccf; --line-strong: #d5c7b7;
  --ink: #1f1814; --ink-2: #57493f; --muted: #8a7b70;
  --dark: #231a16; --dark-2: #33261f; --footer: #150f0c;
  --accent: #d9622b; --accent-hover: #e5733d; --accent-ink: #ffffff; --accent-soft: #fbe7dc;
  --accent-strong: #a7471a; --accent-text: #7a3412; --accent-line: #f1c6ad; --accent-range: #f6d0b9;
  --accent-glow: rgba(217, 98, 43, .28); --on-dark-accent: #f08a57;
  --busy: #7c2d8a; --busy-soft: #efe0f2; --warn-soft: #f3ecd9;
}
/* Ocel a oranžová – technická, „stavební stroje“ */
:root[data-theme="ocel"] {
  --bg: #f3f5f8; --surface-2: #e5eaf1; --line: #dbe1ea; --line-strong: #c5cedb;
  --ink: #111a26; --ink-2: #435063; --muted: #748196;
  --dark: #0f1c2e; --dark-2: #1a2b44; --footer: #08111d;
  --accent: #ff7a1a; --accent-hover: #ff8d3b; --accent-ink: #1c0c00; --accent-soft: #ffeadb;
  --accent-strong: #c25400; --accent-text: #8a3c00; --accent-line: #ffd0ab; --accent-range: #ffd3b0;
  --accent-glow: rgba(255, 122, 26, .28); --on-dark-accent: #ff8d3b;
  --busy: #b0213f; --busy-soft: #f9dde3;
}
