/* David Prášek – Hodinový manžel Brno – statický web pro FORPSI */
:root {
  --background: #f9f6f2;
  --foreground: #181b1f;
  --card: #ffffff;
  --card-foreground: #181b1f;
  --primary: #fc9417;
  --primary-foreground: #13161b;
  --secondary: #23272c;
  --secondary-foreground: #f7f5f1;
  --muted: #eae7e2;
  --muted-foreground: #5a5e65;
  --accent: #ffe3bc;
  --destructive: #e7000b;
  --border: #d7d4cd;
  --graphite: #181b1f;
  --graphite-foreground: #f3f2ee;
  --whatsapp: #2eb45c;
  --stripes: repeating-linear-gradient(-45deg, var(--primary) 0 14px, var(--graphite) 14px 28px);
}
* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Hind", system-ui, sans-serif;
  line-height: 1.55;
}
h1, h2, h3 { font-family: "Archivo Black", sans-serif; letter-spacing: -0.01em; line-height: 1.15; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.wrap-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }

.hazard { height: 0.5rem; background: var(--stripes); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: var(--graphite); color: var(--graphite-foreground);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { text-decoration: none; line-height: 1.25; }
.brand b { font-family: "Archivo Black", sans-serif; font-size: 1.15rem; color: var(--primary); font-weight: 400; }
.brand span { font-size: 0.85rem; opacity: 0.8; }
nav.main { display: none; gap: 1.5rem; font-size: 0.9rem; }
nav.main a { text-decoration: none; }
nav.main a:hover { color: var(--primary); }
@media (min-width: 768px) { nav.main { display: flex; } }
.lang { display: flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; }
.lang a { text-decoration: none; }
.lang a.active { color: var(--primary); }
.lang a:not(.active) { opacity: 0.6; }
.lang .sep { opacity: 0.4; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--graphite); color: var(--graphite-foreground); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero .inner { position: relative; padding: 6rem 1rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .hero .inner { padding: 8rem 1rem; } }
.tagline { display: inline-block; background: var(--primary); color: var(--primary-foreground); padding: 0.25rem 0.75rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.hero h1 { font-size: 2.25rem; max-width: 48rem; margin: 1rem 0 0; }
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
.hero p.lead { max-width: 42rem; font-size: 1.125rem; opacity: 0.9; margin: 1.5rem 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero .hours { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; opacity: 0.8; margin-top: 1.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem; font-weight: 600; font-size: 1rem; border-radius: 0.25rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-whatsapp { background: var(--whatsapp); color: var(--graphite-foreground); }
.btn-ghost-dark { border-color: rgba(243,242,238,.4); background: transparent; color: inherit; }
.btn-outline { border-color: var(--border); background: var(--background); color: var(--foreground); }
.btn-lg { font-size: 1.1rem; padding: 0.9rem 1.25rem; }

/* Sections */
section { padding: 4rem 0; }
.section-muted { background: var(--muted); }
.section-dark { background: var(--graphite); color: var(--graphite-foreground); }
section h2 { font-size: 1.9rem; margin: 0; }
@media (min-width: 768px) { section h2 { font-size: 2.25rem; } }
section .sub { color: var(--muted-foreground); margin: 0.75rem 0 0; }
.section-dark .sub { color: var(--graphite-foreground); opacity: .8; }

/* Benefits */
.benefits { display: grid; gap: 1.5rem; padding: 4rem 0; }
@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.benefit { border-left: 4px solid var(--primary); padding-left: 1rem; }
.benefit .ic { color: var(--primary); margin-bottom: 0.5rem; width: 1.5rem; height: 1.5rem; }
.benefit h3 { font-size: 1rem; margin: 0; }
.benefit p { color: var(--muted-foreground); font-size: 0.9rem; margin: 0.25rem 0 0; }

/* Services */
.services { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { background: var(--card); padding: 1.5rem; border-radius: 0.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.service .bubble { display: inline-flex; background: var(--graphite); color: var(--primary); padding: 0.75rem; border-radius: 0.25rem; margin-bottom: 1rem; }
.service h3 { font-size: 1.1rem; margin: 0; }
.service p { color: var(--muted-foreground); margin: 0.5rem 0 0; }
.notdo { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 2rem; background: var(--card); border: 1px solid rgba(231,0,11,.4); padding: 1rem; border-radius: 0.25rem; }
.notdo .ic { color: var(--destructive); margin-top: 0.2rem; }
.notdo p { margin: 0; }

/* Gallery Před/Po */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.gallery-tabs button { font-family: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.5rem 0.75rem; border-radius: 0.25rem; border: 1px solid var(--border); background: var(--card); cursor: pointer; }
.gallery-tabs button.active { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.ba { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 0.25rem; margin-top: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.1); cursor: ew-resize; touch-action: none; user-select: none; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--primary); }
.ba .knob { position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%); width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); pointer-events: none; }
.ba .tag { position: absolute; top: 0.75rem; padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 700; }
.ba .tag-before { left: 0.75rem; background: var(--graphite); color: var(--graphite-foreground); }
.ba .tag-after { right: 0.75rem; background: var(--primary); color: var(--primary-foreground); }
.ba-place { display: flex; align-items: center; gap: 0.4rem; color: var(--muted-foreground); font-size: 0.9rem; margin: 0.75rem 0 0; }
.ba-place .ic { color: var(--primary); width: 1rem; height: 1rem; }
.ba-panel[hidden] { display: none; }

/* Ceník */
.price-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-amount { font-family: "Archivo Black", sans-serif; font-size: 4.5rem; color: var(--primary); margin: 1.5rem 0 0; line-height: 1; }
.price-unit { font-size: 1.25rem; margin: 0.25rem 0 0; }
.price-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.price-items li { display: flex; gap: 0.75rem; }
.price-items .ic { color: var(--primary); flex: none; margin-top: 0.2rem; }
.price-examples { margin-top: 3rem; }
.price-examples h3 { font-size: 1.25rem; margin: 0; }
.price-examples .grid { display: grid; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 640px) { .price-examples .grid { grid-template-columns: 1fr 1fr; } }
.price-examples .row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border: 1px solid rgba(243,242,238,.2); padding: 1rem; border-radius: 0.25rem; }
.price-examples .est { flex: none; font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.price-examples .note { font-size: 0.85rem; opacity: .7; margin: 1rem 0 0; }

/* Steps */
.steps { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step .num { font-family: "Archivo Black", sans-serif; font-size: 3rem; color: var(--primary); line-height: 1; }
.step h3 { font-size: 1.25rem; margin: 0.5rem 0 0; }
.step p { color: var(--muted-foreground); margin: 0.5rem 0 0; }

/* Lokality */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--card); padding: 0.4rem 0.75rem; font-size: 0.875rem; border-radius: 0.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chip .ic { color: var(--primary); width: 1rem; height: 1rem; }

/* Reference */
.refs { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .refs { grid-template-columns: repeat(3, 1fr); } }
.ref { background: var(--card); padding: 1.5rem; border-radius: 0.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ref .stars { display: flex; gap: 2px; color: var(--primary); }
.ref .stars .ic { width: 1rem; height: 1rem; }
.ref blockquote { margin: 0.75rem 0 0; }
.ref figcaption { margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--muted-foreground); }

/* FAQ */
.faq { display: grid; gap: 0.75rem; margin-top: 2rem; }
.faq details { background: var(--card); padding: 1.25rem; border-radius: 0.25rem; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary .ic { transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { color: var(--muted-foreground); margin: 0.75rem 0 0; }

/* Kontakt */
.contact-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 3fr 2fr; } }
.contact-card { display: flex; flex-direction: column; gap: 1rem; background: var(--card); padding: 1.5rem; border-radius: 0.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.contact-card .hours { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); margin: 0.5rem 0 0; }
.contact-card .print-btn { margin-top: auto; font-size: 0.9rem; }
.qr-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; background: var(--card); padding: 1.5rem; border-radius: 0.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); text-align: center; }
.qr-card img { width: 10rem; height: 10rem; }
.qr-card p { color: var(--muted-foreground); font-size: 0.9rem; margin: 0; }

/* Footer */
footer.site { background: var(--graphite); color: var(--graphite-foreground); font-size: 0.9rem; padding: 3rem 0 6rem; }
@media (min-width: 768px) { footer.site { padding-bottom: 3rem; } }
footer.site .cols { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { footer.site .cols { grid-template-columns: repeat(3, 1fr); } }
footer.site .logo { font-family: "Archivo Black", sans-serif; font-size: 1.15rem; color: var(--primary); margin: 0; }
footer.site p { margin: 0.25rem 0; opacity: .8; }
footer.site .right { text-align: left; }
@media (min-width: 768px) { footer.site .right { text-align: right; } }
footer.site a { opacity: .8; }

/* Mobilní panel */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem; font-weight: 700; text-decoration: none; }
.mobile-bar .call { background: var(--primary); color: var(--primary-foreground); }
.mobile-bar .wa { background: var(--whatsapp); color: var(--graphite-foreground); }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* GDPR page */
.gdpr h2 { font-size: 1.25rem; margin: 2rem 0 0; }
.gdpr p { color: var(--muted-foreground); margin: 0.5rem 0 0; }
.back { font-size: 0.9rem; }

/* Tisk na A4 */
@media print {
  @page { size: A4 portrait; margin: 14mm; }
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print { display: none !important; }
  section { padding: 1.5rem 0; }
  header.site { position: static; }
  footer.site { padding: 1.5rem 0 0; }
}

/* ===== Doplňky ===== */
html { scroll-padding-top: 5rem; }
.ba .knob { width: 3rem; height: 3rem; }
.ba { cursor: col-resize; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--primary); z-index: 9999; }
.ua-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1.5rem; }
.ua-card { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--primary); padding: 1rem 1.1rem; border-radius: .25rem; }
.ua-card h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.ua-card p { margin: 0; color: var(--muted-foreground); }
.photo-tip { margin-top: 1rem; padding: .75rem 1rem; background: var(--accent); color: var(--foreground); border-radius: .25rem; font-size: .95rem; }
.tools-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tool-card { background: var(--card); border: 1px solid var(--border); padding: 1.25rem; border-radius: .25rem; }
.tool-card h3 { margin-top: 0; }
.tool-card input[type=range] { width: 100%; accent-color: var(--primary); height: 2rem; }
.tool-card input[type=search] { width: 100%; padding: .75rem; font: inherit; border: 2px solid var(--border); border-radius: .25rem; background: var(--background); color: var(--foreground); }
.tool-card input[type=search]:focus { outline: none; border-color: var(--primary); }
.calc-out { font-size: 1.1rem; } .calc-out b { color: var(--primary); font-size: 1.4rem; }
.srch-out { min-height: 1.5em; font-weight: 600; }
.areas-h { margin-top: 2rem; }
.area-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.area-chips .chip { padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; background: var(--card); }
.contact-extra { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.contact-extra .btn { font-size: .9rem; }
.to-top { position: fixed; right: 1rem; bottom: 5.5rem; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 0; background: var(--graphite); color: var(--graphite-foreground); font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 50; }
.to-top.show { opacity: 1; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 6rem; transform: translateX(-50%); background: var(--graphite); color: var(--graphite-foreground); padding: .6rem 1rem; border-radius: .25rem; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 9999; }
.toast.show { opacity: 1; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
nav.main a.active { color: var(--primary); }
@media print { .progress, .to-top, .toast, .tools-grid, .contact-extra { display: none !important; } .reveal { opacity: 1 !important; transform: none !important; } }
@media (prefers-color-scheme: dark) {
  :root { --background: #121418; --foreground: #eceae5; --card: #1c1f24; --card-foreground: #eceae5; --muted: #23272c; --muted-foreground: #a6a9ae; --border: #33373d; --accent: #3a2c17; }
}

/* doplňky v2 */
html { -webkit-text-size-adjust: 100%; }
a, button, input { touch-action: manipulation; }
.ba { will-change: auto; } .ba .after, .ba img { will-change: clip-path; }
.cmp-wrap { overflow-x: auto; margin-top: 1rem; }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp th, .cmp td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid rgba(127,127,127,.25); vertical-align: top; }
.cmp th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.cmp td:last-child b { color: var(--primary); }
.tip-list { margin-top: 1.25rem; padding: 1rem 1.25rem; border-left: 4px solid var(--primary); background: rgba(127,127,127,.08); border-radius: 6px; }
.mobile-bar { grid-template-columns: .6fr 1fr 1fr; transition: transform .25s; }
.mobile-bar .sms { background: var(--graphite, #181b1f); color: #fff; }
.mobile-bar.hide { transform: translateY(110%); }
.offline { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #b42318; color: #fff; text-align: center; padding: .5rem; font-weight: 700; }
.night-call { opacity: .55; }
@media (pointer: coarse) { .btn { min-height: 48px; } }
@media print { .offline, .mobile-bar, .cmp-wrap + .tip-list { display: none !important; } }
@media (max-width: 640px) {
  .cmp { min-width: 0; } .cmp thead { display: none; }
  .cmp tr { display: block; padding: .75rem 0; border-bottom: 1px solid rgba(127,127,127,.25); }
  .cmp td { display: block; border: 0; padding: .15rem 0; }
  .cmp td:first-child { font-weight: 700; }
}
