/* =========================================================
   multimedialni-kiosky.cz – facelift 2026 (přepisuje Bootstrap 2.3 + app.css)
   ========================================================= */
:root {
  --fl-red: #b3191e;
  --fl-red-dark: #8c1418;
  --fl-ink: #1d2025;
  --fl-muted: #5f6670;
  --fl-line: #e4e6ea;
  --fl-bg: #f5f6f8;
  --fl-radius: 12px;
  --fl-shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
  --fl-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- základ ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fl-font) !important;
  font-size: 16px; line-height: 1.65; color: var(--fl-ink);
  background: #fff !important;
}
p, li, td, .popis, .excerpt, .obsah, .obsah p { text-align: left !important; }
a { color: var(--fl-red); }
a:hover, a:focus { color: var(--fl-red-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, .homesection h2 {
  font-family: var(--fl-font) !important;
  color: var(--fl-ink); letter-spacing: -.01em; text-transform: none;
}
h1 { font-size: 34px; line-height: 1.2; font-weight: 700; margin: 8px 0 16px; }
h2 { font-size: 26px; line-height: 1.25; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 650; }
h4 { font-size: 17px; font-weight: 650; }
.container { max-width: 1170px; }

/* ---------- hlavička ---------- */
#header { background: #fff !important; box-shadow: 0 1px 0 var(--fl-line); position: relative; z-index: 30; }
#header .headerbgimage { background: none !important; height: auto !important; min-height: 0 !important; }
#header .headerelements.fl-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: auto !important; min-height: 0 !important; padding: 18px 0; position: static !important;
}
#header #logo { position: static !important; margin: 0 !important; float: none !important; }
#header #logo img { width: 260px; height: auto; display: block; }
#header .headerbadge { display: none !important; }
.fl-header-contact { display: flex; align-items: center; gap: 18px; }
.fl-phone { font-weight: 650; color: var(--fl-ink) !important; font-size: 16px; text-decoration: none !important; white-space: nowrap; }
.fl-phone:before { content: "☎"; color: var(--fl-red); margin-right: 6px; }

/* navigace */
#header .navcontainer { background: var(--fl-red) !important; background-image: none !important; position: relative !important; top: auto !important; border: 0 !important; }
#header .navbar, #header .navbar-inner {
  background: transparent !important; background-image: none !important; border: 0 !important;
  box-shadow: none !important; filter: none !important; min-height: 48px; margin: 0;
}
#header .navbar .nav > li > a {
  color: #fff !important; text-shadow: none !important; font-size: 15px; font-weight: 550;
  padding: 14px 16px; background: transparent !important;
}
#header .navbar .nav > li > a:hover, #header .navbar .nav > .active > a, #header .navbar .nav li.dropdown.open > a {
  background: rgba(0,0,0,.18) !important; color: #fff !important; box-shadow: none !important;
}
#header .navbar .nav li.dropdown > .dropdown-toggle .caret { border-top-color: #fff !important; border-bottom-color: #fff !important; }
#header .dropdown-menu { border-radius: 10px; border: 1px solid var(--fl-line); box-shadow: var(--fl-shadow); padding: 6px 0; }
#header .dropdown-menu > li > a { padding: 8px 18px; color: var(--fl-ink); font-size: 15px; }
#header .dropdown-menu > li > a:hover { background: var(--fl-bg) !important; color: var(--fl-red) !important; }
#header .menutext a, #header .brand a { color: #fff !important; text-shadow: none !important; }
#header .btn-navbar { background: rgba(0,0,0,.2) !important; border: 0 !important; box-shadow: none !important; }

/* pravý pruh ikon softwaru – pryč, software je v menu */
.swiconsrightedge-container, .swiconsrightedge { display: none !important; }

