/* CallPro – veřejný web. Barvy značky: modrá #0b6fc0 (bannery), tmavší #0a4f8f, akcent #19a4e8. */
:root {
  --blue: #0b6fc0; --blue-dark: #0a4f8f; --blue-light: #e8f3fb; --accent: #19a4e8;
  --text: #2b2b2b; --muted: #6b7280; --line: #dde3ea; --bg: #f5f7fa; --white: #fff;
  --radius: 8px; --shadow: 0 2px 10px rgba(2, 63, 112, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); overflow-x: clip; }  /* clip (ne hidden) kvůli full-bleed hero a sticky menu */
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--blue-dark); margin: 1.4em 0 .5em; }
h1 { font-size: 2rem; margin-top: .6em; } h2 { font-size: 1.45rem; } h3 { font-size: 1.15rem; }
code { background: #eef2f6; padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* ---------- box layout (jako původní web): bílý box na šedém pozadí ---------- */
.site-box { max-width: 1270px; margin: 24px auto; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.08); }
.site-box .wrap { max-width: none; padding: 0 32px; }
.site-header { background: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 32px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand img { height: 54px; width: auto; display: block; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--blue-dark); margin: 5px 0; border-radius: 2px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; color: #3a3f47; text-decoration: none; font-weight: 500; font-size: 1.02rem; white-space: nowrap; }
.main-nav > ul > li:hover > a, .main-nav > ul > li.active > a { color: var(--blue); }
.main-nav .caret { font-size: .7rem; color: var(--accent); margin-left: 2px; }
.main-nav .nav-phone a { color: var(--blue-dark); font-weight: 700; padding-left: 18px; }
.main-nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff; box-shadow: 0 6px 18px rgba(2,63,112,.18); border-top: 3px solid var(--blue); z-index: 60; }
.main-nav .sub a { color: var(--text); font-weight: 400; padding: 10px 16px; border-top: 1px solid var(--line); white-space: normal; }
.main-nav .sub a:hover, .main-nav .sub li.active a { background: var(--blue-light); color: var(--blue-dark); }
.main-nav li.has-children:hover .sub, .main-nav li.has-children:focus-within .sub { display: block; }
.header-banner { display: block; background: #0b6fc0; }
.header-banner img { display: block; width: 100%; height: auto; }

/* ---------- obsah ---------- */
.site-main { background: #fff; padding: 0 0 40px; min-height: 40vh; }
.page { padding-top: 20px; padding-bottom: 16px; }
.page-title { margin-top: 0; padding-bottom: .4em; border-bottom: 3px solid var(--blue-light); }
.page-content h2:first-child { margin-top: .3em; }
.page-content img { border-radius: 6px; }
.page-content img.right { float: right; margin: 0 0 16px 24px; max-width: 45%; }
.page-content img.left { float: left; margin: 0 24px 16px 0; max-width: 45%; }
.page-content table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.page-content td, .page-content th { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.page-content th { background: var(--blue-light); text-align: left; color: var(--blue-dark); }
.page-content tr:nth-child(even) td { background: #fafbfc; }
.page-content .cenik td:last-child { white-space: nowrap; text-align: right; }
.page-content .box { background: var(--blue-light); border-left: 4px solid var(--blue); padding: 12px 18px; border-radius: 0 6px 6px 0; margin: 1em 0; }
.page-content .note-red { color: #c0392b; }
.page-content iframe { max-width: 100%; border: 0; border-radius: 6px; }
.page-content video, .news-body video, .page-content audio { display: block; max-width: 100%; width: 100%; max-height: 70vh; height: auto; background: #000; border-radius: 6px; margin: 12px 0; }
.page-content .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.notice { background: #fff6d6; border: 1px solid #f1d78a; padding: 8px 14px; border-radius: 6px; }

/* úvodní stránka: hero + dlaždice */
.page-home { padding-top: 0; }
/* hero přes celou šířku okna, text zarovnaný s obsahem */
.hero { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; margin: 8px 0 28px; }
.hero img { width: 100%; height: auto; }
.hero h1, .hero h2 { color: var(--blue-dark); margin: 0 0 .4em; font-size: 1.7rem; }
.hero p { font-size: 1.02rem; margin: 0 0 1em; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 24px 0 32px; }
.tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(2,63,112,.15); color: var(--text); }
.tile img { width: 100%; height: 150px; object-fit: cover; display: block; border-radius: 0; }
.tile h3 { margin: 14px 16px 4px; color: var(--blue); font-size: 1.1rem; }
.tile p { margin: 0 16px 16px; color: var(--muted); font-size: .95rem; }
.btn { display: inline-block; background: var(--blue); color: #fff; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--blue-dark) !important; }
.btn-light:hover { background: var(--blue-light); color: var(--blue-dark) !important; }

/* seznamy odkazů / dokumentů (z {{links}}) */
.link-group h3 { margin-top: 1.2em; }
.link-list { list-style: none; padding: 0; margin: 0 0 1em; }
.link-list li { padding: 8px 0 8px 34px; border-bottom: 1px solid var(--line); position: relative; }
.link-list li::before { content: "↗"; position: absolute; left: 4px; top: 7px; color: var(--accent); font-weight: 700; }
.link-list li.ext-pdf::before { content: "PDF"; font-size: .6rem; background: #d9534f; color: #fff; border-radius: 3px; padding: 2px 3px; top: 12px; left: 0; }
.link-list li.ext-doc::before, .link-list li.ext-docx::before { content: "DOC"; font-size: .6rem; background: #2b579a; color: #fff; border-radius: 3px; padding: 2px 3px; top: 12px; left: 0; }
.link-list li.ext-xls::before, .link-list li.ext-xlsx::before { content: "XLS"; font-size: .6rem; background: #217346; color: #fff; border-radius: 3px; padding: 2px 3px; top: 12px; left: 0; }
.link-list .note { color: var(--muted); font-size: .9em; margin-left: 6px; }

/* aktuality */
.news-list { margin-top: 16px; }
.news-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-item h3 { margin: 2px 0 8px; }
.news-date { color: var(--muted); font-size: .9rem; }
.news-body p:last-child { margin-bottom: 0; }

/* FAQ pomocí <details> */
.page-content details { border: 1px solid var(--line); border-radius: 6px; padding: 0 16px; margin: 8px 0; background: #fff; }
.page-content summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--blue-dark); }
.page-content details[open] summary { border-bottom: 1px solid var(--line); }

/* ---------- patička ---------- */
.site-footer { background: var(--blue-dark); color: #d6e4f0; font-size: .95rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding: 56px 48px 32px; }
.site-footer h4 { color: #fff; margin: 0 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: .5px; }
.site-footer p { margin: 0 0 8px; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 18px 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #a9c2d8; }
.login-box summary { cursor: pointer; list-style: none; opacity: .5; font-size: .8rem; }
.login-box summary::-webkit-details-marker { display: none; }
.login-box summary:hover { opacity: 1; }
.login-form { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.login-form input { padding: 6px 8px; border: 1px solid #5b7f9e; border-radius: 4px; background: #fff; font: inherit; font-size: .85rem; width: 120px; }
.login-form button { padding: 6px 12px; border: 0; border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; font: inherit; font-size: .85rem; }

.flash { padding: 10px 0; font-weight: 600; }
.flash-ok { background: #d9f2e3; color: #14603a; }
.flash-err { background: #fde2e1; color: #8a1c1c; }

/* ---------- mobil ---------- */
@media (max-width: 860px) {
  .site-box { margin: 0; box-shadow: none; }
  .site-box .wrap, .header-row, .site-footer .footer-grid, .site-footer .footer-bottom { padding-left: 16px; padding-right: 16px; }
  .header-row { padding-top: 10px; padding-bottom: 10px; }
  .brand img { height: 40px; }
  h1 { font-size: 1.6rem; }
  .nav-toggle { display: block; }
  .main-nav { display: none; flex-basis: 100%; }
  body.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 10px 4px; border-top: 1px solid var(--line); white-space: normal; }
  .main-nav .sub { display: block; position: static; box-shadow: none; border-top: 0; background: #f6f9fc; }
  .main-nav .sub a { padding-left: 20px; }
  .main-nav .nav-phone a { padding-left: 4px; }
  .page-content img.right, .page-content img.left { float: none; margin: 12px 0; max-width: 100%; }
  .page-content table { display: block; overflow-x: auto; }
  .hero { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .hero img { max-width: 160px; }
  .hero h1, .hero h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .brand img { height: 34px; }
  .header-phone span { display: none; }
}
@media print { .site-header, .site-footer, .admin-bar { display: none; } }

/* ---------- CallPro: tarifní karty ---------- */
.tarify { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 20px 0 28px; }
.tarif { border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.tarif h3 { margin: 0; padding: 14px 18px; background: var(--blue); color: #fff; font-size: 1.15rem; }
.tarif.zvyraznit h3 { background: var(--blue-dark); }
.tarif .cena { padding: 14px 18px 4px; font-size: 1.9rem; font-weight: 800; color: var(--blue-dark); line-height: 1; }
.tarif .cena small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.tarif ul { list-style: none; margin: 0; padding: 8px 18px 14px; flex: 1; }
.tarif li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.tarif li:last-child { border-bottom: 0; }
.tarif li b { white-space: nowrap; }
.tarif .pozn { padding: 0 18px 14px; color: var(--muted); font-size: .85rem; }
.tarif .btn { margin: 0 18px 18px; text-align: center; }
.tiers .tile h3 { color: var(--blue-dark); }
.tiers .tile ul { margin: 0 16px 12px; padding-left: 18px; font-size: .93rem; }
.tiers .tile .cenik { margin: 0 16px 14px; width: auto; font-size: .9rem; }
.tiers .tile .cenik td { padding: 4px 6px; }
.tiers .tile .stitek { display: inline-block; background: var(--blue-light); color: var(--blue-dark); font-weight: 600; font-size: .8rem; padding: 2px 10px; border-radius: 12px; margin: 0 16px 14px; }
.zarizeni { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.zarizeni img { width: 120px; height: auto; border-radius: 6px; }
.zarizeni h3 { margin: 0 0 6px; }
.zarizeni .cena { font-weight: 700; color: var(--blue-dark); }
.manualy { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.manualy a { display: block; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-decoration: none; color: var(--text); font-size: .9rem; }
.manualy a:hover { border-color: var(--blue); }
.manualy img { height: 110px; width: auto; max-width: 100%; object-fit: contain; display: block; margin: 0 auto 8px; }
@media (max-width: 600px) { .zarizeni { grid-template-columns: 1fr; } .zarizeni img { width: 160px; } }

/* ---------- formuláře objednávek ---------- */
.order-form { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; margin: 16px 0 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.form-field.wide, .form-section, .form-html { grid-column: 1 / -1; }
.form-section { margin: 18px 0 2px; padding-bottom: 4px; border-bottom: 2px solid var(--blue-light); font-size: 1.1rem; }
.form-field label, .form-field .form-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; color: var(--blue-dark); }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=tel], .form-field input[type=number], .form-field textarea { width: 100%; padding: 9px 12px; border: 1px solid #c3cdd8; border-radius: 6px; font: inherit; background: #fff; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error .choices { outline: 2px solid #dc2626; border-radius: 6px; }
.field-error { color: #b91c1c; font-size: .85rem; margin-top: 4px; font-weight: 600; }
.field-note { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.choices { display: flex; flex-direction: column; gap: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; padding: 6px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.choice:hover { border-color: var(--accent); }
.choice input { margin-top: 4px; flex: 0 0 auto; }
.req { color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: #fde2e1; color: #8a1c1c; padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; font-weight: 600; grid-column: 1 / -1; }
.form-success { background: #d9f2e3; color: #14603a; padding: 16px 20px; border-radius: 8px; margin: 16px 0; font-size: 1.05rem; }
.form-submit .btn { font-size: 1.05rem; padding: 12px 28px; }
.small { font-size: .85rem; }
[data-show-if].is-hidden { display: none; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .order-form { padding: 14px; } }
