*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  --red: #D0102B;
  --red-hi: #FF5A66;   /* červená pro text na tmavém pozadí */
  --red-d: #A50D22;
  --ink: #141414;
  --ink-2: #222;
  --text: #2a2a2a;
  --muted: #666;
  --bg: #ffffff;
  --bg-alt: #F4F2EC;
  --line: #E2DED3;
  --ok: #1f8a4c;
  --err: #C62828;
  --r: 12px;
}
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Barlow', 'Segoe UI', Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--red); color: #fff; font: 700 16px/1 'Barlow', sans-serif; padding: 15px 26px; border-radius: 8px; border: 2px solid var(--red); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--red-d); border-color: var(--red-d); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover { background: #fff; border-color: var(--ink); }

/* ── Header ── */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 3px solid var(--red); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { color: #fff; font-weight: 600; letter-spacing: .06em; font-size: 19px; margin: 0; }
.logo-text strong { color: var(--red-hi); font-weight: 800; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a:not(.btn) { color: #ccc; text-decoration: none; font-weight: 500; }
.menu a:not(.btn):hover { color: var(--red-hi); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* ── Hero ── */
.hero { background: radial-gradient(circle at 80% 30%, #2d2a22 0%, var(--ink) 60%); color: #fff; padding: 72px 0 80px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 0 0 18px; font-weight: 800; }
.hero h1 span { color: var(--red-hi); }
.lead { font-size: 19px; color: #cfcfcf; max-width: 540px; margin: 0 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 7px 14px; border-radius: 999px; font-size: 15px; }
.hero-points b { color: var(--red-hi); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.45); transform: rotate(1.2deg); }
.hero-photo img { border-radius: 10px; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f1efe8; }
.hero-photo figcaption { color: var(--muted); font-size: 14px; text-align: center; padding: 8px 0 2px; }

/* ── Sections ── */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink-2); color: #eee; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 10px; font-weight: 800; color: inherit; line-height: 1.15; }
.h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin-top: 12px; border-radius: 2px; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 680px; }
.section-dark .sub { color: #aaa; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: #fff; }
.card h3 { margin: 14px 0 8px; font-size: 21px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); }
.card-ico { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: #FDE8EA; color: var(--red-d); }
.tag { position: absolute; top: 22px; right: 22px; background: var(--ok); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 4px; }

/* ── Params ── */
.params { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.note-box { border-left: 4px solid var(--red); background: rgba(255,255,255,.05); padding: 14px 18px; border-radius: 0 8px 8px 0; color: #ddd; }
.spec { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #3a3a3a; border-radius: var(--r); overflow: hidden; }
.spec div { background: #2a2a2a; padding: 18px 20px; }
.spec dt { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #999; }
.spec dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; color: #fff; }

/* ── Ceník ── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-card { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.price-main { border: 2px solid var(--red); background: #FFF3F4; }
.price-label { margin: 0; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .06em; color: var(--muted); }
.price-val { margin: 8px 0 0; font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.price-val small { font-size: 18px; font-weight: 600; color: var(--muted); }
.price-dph { margin: 2px 0 16px; color: var(--muted); font-size: 15px; }
.price-card ul { margin: 0; padding-left: 18px; }

/* ── Kalkulátor: kroky ── */
.steps { list-style: none; padding: 0; margin: 0 0 26px; display: flex; gap: 8px; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--muted); font-size: 15px; }
.steps li span { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); font-weight: 700; }
.steps li.active { border-color: var(--ink); color: var(--ink); }
.steps li.active span { background: var(--red); color: #fff; }
.steps li.done span { background: var(--ink); color: #fff; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.calc-form { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 30px; }
.step-pane { border: 0; padding: 0; margin: 0; display: none; min-width: 0; }
.step-pane.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
legend { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 18px; padding: 0; }

.choice { display: flex; align-items: center; gap: 16px; border: 2px solid var(--line); border-radius: 10px; padding: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: #bbb; }
.choice:has(input:checked) { border-color: var(--red); background: #FFF3F4; }
.choice input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.choice-body { display: flex; flex-direction: column; }
.choice-body b { font-size: 18px; color: var(--ink); }
.choice-body small { color: var(--muted); font-size: 15px; }
.choice-machine img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; background: var(--bg-alt); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.incl-title { font-weight: 700; margin: 22px 0 8px; color: var(--ink); }
.incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.incl li { background: #EAF6EF; color: #145c33; padding: 10px 14px; border-radius: 8px; font-weight: 600; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 14px; }
.field input, .field textarea { font: 400 16px 'Barlow', sans-serif; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); width: 100%; min-width: 0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(208,16,43,.25); }
.field input.invalid { border-color: var(--err); }
.transport-detail { margin-top: 18px; padding: 18px; background: var(--bg-alt); border-radius: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); }
.hint { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.err { color: var(--err); font-weight: 600; margin: 10px 0 0; min-height: 1px; }
.err:empty { display: none; }

.calc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-nav .btn:last-child, #btnNext { margin-left: auto; }

.summary { display: grid; gap: 14px; }
.summary section { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.summary h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.summary p { margin: 0; }

/* Postranní kalkulace */
.calc-side { position: sticky; top: 90px; background: var(--ink); color: #eee; border-radius: var(--r); padding: 26px; }
.calc-side h3 { margin: 0 0 16px; color: #fff; font-size: 20px; }
.calc-lines { margin: 0; display: grid; gap: 10px; }
.calc-lines div { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.calc-lines dt { color: #aaa; }
.calc-lines dt span { color: #777; font-size: 13px; }
.calc-lines dd { margin: 0; font-weight: 600; text-align: right; }
.calc-total { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #444; display: grid; gap: 6px; }
.calc-total div { display: flex; justify-content: space-between; font-size: 15px; color: #bbb; }
.calc-total b { color: #fff; }
.calc-total .grand { margin-top: 8px; padding: 14px; background: var(--red); color: #fff; border-radius: 8px; font-size: 16px; }
.calc-total .grand b { color: #fff; font-size: 22px; }

.done { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 56px 24px; }
.done-ico { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 36px; display: grid; place-items: center; }
.done h3 { font-size: 26px; margin: 0 0 8px; color: var(--ink); }
.done p { color: var(--muted); margin: 0 0 24px; }

/* ── Jak to funguje ── */
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: how; }
.how li { counter-increment: how; padding: 24px; border-radius: var(--r); background: var(--bg-alt); display: flex; flex-direction: column; gap: 6px; }
.how li::before { content: counter(how); width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 6px; }
.how b { color: var(--ink); font-size: 18px; }
.how span { color: var(--muted); font-size: 15px; }

/* ── Footer ── */
.footer { background: var(--ink); color: #bbb; padding: 56px 0 24px; border-top: 4px solid var(--red); }
.footer-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer address { font-style: normal; display: flex; flex-direction: column; gap: 4px; }
.footer address b { color: #fff; margin-bottom: 4px; }
.footer a { color: var(--red-hi); text-decoration: none; }
.copy { text-align: center; font-size: 14px; color: #777; margin: 40px 0 0; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-in, .params, .calc { grid-template-columns: 1fr; }
  .cards, .price-grid { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr 1fr; }
  .calc-side { position: static; }
  .calc > * { min-width: 0; }
  .hero-photo { transform: none; }
}
@media (max-width: 760px) {
  .menu { display: none; position: absolute; top: 71px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 10px 0; }
  .burger { display: block; }
  .wrap { padding: 0 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 56px; }
  .row2, .choice-row, .spec, .how, .calc { grid-template-columns: minmax(0, 1fr); }
  .addr-row { flex-direction: column; }
  .steps li { font-size: 0; padding: 10px; justify-content: center; gap: 0; }
  .steps li span { font-size: 15px; }
  .calc-form { padding: 20px; }
  .choice-machine img { width: 84px; height: 64px; }
}

/* ── Galerie ── */
.gallery { display: grid; grid-template-columns: 1fr 1.35fr 1fr; grid-template-rows: 1fr 1fr; grid-auto-flow: dense; gap: 14px; height: 640px; }
.g-item { display: block; border-radius: var(--r); overflow: hidden; background: #ddd; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.g-item:hover img { transform: scale(1.04); }
.g-tall { grid-row: span 2; }
.g-white { background: #fff; }
.g-white img { object-fit: contain; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: auto; }
  .g-item { aspect-ratio: 3/4; }
  .g-item:not(.g-tall) { grid-column: span 2; aspect-ratio: 4/3; }
  .g-tall { grid-row: auto; }
}

/* ── Doprava: vozík a výpočet trasy ── */
.price-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.price-warn, .warn { background: #FFF4E5; border-left: 4px solid #E08A00; color: #6b4300; padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 15px; margin: 14px 0 0; }
.warn { margin: 0 0 10px; }
.choice-col { display: grid; gap: 12px; }
.addr-row { display: flex; gap: 8px; }
.addr-row input { flex: 1; }
.addr-row .btn { flex: none; }
.route-info { margin: -4px 0 12px; font-size: 15px; }
.route-info:empty { display: none; }
.route-info.ok { color: var(--ok); font-weight: 600; }
.route-info.bad { color: var(--err); }
.transport-detail .check { margin-top: 10px; }

/* ── Logo pujcimsibagr.cz ── */
.logo-text { text-transform: none; letter-spacing: .01em; font-size: 22px; }
.logo-text strong { font-weight: 800; }
.logo-text small { font-size: .7em; color: #999; font-weight: 600; margin-left: 1px; }

/* ── Galerie: 3 dlaždice + autor fotek ── */
.gallery { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; height: auto; }
.g-item { aspect-ratio: 4/3; }
.credit { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.credit a { color: inherit; }
.hero-photo figcaption small { display: block; font-size: 11px; color: #999; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .g-item, .g-item:not(.g-tall) { grid-column: auto; aspect-ratio: 4/3; }
}
.hero-photo img { aspect-ratio: 5/3; }

/* ── Ateliérové fotky na bílém pozadí ── */
.hero-photo img, .choice-machine img { object-fit: contain; background: #fff; }
.hero-photo img { aspect-ratio: 3/2; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.g-item { background: #fff; border: 1px solid var(--line); }
.g-item img { object-fit: contain; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .g-item, .g-item:not(.g-tall) { aspect-ratio: 1; } }

/* ── Kauce a domluva času ── */
.price-deposit { border-style: dashed; }
.info-line { margin: 22px 0 0; padding: 14px 18px; background: var(--bg-alt); border-left: 4px solid var(--red); border-radius: 0 8px 8px 0; }
.info-box { margin: 14px 0 0; padding: 12px 16px; background: #FFF3F4; border-radius: 8px; font-size: 15px; color: var(--ink); }
.calc-deposit { margin-top: 14px; padding: 14px; border: 1px dashed #555; border-radius: 8px; }
.calc-deposit div { display: flex; justify-content: space-between; color: #fff; font-size: 15px; }
.calc-deposit small { display: block; margin-top: 6px; color: #aaa; font-size: 13px; line-height: 1.45; }
.summary .sum-note { background: #FFF3F4; border-color: #F3C4CA; }

/* ── Prohlížeč fotek ── */
.lightbox { padding: 56px 72px; user-select: none; }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 8px; background: #fff; }
.lb-cap { color: #ddd; font-size: 15px; margin-top: 12px; text-align: center; }
.lightbox .lb-close { top: 12px; right: 16px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 40px; line-height: 1; padding: 0 0 4px; display: grid; place-items: center; transition: background .15s; }
.lightbox .lb-nav:hover { background: var(--red); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-count { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: #ccc; font-size: 15px; font-weight: 600; }
@media (max-width: 760px) {
  .lightbox { padding: 56px 8px 70px; }
  .lightbox .lb-nav { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}
.lightbox { background: rgba(10,10,10,.95); }
