/* Inter (OFL), přibalený lokálně: latin + latin-ext kvůli češtině */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/vendor/inter/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/vendor/inter/inter.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Půjcsito – design systém */
:root {
  --brand: #6335D8;
  --brand-600: #5529c7;
  --brand-700: #4620a8;
  --brand-50: #f5f1ff;
  --brand-100: #ebe3ff;
  --brand-200: #d7c8fe;
  --ink: #16142c;
  --ink-2: #3b3955;
  --muted: #6f6d87;
  --line: #e9e7f1;
  --line-2: #dcd9e8;
  --bg: #f6f5fa;
  --white: #fff;
  --surface: #fff;
  --glass: rgba(255, 255, 255, .92);
  --green: #12a05c;
  --green-50: #e8f8ef;
  --blue: #2a6bea;
  --blue-50: #eaf1ff;
  --amber: #e89a0c;
  --amber-50: #fff5e0;
  --red: #dc3a40;
  --red-50: #fdecec;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-sm: 0 1px 2px rgba(22, 20, 44, .06);
  --sh: 0 1px 2px rgba(22, 20, 44, .05), 0 6px 20px rgba(22, 20, 44, .06);
  --sh-lg: 0 2px 6px rgba(22, 20, 44, .06), 0 20px 50px rgba(22, 20, 44, .12);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hdr: 68px;
  --bnav: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-100); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- rozvržení ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.mid { max-width: 980px; }