/* ---------- obsah ---------- */
.breadcrumbs { font-size: 13px; color: var(--fl-muted); margin: 18px 0 4px; }
.breadcrumbs a { color: var(--fl-muted); }
.obsah { background: #fff !important; padding-top: 8px; padding-bottom: 40px; }
.well { background: var(--fl-bg); border: 1px solid var(--fl-line); border-radius: var(--fl-radius); box-shadow: none; }

/* karty produktů a referencí */
.row:has(> .kiosk-thumbnail), .row:has(> .reference-thumbnail) { display: flex; flex-wrap: wrap; }
.kiosk-thumbnail, .reference-thumbnail {
  background: #fff !important; border: 1px solid var(--fl-line) !important; border-radius: var(--fl-radius) !important;
  box-shadow: var(--fl-shadow) !important; padding: 16px !important; margin-bottom: 22px !important;
  transition: transform .15s ease, box-shadow .15s ease; box-sizing: border-box;
}
.kiosk-thumbnail:hover, .reference-thumbnail:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,24,40,.12) !important; }
.kiosk-thumbnail h3, .kiosk-thumbnail h2, .reference-thumbnail h3, .reference-thumbnail h2 { font-size: 18px; margin-top: 0; }
.kiosk-thumbnail .popis, .reference-thumbnail .popis { color: var(--fl-muted); font-size: 14.5px; }
.kiosk-thumbnail img, .reference-thumbnail img, .kioskbigphoto img, .thumbnail img { border-radius: 8px; }
.thumbnail { border-radius: 10px !important; border-color: var(--fl-line) !important; box-shadow: none !important; }
.kioskbigphoto { background: #fff; border: 1px solid var(--fl-line); border-radius: var(--fl-radius); padding: 12px; box-shadow: var(--fl-shadow); }

/* boční menu kategorií */
.sidebar h2, .sidebar h3 { font-size: 20px; }
.nav-sidebar > li > a, .nav-pills.nav-stacked > li > a {
  border-radius: 8px !important; background: var(--fl-bg) !important; color: var(--fl-ink) !important;
  border: 1px solid var(--fl-line); margin-bottom: 6px; padding: 10px 14px; text-shadow: none !important;
}
.nav-sidebar > li.current-cat > a, .nav-sidebar > li > a:hover, .nav-pills.nav-stacked > .active > a {
  background: var(--fl-red) !important; color: #fff !important; border-color: var(--fl-red);
}

/* ---------- tlačítka ---------- */
.btn {
  border-radius: 8px !important; background-image: none !important; text-shadow: none !important;
  box-shadow: none !important; font-weight: 600; padding: 8px 16px; font-family: var(--fl-font);
}
.btn-large { padding: 13px 24px; font-size: 16px; }
.btn-danger { background: var(--fl-red) !important; border: 1px solid var(--fl-red) !important; color: #fff !important; }
.btn-danger:hover, .btn-danger:focus { background: var(--fl-red-dark) !important; border-color: var(--fl-red-dark) !important; }
.btn-inverse { background: #fff !important; color: var(--fl-red) !important; border: 1.5px solid var(--fl-red) !important; }
.btn-inverse:hover { background: var(--fl-red) !important; color: #fff !important; }
.fl-btn-ghost { background: #fff !important; color: var(--fl-ink) !important; border: 1.5px solid #c9ced6 !important; }
.fl-btn-ghost:hover { border-color: var(--fl-ink) !important; }

/* ---------- formuláře ---------- */
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form input[type=tel], .wpcf7-form textarea {
  width: 100%; max-width: 560px; box-sizing: border-box; height: auto; padding: 10px 12px; font-size: 15px;
  border: 1px solid #cfd4db; border-radius: 8px; box-shadow: none; font-family: var(--fl-font);
}
.wpcf7-form input[size="10"], .wpcf7-form input[size="4"], .wpcf7-form input[size="2"] { max-width: 180px; display: inline-block; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: var(--fl-red); outline: 0; box-shadow: 0 0 0 3px rgba(179,25,30,.15); }
.wpcf7-form h3 { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--fl-line); font-size: 19px; color: var(--fl-red); }
.wpcf7-list-item { display: block; margin: 4px 0; }
.wpcf7-list-item input { margin: 0 8px 0 0; }
.wpcf7-form input[type=submit], .wpcf7-form button[type=submit] {
  background: var(--fl-red) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important;
  padding: 13px 30px !important; font-size: 16px; font-weight: 650; cursor: pointer;
}
.modal { border-radius: 14px; }

/* ---------- patička ---------- */
.container > .row > .span12.text-center > img[src*="home_spodek"] { opacity: .9; margin-top: 30px; }
#footer { background: #1d2025 !important; background-image: none !important; color: #c3c8cf; padding: 40px 0 28px; margin-top: 0; }
#footer h4 { color: #fff !important; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
#footer a { color: #dfe3e8 !important; }
#footer a:hover { color: #fff !important; text-decoration: underline; }
#footer ul { list-style: none; margin: 0; }
#footer li { margin: 3px 0; font-size: 14.5px; }
#footer .textwidget { font-size: 14.5px; line-height: 1.8; }

/* ---------- nová úvodní stránka ---------- */
.fl-hero { background: linear-gradient(180deg, #fff 0%, #f1f2f4 100%); padding: 46px 0 0; border-bottom: 1px solid var(--fl-line); }
.fl-hero .container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.fl-eyebrow { color: var(--fl-red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0 0 8px; text-align: center !important; }
.fl-hero h1 { font-size: 44px; line-height: 1.12; max-width: 820px; margin: 0 auto 14px; }
.fl-hero .fl-lead { font-size: 18.5px; color: var(--fl-muted); max-width: 760px; margin: 0 auto 24px; text-align: center !important; }
.fl-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.fl-hero-img { width: 100%; max-width: 940px; }
.fl-hero-img img { display: block; width: 100%; mix-blend-mode: multiply; }

.fl-section { padding: 56px 0; }
.fl-section-alt { background: var(--fl-bg); }
.fl-section h2 { text-align: center; margin: 0 0 8px; }
.fl-section .fl-sub { text-align: center !important; color: var(--fl-muted); max-width: 720px; margin: 0 auto 34px; }
.fl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fl-card {
  background: #fff; border: 1px solid var(--fl-line); border-radius: 16px; box-shadow: var(--fl-shadow);
  padding: 26px 24px; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.fl-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16,24,40,.12); }
.fl-card-img { height: 190px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--fl-bg); border-radius: 12px; }
.fl-card-img img { max-height: 170px; width: auto; }
.fl-card h3 { margin: 0 0 8px; }
.fl-card p { color: var(--fl-muted); font-size: 15px; flex: 1; }
.fl-card .fl-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.fl-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.fl-split img { border-radius: 16px; box-shadow: var(--fl-shadow); width: 100%; }
.fl-split h2 { text-align: left; }
.fl-checks { list-style: none; margin: 16px 0 22px; padding: 0; }
.fl-checks li { padding-left: 28px; position: relative; margin: 8px 0; }
.fl-checks li:before { content: "✓"; position: absolute; left: 0; color: var(--fl-red); font-weight: 800; }

.fl-cta-band { background: var(--fl-red); color: #fff; padding: 44px 0; }
.fl-cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fl-cta-band h2 { color: #fff; margin: 0 0 6px; text-align: left; }
.fl-cta-band p { margin: 0; color: rgba(255,255,255,.9); }
.fl-cta-band a:not(.btn) { color: #fff; font-weight: 650; }
.fl-cta-band .btn { background: #fff !important; color: var(--fl-red) !important; border: 0 !important; }
.fl-cta-band .btn:hover { background: #f2f2f2 !important; }

/* ---------- mobil ---------- */
@media (max-width: 979px) {
  #header .headerelements.fl-header { padding: 12px 16px; }
  #header #logo img { width: 200px; }
  .fl-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body { padding-left: 0 !important; padding-right: 0 !important; }
  .container, .obsah, .fl-section .container { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  .fl-phone { display: none; }
  .fl-header-cta { padding: 8px 12px !important; font-size: 14px; }
  #header #logo img { width: 170px; }
  .fl-hero { padding-top: 30px; }
  .fl-hero h1 { font-size: 30px; }
  .fl-hero .fl-lead { font-size: 16.5px; }
  .fl-cards, .fl-split { grid-template-columns: 1fr; }
  .fl-section { padding: 40px 0; }
  .row:has(> .kiosk-thumbnail), .row:has(> .reference-thumbnail) { display: block; }
  #footer { padding: 28px 16px; }
  .container > .row > .span12.text-center > img[src*="home_spodek"] { display: none; }
}

/* ---------- opravy po kontrole ---------- */
#header { height: auto !important; }
.kiosk-thumbnail, .reference-thumbnail { color: var(--fl-ink) !important; min-height: 0 !important; }
.kiosk-thumbnail h2, .reference-thumbnail h2 { font-size: 17px !important; line-height: 1.3 !important; margin: 4px 0 6px 0 !important; height: auto !important; }
.kiosk-thumbnail h2 a, .kiosk-thumbnail h2 a:link, .kiosk-thumbnail h2 a:visited,
.reference-thumbnail h2 a, .reference-thumbnail h2 a:link, .reference-thumbnail h2 a:visited { color: var(--fl-ink) !important; }
.kiosk-thumbnail h2 a:hover, .reference-thumbnail h2 a:hover { color: var(--fl-red) !important; }
.kiosk-thumbnail .popis, .reference-thumbnail .popis { margin: 0 0 10px 0 !important; color: var(--fl-muted) !important; }
.kiosk-thumbnail .popis p { font-size: 13.5px !important; line-height: 1.5; }
.kiosk-thumbnail .popis a, .reference-thumbnail .popis a { color: var(--fl-muted) !important; }
.kiosk-thumbnail .img img { border: 0 !important; }
.kiosk-thumbnail .btn, .reference-thumbnail .btn { margin-left: 0 !important; }
.sidebar h3 { font-size: 20px !important; font-weight: 700 !important; color: var(--fl-ink) !important; margin: 4px 0 14px !important; line-height: 1.3 !important; }
h1 { color: var(--fl-ink); font-weight: 700 !important; }
.breadcrumbs { border-left: 0 !important; padding-left: 0 !important; }
.breadcrumbs a, .breadcrumbs strong { padding: 0 6px 0 0 !important; font-size: 13px !important; }
.breadcrumbs a:hover { background: none !important; color: var(--fl-red) !important; }
.breadcrumbs strong { color: var(--fl-muted) !important; }
.kiosk-thumbnail .span2 { float: none !important; width: auto !important; margin-left: 0 !important; }
.kiosk-thumbnail .span2.img { text-align: center; background: var(--fl-bg); border-radius: 10px; padding: 10px; margin-bottom: 12px !important; }
.kiosk-thumbnail .span2.img img { max-height: 200px; width: auto; }
@media (max-width: 979px) { #header .menutext.brand { visibility: hidden; } }

/* ---------- výpis kiosků: mřížka dlaždic, text přes celou šířku ---------- */
.row:has(> .kiosk-thumbnail) {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin-left: 0 !important; margin-bottom: 20px;
}
.row:has(> .kiosk-thumbnail):before, .row:has(> .kiosk-thumbnail):after { display: none !important; }
.kiosk-thumbnail { width: auto !important; float: none !important; margin: 0 !important; display: flex; padding: 14px !important; }
.kiosk-thumbnail > .row { margin: 0 !important; width: 100% !important; display: flex; flex-direction: column; }
.kiosk-thumbnail > .row:before, .kiosk-thumbnail > .row:after { display: none !important; }
.kiosk-thumbnail .span2 { width: 100% !important; }
.kiosk-thumbnail .span2:not(.img) { display: flex; flex-direction: column; flex: 1; }
.kiosk-thumbnail .span2.img img { max-height: 170px; }
.kiosk-thumbnail .popis { flex: 1; }
.kiosk-thumbnail .popis p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.kiosk-thumbnail .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 979px) { .row:has(> .kiosk-thumbnail) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .row:has(> .kiosk-thumbnail) { grid-template-columns: 1fr; } }

/* rozbalovací menu – světlé pozadí, čitelné položky */
#header .dropdown-menu { background: #fff !important; border: 1px solid var(--fl-line) !important; }
#header .navbar .nav > li > .dropdown-menu:before { border-bottom-color: var(--fl-line) !important; }
#header .navbar .nav > li > .dropdown-menu:after { border-bottom-color: #fff !important; }
#header .dropdown-menu > li > a { color: var(--fl-ink) !important; background: transparent !important; }
#header .dropdown-menu > li > a:hover, #header .dropdown-menu > li > a:focus { background: var(--fl-bg) !important; color: var(--fl-red) !important; }
@media (max-width: 979px) {
  #header .nav-collapse .dropdown-menu { background: transparent !important; border: 0 !important; box-shadow: none !important; }
  #header .nav-collapse .dropdown-menu > li > a { color: #fff !important; padding-left: 30px; }
  #header .nav-collapse .dropdown-menu > li > a:hover { background: rgba(0,0,0,.18) !important; color: #fff !important; }
}

/* patička – širší sloupce bez zalamování */
#footer .container > .row { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 48px; margin-left: 0; }
#footer .container > .row:before, #footer .container > .row:after { display: none; }
#footer .container > .row > [class*="span"] { width: auto !important; float: none !important; margin-left: 0 !important; }
#footer a[href^="mailto:"] { white-space: nowrap; }
@media (max-width: 767px) { #footer .container > .row { grid-template-columns: 1fr; gap: 24px; } }
#footer .container > .row { grid-template-columns: repeat(3, max-content); justify-content: space-between; gap: 40px; }
#footer a { white-space: nowrap; }
@media (max-width: 979px) { #footer .container > .row { grid-template-columns: 1fr 1fr; } #footer a { white-space: normal; } }
@media (max-width: 767px) { #footer .container > .row { grid-template-columns: 1fr; } }

/* závěrečný řádek místo pásu log skupiny */
.fl-credits { background: #15171a; color: #9aa1a9; font-size: 13.5px; padding: 14px 0; text-align: center; }
.fl-credits a { color: #dfe3e8 !important; text-decoration: none; }
.fl-credits a:hover { color: #fff !important; text-decoration: underline; }