main#view { min-height: calc(100vh - var(--hdr)); }
.page { animation: pageIn .28s ease both; padding-bottom: 48px; }
@keyframes pageIn { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page, .modal, .toast, .hero-art .float { animation: none !important; } html { scroll-behavior: auto; } }
.section { padding: 36px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xs { font-size: 12.5px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.mt-lg { margin-top: 28px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }
.pagehead { padding: 28px 0 8px; }
.pagehead h1 { font-size: clamp(26px, 3.4vw, 36px); }
.pagehead p { color: var(--muted); margin: 0; }
.bg-soft { background: var(--bg); }

.grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 18px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
@media (max-width: 719px) {
  .scroller { grid-auto-columns: 78%; margin: 0 -20px; padding: 0 20px 6px; scroll-padding: 20px; }
}

/* ---------- tlačítka ---------- */
.btn {
  --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; background: var(--white); color: var(--ink); font-weight: 650; font-size: 15px;
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent; position: relative;
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(99, 53, 216, .28); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-secondary { background: var(--brand-50); color: var(--brand-700); }
.btn-secondary:hover { background: var(--brand-100); color: var(--brand-700); }
.btn-outline { border-color: var(--line-2); background: var(--white); }
.btn-outline:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }
.btn-danger { background: var(--red-50); color: var(--red); }
.btn-danger:hover { background: #fbdcdc; color: #b4262c; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2846; color: #fff; }
.btn-lg { --h: 54px; font-size: 16.5px; padding: 0 24px; border-radius: 14px; }
.btn-sm { --h: 36px; font-size: 14px; padding: 0 12px; border-radius: 10px; }
.btn-xs { --h: 30px; font-size: 13px; padding: 0 10px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor;
  border-color: var(--brand-200) var(--brand-200) var(--brand) var(--brand); animation: spin .7s linear infinite;
}
.btn-primary.loading::after { border-color: rgba(255,255,255,.4) rgba(255,255,255,.4) #fff #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center;
  cursor: pointer; color: var(--ink-2); position: relative; transition: background .15s;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-muted { color: var(--muted); font-size: 14px; background: none; border: 0; cursor: pointer; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.link-muted:hover { color: var(--ink); }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 24px; height: 24px; }
svg.i.xl { width: 32px; height: 32px; }

/* ---------- formuláře ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 650; font-size: 14px; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: var(--red); display: none; }
.field.invalid .err { display: block; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--red); background: #fffafa; }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--white);
  transition: border-color .15s, box-shadow .15s; font-size: 16px; color: var(--ink); appearance: none; -webkit-appearance: none;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6d87' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.input::placeholder, .textarea::placeholder { color: #a3a1b6; }
.input-wrap { position: relative; }
.input-wrap .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.input-wrap .input { padding-right: 52px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
[data-field] > .err, .check > .err { display: none; font-size: 13px; color: var(--red); }
[data-field].invalid > .err, .check.invalid > .err { display: block; }
.check.invalid { color: var(--red); }
.form-error { display: none; padding: 12px 14px; border-radius: 12px; background: var(--red-50); color: #a5262c; font-size: 14.5px; font-weight: 550; }
.form-error.show { display: block; }
.notice { padding: 14px 16px; border-radius: 14px; background: var(--brand-50); color: var(--ink-2); font-size: 14.5px; display: flex; gap: 12px; align-items: flex-start; }
.notice svg { color: var(--brand); margin-top: 2px; }
.notice.warn { background: var(--amber-50); } .notice.warn svg { color: var(--amber); }
.notice.ok { background: var(--green-50); } .notice.ok svg { color: var(--green); }
.notice.err { background: var(--red-50); } .notice.err svg { color: var(--red); }
.seg { display: inline-flex; padding: 4px; background: var(--bg); border-radius: 12px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--white); color: var(--ink); box-shadow: var(--sh-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; cursor: pointer; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-sm); transition: transform .2s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- karty, štítky ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 20px; }
@media (min-width: 720px) { .card-pad { padding: 24px; } }
.card.shadow { box-shadow: var(--sh); border-color: transparent; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.badge-demo { background: #fff3d6; color: #8a5a00; }
.badge-featured { background: var(--brand); color: #fff; }
.badge-pro { background: var(--ink); color: #fff; }
.badge-soft { background: var(--brand-50); color: var(--brand-700); }
.badge-gray { background: var(--bg); color: var(--ink-2); }
.badge-green { background: var(--green-50); color: #0b7a44; }
.badge-red { background: var(--red-50); color: #b4262c; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--bg); color: var(--ink-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-pending, .pill-approved, .pill-awaiting_payment { background: var(--amber-50); color: #9a6200; }
.pill-paid, .pill-ready { background: var(--blue-50); color: #1f55c4; }
.pill-rented, .pill-awaiting_return { background: var(--brand-50); color: var(--brand-700); }
.pill-completed { background: var(--green-50); color: #0b7a44; }
.pill-cancelled, .pill-rejected { background: #f1f0f5; color: #6f6d87; }
.pill-dispute { background: var(--red-50); color: #b4262c; }

.vts { display: inline-flex; gap: 3px; vertical-align: middle; }
.vt { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; flex: none; }
.vt svg { width: 11px; height: 11px; stroke-width: 3.2; }
.vt-email { background: var(--green); }
.vt-phone { background: var(--blue); }
.vt-identity { background: var(--brand); }
.vt.sm { width: 15px; height: 15px; } .vt.sm svg { width: 9px; height: 9px; }

.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 750; color: #fff; overflow: hidden; font-size: 15px; letter-spacing: -.01em; background: var(--brand); user-select: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.company { border-radius: 12px; }
.avatar.xs { width: 26px; height: 26px; font-size: 11px; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 104px; height: 104px; font-size: 36px; }
.avatar.company.xl { border-radius: 26px; }

.stars { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.stars svg { width: 15px; height: 15px; fill: #f5a623; stroke: none; }
.stars .cnt { color: var(--muted); font-weight: 500; }
.starbar { display: inline-flex; gap: 2px; }
.starbar svg { width: 16px; height: 16px; stroke: none; fill: #e3e1ec; }
.starbar svg.on { fill: #f5a623; }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { border: 0; background: none; padding: 2px; cursor: pointer; }
.star-input svg { width: 30px; height: 30px; fill: #e3e1ec; stroke: none; transition: transform .1s, fill .1s; }
.star-input button.on svg { fill: #f5a623; }
.star-input button:hover svg { transform: scale(1.12); }

/* ---------- hlavička ---------- */
.demobar { background: var(--ink); color: #dcd8f3; font-size: 13px; text-align: center; padding: 7px 40px; position: relative; line-height: 1.4; }
.demobar b { color: #fff; }
.demobar a { color: #c4b2ff; font-weight: 650; }
.demobar button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #a9a4c9; cursor: pointer; padding: 6px; }
.hdr { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 22px; }
.logo { font-size: 25px; font-weight: 850; letter-spacing: -0.05em; color: var(--brand); display: inline-flex; align-items: baseline; line-height: 1; }
.logo:hover { color: var(--brand-600); }
.logo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); margin-left: 2px; display: inline-block; }
.nav { display: none; gap: 4px; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--bg); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.badge-dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 750; display: grid; place-items: center; border: 2px solid #fff; line-height: 1; }
.avatar-btn { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.avatar-btn:hover { box-shadow: var(--sh-sm); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; background: var(--surface); border-radius: 16px; box-shadow: var(--sh-lg); border: 1px solid var(--line); padding: 8px; z-index: 60; animation: pop .14s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 550; font-size: 15px; border: 0; background: none; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg); }
.dropdown hr { border: 0; height: 1px; background: var(--line); margin: 6px 4px; }
.dropdown .who { padding: 10px 12px 12px; }
.hdr .only-desktop { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .hdr .only-desktop { display: inline-flex; }
}

/* ---------- spodní navigace ---------- */
.bnav { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; height: calc(var(--bnav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--glass); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); backdrop-filter: blur(12px); }
.bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 650; position: relative; -webkit-tap-highlight-color: transparent; }
.bnav a.active { color: var(--brand); }
.bnav a svg { width: 23px; height: 23px; }
.bnav a .add { width: 46px; height: 46px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(99,53,216,.35); margin-top: -6px; }
.bnav a .add svg { width: 24px; height: 24px; stroke-width: 2.4; }
.bnav .badge-dot { top: 6px; right: calc(50% - 22px); }
body { padding-bottom: calc(var(--bnav) + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .bnav { display: none; } body { padding-bottom: 0; } }
body.no-bnav .bnav { display: none; }
body.no-bnav { padding-bottom: 0; }

/* ---------- patička ---------- */
.ftr { background: var(--bg); border-top: 1px solid var(--line); padding: 44px 0 28px; margin-top: 40px; font-size: 14.5px; }
.ftr-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.ftr h4 { font-size: 14px; margin-bottom: 10px; }
.ftr a { color: var(--ink-2); display: block; padding: 3px 0; }
.ftr a:hover { color: var(--brand); }
.ftr .copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
body.app-page .ftr { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 36px 0 26px; background: linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -180px; top: -220px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(99,53,216,.12), rgba(99,53,216,0) 65%); pointer-events: none; }
.hero-grid { display: grid; gap: 30px; align-items: center; position: relative; }
@media (min-width: 1020px) { .hero { padding: 64px 0 46px; } .hero-grid { grid-template-columns: 1.4fr .6fr; gap: 40px; } }
@media (min-width: 1240px) { .hero-grid { grid-template-columns: 1.3fr .7fr; } }
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.02; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); max-width: 560px; margin-bottom: 26px; }
.searchbar { background: var(--surface); border-radius: 22px; box-shadow: var(--sh-lg); padding: 10px; display: grid; gap: 4px; grid-template-columns: 1fr; border: 1px solid var(--line); }
.sb-field { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; transition: background .15s; min-width: 0; position: relative; }
.sb-field:focus-within { background: var(--bg); }
.sb-field label { font-size: 12.5px; font-weight: 750; color: var(--ink); letter-spacing: .01em; }
.sb-field input, .sb-field select { border: 0; background: transparent; padding: 2px 0; font-size: 15.5px; color: var(--ink); outline: 0; width: 100%; min-width: 0; height: 28px; }
.sb-field input::placeholder { color: #9a98ae; }
.sb-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.searchbar .btn { height: 54px; }
@media (min-width: 860px) {
  .searchbar { grid-template-columns: 1fr .85fr minmax(270px, 1.6fr) auto; align-items: center; border-radius: 999px; padding: 8px 8px 8px 10px; }
  .sb-field { border-radius: 999px; padding: 8px 18px; }
  .sb-dates .sb-field { padding: 8px 12px; }
  .sb-field + .sb-field::before, .sb-dates::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line); }
  .sb-dates { position: relative; }
  .sb-dates .sb-field + .sb-field::before { display: block; }
  .searchbar .btn { border-radius: 999px; height: 56px; padding: 0 26px; }
}
.sb-extra { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.sb-extra .mini { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; }
.sb-extra .mini select, .sb-extra .mini input { border: 0; background: transparent; font-weight: 650; font-size: 14px; outline: 0; padding: 4px 2px; }
.sb-extra .mini input { width: 82px; }
.hero-art { position: relative; height: 430px; display: none; }
@media (min-width: 1020px) { .hero-art { display: block; } }
.hero-art .ph { position: absolute; border-radius: 24px; overflow: hidden; box-shadow: var(--sh-lg); background: var(--brand-100); }
.hero-art .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .ph1 { width: 62%; height: 64%; right: 0; top: 0; }
.hero-art .ph2 { width: 46%; height: 46%; left: 0; top: 22%; }
.hero-art .ph3 { width: 44%; height: 40%; right: 10%; bottom: 0; }
.hero-art .float { position: absolute; left: 6%; bottom: 4%; background: var(--surface); border-radius: 18px; box-shadow: var(--sh-lg); padding: 12px 14px; display: flex; gap: 10px; align-items: center; max-width: 290px; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.hero-trust span { display: inline-flex; gap: 6px; align-items: center; }
.hero-trust svg { color: var(--green); }

/* ---------- kategorie ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(9, 1fr); } }
@media (max-width: 1099px) { .cats { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 100px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; } .cats::-webkit-scrollbar { display: none; } }
.cats.wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); overflow: visible; margin: 0; padding: 0; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 650; font-size: 13.5px; text-align: center; transition: transform .15s, box-shadow .15s, border-color .15s; line-height: 1.2; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: transparent; color: var(--ink); }
.cat .ci { width: 48px; height: 48px; }
.cat.on { border-color: var(--brand); background: var(--brand-50); }

/* ---------- karta nabídky ---------- */
.lcard { display: flex; flex-direction: column; gap: 10px; color: var(--ink); position: relative; min-width: 0; }
.lcard:hover { color: var(--ink); }
.lcard .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--bg); }
.lcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.lcard:hover .ph img { transform: scale(1.04); }
.lcard .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.lcard .tags .badge { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.lcard .tags .badge-gray { background: var(--glass); }
.lcard .fav { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--glass); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: transform .12s; }
.lcard .fav:hover { transform: scale(1.08); }
.lcard .fav.on svg { fill: #e5484d; stroke: #e5484d; }
.lcard .dist { position: absolute; bottom: 10px; left: 10px; background: rgba(22,20,44,.78); color: #fff; font-size: 12.5px; font-weight: 650; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.lcard .body { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; }
.lcard h3 { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -0.01em; line-height: 1.3; }
.lcard .sum { color: var(--muted); font-size: 14px; line-height: 1.4; }
.lcard .loc { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 4px; }
.lcard .owner { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); padding: 8px 10px; border-radius: 12px; background: var(--bg); }
.lcard .owner .nm { font-weight: 650; color: var(--ink); }
.lcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.lcard .price { font-size: 16px; }
.lcard .price b { font-size: 17.5px; letter-spacing: -0.01em; }
.lcard .price .per { color: var(--muted); font-size: 14px; }
.lcard .quote { font-size: 13px; color: var(--brand-700); font-weight: 650; }
.lcard .see { font-size: 13.5px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; }

/* ---------- karta poskytovatele ---------- */
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--sh); transform: translateY(-2px); color: var(--ink); }
.pcard .top { display: flex; gap: 14px; align-items: center; }
.pcard .nm { font-weight: 750; font-size: 16.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pcard .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.pcard .meta div { display: flex; flex-direction: column; }
.pcard .meta b { font-size: 17px; }
.pcard .meta span { font-size: 12.5px; color: var(--muted); }
.pcard .bio { font-size: 14px; color: var(--ink-2); }

/* ---------- jak to funguje ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: st; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.stepc { background: var(--surface); border-radius: 22px; padding: 22px; border: 1px solid var(--line); position: relative; }
.stepc .n { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-50); color: var(--brand); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.stepc h3 { font-size: 17px; }
.stepc p { color: var(--muted); font-size: 14.5px; margin: 0; }
.benefits { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.benefit .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.benefit h3 { font-size: 16px; margin-bottom: 4px; }
.benefit p { color: var(--muted); font-size: 14.5px; margin: 0; }
.cta-earn { border-radius: 28px; background: var(--ink); color: #fff; padding: 30px 24px; display: grid; gap: 26px; position: relative; overflow: hidden; }
.cta-earn::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; bottom: -220px; background: radial-gradient(circle, rgba(132,96,240,.55), rgba(99,53,216,0) 70%); }
.cta-earn h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.cta-earn p { color: #c9c5e6; }
.cta-earn .calc { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 18px; position: relative; z-index: 1; }
.cta-earn .calc label { color: #c9c5e6; font-size: 13.5px; font-weight: 650; }
.cta-earn .calc input[type=range] { width: 100%; accent-color: #a68bff; }
.cta-earn .calc .big { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.cta-earn .calc .input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
@media (min-width: 900px) { .cta-earn { grid-template-columns: 1.1fr .9fr; padding: 44px; align-items: center; } }

/* ---------- vyhledávání ---------- */
.search-top { position: sticky; top: var(--hdr); z-index: 30; background: var(--glass); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.search-top .bar { display: flex; gap: 8px; }
.search-top .bar .input { height: 46px; }
.search-layout { display: grid; gap: 24px; padding-top: 22px; }
@media (min-width: 1020px) { .search-layout { grid-template-columns: 290px 1fr; } }
.filters { display: none; }
@media (min-width: 1020px) { .filters { display: block; position: sticky; top: calc(var(--hdr) + 90px); align-self: start; max-height: calc(100vh - var(--hdr) - 110px); overflow: auto; padding-right: 6px; } }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:first-child { padding-top: 0; }
.fgroup h4 { font-size: 14.5px; margin-bottom: 10px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-head .select { width: auto; height: 40px; font-size: 14.5px; }

/* ---------- detail nabídky ---------- */
.ld-head { padding: 18px 0 14px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.ld-gallery { display: grid; gap: 8px; border-radius: 24px; overflow: hidden; position: relative; }
.ld-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; background: var(--bg); }
.ld-gallery.n1 { grid-template-columns: 1fr; height: clamp(260px, 46vw, 480px); }
.ld-gallery.n2 { grid-template-columns: 2fr 1fr; height: clamp(260px, 42vw, 460px); }
.ld-gallery.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(260px, 42vw, 460px); }
.ld-gallery.n3 img:first-child { grid-row: 1 / 3; }
.ld-gallery .all { position: absolute; right: 14px; bottom: 14px; }
.m-gallery { display: none; }
@media (max-width: 719px) {
  .ld-gallery { display: none; }
  .m-gallery { display: block; position: relative; margin: 0 -20px; }
  .m-gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .m-gallery .track::-webkit-scrollbar { display: none; }
  .m-gallery img { flex: 0 0 100%; aspect-ratio: 4/3; object-fit: cover; scroll-snap-align: start; }
  .m-gallery .count { position: absolute; right: 14px; bottom: 14px; background: rgba(22,20,44,.75); color: #fff; font-size: 13px; font-weight: 650; padding: 4px 10px; border-radius: 99px; }
}
.ld-grid { display: grid; gap: 32px; padding-top: 26px; }
@media (min-width: 1020px) { .ld-grid { grid-template-columns: 1fr 400px; gap: 56px; } }
.ld-main > section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.ld-main > section:first-child { padding-top: 0; }
.ld-main > section:last-child { border-bottom: 0; }
.ld-main h2 { font-size: 21px; margin-bottom: 14px; }
.owner-strip { display: flex; gap: 14px; align-items: center; }
.owner-strip .nm { font-weight: 750; font-size: 17px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 14px; border-radius: 16px; background: var(--bg); }
.fact span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fact b { font-size: 17px; letter-spacing: -0.01em; }
.desc { white-space: pre-line; color: var(--ink-2); }
.dl-opts { display: grid; gap: 10px; }
.dl-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; border: 1px solid var(--line); }
.dl-opt .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.dl-opt b { display: block; }
.owner-card { border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 16px; }
@media (min-width: 720px) { .owner-card { grid-template-columns: 240px 1fr; gap: 26px; } }
.owner-card .who { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px; border-radius: 18px; box-shadow: var(--sh); }
.owner-card .who .nm { font-weight: 800; font-size: 19px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.kv div { display: flex; flex-direction: column; }
.kv b { font-size: 17px; }
.kv span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.verify-list { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.verify-list .it { display: flex; gap: 10px; align-items: center; }
.verify-list .no { color: var(--muted); }
.verify-list .no .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px dashed var(--line-2); flex: none; }

.bookcard { position: sticky; top: calc(var(--hdr) + 20px); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--sh-lg); background: var(--surface); }
.bookcard .pr { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.bookcard .pr span { font-size: 16px; color: var(--muted); font-weight: 500; }
.bookcard .dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.bookcard .dates .f { padding: 8px 12px; }
.bookcard .dates .f + .f { border-left: 1px solid var(--line-2); }
.bookcard .dates label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.bookcard .dates input, .bookcard .dates select { border: 0; padding: 0; width: 100%; font-size: 15px; outline: 0; background: transparent; height: 26px; }
.breakdown { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.breakdown .ln { display: flex; justify-content: space-between; gap: 12px; }
.breakdown .ln span:first-child { color: var(--ink-2); }
.breakdown .tot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-weight: 800; font-size: 17px; }
.breakdown .dep { color: var(--muted); font-size: 14px; }
.mbar { position: fixed; left: 0; right: 0; bottom: calc(var(--bnav) + env(safe-area-inset-bottom)); z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -6px 20px rgba(22,20,44,.06); }
@media (min-width: 1020px) { .mbar { display: none; } }
@media (max-width: 1019px) { .bookcard { position: static; box-shadow: none; } .ld-page { padding-bottom: 80px; } }

/* ---------- kalendář ---------- */
.cal { display: grid; gap: 20px; grid-template-columns: 1fr; user-select: none; }
@media (min-width: 720px) { .cal.two { grid-template-columns: 1fr 1fr; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 15.5px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-grid .dow { font-size: 11.5px; color: var(--muted); font-weight: 700; text-align: center; padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 0; background: none; border-radius: 50%; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; position: relative; display: grid; place-items: center; padding: 0; }
.cal-day:hover:not(:disabled) { background: var(--bg); }
.cal-day.empty { visibility: hidden; }
.cal-day.past { color: #c5c3d3; cursor: default; }
.cal-day.busy { color: #b4b1c6; text-decoration: line-through; cursor: not-allowed; background: repeating-linear-gradient(-45deg, #f6f5fa, #f6f5fa 4px, #eceaf3 4px, #eceaf3 8px); border-radius: 10px; }
.cal-day.blocked { color: #b4b1c6; text-decoration: line-through; cursor: not-allowed; }
.cal-day.partial::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day.inrange { background: var(--brand-50); border-radius: 0; }
.cal-day.sel { background: var(--brand) !important; color: #fff !important; border-radius: 50%; text-decoration: none; }
.cal-day.mark { background: var(--red-50); color: var(--red); border-radius: 10px; text-decoration: line-through; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 5px; }
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.hours button { height: 38px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; font-weight: 650; font-size: 14px; cursor: pointer; }
.hours button:hover:not(:disabled) { border-color: var(--ink); }
.hours button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.hours button:disabled { color: #c5c3d3; text-decoration: line-through; cursor: not-allowed; background: var(--bg); }

/* ---------- recenze ---------- */
.rv-summary { display: grid; gap: 22px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 720px) { .rv-summary { grid-template-columns: 200px 1fr 1fr; align-items: center; } }
.rv-big { font-size: 48px; font-weight: 850; letter-spacing: -0.04em; line-height: 1; }
.rv-bars { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rv-bars .b { display: grid; grid-template-columns: 16px 1fr 30px; gap: 8px; align-items: center; color: var(--muted); }
.rv-bars .track { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.rv-bars .fill { height: 100%; background: var(--ink); border-radius: 99px; }
.rv-sub { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14.5px; }
.rv-sub b { text-align: right; }
.review { padding: 18px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.review .head { display: flex; gap: 12px; align-items: center; }
.review .body { color: var(--ink-2); white-space: pre-line; }
.review .tags { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.review .photos { display: flex; gap: 8px; }
.review .photos img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; cursor: zoom-in; }

/* ---------- profil ---------- */
.prof-cover { height: 180px; border-radius: 0 0 28px 28px; background: linear-gradient(120deg, var(--brand) 0%, #8b67f0 60%, #b79cff 100%); overflow: hidden; }
.prof-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) { .prof-cover { height: 240px; border-radius: 0 0 36px 36px; } }
.prof-head { display: grid; gap: 22px; margin-top: -56px; position: relative; }
@media (min-width: 1020px) { .prof-head { grid-template-columns: 340px 1fr; gap: 44px; } }
.prof-card { background: var(--surface); border-radius: 26px; box-shadow: var(--sh-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; align-self: start; }
@media (min-width: 1020px) { .prof-card { position: sticky; top: calc(var(--hdr) + 20px); } }
.prof-card .avatar.xl { box-shadow: 0 0 0 5px #fff; margin-top: -8px; }
.prof-card .nm { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; line-height: 1.2; }
.prof-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.prof-stats div { background: var(--bg); border-radius: 14px; padding: 12px; }
.prof-stats b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.prof-stats span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.prof-main { padding-top: 70px; }
@media (max-width: 1019px) { .prof-main { padding-top: 0; } }
.hist { display: flex; flex-direction: column; }
.hist .it { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; font-size: 14.5px; }

/* ---------- přehledy, tabulky, KPI ---------- */
.stat { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 650; }
.stat b { font-size: 26px; letter-spacing: -0.03em; }
.stat small { font-size: 12.5px; color: var(--muted); }
.stat.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat.dark span, .stat.dark small { color: #c9c5e6; }
.stat.brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.stat.brand span, .stat.brand small { color: #e2d9ff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 750; padding: 12px 14px; background: var(--bg); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 12px 14px; font-weight: 650; color: var(--muted); border: 0; background: none; border-bottom: 2.5px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .cnt { background: var(--red); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 6px; }
.chart { width: 100%; }
.chart text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart .bar { fill: var(--brand); transition: opacity .15s; }
.chart .bar:hover { opacity: .8; }
.chart .bar.alt { fill: var(--brand-200); }
.chart .grid-l { stroke: var(--line); stroke-dasharray: 3 4; }

/* ---------- rezervace ---------- */
.bk-list { display: flex; flex-direction: column; gap: 12px; }
.bk-item { display: flex; gap: 14px; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); align-items: center; transition: box-shadow .15s; }
.bk-item:hover { box-shadow: var(--sh); color: var(--ink); }
.bk-item img { width: 86px; height: 86px; border-radius: 14px; object-fit: cover; flex: none; background: var(--bg); }
.bk-item .t { font-weight: 700; }
.bk-item .act { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
.stepper { display: flex; gap: 0; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stp { flex: 1; min-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--muted); text-align: center; position: relative; }
.stp::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stp:first-child::before { display: none; }
.stp .d { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); z-index: 1; display: grid; place-items: center; }
.stp.done .d { background: var(--brand); border-color: var(--brand); color: #fff; }
.stp.done::before, .stp.cur::before { background: var(--brand); }
.stp.cur .d { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-100); }
.stp.cur { color: var(--ink); }
.stp.bad .d { border-color: var(--red); background: var(--red); color: #fff; }
.code-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; border-radius: 20px; background: var(--ink); color: #fff; text-align: center; }
.code-box .code { font-size: 40px; font-weight: 800; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.code-box small { color: #c9c5e6; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline .ev { display: grid; grid-template-columns: 14px 1fr; gap: 12px; position: relative; padding-bottom: 14px; font-size: 14px; }
.timeline .ev::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline .ev:last-child::before { display: none; }
.timeline .ev i { width: 14px; height: 14px; border-radius: 50%; background: var(--brand-100); border: 3px solid var(--brand); margin-top: 3px; }
.photos-row { display: flex; gap: 8px; flex-wrap: wrap; }
.photos-row img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
.split { display: flex; flex-direction: column; gap: 10px; }
.split .bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--bg); }
.split .bar .o { background: var(--brand); }
.split .bar .p { background: var(--ink); }

/* ---------- upload ---------- */
.uploader { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.up-tile { aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative; background: var(--bg); }
.up-tile img { width: 100%; height: 100%; object-fit: cover; }
.up-tile .cover { position: absolute; left: 6px; top: 6px; background: var(--surface); font-size: 11px; font-weight: 750; padding: 2px 7px; border-radius: 99px; }
.up-tile .ctl { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.up-tile .ctl button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--glass); cursor: pointer; display: grid; place-items: center; }
.up-tile.busy::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6); }
.up-add { aspect-ratio: 1; border-radius: 14px; border: 2px dashed var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-weight: 650; font-size: 13.5px; cursor: pointer; background: var(--surface); text-align: center; padding: 8px; }
.up-add:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- průvodce ---------- */
.wiz-steps { display: flex; gap: 6px; margin: 8px 0 26px; }
.wiz-steps div { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: background .3s; }
.wiz-steps div.on { background: var(--brand); }
.wiz-foot { position: sticky; bottom: calc(var(--bnav) + env(safe-area-inset-bottom)); background: var(--glass); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 26px; display: flex; justify-content: space-between; gap: 12px; z-index: 20; backdrop-filter: blur(8px); }
@media (min-width: 960px) { .wiz-foot { bottom: 0; } }
.opt-card { display: flex; gap: 12px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line-2); cursor: pointer; align-items: flex-start; transition: border-color .15s, background .15s; }
.opt-card:hover { border-color: var(--ink-2); }
.opt-card.on, .opt-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.opt-card input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }

/* ---------- chat ---------- */
.chat { display: grid; height: calc(100dvh - var(--hdr) - var(--demobar, 0px) - var(--bnav) - env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .chat { grid-template-columns: 360px 1fr; height: calc(100dvh - var(--hdr) - var(--demobar, 0px)); } }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; background: var(--surface); }
.chat-list h1 { font-size: 24px; padding: 20px 18px 10px; margin: 0; }
.conv { display: flex; gap: 12px; padding: 12px 18px; color: var(--ink); align-items: center; border-left: 3px solid transparent; }
.conv:hover { background: var(--bg); color: var(--ink); }
.conv.on { background: var(--brand-50); border-left-color: var(--brand); }
.conv .nm { font-weight: 700; display: flex; gap: 5px; align-items: center; }
.conv .last { color: var(--muted); font-size: 14px; }
.conv.unread .last { color: var(--ink); font-weight: 650; }
.conv .lt { font-size: 12.5px; color: var(--brand-700); font-weight: 650; }
.conv .un { min-width: 20px; height: 20px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 750; display: grid; place-items: center; padding: 0 6px; }
.chat-thread { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.thread-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 14px; display: flex; gap: 12px; align-items: center; }
.thread-ctx { background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; overflow-x: auto; }
.thread-ctx img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.msgs { flex: 1; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; background: var(--surface); align-self: flex-start; box-shadow: var(--sh-sm); white-space: pre-line; word-wrap: break-word; font-size: 15px; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.msg:not(.me):not(.sys) { border-bottom-left-radius: 6px; }
.msg .tm { display: block; font-size: 11px; opacity: .65; margin-top: 3px; text-align: right; }
.msg.sys { align-self: center; background: transparent; box-shadow: none; color: var(--muted); font-size: 13px; text-align: center; max-width: 90%; padding: 6px 10px; border: 1px dashed var(--line-2); border-radius: 12px; }
.day-sep { align-self: center; font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0 4px; }
.composer { background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; border: 1px solid var(--line-2); border-radius: 22px; padding: 11px 16px; resize: none; max-height: 140px; min-height: 46px; height: 46px; line-height: 1.4; outline: 0; font-size: 15.5px; }
.composer textarea:focus { border-color: var(--brand); }
.composer .btn { border-radius: 50%; width: 46px; height: 46px; padding: 0; }
@media (max-width: 959px) {
  .chat.has-thread .chat-list { display: none; }
  .chat:not(.has-thread) .chat-thread { display: none; }
  body.chat-open .bnav { display: none; }
  body.chat-open .chat { height: calc(100dvh - var(--hdr) - var(--demobar, 0px)); }
}

/* ---------- modal, toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(22,20,44,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto; border-radius: 24px 24px 0 0; animation: up .24s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 720px) { .modal-back { align-items: center; padding: 20px; } .modal { max-width: 560px; border-radius: 24px; } .modal.wide { max-width: 760px; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-body { padding: 10px 20px 20px; }
.modal-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: 0; background: var(--surface); }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10,9,20,.94); display: flex; align-items: center; justify-content: center; animation: fade .2s; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 12px; object-fit: contain; }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgba(255,255,255,.12); }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.lightbox .cl { top: 16px; right: 16px; }
.lightbox .pv { left: 16px; top: 50%; } .lightbox .nx { right: 16px; top: 50%; }
.lightbox .ct { position: absolute; bottom: 20px; color: #fff; font-size: 14px; font-weight: 650; }
.toasts { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: calc(var(--bnav) + 16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
@media (min-width: 960px) { .toasts { bottom: 24px; } }
.toast { pointer-events: auto; background: var(--ink); color: #fff; border-radius: 16px; padding: 13px 16px; box-shadow: var(--sh-lg); display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 550; animation: up .25s ease; cursor: default; }
.toast.ok svg { color: #5ee09b; } .toast.err svg { color: #ff8a8e; } .toast.info svg { color: #b9a4ff; }
.toast.link { cursor: pointer; }
.toast .t { font-weight: 700; display: block; }
.toast .b { opacity: .8; font-size: 13.5px; }

/* ---------- stavy ---------- */
.empty { text-align: center; padding: 48px 20px; border-radius: 24px; background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--surface); display: grid; place-items: center; color: var(--brand); box-shadow: var(--sh); margin-bottom: 8px; }
.empty h3 { margin: 0; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 0 10px; }
.sk { background: linear-gradient(90deg, #f0eff6 0%, #f8f7fc 40%, #f0eff6 80%); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-card .ph { aspect-ratio: 4/3; border-radius: 18px; }
.sk-line { height: 14px; margin-top: 10px; }
.loading-page { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--brand-100); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.err-page { text-align: center; padding: 70px 20px; }
.err-page .code { font-size: 80px; font-weight: 850; letter-spacing: -0.05em; color: var(--brand-200); line-height: 1; }

/* ---------- platba ---------- */
.pay-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .pay-grid { grid-template-columns: 1fr 400px; gap: 40px; align-items: start; } }
.cardform { display: grid; gap: 14px; }
.card-visual { height: 190px; border-radius: 20px; padding: 20px; color: #fff; background: linear-gradient(135deg, #2c2650 0%, var(--brand) 100%); display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--sh-lg); font-variant-numeric: tabular-nums; position: relative; overflow: hidden; max-width: 360px; }
.card-visual::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -110px; background: rgba(255,255,255,.08); }
.card-visual .num { font-size: 21px; letter-spacing: .12em; font-weight: 600; }
.card-visual .meta { display: flex; justify-content: space-between; font-size: 13px; opacity: .9; }
.card-visual .brand { font-weight: 800; font-style: italic; font-size: 18px; align-self: flex-end; }
.sim-tag { display: inline-flex; gap: 6px; align-items: center; background: #fff3d6; color: #8a5a00; font-weight: 750; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; }
.testcards { display: flex; flex-wrap: wrap; gap: 6px; }
.testcards button { border: 1px dashed var(--line-2); background: var(--surface); border-radius: 10px; padding: 6px 10px; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.testcards button:hover { border-color: var(--brand); color: var(--brand); }
.success-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin: 0 auto 12px; animation: popin .4s cubic-bezier(.2,1.4,.4,1); }
.success-ic svg { width: 40px; height: 40px; stroke-width: 2.6; }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }

/* ---------- PRO ---------- */
.plans { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.plan.pro { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; overflow: hidden; }
.plan.pro h3, .plan.pro .price { color: #fff; }
.plan.pro .muted { color: #c9c5e6; }
.plan .price { font-size: 38px; font-weight: 850; letter-spacing: -0.03em; }
.plan .price span { font-size: 16px; font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan li svg { color: var(--green); margin-top: 2px; }
.plan.pro li svg { color: #a68bff; }
.plan li.off { color: var(--muted); }
.plan li.off svg { color: var(--line-2); }

/* ---------- admin ---------- */
.admin-layout { display: grid; gap: 24px; padding-top: 20px; }
@media (min-width: 1020px) { .admin-layout { grid-template-columns: 230px 1fr; } }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
@media (min-width: 1020px) { .admin-nav { flex-direction: column; position: sticky; top: calc(var(--hdr) + 20px); align-self: start; } }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 650; white-space: nowrap; font-size: 15px; }
.admin-nav a:hover { background: var(--bg); color: var(--ink); }
.admin-nav a.on { background: var(--ink); color: #fff; }
.admin-nav .cnt { margin-left: auto; background: var(--red); color: #fff; font-size: 11.5px; border-radius: 99px; padding: 1px 7px; }

/* ---------- ostatní ---------- */
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.hub { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .hub { grid-template-columns: 1fr 1fr; } }
.hub a { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); transition: box-shadow .15s; }
.hub a:hover { box-shadow: var(--sh); color: var(--ink); }
.hub a .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.hub a b { display: block; }
.hub a span { font-size: 13.5px; color: var(--muted); }
.kpi-row { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } }
.demo-accounts { display: grid; gap: 8px; }
.demo-accounts button { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; }
.demo-accounts button:hover { border-color: var(--brand); background: var(--brand-50); }
.auth-wrap { min-height: calc(100vh - var(--hdr)); min-height: calc(100dvh - var(--hdr)); display: grid; place-items: start center; padding: 34px 20px 60px; background: linear-gradient(180deg, var(--brand-50), var(--surface) 50%); }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border-radius: 26px; box-shadow: var(--sh-lg); padding: 28px; }
.type-cards { display: grid; gap: 10px; }
.gantt { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.gantt table { border-collapse: collapse; font-size: 12.5px; min-width: 900px; width: 100%; }
.gantt th, .gantt td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; height: 40px; text-align: center; }
.gantt th { background: var(--bg); font-weight: 700; color: var(--muted); padding: 6px 2px; }
.gantt td.nm { text-align: left; padding: 0 12px; font-weight: 650; white-space: nowrap; min-width: 200px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.gantt .bk { display: block; height: 28px; margin: 0 1px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 11px; line-height: 28px; overflow: hidden; white-space: nowrap; padding: 0 6px; text-align: left; }
.gantt .bk.pending, .gantt .bk.approved, .gantt .bk.awaiting_payment { background: var(--amber); }
.gantt .bk.completed { background: var(--green); }
.gantt .bk.dispute { background: var(--red); }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: initial; } .only-sm { display: none !important; } }

/* gridy nesmí přetékat kvůli vodorovným karuselům */
.ld-grid > *, .pay-grid > *, .search-layout > *, .prof-head > *, .admin-layout > *, .grid-2 > *, .grid-3 > *, .hero-grid > *, .chat > * { min-width: 0; }
.cal { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .cal.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cal > div { min-width: 0; }
.cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-day { width: 100%; max-width: 46px; justify-self: center; }
.bookcard .cal-day { max-width: 42px; }
@media (min-width: 1020px) { .bookcard { max-height: calc(100vh - var(--hdr) - 36px); overflow-y: auto; scrollbar-width: thin; } }
.bookcard .cal-day { max-width: 36px; font-size: 13px; }
.bookcard .cal-head { margin-bottom: 2px; }
.bookcard .cal-head .icon-btn { width: 34px; height: 34px; }
.bookcard .cal-legend { display: none; }
.bookcard .cal-grid .dow { padding: 2px 0; }

/* =====================================================================
   Půjcsito 2.0 – vizuální vrstva podle návrhu (čistá, bez zbytečných efektů)
   ===================================================================== */
:root {
  --brand: #6335D8; --brand-600: #5429c4; --brand-700: #4520a6; --brand-50: #f4f0ff; --brand-100: #e9e2ff; --brand-200: #d4c6fd;
  --cta: #16A34A; --cta-600: #15803d; --cta-700: #166534; --cta-50: #ecfdf3;
  --ink: #17143a; --ink-2: #3d3a5c; --muted: #6e6b88; --line: #ebe8f4; --line-2: #ddd9ea;
  --bg: #f6f4fc; --page: #f7f5fd;
  --r: 14px; --r-lg: 18px; --r-xl: 24px;
  --sh-sm: 0 1px 2px rgba(23, 20, 58, .06);
  --sh: 0 1px 2px rgba(23, 20, 58, .04), 0 4px 14px rgba(23, 20, 58, .06);
  --sh-lg: 0 2px 4px rgba(23, 20, 58, .04), 0 14px 36px rgba(23, 20, 58, .10);
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
}
body { background: var(--page); color: var(--ink); }
.ftr { background: var(--surface); }
h1, h2, h3 { color: var(--ink); }
h2 { font-size: clamp(21px, 2.2vw, 26px); font-weight: 750; letter-spacing: -0.02em; }

/* tlačítka: fialová = značka, zelená = hlavní akce */
.btn { border-radius: 12px; font-weight: 650; }
.btn-primary { box-shadow: none; }
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:active, .btn-cta:active { transform: translateY(1px); }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 6px 14px rgba(22, 163, 74, .22); }
.btn-cta:hover { background: var(--cta-600); color: #fff; }
.btn-cta:active { background: var(--cta-700); }
.btn-cta:disabled { background: #9fd7b3; box-shadow: none; opacity: 1; }
.btn-cta.loading::after { border-color: rgba(255,255,255,.4) rgba(255,255,255,.4) #fff #fff; }
.btn.success { background: var(--cta-50) !important; color: var(--cta-700) !important; box-shadow: none !important; }
.btn-ghost-light { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost-light:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-lg { --h: 52px; }
.more { font-size: 14px; font-weight: 650; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.more svg { width: 16px; height: 16px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.mt-s { margin-top: 10px; }

/* hlavička */
.hdr { background: var(--glass); border-bottom: 1px solid var(--line); }
.logo { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; color: var(--brand); }
.logo .dot { display: none; }
.logo.light { color: #fff; }
.nav a { font-weight: 550; color: var(--ink); font-size: 14.5px; }
.nav a:hover, .nav a.active { background: var(--brand-50); color: var(--brand-700); }
.hdr .btn-ghost { color: var(--ink); font-weight: 650; }

/* formulářové prvky */
.input, .select, .textarea { border-radius: 12px; border-color: var(--line-2); background: var(--surface); }
.input-sm { height: 38px; font-size: 14px; }
.chip { border-radius: 999px; font-weight: 600; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:hover:not(.on) { border-color: var(--brand-200); background: var(--brand-50); }
.seg { background: #efecf8; }
.seg button.on { color: var(--brand-700); }
.seg-sm button { padding: 7px 12px; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.notice { background: var(--brand-50); border: 1px solid var(--brand-100); }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--p), #e3dff0 var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 99px; background: #e3dff0; }
.range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--brand); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(23,20,58,.18); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(23,20,58,.18); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--brand-100); }

.np-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.np-head label { margin: 0; }
.np-val { width: 150px; flex: none; }
.np-val .input { height: 42px; font-weight: 700; text-align: right; padding-right: 44px; }
.np .range { margin-top: 6px; }
.np-chips { margin-top: 6px; }
.np-chips .chip { height: 34px; font-size: 13.5px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper button { width: 48px; height: 48px; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--brand); }
.stepper button:hover { background: var(--brand-50); }
.stepper input { width: 56px; border: 0; text-align: center; font-weight: 700; font-size: 16px; outline: 0; }
.stepper .unit { padding-right: 8px; color: var(--muted); font-size: 14px; }

/* hero */
.hero { background: transparent; padding: 22px 0 6px; overflow: visible; }
.hero::before { display: none; }
.hero-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px 40px 34px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1020px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 20px; } .hero { padding: 28px 0 8px; } }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; margin-bottom: 18px; color: var(--ink); }
.hero h1 em { color: var(--brand); }
.hero .lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2); max-width: 540px; margin-bottom: 10px; }
.hero-rot { font-size: 15.5px; color: var(--muted); margin: 0; min-height: 24px; }
.hero-rot .rot { color: var(--ink); font-weight: 650; }
.hero-art { height: 340px; position: relative; display: none; }
@media (min-width: 1020px) { .hero-art { display: block; } }
.hero-art .blob { position: absolute; right: -60px; top: -70px; width: 520px; height: 460px; border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%; background: var(--brand-50); }
.hero-art .ph { position: absolute; border-radius: 22px; overflow: hidden; box-shadow: var(--sh-lg); background: var(--brand-100); }
.hero-art .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .ph1 { width: 64%; height: 82%; right: 4%; top: 2%; }
.hero-art .ph2 { width: 40%; height: 46%; left: 2%; top: 40%; border: 4px solid #fff; }
.hero-art .ph3 { display: none; }
.hero-art .float { position: absolute; background: var(--surface); border-radius: 14px; box-shadow: var(--sh-lg); padding: 10px 12px; color: var(--ink); animation: none; max-width: 230px; }
.hero-art .float.f1 { left: 8%; top: 6%; }
.hero-art .float.f2 { right: 0; bottom: 0; display: flex; gap: 10px; align-items: center; }

/* vyhledávací panel – jeden řádek jako v návrhu */
.searchbar { position: relative; margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-lg); padding: 8px; display: grid; gap: 6px; grid-template-columns: 1fr; }
.sb-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 12px; border: 0; background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: text; min-width: 0; position: relative; }
.sb-field > svg { color: var(--muted); flex: none; }
.sb-field input { border: 0; outline: 0; background: transparent; font-size: 15.5px; width: 100%; min-width: 0; height: 100%; padding: 0; color: var(--ink); }
.sb-field input::placeholder, .sb-field .ph { color: #8a87a3; }
.sb-field:hover, .sb-field:focus-within { background: var(--bg); }
.sb-when { cursor: pointer; font-size: 15.5px; white-space: nowrap; }
.sb-geo { border: 0; background: transparent; color: var(--brand); cursor: pointer; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.sb-geo:hover { background: var(--brand-50); }
.searchbar .sb-go { height: 52px; border-radius: 12px; padding: 0 30px; }
@media (min-width: 900px) {
  .searchbar { grid-template-columns: 1.2fr 1fr .8fr .8fr auto; gap: 0; align-items: center; padding: 6px; }
  .sb-field + .sb-field::before, .sb-when + input + .sb-field::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
  .searchbar > .sb-field:not(:first-child)::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
}
@media (max-width: 899px) { .sb-when { display: inline-flex; } .searchbar { grid-template-columns: 1fr 1fr; } .searchbar > label.sb-field, .searchbar .sb-go { grid-column: 1 / -1; } .sb-field { background: var(--bg); } }
.sb-pop { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; right: 0; margin: 0 auto; max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-lg); padding: 16px 18px; }
@media (min-width: 900px) { .sb-pop { left: auto; right: 120px; } }
.sb-extra { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.sb-extra-l { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.sb-extra .seg { background: var(--bg); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.rot { --rot-a: var(--brand); --rot-b: #ff4f9a; display: inline-block; position: relative; vertical-align: bottom; }
.rot-in { display: inline; }
.rot-in .rw { display: inline-block; will-change: transform, opacity, filter; }
.rot-in.in .rw { animation: rwIn .7s cubic-bezier(.16,1,.3,1) var(--d) both; }
.rot-in.out .rw { animation: rwOut .34s cubic-bezier(.55,0,.8,.2) calc(var(--d) * .5) both; }
.rot::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.12em; height: .13em; border-radius: 99px; background: linear-gradient(90deg, var(--rot-a), var(--rot-b)); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.rot.glow::after { animation: rotLine 1.3s cubic-bezier(.65,0,.25,1) .1s both; }
@keyframes rwIn { 0% { opacity: 0; transform: translateY(.75em) rotate(5deg) scale(.96); filter: blur(7px); color: var(--rot-a); }
  45% { color: var(--rot-b); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes rwOut { to { opacity: 0; transform: translateY(-.65em) rotate(-3deg); filter: blur(6px); } }
@keyframes rotLine { 0% { transform: scaleX(0); transform-origin: left; } 45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@media (prefers-reduced-motion: reduce) { .rot-in .rw, .rot::after { animation: none !important; } }

/* kategorie – kruhy s liniovou ikonou */
.cats-sec { padding: 26px 0 6px; }
.cats { gap: 6px; }
.cat { background: transparent; border: 0; padding: 4px 2px; gap: 10px; font-weight: 600; font-size: 14px; border-radius: 14px; }
.cat:hover { transform: none; box-shadow: none; color: var(--brand-700); }
.cat .ci, span.ci { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); transition: border-color .15s, background .15s, box-shadow .15s; flex: none; }
.ci svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cat:hover .ci { border-color: var(--brand-200); box-shadow: var(--sh); }
.cat.on { background: transparent; }
.cat.on .ci { background: var(--brand); color: #fff; border-color: var(--brand); }
.cats.wrap .cat { border: 1px solid var(--line); background: var(--surface); padding: 14px 6px; }
.cats.wrap .cat.on { border-color: var(--brand); background: var(--brand-50); }
.dl-opt span.ci { width: 48px; height: 48px; }
.dl-opt span.ci svg { width: 22px; height: 22px; }

/* sekce */
.section { padding: 30px 0; }
.section-head { align-items: center; margin-bottom: 16px; }
.section-head p { font-size: 14px; }

/* karta nabídky */
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; gap: 0; transition: box-shadow .2s, border-color .2s; }
.lcard:hover { box-shadow: var(--sh-lg); border-color: transparent; }
.lcard .ph { border-radius: 0; aspect-ratio: 16 / 11; background: var(--bg); }
.lcard:hover .ph img { transform: scale(1.03); }
.lcard .ph-empty { width: 100%; height: 100%; display: grid; place-items: center; }
.lcard .tags .badge { box-shadow: none; }
.badge-featured { background: var(--brand); }
.lcard .fav { width: 36px; height: 36px; background: var(--surface); box-shadow: var(--sh-sm); }
.lcard .dist { display: inline-flex; gap: 4px; align-items: center; background: rgba(23,20,58,.72); }
.lcard .dist svg { width: 13px; height: 13px; }
.lcard .body { padding: 12px 14px 14px; gap: 4px; }
.lcard .rate { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.lcard h3 { font-size: 16.5px; font-weight: 700; }
.lcard .sum { font-size: 13.5px; }
.lcard .loc { font-size: 13.5px; min-width: 0; }
.lcard .loc svg { flex: none; }
.lcard .foot { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.lcard .price b { font-size: 18px; }
.lcard .see { font-size: 13px; }
.lcard .quote { margin-top: 6px; display: flex; gap: 6px; align-items: center; color: var(--cta-700); }
.scroller { grid-auto-columns: minmax(250px, 1fr); }
@media (min-width: 1100px) { .scroller { grid-auto-columns: calc((100% - 54px) / 4); } }
.pcard { border-radius: 16px; }

/* jak to funguje – pruh */
.how-strip { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .how-strip { grid-template-columns: 300px 1fr; } }
.how-l h2 { margin-bottom: 4px; }
.how-l p { color: var(--ink-2); margin: 0 0 12px; }
.how-steps { display: flex; align-items: flex-start; gap: 10px; }
.how-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.how-step .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.how-step b { font-size: 14.5px; }
.how-step span { font-size: 13px; color: var(--muted); }
.how-line { flex: 0 1 80px; border-top: 2px dashed var(--brand-200); margin-top: 26px; }
@media (max-width: 640px) { .how-steps { flex-direction: column; align-items: stretch; } .how-line { display: none; } .how-step { flex-direction: row; text-align: left; gap: 12px; } .how-step .ic { margin: 0; flex: none; } .how-step > b { display: block; } }
.benefits { grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.benefit { border-radius: 16px; padding: 18px; }
.benefit .ic { border-radius: 12px; }

/* výzva pro půjčitele – světlá */
.cta-earn { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; }
.cta-earn::after { display: none; }
.cta-earn h2 { color: var(--ink); }
.cta-earn p { color: var(--ink-2); }
.cta-earn .calc { background: var(--bg); border: 1px solid var(--line); }
.cta-earn .calc label { color: var(--ink); }
.cta-earn .calc .input { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.cta-earn .calc .big { color: var(--cta-700); }

/* přihlášení a registrace */
.auth-wrap { background: var(--page); }
.auth-wrap.split { display: grid; place-items: stretch; padding: 0; grid-template-columns: 1fr; min-height: calc(100vh - var(--hdr)); }
.auth-wrap.split .auth-card { margin: 28px auto 60px; align-self: start; box-shadow: var(--sh); border: 1px solid var(--line); border-radius: 22px; width: calc(100% - 32px); }
.auth-aside { background: var(--brand); color: #fff; padding: 28px 22px; }
.auth-aside h2 { color: #fff; font-size: 26px; line-height: 1.2; margin: 14px 0 0; font-weight: 750; }
.auth-aside .rot.big { --rot-a: #ffd2ea; --rot-b: #ffffff; }
.auth-aside .rot.big { color: #fff; font-weight: 800; min-height: 1.2em; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 6px; text-decoration-thickness: 3px; }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: none; gap: 12px; color: #e8e1ff; font-size: 15px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; }
.auth-points svg { margin-top: 3px; flex: none; color: #fff; }
.auth-aside .logo { display: none; }
@media (min-width: 960px) {
  .auth-wrap.split { grid-template-columns: minmax(380px, 1fr) 1.1fr; }
  .auth-aside { padding: 64px 56px; position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); }
  .auth-aside h2 { font-size: 38px; margin-top: 40px; }
  .auth-points { display: grid; margin-top: 40px; }
  .auth-wrap.split .auth-card { margin: 56px auto; }
}

/* vyhledávání */
.search-top { background: var(--glass); }
.filters .ff { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.fgroup h4 { font-size: 14px; }
.km-val { font-size: 15px; color: var(--brand-700); }
.when-sum { margin-bottom: 8px; }
.ff .cal-day { max-width: 36px; font-size: 13px; }
.ff .cal-legend { display: none; }
.results-head .seg { height: 40px; align-items: center; }
.map-wrap { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #e9e6f2; }
.map { height: min(62vh, 560px); width: 100%; }
.map-err { padding: 40px; text-align: center; color: var(--muted); }
.map-pin { transform: translate(-50%, -100%); background: var(--surface); color: var(--ink); font-weight: 750; font-size: 12.5px; padding: 5px 9px; border-radius: 99px; box-shadow: 0 2px 8px rgba(23,20,58,.25); white-space: nowrap; border: 1.5px solid #fff; position: relative; }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; }
.map-pin.feat { background: var(--brand); color: #fff; }
.map-pin:hover { background: var(--ink); color: #fff; z-index: 999; }
.leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 230px !important; }
.map-card { display: block; color: var(--ink); font-family: var(--font); }
.map-card:hover { color: var(--ink); }
.map-card img { width: 100%; height: 120px; object-fit: cover; }
.map-card .mc-b { padding: 10px 12px 12px; font-size: 13px; line-height: 1.35; }
.map-card .mc-r { color: #b7791f; font-weight: 700; }
.map-card .mc-r span { color: var(--muted); font-weight: 500; }
.map-card b { display: block; font-size: 14px; margin: 2px 0; }
.map-card .mc-l { color: var(--muted); }
.map-card .mc-p { margin-top: 6px; color: var(--muted); }
.map-card .mc-p b { display: inline; color: var(--ink); font-size: 15px; }
.ld-map { height: 260px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin-top: 12px; }

/* detail nabídky */
.ld-gal { display: grid; gap: 10px; }
.ld-main-ph { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg); }
.ld-main-ph img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.ld-main-ph .all { position: absolute; right: 12px; bottom: 12px; background: var(--surface); }
.ld-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ld-thumbs button { flex: none; width: 84px; height: 62px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--bg); opacity: .75; transition: opacity .15s, border-color .15s; }
.ld-thumbs button.on, .ld-thumbs button:hover { border-color: var(--brand); opacity: 1; }
.ld-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 719px) { .ld-gal { display: none; } }
.ld-main > section { border-color: var(--line); }
.bookcard { border-radius: 20px; box-shadow: var(--sh-lg); border-color: var(--line); }
.bookcard .pr { font-size: 28px; }
.bk-quick .chip { height: 34px; font-size: 13.5px; }
.fact { background: var(--surface); border: 1px solid var(--line); }
.mbar { padding: 10px 16px; }
.mbar .btn { min-width: 150px; }

/* průvodce přidáním */
.wiz-steps div.on { background: var(--brand); }
.ai-drop { border: 2px dashed var(--brand-200); border-radius: 20px; background: var(--surface); padding: 34px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ai-drop .ic { width: 60px; height: 60px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.ai-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--cta-50); border: 1px solid #bbf0cf; color: var(--cta-700); font-size: 14px; }
.ai-q { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); }
.params-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .params-grid { grid-template-columns: 1fr 1fr; } }
.param-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.param-list div { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.param-list span { display: block; font-size: 12px; color: var(--muted); }

/* platba */
.paym { display: grid; gap: 10px; }
.paym label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--surface); font-weight: 650; }
.paym label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.paym input { accent-color: var(--brand); width: 18px; height: 18px; }
.apple-pay-btn { -webkit-appearance: none; appearance: none; height: 52px; width: 100%; border-radius: 12px; border: 0; background: #000; color: #fff; font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; }
.apple-pay-btn:hover { background: #1d1d1f; }
.apple-pay-btn svg { width: 20px; height: 20px; fill: #fff; stroke: none; }
.ap-sheet { text-align: left; }
.ap-sheet .row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.flow-steps { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.flow-steps span { display: inline-flex; align-items: center; gap: 6px; }
.flow-steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-2); font-size: 12px; }
.flow-steps .on { color: var(--ink); } .flow-steps .on i { background: var(--brand); color: #fff; }
.flow-steps .done i { background: var(--cta); color: #fff; }

/* mobil: větší dotykové plochy */
@media (max-width: 719px) {
  .hero-panel { padding: 24px 18px 18px; border-radius: 22px; }
  .chip { min-height: 40px; }
  .cats { grid-auto-columns: 86px; }
  .cat .ci { width: 58px; height: 58px; }
  .bnav a { font-size: 11px; }
  .how-strip { padding: 20px; }
}
.searchbar .sb-field { flex-direction: row; }
.lcard { container-type: inline-size; }
.lcard .foot { flex-wrap: nowrap; }
.lcard .price { white-space: nowrap; }
@container (max-width: 270px) { .lcard .see .t { display: none; } .lcard .see { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); justify-content: center; } }
.uploader.drop, .uploader:has(.over) { outline: 2px dashed var(--brand); outline-offset: 6px; border-radius: 16px; }
.up-tile { cursor: grab; }
.up-tile.dragging { opacity: .4; }
.up-tile.over { box-shadow: 0 0 0 3px var(--brand); }
.up-tile .cover.set { border: 0; cursor: pointer; opacity: 0; transition: opacity .15s; font: inherit; font-size: 11.5px; }
.up-tile:hover .cover.set, .up-tile:focus-within .cover.set { opacity: 1; }
@media (hover: none) { .up-tile .cover.set { opacity: 1; } }
.or-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 4px 0; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.apple-pay-btn span { font-weight: 600; margin-left: -2px; }
.apple-pay-btn.loading { color: transparent; position: relative; }
.map-pin.grp { background: var(--ink); color: #fff; }
.map-list { font-family: var(--font); padding: 6px; }
.map-list .ml-h { font-weight: 700; font-size: 13px; padding: 6px 6px 8px; }
.map-list a { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; color: var(--ink); font-size: 13px; }
.map-list a:hover { background: var(--bg); color: var(--ink); }
.map-list img, .map-list a > span:first-child { width: 40px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--bg); }
.map-list .ml-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-list .ml-more { font-size: 12px; color: var(--muted); padding: 6px; }
.sb-extra .seg { display: flex; flex-wrap: nowrap; }
.sb-extra .seg button { white-space: nowrap; flex: none; }
@media (max-width: 719px) { .sb-extra { flex-direction: column; align-items: stretch; } }
/* přechod stránky jen průhledností – transform by rozbil připnuté prvky (rezervační lišta na mobilu) */
@keyframes pageIn { from { opacity: .4; } to { opacity: 1; } }
.page { animation-duration: .2s; }
.hero-art .float.f1 { display: block; left: 0; top: 10%; width: 200px; z-index: 2; }
.hero-art .float.f2 { z-index: 2; }
.hero-art .ph { background: var(--brand-100); }
/* hero: tvar na pozadí bez overflow:hidden, aby se kalendář nic neořezával */
.hero-panel { overflow: visible; isolation: isolate; }
.hero-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 34% 62% at 86% 18%, var(--brand-50) 0 98%, transparent 100%); }
.hero-art .blob { display: none; }
.sb-pop { z-index: 60; width: min(720px, calc(100vw - 32px)); }
.sb-pop-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); gap: 10px; }
.km-chips { gap: 6px; }
.km-chips .chip { height: 36px; font-size: 13.5px; }
@media (max-width: 759px) {
  .sb-pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: none; margin: 0; border-radius: 22px 22px 0 0; max-height: 86vh; overflow: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); z-index: 200; box-shadow: 0 -10px 40px rgba(23,20,58,.2); }
  html.sheet-open body::after { content: ""; position: fixed; inset: 0; background: rgba(23,20,58,.4); z-index: 150; }
  .sb-pop-foot .btn { height: 48px; padding: 0 22px; }
}
@media (max-width: 759px) { .hero-panel { isolation: auto; } .hero-panel::before { display: none; } }
.hero { position: relative; z-index: 20; }
.sb-pop .cal-day { max-width: 40px; }

body { font-feature-settings: "cv11", "ss01"; letter-spacing: -0.006em; }
/* nenápadný pruh DEMO */
.demobar { background: #f2effd; color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 12.5px; padding: 6px 40px; }
.demobar b { color: var(--brand-700); }
.demobar a { color: var(--brand); }
.demobar button { color: var(--muted); }
/* čísla pod vyhledáváním */
.hero-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.hero-stats b { color: var(--ink); font-weight: 700; }
.ftr { border-top: 1px solid var(--line); }

/* ================= ikony 2.0: tučnější, dvoutónové, barevné ================= */
svg.i { stroke-width: 2.1; }
svg.i .d * { fill: currentColor; fill-opacity: .14; stroke: none; }
svg.i.sm { stroke-width: 2.3; }
.btn-primary svg.i .d *, .btn-cta svg.i .d *, .badge svg.i .d *, .vt svg .d * { fill-opacity: 0; }
/* spodní navigace: aktivní ikona plná */
.bnav a svg { stroke-width: 2.1; transition: transform .15s; }
.bnav a.active svg .d * { fill-opacity: 1; }
.bnav a.active svg { transform: translateY(-1px); }
.bnav a:active svg { transform: scale(.92); }
.bnav a .add { border-radius: 14px; background: var(--brand); box-shadow: -3px 0 0 #a78bfa, 3px 0 0 var(--cta), 0 8px 18px rgba(99,53,216,.32); }
.nav a svg, .dropdown svg.i { color: var(--brand); }
.icon-btn svg.i .d * { fill-opacity: .12; }
/* barvy kategorií */
.ci-auta { --c: #6335D8; --t: #efe9ff; }
.ci-dodavky { --c: #2563eb; --t: #e6efff; }
.ci-privesy { --c: #0891b2; --t: #e0f6fb; }
.ci-naradi { --c: #ea580c; --t: #ffeedf; }
.ci-stavebni-technika { --c: #ca8a04; --t: #fff6d6; }
.ci-elektronika { --c: #db2777; --t: #fde7f1; }
.ci-sport { --c: #16a34a; --t: #e3f8ea; }
.ci-zahrada { --c: #059669; --t: #dcf7ec; }
.ci-ostatni { --c: #475569; --t: #edf0f5; }
.cat .ci, span.ci { border-radius: 20px; background: var(--t, var(--brand-50)); border: 0; color: var(--c, var(--brand)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.ci svg { width: 30px; height: 30px; stroke-width: 1.9; }
.ci svg .f { fill: currentColor; fill-opacity: .22; stroke: none; }
.ci svg .f2 { fill: currentColor; fill-opacity: .12; stroke: none; }
.ci svg .w { fill: #fff; }
.cat:hover .ci { transform: translateY(-2px) rotate(-3deg); box-shadow: 0 8px 18px -6px var(--c); }
.cat .ci { transition: transform .18s cubic-bezier(.3,1.5,.6,1), box-shadow .18s; }
.cat.on .ci { background: var(--c); color: #fff; }
.cat.on .ci svg .w { fill: var(--c); }
.cat:hover { color: var(--ink); }
/* barevné ikony v krocích a výhodách */
.how-step:nth-child(1) .ic { background: #efe9ff; color: #6335D8; }
.how-step:nth-of-type(2) .ic { background: #e3f8ea; color: #16a34a; }
.how-step:nth-of-type(3) .ic { background: #ffeedf; color: #ea580c; }
.benefit:nth-child(1) .ic { background: #efe9ff; color: #6335D8; }
.benefit:nth-child(2) .ic { background: #e6efff; color: #2563eb; }
.benefit:nth-child(3) .ic { background: #ffeedf; color: #ea580c; }
.benefit:nth-child(4) .ic { background: #e3f8ea; color: #16a34a; }
.how-step .ic, .benefit .ic { border-radius: 16px; }
.how-step .ic svg.i .d *, .benefit .ic svg.i .d * { fill-opacity: .2; }
/* vlastní našeptávač */
.sug-host { position: relative; }
.sug { position: absolute; top: calc(100% + 10px); left: -6px; width: max(100%, 340px); max-height: 420px; overflow: auto; z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-lg); padding: 6px; }
.sug-g { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.sug-i { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); min-height: 48px; }
.sug-i:hover, .sug-i.on { background: var(--bg); }
.sug-i .ci { width: 38px; height: 38px; border-radius: 12px; flex: none; }
.sug-i .ci svg { width: 22px; height: 22px; }
.sug-i img, .sug-ph { width: 46px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg); }
.sug-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.sug-i > svg.i { width: 38px; padding: 9px; height: 38px; border-radius: 12px; background: var(--bg); color: var(--muted); flex: none; }
.sug-t { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-t small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.sug-i b { font-size: 14px; white-space: nowrap; }
@media (max-width: 899px) { .sug { left: 0; width: 100%; } }
/* vlastní mapa */
.pmap.leaflet-container { background: #f3f1f9; font-family: var(--font); }
.pmap .leaflet-control-attribution { background: rgba(255,255,255,.8); font-size: 10.5px; color: var(--muted); }
.pmap .leaflet-control-zoom { border: 0 !important; box-shadow: var(--sh); border-radius: 12px; overflow: hidden; }
.pmap .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 34px; color: var(--ink); border-color: var(--line) !important; }
.kraj-tip { background: var(--ink); color: #fff; border: 0; border-radius: 8px; font-weight: 600; font-size: 12px; padding: 4px 8px; box-shadow: none; }
.kraj-tip::before { display: none; }
button.map-pin { font: inherit; font-weight: 750; font-size: 12.5px; cursor: pointer; transition: transform .12s, background .12s; }
button.map-pin:hover, button.map-pin:focus-visible { transform: translate(-50%, -100%) scale(1.08); }
.map-me { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(99,53,216,.2); }
.map-ctl { background: var(--surface); border-radius: 16px; box-shadow: var(--sh-lg); padding: 12px 14px; width: 250px; font-family: var(--font); color: var(--ink); }
.mcl-h { display: flex; justify-content: space-between; font-size: 13.5px; }
.mcl-h span { color: var(--brand-700); font-weight: 700; }
.mcl-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.mcl-chips button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; font: inherit; font-size: 12px; font-weight: 600; padding: 5px 9px; cursor: pointer; color: var(--ink-2); }
.mcl-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.mcl-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.mcl-hint.pulse { color: var(--brand-700); font-weight: 650; }
.pm-pop .leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; box-shadow: var(--sh-lg); }
.pm-pop .leaflet-popup-content { margin: 0; width: 260px !important; }
.pm-pop a.leaflet-popup-close-button { background: var(--surface); border-radius: 50%; width: 26px; height: 26px; top: 8px; right: 8px; line-height: 24px; color: var(--ink); box-shadow: var(--sh-sm); z-index: 2; }
.map-card .mc-ph { display: block; position: relative; }
.map-card .mc-badge { position: absolute; left: 8px; top: 8px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.map-card .mc-title { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); margin: 2px 0; }
.map-card .mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.map-card .mc-foot .btn { --h: 34px; color: #fff; }
.map-list .ml-row { display: flex; align-items: center; gap: 8px; }
.map-list .ml-row > a:first-child { flex: 1; min-width: 0; }
.map-list .ml-t small { display: block; color: var(--muted); font-size: 12px; }
.map-list .btn { color: #fff; }
.map { height: min(66vh, 600px); }
@media (max-width: 640px) { .map-ctl { width: 210px; padding: 10px; } .map { height: 70vh; } }
.map-wrap { position: relative; }
.map-empty { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 500; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; box-shadow: var(--sh-lg); max-width: calc(100% - 32px); }
.pm-pop .leaflet-popup-content { width: auto !important; min-width: 260px; }
.map-list { min-width: 300px; }
.map-list .ml-row .btn { flex: none; }
/* výběr Z-BOXu */
.modal.wide:has(.zb) { max-width: 1040px; }
.zb-top { display: flex; gap: 8px; margin-bottom: 10px; }
.zb-body { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .zb-body { grid-template-columns: 360px 1fr; } }
.zb-list { max-height: 460px; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
@media (max-width: 819px) { .zb-list { max-height: 260px; order: 2; } }
.zb-map { height: 460px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 819px) { .zb-map { height: 280px; } }
.zb-item { display: flex; gap: 12px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.zb-item:hover { border-color: var(--brand-200); }
.zb-item.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand); }
.zb-ic { width: 38px; height: 38px; border-radius: 12px; background: #fde7e9; color: #d0212d; display: grid; place-items: center; flex: none; }
.zb-t { min-width: 0; }
.zb-t b { display: block; font-size: 14px; }
.zb-t small { display: block; color: var(--muted); font-size: 12.5px; }
.zb-meta { display: flex !important; gap: 10px; margin-top: 3px; }
.zb-open { color: var(--cta-700); font-weight: 650; }
.zb-pin { width: 30px; height: 30px; border-radius: 10px; background: var(--surface); color: #d0212d; border: 2px solid #d0212d; display: grid; place-items: center; box-shadow: var(--sh); cursor: pointer; }
.zb-pin.on { background: #d0212d; color: #fff; transform: scale(1.15); }
.zb-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.zb-foot b { display: block; }
.zb-empty { padding: 30px 10px; text-align: center; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.zb-chosen { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; justify-content: space-between; }
/* Apple Pay – průběh platby */
.modal.ap-busy { animation: apZoom .35s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes apZoom { from { transform: scale(1); } 50% { transform: scale(1.03); } to { transform: scale(1); } }
.ap-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 0 8px; font-size: 16px; }
.ap-ring { width: 54px; height: 54px; border-radius: 50%; border: 4px solid #e8e6ef; border-top-color: #000; animation: spin .8s linear infinite; }
.ap-check { width: 58px; height: 58px; }
.ap-check circle { fill: none; stroke: var(--cta); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .45s ease-out forwards; }
.ap-check path { fill: none; stroke: var(--cta); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s .35s ease-out forwards; }
.ap-state.done { animation: pop .4s cubic-bezier(.2,1.4,.4,1); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.85); } to { transform: none; } }
.ok-anim { width: 86px; height: 86px; margin: 0 auto 10px; display: block; }
.ok-anim circle { fill: var(--cta-50); stroke: var(--cta); stroke-width: 3; stroke-dasharray: 227; stroke-dashoffset: 227; animation: draw .6s ease-out forwards; }
.ok-anim path { fill: none; stroke: var(--cta); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .4s .5s ease-out forwards; }
.track-steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.track-steps span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 600; }
.track-steps .done { background: var(--cta-50); color: var(--cta-700); }
.track-steps .now { background: var(--brand-50); color: var(--brand-700); animation: nowPulse 1.6s ease-in-out infinite; }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 6px rgba(99,53,216,.12); } }

/* ---------- podpora ---------- */
.sup-log { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.sup-log:empty { display: none; }
.sup-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; line-height: 1.5; white-space: pre-wrap; }
.sup-msg.bot { background: var(--brand-50, #f4f0ff); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.sup-msg.me { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.sup-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-quick button { border: 1px solid var(--line-2, #ddd9ea); background: var(--surface); border-radius: 999px; padding: 7px 12px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); }
.sup-quick button:hover { border-color: var(--brand); color: var(--brand); }
.sup-form { display: flex; gap: 8px; margin-top: 14px; }
.sup-form input { flex: 1; min-width: 0; border: 1px solid var(--line-2, #ddd9ea); border-radius: 10px; padding: 10px 12px; font: inherit; }

/* ======================================================================
   Přihlášení přes Apple / Google
   ====================================================================== */
.social { display: grid; gap: 10px; margin: 6px 0 4px; }
.btn-social { --h: 50px; width: 100%; border-radius: 14px; font-weight: 650; font-size: 16px; gap: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.btn-social svg { flex: none; }
.btn-social.apple { background: #000; border-color: #000; color: #fff; }
.btn-social.apple:hover { background: #1c1c1e; color: #fff; }
.btn-social.google:hover { background: var(--bg); color: var(--ink); }
.or { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ======================================================================
   Rozpoznání z fotky v zařízení
   ====================================================================== */
.qc:empty { display: none; }
.qc { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg, #f7f7fb); }
.qc-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.qc-row + .qc-row { border-top: 1px dashed var(--line); }
.qc-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: 12px; font-weight: 750; display: grid; place-items: center; }
.qc-tips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.qc-tip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; line-height: 1.3; padding: 4px 9px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2, var(--ink)); }
.qc-tip svg { width: 14px; height: 14px; flex: none; }
.qc-tip.ok { color: var(--cta-700, #137a3f); border-color: #bbf0cf; background: var(--cta-50, #eefbf3); }
.qc-tip.warn { color: #9a5b00; border-color: #f5d9a6; background: #fff8ea; }
.qc-tip.info { color: var(--brand-700, var(--brand)); border-color: var(--brand-100); background: var(--brand-50); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); vertical-align: -1px; margin-right: 3px; flex: none; }
.ai-note.local { background: var(--brand-50); border-color: var(--brand-100); color: var(--ink); }
.ai-note.local .chips .chip { background: var(--surface); }
.spinner.sm { width: 20px; height: 20px; border-width: 2px; flex: none; }
.wiz-ai-btns .btn { flex: 1 1 auto; }

/* ======================================================================
   Telefony, tablety a skládací zařízení (iPhone, iPad, iPhone Duo, Fold…)
   ====================================================================== */
html, body { overflow-x: clip; }
main#view { min-height: calc(100dvh - var(--hdr)); }
@supports not (height: 100dvh) { main#view { min-height: calc(100vh - var(--hdr)); } }

/* výřez a zaoblené rohy v režimu na šířku + aplikace na ploše */
.container { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.hdr { padding-top: env(safe-area-inset-top); }
.bnav { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.mbar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.modal, .modal-back > * { overscroll-behavior: contain; }
.modal-back { padding-top: env(safe-area-inset-top); }

/* mřížky se nikdy nerozbijí ani na úzkém displeji (vnější displej skládaček ~280 px) */
.grid { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.cats.wrap { grid-template-columns: repeat(auto-fill, minmax(min(110px, 46%), 1fr)); }
.uploader { grid-template-columns: repeat(auto-fill, minmax(min(110px, 46%), 1fr)); }
.param-list { grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); }
img, video, canvas, svg { max-width: 100%; }
.input, .select, .textarea { font-size: max(16px, 1em); } /* iOS nezoomuje do políček */

/* dotykové ovládání: větší cíle, žádné „zaseknuté“ hover efekty */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .icon-btn { min-width: 44px; min-height: 44px; }
  .chip { min-height: 40px; }
  .cat:hover, .pcard:hover, .lcard .fav:hover, .star-input button:hover svg { transform: none; }
  .lcard:hover .ph img { transform: none; }
  a, button, label, .chip, .cat { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .btn:active, .chip:active, .cat:active, .lcard:active { transform: scale(.98); transition: transform .08s; }
}

/* velmi úzké displeje: vnější displej skládaček, iPhone SE v zoomu */
@media (max-width: 360px) {
  :root { --hdr: 58px; --bnav: 60px; }
  .container { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  h1 { font-size: 26px; }
  .btn { padding: 0 14px; }
  .bnav a { font-size: 10px; }
  .bnav a .add { width: 40px; height: 40px; border-radius: 14px; }
  .form-grid.two { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: 1fr; }
  .wiz-foot .btn-lg { --h: 46px; padding: 0 14px; font-size: 15px; }
  .scroller { grid-auto-columns: 88%; }
  .m-gallery, .scroller { margin-left: -14px; margin-right: -14px; }
  .auth-card { padding-left: 16px; padding-right: 16px; }
}

/* telefon na šířku: nízký displej */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --hdr: 54px; --bnav: 52px; }
  .bnav a { flex-direction: row; gap: 6px; font-size: 12px; }
  .bnav a .add { width: 36px; height: 36px; margin-top: 0; border-radius: 12px; }
  .modal { max-height: 100dvh; }
  .hero-panel { padding-top: 16px; padding-bottom: 16px; }
}

/* rozložené skládačky a malé tablety (téměř čtvercový vnitřní displej 600–960 px) */
@media (min-width: 600px) and (max-width: 959px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .container.narrow { max-width: 680px; }
  .auth-wrap.split { max-width: 640px; margin-left: auto; margin-right: auto; }
}

/* iPad a tablety na výšku: víc místa, větší cíle */
@media (min-width: 744px) and (max-width: 1194px) and (pointer: coarse) {
  .container { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
  .grid { gap: 24px 20px; }
}

/* skládačky s pantem (Window Segments API): obsah se neláme přes ohyb */
@media (horizontal-viewport-segments: 2) {
  .ld-grid, .auth-wrap.split, .pay-grid { column-gap: calc(env(viewport-segment-left 1 0, 0px) - env(viewport-segment-right 0 0, 0px) + 24px); }
  .modal-back { justify-content: flex-start; }
  .modal-back > .modal { width: env(viewport-segment-width 0 0, 100%); }
}
@media (vertical-viewport-segments: 2) {
  .modal-back { align-items: flex-end; }
  .modal-back > .modal { max-height: env(viewport-segment-height 0 1, 60dvh); }
}

@media (prefers-reduced-motion: reduce) { .btn:active, .chip:active, .cat:active, .lcard:active { transform: none; } }

/* ======================================================================
   REDESIGN 2026-11 podle předlohy: čistá fialová s lehce hravým přelivem,
   jednoduché šedé ikony, karty s velkou fotkou, tmavý režim podle telefonu.
   ====================================================================== */
:root {
  --brand-2: #a855f7;            /* druhá barva přelivu (lehce hravé) */
  --grad: linear-gradient(135deg, #6335D8 0%, #7c4dff 55%, #a855f7 100%);
  --icon: #55536b;               /* jednoduché šedé ikony */
  --icon-bg: var(--surface);
  --icon-line: var(--line);
  --ease-out: cubic-bezier(.2, .9, .25, 1);
}

/* ---------- typografie a akcenty ---------- */
.hero h1 em, .grad-text {
  background: linear-gradient(90deg, #6335D8, #8b5cf6 60%, #a855f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn-primary { background: var(--grad); border-color: transparent; box-shadow: 0 6px 16px -6px rgba(99, 53, 216, .55); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.06); }
.bnav a .add { background: var(--grad); }

/* ---------- jednoduché ikony: šedá na bílé, vybraná černá s bílou ---------- */
.cat .ci, span.ci { background: var(--icon-bg); border: 1px solid var(--icon-line); color: var(--icon); border-radius: 50%; box-shadow: none; }
.ci svg { stroke-width: 1.6; }
.ci svg .f, .ci svg .f2 { fill: none; }
.ci svg .w { fill: var(--icon-bg); }
.cat:hover .ci { transform: translateY(-2px); box-shadow: var(--sh); border-color: var(--line-2); }
.cat:hover { color: var(--ink); }
.cat.on .ci, .cats.wrap .cat.on .ci { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.cats.wrap .cat.on { border-color: var(--ink); background: var(--surface); }
.benefit .ic, .how-step .ic, .how-step:nth-of-type(3) .ic, .benefit:nth-child(3) .ic, .hub .ic, .empty .ic, .success-ic {
  background: var(--surface) !important; color: var(--icon) !important; border: 1px solid var(--line); box-shadow: none;
}
.how-step .ic svg, .benefit .ic svg { color: var(--icon); }

/* ---------- hero podle předlohy: text vlevo, věci vpravo na fialové vlně ---------- */
.hero-panel { background: radial-gradient(120% 90% at 100% 0%, var(--brand-50) 0%, var(--surface) 55%); }
.hero-art { display: block; height: 220px; margin: -6px -6px 0; }
@media (min-width: 1020px) { .hero-art { height: 360px; margin: 0; } }
.hero-art .wave {
  position: absolute; inset: 6% -12% -6% 4%;
  background: radial-gradient(60% 70% at 60% 45%, #c9b6ff 0%, #e3d9ff 45%, rgba(237, 230, 255, 0) 72%);
  border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  filter: blur(2px);
}
.hero-art .hp { position: absolute; display: block; border-radius: 22px; overflow: hidden; background: var(--brand-100); box-shadow: 0 24px 50px -22px rgba(60, 30, 140, .55); }
.hero-art .hp img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .p1 { width: 52%; height: 72%; left: 22%; top: 14%; z-index: 3; }
.hero-art .p2 { width: 38%; height: 56%; right: 0; top: 4%; z-index: 2; transform: rotate(4deg); }
.hero-art .p3 { width: 36%; height: 50%; left: 0; bottom: 2%; z-index: 1; transform: rotate(-5deg); }
.hero-art .hp-tag { position: absolute; left: 8px; bottom: 8px; background: var(--glass); color: var(--ink); font-size: 12.5px; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px); white-space: nowrap; }
.hero-art .hp-tag b { color: var(--brand); }
.hero-art.ready .hp { animation: heroIn .55s var(--ease-out) both; }
.hero-art.ready .p2 { animation-delay: .06s; }
.hero-art.ready .p3 { animation-delay: .12s; }
@keyframes heroIn { from { opacity: 0; translate: 0 18px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (hover: hover) { .hero-art .hp { transition: transform .3s var(--ease-out), box-shadow .3s; } .hero-art .hp:hover { transform: translateY(-4px) rotate(0); z-index: 5; } }
@media (max-width: 1019px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art .p1 { left: 28%; width: 44%; height: 86%; top: 6%; }
  .hero-art .p2 { width: 32%; height: 66%; top: 12%; }
  .hero-art .p3 { width: 32%; height: 62%; bottom: 4%; }
  .hero-art .hp-tag { font-size: 11px; padding: 3px 7px; left: 6px; bottom: 6px; }
}
@media (max-width: 400px) { .hero-art { height: 180px; } .hero-art .p2 .hp-tag, .hero-art .p3 .hp-tag { display: none; } }

/* ---------- karty nabídek: velká fotka, málo textu ---------- */
.lcard { gap: 10px; }
.lcard .ph { border-radius: 16px; aspect-ratio: 4 / 3; }
.lcard .body { gap: 3px; }
.lcard .rate { font-size: 13.5px; }
.lcard h3 { font-size: 16.5px; }
.lcard .loc { font-size: 13.5px; }
.lcard .price { font-size: 17px; }
.lcard .price b { font-weight: 800; }
.lcard .fav { background: var(--glass); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.lcard .fav.on svg { fill: #ff3b5c; stroke: #ff3b5c; }
.lcard .see, .lcard .sum, .lcard .owner { display: none; }

/* ---------- animace: dotyk, otevírání oken, srdíčko, konfety ---------- */
.page { animation-duration: .2s; }
.fx-host { position: relative; overflow: hidden; isolation: isolate; }
.fx-rip { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .22; transform: scale(0); animation: fxRip .6s var(--ease-out) forwards; z-index: 0; }
.btn-primary .fx-rip, .btn-cta .fx-rip, .btn-social.apple .fx-rip, .bnav .add .fx-rip { background: #fff; opacity: .35; }
@keyframes fxRip { to { transform: scale(1); opacity: 0; } }
.fx-beacon { animation: fxBeacon 1.4s ease-out; }
@keyframes fxBeacon {
  0% { box-shadow: 0 0 0 0 rgba(99, 53, 216, .55); }
  35% { box-shadow: 0 0 0 10px rgba(99, 53, 216, .18); }
  60% { box-shadow: 0 0 0 0 rgba(99, 53, 216, .45); }
  100% { box-shadow: 0 0 0 14px rgba(99, 53, 216, 0); }
}
.bnav a.fx-beacon { animation: none; }
.bnav a.fx-beacon > svg, .bnav a.fx-beacon .avatar { animation: fxBeaconIc 1.4s ease-out; border-radius: 50%; }
@keyframes fxBeaconIc { 0%, 60% { color: var(--brand); transform: scale(1.18); } 100% { transform: scale(1); } }
.fx-dot { position: fixed; z-index: 300; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; }
.fx-confetti { position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden; }
.fx-confetti i { position: absolute; display: block; will-change: transform; }
.fx-pre { opacity: 0; transform: translateY(18px); }
.fx-pre.fx-in { opacity: 1; transform: none; transition: opacity .45s ease, transform .5s var(--ease-out); }
.fx-pop-in { animation: fxPopIn .35s var(--ease-out); }
@keyframes fxPopIn { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
.dropdown { transform-origin: top right; }
@media (prefers-reduced-motion: reduce) {
  .fx-rip, .fx-beacon, .hero-art.ready .hp, .fx-pop-in { animation: none !important; }
  .fx-pre { opacity: 1; transform: none; }
}

/* ======================================================================
   Tmavý režim podle nastavení telefonu
   ====================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #8f6bff; --brand-600: #9d7dff; --brand-700: #b49bff;
    --brand-50: #1f1838; --brand-100: #2a2150; --brand-200: #3d3070;
    --ink: #f3f2f8; --ink-2: #cfcde0; --muted: #9a98b2;
    --line: #2a2840; --line-2: #36334f;
    --bg: #17151f; --white: #0f0e16; --surface: #121019;
    --glass: rgba(18, 16, 25, .88);
    --icon: #c9c7da; --icon-bg: #1b1926; --icon-line: #2f2c44;
    --green-50: #10261c; --blue-50: #111c33; --amber-50: #2a210f; --red-50: #2c1416;
    --sh-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --sh: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .45);
    --sh-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 22px 50px rgba(0, 0, 0, .55);
    --grad: linear-gradient(135deg, #6f45f0 0%, #8b5cf6 55%, #b06cff 100%);
    --page: #0f0e16;
  }
  html, body { background: var(--white); }
  .hero h1 em, .grad-text { background: linear-gradient(90deg, #a78bff, #c084fc); -webkit-background-clip: text; background-clip: text; }
  .hero-art .wave { background: radial-gradient(60% 70% at 60% 45%, #3b2a7a 0%, #241a4a 45%, rgba(20, 16, 40, 0) 72%); }
  .hero-art .hp { box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .8); }
  .hdr, .bnav, .search-top, .wiz-foot { background: var(--glass) !important; border-color: var(--line); }
  .demobar { background: #1d1736; color: var(--ink-2); }
  .input, .select, .textarea { background-color: var(--bg); border-color: var(--line-2); color: var(--ink); }
  .seg { background: var(--bg); }
  .seg button.on { background: var(--surface); color: var(--ink); }
  .input::placeholder, .textarea::placeholder, .sb-field input::placeholder, .sb-field .ph { color: #77748f; }
  .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a98b2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
  .field.invalid .input, .field.invalid .select, .field.invalid .textarea { background: #2a1416; }
  .btn-outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
  .btn-ghost:hover, .icon-btn:hover, .nav a:hover, .nav a.active, .dropdown a:hover, .dropdown button:hover { background: var(--bg); }
  .btn-secondary { background: var(--brand-100); color: var(--ink); }
  .btn-social { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
  .btn-social.apple { background: #fff; color: #000; border-color: #fff; }
  .btn-social.apple:hover { background: #e9e9ee; color: #000; }
  .chip { background: var(--bg); border-color: var(--line-2); color: var(--ink-2); }
  .chip.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .badge-gray, .badge-soft { background: var(--bg); color: var(--ink-2); }
  .notice { background: var(--bg); color: var(--ink-2); border-color: var(--line); }
  .notice.warn, .qc-tip.warn { background: #2a210f; color: #ffcf7a; border-color: #4a3a17; }
  .notice.ok, .qc-tip.ok, .ai-note { background: #10261c; color: #7fe0ad; border-color: #1d4a33; }
  .notice.err { background: #2c1416; color: #ff9da1; border-color: #4d2226; }
  .qc { background: var(--bg); }
  .qc-tip { background: var(--surface); }
  .ai-note.local { background: var(--brand-50); color: var(--ink); border-color: var(--brand-200); }
  .auth-wrap { background: linear-gradient(180deg, var(--brand-50), var(--white) 50%); }
  .modal-back { background: rgba(0, 0, 0, .6); }
  .sk, .skeleton, .ph-empty { background: linear-gradient(90deg, #1b1926 0%, #23202f 40%, #1b1926 80%); background-size: 200% 100%; }
  .cal-day.blocked, .cal-day:disabled { background: transparent; color: #4a4760; }
  .lcard .dist { background: rgba(0, 0, 0, .7); }
  .leaflet-container { filter: brightness(.82) contrast(1.05); }
  img { color-scheme: normal; }
  .ftr { background: var(--surface); border-color: var(--line); }
  .cta-earn { background: linear-gradient(135deg, #241a4a 0%, #3b2a7a 100%); }
  .how-strip { background: var(--surface); border-color: var(--line); }
  .range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--brand) var(--p), #2f2c44 var(--p)); }
  .range::-moz-range-track { background: #2f2c44; }
  .map-wrap, .pmap.leaflet-container { background: var(--bg); }
  .zb-ic { background: #2c1416; }
}

/* ======================================================================
   Klidnější vzhled: méně efektů, víc obsahu (bez přelivů v textu a záře)
   ====================================================================== */
.hero h1 em, .grad-text { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--brand); }
.btn-primary { background: var(--brand); box-shadow: none; }
.btn-primary:hover { background: var(--brand-600); filter: none; }
.bnav a .add { background: var(--brand); box-shadow: 0 4px 10px rgba(99, 53, 216, .25); }
.hero-panel { background: var(--surface); }
.hero-art .wave { inset: 4% -6% 0 8%; background: var(--brand-50); filter: none; border-radius: 40% 60% 46% 54% / 50% 42% 58% 50%; }
.hero-art .hp { box-shadow: 0 12px 30px -16px rgba(22, 20, 44, .35); }
.hero-art .p2 { transform: rotate(2deg); }
.hero-art .p3 { transform: rotate(-2deg); }
.rot::after, .rot.glow::after { display: none; }
.free-note { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.free-note svg { color: var(--green); }
.lcard .tags .badge { box-shadow: none; }
@media (prefers-color-scheme: dark) {
  .hero h1 em, .grad-text { background: none; color: #a78bff; }
  .hero-art .wave { background: #1f1838; }
  .btn-primary { background: #7c5cff; }
}

/* ---------- postavička P u hesla (z loga) ---------- */
.pb-wrap { position: relative; }
.pb-wrap .input { padding-right: 60px; }
.pb { --led: #b9b6c8; --fill: 0; position: absolute; right: 6px; top: 50%; width: 42px; height: 42px; margin-top: -21px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pb svg { width: 100%; height: 100%; overflow: visible; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.pb .pb-track { fill: none; stroke: var(--line); stroke-width: 3; }
.pb .pb-ring { fill: none; stroke: var(--led); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--fill)); transform: rotate(-90deg); transform-origin: 32px 32px; transition: stroke-dashoffset .5s cubic-bezier(.22, .9, .24, 1), stroke .3s; }
.pb .pb-head { fill: #6335D8; }
.pb .pb-p { fill: #fff; }
.pb .pb-socket { fill: #6335D8; }
.pb .pb-eye ellipse { fill: #fff; transform: translateX(var(--lx, 0)); transition: transform .15s; }
.pb .pb-shut { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.pb .pb-brow { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: center; transition: transform .25s, opacity .25s; }
.pb .pb-mouth { fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; transition: d .25s ease; }
.pb .pb-cheek { fill: #ff9fc0; opacity: 0; transition: opacity .3s; }
.pb .pb-glasses { fill: #05030c; stroke: #05030c; stroke-width: 1.4; stroke-linecap: round; opacity: 0; transform: translateY(-12px); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.pb .pb-drop { fill: #9fd2ff; opacity: 0; transition: opacity .2s; }
.pb .pb-hand { fill: #fff; stroke: #6335D8; stroke-width: 1; opacity: 0; transform: translate(-6px, 6px); transition: opacity .2s, transform .25s; }
.pb .pb-crown { fill: #f5c542; opacity: 0; transform: scale(.4); transform-origin: 32px 2px; transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.pb.lvl-0:not(.awake) .pb-eyes { opacity: 0; }
.pb.lvl-0:not(.awake) .pb-shut { opacity: 1; }
.pb.lvl-0:not(.awake) svg { transform: rotate(-6deg); }
.pb.lvl-1 { --led: #e5484d; --fill: 25; }
.pb.lvl-1 .pb-drop { opacity: 1; }
.pb.lvl-1 .pb-brow { opacity: 1; transform: rotate(-14deg); }
.pb.lvl-2 { --led: #f0a020; --fill: 50; }
.pb.lvl-3 { --led: #7ac142; --fill: 75; }
.pb.lvl-4, .pb.lvl-5 { --led: #1fa65a; --fill: 100; }
.pb.lvl-4 .pb-cheek, .pb.lvl-5 .pb-cheek { opacity: .9; }
.pb.lvl-4 .pb-eye ellipse { ry: 1.4; }
.pb.lvl-5 { --led: #6335D8; }
.pb.lvl-5 .pb-glasses { opacity: 1; transform: none; }
.pb.lvl-5 .pb-eyes { opacity: 0; }
.pb.crown .pb-crown { opacity: 1; transform: none; animation: pbSpin 5s linear infinite; }
.pb.facepalm .pb-hand { opacity: 1; transform: none; }
.pb.facepalm .pb-eyes { opacity: 0; }
.pb.facepalm .pb-shut { opacity: 1; }
.pb.facepalm .pb-drop { opacity: 0; }
.pb.peek .pb-eye ellipse, .pb.wink .pb-eye ellipse { transform: scaleY(.12); transform-box: fill-box; transform-origin: center; }
.pb.hop svg { animation: pbHop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pbHop { 30% { transform: translateY(-6px) rotate(-8deg) scale(1.08); } 60% { transform: translateY(0) rotate(4deg); } }
@keyframes pbSpin { to { transform: rotate(360deg); } }
.pb-meter { margin-top: 8px; }
.pb-meter.lvl-0 { display: none; }
.pb-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pb-bar i { height: 5px; border-radius: 99px; background: var(--line); transition: background .25s; }
.pb-meter.lvl-1 .pb-bar i:nth-child(-n+1) { background: #e5484d; }
.pb-meter.lvl-2 .pb-bar i:nth-child(-n+2) { background: #f0a020; }
.pb-meter.lvl-3 .pb-bar i:nth-child(-n+3) { background: #7ac142; }
.pb-meter.lvl-4 .pb-bar i, .pb-meter.lvl-5 .pb-bar i { background: #1fa65a; }
.pb-meter.lvl-5 .pb-bar i { background: linear-gradient(90deg, #1fa65a, #6335D8); }
.pb-txt { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pb svg, .pb * { transition: none !important; animation: none !important; } }

/* ======================================================================
   LUXUSNÍ VZHLED (inspirace: čistý monochrom, jedno barevné slovo,
   jemné světelné pruhy, černé pilulky, plovoucí lišta)
   ====================================================================== */
:root {
  --page: #f7f7f9;
  --bg: #f2f2f5;
  --ink: #0d0c14;
  --ink-2: #3a3946;
  --muted: #71707e;
  --line: #e8e8ee;
  --line-2: #dcdce4;
  --pill-ink: #0d0c14;
  --pill-ink-text: #fff;
  --card-r: 22px;
  --ease-lux: cubic-bezier(.22, .9, .24, 1);
}
html, body { background: var(--page); }
body { letter-spacing: -0.006em; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 750; }
.section-head h2 { font-size: clamp(24px, 2.8vw, 34px); }
.section-head .more { color: var(--ink); }

/* ---------- tlačítka: černé pilulky, sekundární obrysové ---------- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: -0.01em; }
.btn-lg { --h: 54px; padding: 0 26px; border-radius: 999px; }
.btn-sm { border-radius: 999px; }
.btn-primary, .btn-dark { background: var(--pill-ink); color: var(--pill-ink-text); border: 0; box-shadow: 0 6px 18px -8px rgba(13, 12, 20, .45); }
.btn-primary:hover, .btn-dark:hover { background: #24222f; color: var(--pill-ink-text); }
.btn-cta { background: var(--brand); color: #fff; border: 0; border-radius: 999px; }
.btn-cta:hover { background: var(--brand-600); color: #fff; }
.btn-outline { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ic { width: 32px; height: 32px; margin-right: -14px; margin-left: 4px; border-radius: 50%; background: #fff; color: var(--ink); display: inline-grid; place-items: center; flex: none; }
.btn-ic svg { width: 16px; height: 16px; }
.searchbar .sb-go { border-radius: 14px; }

/* ---------- hlavička ---------- */
.hdr { background: color-mix(in srgb, var(--page) 82%, transparent); border-bottom-color: transparent; }
.hdr.scrolled { border-bottom-color: var(--line); }
.logo { color: var(--ink); letter-spacing: -0.05em; }
.logo::before { content: ""; width: 26px; height: 26px; margin-right: 8px; border-radius: 8px; align-self: center; background: #6335D8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M22 48V16h12.5c7.2 0 11.5 4.2 11.5 10.6S41.7 37.2 34.5 37.2H29V48z' fill='%23fff'/%3E%3Ccircle cx='34' cy='26.6' r='4.2' fill='%236335D8'/%3E%3C/svg%3E") center / 100% no-repeat; }
.logo.light::before { background-color: #fff; }

/* ---------- hero: světelné pruhy, pilulka, kurzor ---------- */
.hero { position: relative; overflow: hidden; }
.hero-panel { background: transparent; border: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
.aurora { position: absolute; inset: -10% -5% 0; pointer-events: none; z-index: 0; filter: blur(46px); opacity: .9; }
.aurora i { position: absolute; top: -10%; width: 9%; height: 120%; border-radius: 999px; background: linear-gradient(180deg, transparent, var(--c), transparent); animation: auroraDrift 14s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { left: 8%; --c: rgba(160, 140, 255, .55); }
.aurora i:nth-child(2) { left: 30%; --c: rgba(205, 190, 255, .45); animation-delay: -4s; width: 6%; }
.aurora i:nth-child(3) { left: 62%; --c: rgba(130, 170, 255, .45); animation-delay: -8s; }
.aurora i:nth-child(4) { left: 84%; --c: rgba(255, 196, 160, .35); animation-delay: -2s; width: 7%; }
@keyframes auroraDrift { from { transform: translateX(-30px) scaleY(1); } to { transform: translateX(40px) scaleY(1.08); } }
.hero .container, .hero-grid { position: relative; z-index: 1; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; backdrop-filter: blur(8px); }
.eyebrow-pill b { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-weight: 600; color: var(--ink); }
.hero h1 { color: var(--ink); letter-spacing: -0.05em; }
.hero h1 em { color: var(--brand); }
.caret { color: var(--brand); font-weight: 500; animation: caretBlink 1.05s steps(1) infinite; margin-left: 2px; }
@keyframes caretBlink { 50% { opacity: 0; } }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 6px; }
.hero-checks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.hero-checks li { display: inline-flex; align-items: center; gap: 7px; }
.hero-checks svg { width: 15px; height: 15px; color: var(--ink); }
.hero-art .wave { background: radial-gradient(60% 60% at 55% 50%, rgba(99, 53, 216, .14), rgba(99, 53, 216, 0) 70%); border-radius: 50%; }
.hero-art .hp { border-radius: 24px; box-shadow: 0 30px 60px -28px rgba(13, 12, 20, .45); border: 4px solid var(--surface); }
.searchbar { border-radius: 22px; border-color: var(--line); box-shadow: 0 18px 50px -24px rgba(13, 12, 20, .28); }
.hero-stats, .sb-extra { position: relative; z-index: 1; }

/* ---------- karty: bílé, tenký rámeček, velký rádius ---------- */
.card, .bookcard, .auth-card, .how-strip, .cta-earn .calc, .benefit, .pcard { border-radius: var(--card-r); border: 1px solid var(--line); background: var(--surface); box-shadow: none; }
.lcard .ph { border-radius: 20px; }
.lcard h3 { letter-spacing: -0.02em; }
@media (hover: hover) {
  .lcard .ph { transition: box-shadow .35s var(--ease-lux), transform .35s var(--ease-lux); }
  .lcard:hover .ph { box-shadow: 0 22px 40px -24px rgba(13, 12, 20, .45); transform: translateY(-3px); }
  .lcard:hover .ph img { transform: scale(1.03); }
}
.cat .ci, span.ci { background: var(--surface); border: 1px solid var(--line); }
.cat.on .ci { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge-featured { background: var(--ink); color: #fff; }
.how-strip { background: var(--surface); }
.cta-earn { background: var(--ink); color: #fff; border-radius: 28px; }
.cta-earn h2, .cta-earn p { color: #fff; }

/* ---------- plovoucí spodní lišta (mobil) ---------- */
@media (max-width: 959px) {
  .bnav { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: var(--bnav); padding: 0 6px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 86%, transparent); box-shadow: 0 12px 34px -12px rgba(13, 12, 20, .3); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); }
  body { padding-bottom: calc(var(--bnav) + 22px + env(safe-area-inset-bottom)); }
  .bnav a { border-radius: 999px; margin: 6px 0; }
  .bnav a.active { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 0 0 4px rgba(99, 53, 216, .12), 0 0 16px rgba(99, 53, 216, .25); }
  .bnav a .add { background: var(--ink); box-shadow: none; margin-top: 0; width: 42px; height: 42px; border-radius: 50%; }
  .bnav a:has(.add) span:last-child { display: none; }
  .wiz-foot, .mbar { bottom: calc(var(--bnav) + 18px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(var(--bnav) + 28px + env(safe-area-inset-bottom)); }
}

/* ---------- jemné odhalení obsahu ---------- */
.fx-pre.fx-in { transition: opacity .7s var(--ease-lux), transform .8s var(--ease-lux); }
.page { animation: pageLux .32s var(--ease-lux) both; }
@keyframes pageLux { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- tmavý režim ---------- */
@media (prefers-color-scheme: dark) {
  :root { --page: #08080c; --bg: #111118; --surface: #101016; --ink: #f4f4f7; --ink-2: #c9c8d3; --muted: #8e8d9b; --line: #22222c; --line-2: #2d2d39; --pill-ink: #f4f4f7; --pill-ink-text: #0d0c14; }
  .btn-primary:hover, .btn-dark:hover { background: #ddd; }
  .btn-ic { background: #0d0c14; color: #fff; }
  .aurora { opacity: .45; }
  .aurora i:nth-child(4) { --c: rgba(120, 90, 220, .3); }
  .cta-earn { background: #15141d; border: 1px solid var(--line); }
  .badge-featured { background: #f4f4f7; color: #0d0c14; }
  .cat.on .ci { background: #f4f4f7; color: #0d0c14; }
  .bnav a.active { background: #1b1b24; }
  .bnav a .add { background: #f4f4f7; color: #0d0c14; }
}
@media (prefers-reduced-motion: reduce) { .aurora i, .caret { animation: none; } }

/* šipka v rozbalovacím seznamu nikdy neopakovat (tmavý režim) */
.select { background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 18px !important; }

/* ---------- živé logo P: mrká, rozhlíží se a občas se usměje ---------- */
.logo.has-mark::before { display: none; }
.lm { width: 36px; height: 36px; margin-right: 10px; align-self: center; display: inline-block; flex: none; }
.lm svg { width: 100%; height: 100%; display: block; border-radius: 11px; box-shadow: 0 6px 14px -5px rgba(99, 53, 216, .6); overflow: visible; }
.lm-eye { transform-box: fill-box; transform-origin: center; animation: lmBlink 4.6s infinite; }
.lm-glint { animation: lmBlinkG 4.6s infinite; }
.lm-look { animation: lmLook 12s ease-in-out infinite; }
.lm-smile, .lm-cheek, .lm-happy { opacity: 0; animation: lmSmile 12s ease-in-out infinite; }
.lm-look { animation: lmLook 12s ease-in-out infinite, lmEyeHide 12s ease-in-out infinite; }
@keyframes lmBlink { 0%, 40%, 46%, 88%, 94%, 100% { transform: scaleY(1); } 43%, 91% { transform: scaleY(.08); } }
@keyframes lmBlinkG { 0%, 40%, 46%, 88%, 94%, 100% { opacity: 1; } 43%, 91% { opacity: 0; } }
@keyframes lmLook { 0%, 14% { transform: translate(0, 0); } 20%, 32% { transform: translate(1.6px, -.5px); } 38%, 50% { transform: translate(-1.6px, .4px); } 56%, 100% { transform: translate(0, 0); } }
@keyframes lmSmile { 0%, 66% { opacity: 0; } 70%, 86% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes lmEyeHide { 0%, 66% { opacity: 1; } 70%, 86% { opacity: 0; } 90%, 100% { opacity: 1; } }
.logo:hover .lm-smile, .logo:hover .lm-cheek, .logo:hover .lm-happy { animation: none; opacity: 1; }
.logo:hover .lm-look { animation: none; opacity: 0; }
.logo:hover .lm svg { animation: lmHop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes lmHop { 40% { transform: translateY(-3px) rotate(-6deg); } }
@media (max-width: 400px) { .lm { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .lm-eye, .lm-look, .lm-smile, .lm-cheek, .lm-happy, .lm-glint { animation: none; } }
/* menší postavička u hesla, aby se vešla do políčka */
.pb { width: 34px; height: 34px; margin-top: -17px; right: 8px; }
.pb-wrap .input { padding-right: 52px; }

/* ---------- ilustrace věcí v úvodu (kreslené, žádné fotky) ---------- */
.hero-art.ill .wave { inset: 6% -8% 2% 2%; background: radial-gradient(55% 55% at 55% 52%, rgba(124, 77, 255, .22), rgba(124, 77, 255, .06) 55%, transparent 72%); border-radius: 50%; }
.hero-art.ill .il { position: absolute; height: auto; filter: drop-shadow(0 22px 26px rgba(42, 26, 102, .22)); animation: ilFloat 7s ease-in-out infinite; }
.hero-art.ill .il-drill { width: 52%; left: 26%; top: 10%; z-index: 3; }
.hero-art.ill .il-bike { width: 58%; right: -4%; top: 2%; z-index: 1; opacity: .96; animation-delay: -2.3s; }
.hero-art.ill .il-trailer { width: 50%; left: -4%; bottom: 0; z-index: 2; animation-delay: -4.6s; }
@keyframes ilFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1019px) {
  /* velikost podle výšky, aby ilustrace nikdy nepřetekly do vyhledávání */
  .hero-art.ill { height: clamp(170px, 34vw, 240px); overflow: hidden; margin: 4px auto 8px; max-width: 560px; }
  .hero-art.ill .il { width: auto; }
  .hero-art.ill .il-drill { height: 78%; left: 34%; top: 4%; }
  .hero-art.ill .il-bike { height: 74%; right: 4%; left: auto; top: 6%; }
  .hero-art.ill .il-trailer { height: 56%; left: 2%; bottom: 4%; }
}
.show-xs { display: none; }
@media (max-width: 420px) {
  .hide-xs { display: none; } .show-xs { display: inline; }
  .hdr-actions .btn-ghost.btn-sm { padding-left: 8px; padding-right: 8px; }
  .hdr .logo { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .hero-art.ill .il { animation: none; } }

/* políčko pro přesné číslo vedle posuvníku */
.num-mini { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0 12px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: text; }
.num-mini input { width: 64px; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 700; font-size: 16px; color: var(--ink); text-align: right; }
.num-mini span { color: var(--muted); font-size: 14px; }
.num-mini:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(99, 53, 216, .15); }
.map-ctl .num-mini { height: 34px; margin-top: 6px; }

/* ---------- jednodušší výběr termínu ---------- */
.bk-q .label { margin-bottom: 8px; }
.bk-q-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bk-q-grid button { height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 14px; font-weight: 650; color: var(--ink); cursor: pointer; padding: 0 4px; }
.bk-q-grid button.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
@media (max-width: 420px) { .bk-q-grid { grid-template-columns: repeat(3, 1fr); } }
.bk-step { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: 15px; color: var(--ink-2); }
.bk-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.bk-step .n.ok { background: var(--green); }
.bk-step .link-btn { margin-left: auto; }
.cal-day { font-size: 15px; min-height: 40px; }
.cal-day.today:not(.sel) { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.cal-day.inrange { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.cal-day.past { opacity: .45; }
.cal-day.empty { min-height: 0; aspect-ratio: auto; height: auto; padding: 0; }
.bk-step > span:not(.n) { flex: 1; min-width: 0; }

/* ======================================================================
   Administrace: sklo (glass) a okamžité načítání
   ====================================================================== */
body:has(.admin-layout) { background: radial-gradient(60% 50% at 10% 0%, rgba(124, 77, 255, .16), transparent 70%), radial-gradient(50% 40% at 100% 20%, rgba(120, 160, 255, .14), transparent 70%), radial-gradient(60% 50% at 60% 100%, rgba(255, 190, 150, .12), transparent 70%), var(--page); background-attachment: fixed; }
.admin-layout { padding-top: 24px; padding-bottom: 40px; }
.admin-nav { background: color-mix(in srgb, var(--surface) 62%, transparent); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 22px; padding: 8px; backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 14px 40px -20px rgba(13, 12, 20, .25); }
.admin-nav a { border-radius: 14px; transition: background .2s, color .2s; }
.admin-nav a.on { background: var(--ink); color: var(--surface); box-shadow: 0 6px 16px -8px rgba(13, 12, 20, .5); }
#ac .card, #ac .stat, #ac .table-wrap, #ac .notice, .admin-layout .kpi-row > * {
  background: color-mix(in srgb, var(--surface) 64%, transparent); border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-radius: 20px; box-shadow: 0 10px 30px -22px rgba(13, 12, 20, .3);
}
#ac .table-wrap { padding: 4px 8px; }
#ac .table th { background: transparent; }
#ac .table tr:hover td { background: color-mix(in srgb, var(--brand) 5%, transparent); }
#ac h1 { letter-spacing: -0.04em; }
#ac .input { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(10px); }
.modal:has(.rv-sub) { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); }
.adm-skel { display: grid; gap: 14px; }
.adm-skel i { height: 92px; border-radius: 20px; background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 60%, transparent), color-mix(in srgb, var(--surface) 95%, transparent), color-mix(in srgb, var(--surface) 60%, transparent)); background-size: 200% 100%; animation: admSk 1.2s linear infinite; border: 1px solid var(--line); }
.adm-skel i:first-child { height: 44px; width: 40%; }
@keyframes admSk { to { background-position: -200% 0; } }
@media (min-width: 1020px) { .admin-nav { position: sticky; top: calc(var(--hdr) + 16px); } }
@media (prefers-color-scheme: dark) { body:has(.admin-layout) { background: radial-gradient(60% 50% at 10% 0%, rgba(124, 77, 255, .22), transparent 70%), radial-gradient(50% 40% at 100% 20%, rgba(80, 120, 255, .14), transparent 70%), var(--page); } }

/* ---------- mobil: jednodušší úvod, hledání a kategorie hned nahoře (čitelné i pro starší) ---------- */
@media (max-width: 640px) {
  .hero .eyebrow-pill, .hero .hero-checks, .hero .hero-art.ill, .hero .caret, .hero-stats { display: none !important; }
  .hero .hero-copy h1 { font-size: 31px; line-height: 1.12; margin: 4px 0 10px; }
  .hero .lead { font-size: 16.5px; line-height: 1.5; margin-bottom: 14px; }
  .hero .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .hero-cta .btn { width: 100%; justify-content: center; min-height: 52px; font-size: 16px; padding: 0 12px; }
  .hero .hero-cta .btn-ic { display: none; }
  .searchbar { margin-top: 14px; }
  .searchbar input { font-size: 17px !important; }
  .searchbar .sb-field { min-height: 54px; }
  .cats-sec { padding-top: 14px; }
  .cats { grid-auto-flow: row !important; grid-template-columns: repeat(3, 1fr) !important; grid-auto-columns: auto !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; gap: 10px; }
  .cats .cat { min-height: 92px; font-size: 14.5px; font-weight: 600; }
  body { font-size: 16px; }
}
