/*
 * ČIRKES CMS – štýly prvkov buildera (sekcie, stĺpce, prvky).
 * Načítava ich web aj plátno buildera. Farby a fonty preberajú z CSS premenných témy.
 */

:root {
  --kb-gap: 32px;
  --kb-container: 1200px;
  --kb-gutter: clamp(16px, 4vw, 32px);
  --kb-line: color-mix(in srgb, var(--kb-text, #1c2226) 14%, transparent);
  --kb-wgap: 20px;
}

/* ---------- Sekcia, kontajner, stĺpce ---------- */

.kb-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
  background-repeat: no-repeat;
}
.kb-section.kb-sva-center { justify-content: center; }
.kb-section.kb-sva-bottom { justify-content: flex-end; }

.kb-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kb-container {
  position: relative;
  width: 100%;
  max-width: calc(var(--kb-container) + 2 * var(--kb-gutter));
  margin: 0 auto;
  padding-left: var(--kb-gutter);
  padding-right: var(--kb-gutter);
}
.kb-full > .kb-container {
  max-width: none;
}
.kb-edge > .kb-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.kb-edge :is(.kb-map, .kb-video, .kb-image img) { border-radius: 0; }

.kb-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--kb-gap);
  align-items: flex-start;
}
.kb-sva-center > .kb-container > .kb-row { align-items: center; }
.kb-sva-bottom > .kb-container > .kb-row { align-items: flex-end; }
.kb-sva-stretch > .kb-container > .kb-row { align-items: stretch; }

.kb-col {
  position: relative;
  flex: 0 0 calc(var(--kb-w, 100) * 1% - var(--kb-gap) * (var(--kb-n, 1) - 1) * var(--kb-w, 100) / 100);
  min-width: 0;
  display: flex;
}
.kb-col-inner {
  display: flex;
  flex-direction: column;
  gap: var(--kb-wgap);
  width: 100%;
  min-width: 0;
}
.kb-cva-center { justify-content: center; }
.kb-cva-bottom { justify-content: flex-end; }
.kb-cva-between { justify-content: space-between; }
.kb-text-left { text-align: left; }
.kb-text-center { text-align: center; }
.kb-text-right { text-align: right; }

.kb-bg-fixed { background-attachment: fixed; }

@media (max-width: 1024px) {
  .kb-stack-t > .kb-container > .kb-row > .kb-col { flex-basis: 100%; }
  .kb-bg-fixed { background-attachment: scroll; }
}
@media (max-width: 767px) {
  .kb-row > .kb-col { flex-basis: 100%; }
  .kb-rev-m > .kb-container > .kb-row { flex-direction: column-reverse; }
}

/* text v sekciách s vlastnou farbou */
.kb-has-color :is(h1, h2, h3, h4, h5, h6, .kb-heading, .kb-ib-title, .kb-counter-num, .kb-text a) { color: inherit; }

/* ---------- Spoločné ---------- */

.kb-w { position: relative; min-width: 0; }
.kb-shadow-sm { box-shadow: 0 1px 2px rgb(16 24 28 / 0.06), 0 2px 6px rgb(16 24 28 / 0.06); }
.kb-shadow-md { box-shadow: 0 4px 10px rgb(16 24 28 / 0.07), 0 12px 28px rgb(16 24 28 / 0.08); }
.kb-shadow-lg { box-shadow: 0 10px 24px rgb(16 24 28 / 0.1), 0 30px 60px rgb(16 24 28 / 0.12); }

.kb-align-left { text-align: left; }
.kb-align-center { text-align: center; }
.kb-align-right { text-align: right; }

.kb-justify-left { justify-content: flex-start; }
.kb-justify-center { justify-content: center; }
.kb-justify-right { justify-content: flex-end; }

@media (min-width: 1025px) { .kb-hide-d { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .kb-hide-t { display: none !important; } }
@media (max-width: 767px) { .kb-hide-m { display: none !important; } }

/* animácie pri posunutí – iba ak používateľ nemá obmedzený pohyb */
@media (prefers-reduced-motion: no-preference) {
  .kb-js .kb-anim { opacity: 0; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .kb-js .kb-anim-fade-up { transform: translateY(28px); }
  .kb-js .kb-anim-zoom { transform: scale(0.94); }
  .kb-js .kb-anim-slide-left { transform: translateX(40px); }
  .kb-js .kb-anim-slide-right { transform: translateX(-40px); }
  .kb-js .kb-anim.kb-in { opacity: 1; transform: none; }
}

/* ---------- Nadpis a text ---------- */

.kb-heading { margin: 0; }
.kb-heading a { color: inherit; text-decoration: none; }
.kb-text > :first-child { margin-top: 0; }
.kb-text > :last-child { margin-bottom: 0; }
.kb-text { column-gap: var(--kb-gap); }
.kb-text ul, .kb-text ol { padding-left: 1.25em; }
.kb-text blockquote {
  margin: 1.2em 0;
  padding: 0.2em 0 0.2em 1.1em;
  border-left: 3px solid var(--kb-accent);
  font-size: 1.1em;
}

/* ---------- Obrázok ---------- */

.kb-image { margin: 0; }
.kb-image img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; border-radius: var(--kb-radius); }
.kb-image a { display: inline-block; max-width: 100%; }
.kb-image.kb-align-center img { margin: 0 auto; }
.kb-image figcaption { margin-top: 10px; font-size: 0.875em; color: var(--kb-muted); }

/* ---------- Tlačidlá ---------- */

.kb-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.kb-buttons.kb-justify-stretch > .kb-btn { flex: 1 1 0; }

.kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--kb-btn-radius, 6px);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.kb-btn .kb-icon { width: 1.1em; height: 1.1em; flex: none; }
.kb-btn-s { padding: 0.55em 1em; font-size: 0.875rem; }
.kb-btn-m { padding: 0.8em 1.4em; font-size: 0.95rem; }
.kb-btn-l { padding: 1em 1.8em; font-size: 1.05rem; }
.kb-btn-block { width: 100%; }

.kb-btn-primary { background: var(--kb-primary); color: #fff; }
.kb-btn-primary:hover { background: color-mix(in srgb, var(--kb-primary) 86%, #000); color: #fff; }
.kb-btn-secondary { background: var(--kb-accent); color: var(--kb-text); }
.kb-btn-secondary:hover { background: color-mix(in srgb, var(--kb-accent) 88%, #000); color: var(--kb-text); }
.kb-btn-outline { background: transparent; color: currentColor; border-color: currentColor; }
.kb-btn-outline:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.kb-btn-light { background: #fff; color: var(--kb-text); }
.kb-btn-light:hover { background: color-mix(in srgb, #fff 88%, var(--kb-text)); color: var(--kb-text); }
.kb-btn-link { background: none; padding-left: 0; padding-right: 0; color: var(--kb-primary); text-decoration: underline; text-underline-offset: 0.25em; }
.kb-has-color .kb-btn-link { color: inherit; }
.kb-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--kb-accent) 70%, transparent); outline-offset: 2px; }

/* ---------- Medzera, oddeľovač ---------- */

.kb-spacer { height: var(--kb-h, 40px); }
@media (max-width: 767px) { .kb-spacer { height: var(--kb-hm, var(--kb-h, 40px)); } }

.kb-divider { display: flex; }
.kb-divider > span { display: block; border-top-color: var(--kb-line); }

/* ---------- Video, mapa, HTML ---------- */

.kb-video { position: relative; width: 100%; overflow: hidden; border-radius: var(--kb-radius); background: #000; }
.kb-video iframe, .kb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kb-map { width: 100%; overflow: hidden; border-radius: var(--kb-radius); background: var(--kb-surface); }
.kb-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Galéria ---------- */

.kb-gallery {
  display: grid;
  grid-template-columns: repeat(var(--kb-cols, 3), minmax(0, 1fr));
  gap: var(--kb-ggap, 12px);
}
.kb-gallery-item { margin: 0; }
.kb-gallery-item a { display: block; overflow: hidden; border-radius: var(--kb-radius); }
.kb-gallery-item img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--kb-radius); transition: transform 0.4s ease; }
.kb-gallery-item a:hover img { transform: scale(1.03); }
.kb-gallery-item figcaption { margin-top: 6px; font-size: 0.85em; color: var(--kb-muted); }
@media (max-width: 767px) { .kb-gallery { grid-template-columns: repeat(var(--kb-cols-m, 2), minmax(0, 1fr)); } }

/* mozaika – fotky si zachovajú pôvodný tvar */
.kb-gallery-masonry { display: block; columns: var(--kb-cols, 3); column-gap: var(--kb-ggap, 12px); }
.kb-gallery-masonry .kb-gallery-item { break-inside: avoid; margin-bottom: var(--kb-ggap, 12px); }
@media (max-width: 767px) { .kb-gallery-masonry { columns: var(--kb-cols-m, 2); } }

/* ---------- Slider / karusel ---------- */

.kb-slider {
  --kb-sl-r: var(--kb-radius);
  --kb-sl-pvt: min(var(--kb-sl-pv, 1), 2);
  position: relative;
  width: 100%;
}
.kb-sl-track {
  display: flex;
  gap: var(--kb-sl-gap, 16px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.kb-sl-track::-webkit-scrollbar { display: none; }
.kb-sl-track:focus-visible { outline: 3px solid color-mix(in srgb, var(--kb-accent) 70%, transparent); outline-offset: 3px; }
.kb-sl-item {
  --pv: var(--kb-sl-pv, 1);
  position: relative;
  flex: 0 0 calc((100% - (var(--pv) - 1) * var(--kb-sl-gap, 16px)) / var(--pv));
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1024px) { .kb-sl-item { --pv: var(--kb-sl-pvt); } }
@media (max-width: 767px) { .kb-sl-item { --pv: var(--kb-sl-pvm, 1); } }
@media (prefers-reduced-motion: reduce) { .kb-sl-track { scroll-behavior: auto; } }

.kb-sl-media { position: relative; overflow: hidden; background: var(--kb-surface); }
.kb-sl-media a { display: block; height: 100%; }
.kb-sl-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* text na fotke */
.kb-sl-over .kb-sl-item {
  height: var(--kb-sl-h, 560px);
  border-radius: var(--kb-sl-r);
  overflow: hidden;
  background: var(--kb-dark, #1c2226);
  color: #fff;
}
.kb-sl-over .kb-sl-media { position: absolute; inset: 0; }
.kb-sl-overlay { position: absolute; inset: 0; pointer-events: none; }
.kb-sl-over .kb-sl-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 88px) clamp(24px, 7vw, 104px);
  pointer-events: none;
}
.kb-sl-over .kb-sl-content :is(a, button) { pointer-events: auto; }
.kb-slider[data-dots="1"].kb-sl-over .kb-sl-content { padding-bottom: max(clamp(28px, 6vw, 88px), 64px); }
.kb-sl-v-top { justify-content: flex-start !important; }
.kb-sl-v-bottom { justify-content: flex-end !important; }
.kb-sl-h-center { align-items: center; text-align: center; }
.kb-sl-h-right { align-items: flex-end; text-align: right; }
.kb-sl-inner { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.kb-sl-h-center .kb-sl-inner { margin: 0 auto; }
.kb-sl-h-right .kb-sl-inner { margin-left: auto; }
.kb-sl-title { margin: 0; color: inherit; font-size: clamp(28px, 4.2vw, 56px); line-height: 1.1; }
.kb-sl-text { font-size: 1.08em; opacity: 0.92; }
.kb-sl-over .kb-sl-title, .kb-sl-over .kb-sl-text { text-shadow: 0 1px 18px rgb(0 0 0 / 0.25); }
.kb-sl-inner .kb-buttons { margin-top: 6px; }

/* text pod fotkou (karusel kariet) */
.kb-sl-below .kb-sl-media { height: var(--kb-sl-h, 560px); border-radius: var(--kb-sl-r); }
.kb-sl-below .kb-sl-content { padding-top: 14px; }
.kb-sl-below .kb-sl-inner { gap: 8px; }
.kb-sl-below .kb-sl-title { font-size: 1.2rem; line-height: 1.3; }
.kb-sl-below .kb-sl-text { color: var(--kb-muted); opacity: 1; }

@media (max-width: 767px) {
  .kb-sl-over .kb-sl-item { height: var(--kb-sl-hm, var(--kb-sl-h, 560px)); }
  .kb-sl-below .kb-sl-media { height: var(--kb-sl-hm, var(--kb-sl-h, 560px)); }
}

/* prelínanie (iba so zapnutým JavaScriptom, inak funguje posúvanie) */
.kb-js .kb-sl-fade .kb-sl-track { display: grid; overflow: hidden; scroll-snap-type: none; }
.kb-js .kb-sl-fade .kb-sl-item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0.8s; }
.kb-js .kb-sl-fade .kb-sl-item.is-active { opacity: 1; visibility: visible; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .kb-js .kb-sl-fade .kb-sl-item { transition: none; } }

/* ovládanie – pridá ho assets/blocks.js */
.kb-sl-arrow {
  position: absolute;
  z-index: 3;
  top: calc(var(--kb-sl-h, 560px) / 2);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--kb-text, #1c2226);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.16);
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.kb-sl-over .kb-sl-arrow { top: 50%; }
.kb-sl-arrow:hover { background: #fff; }
.kb-sl-arrow:disabled { opacity: 0; pointer-events: none; }
.kb-sl-arrow:focus-visible, .kb-sl-dots button:focus-visible, .kb-sl-pause:focus-visible { outline: 3px solid color-mix(in srgb, var(--kb-accent) 80%, transparent); outline-offset: 2px; }
.kb-sl-prev { left: clamp(8px, 1.6vw, 20px); }
.kb-sl-next { right: clamp(8px, 1.6vw, 20px); }
.kb-sl-below .kb-sl-prev { left: 8px; }
.kb-sl-below .kb-sl-next { right: 8px; }
/* karusel bez fotiek (iba text) – šípky na stred */
.kb-sl-below:not(:has(.kb-sl-media)) .kb-sl-arrow { top: 50% !important; transform: translateY(-50%) !important; }
@media (max-width: 767px) {
  .kb-sl-arrow { width: 38px; height: 38px; }
  .kb-sl-arrow svg { width: 18px; height: 18px; }
  .kb-sl-over .kb-sl-arrow { top: auto; bottom: 14px; transform: none; }
  .kb-sl-below .kb-sl-arrow { top: calc(var(--kb-sl-hm, var(--kb-sl-h, 560px)) / 2); }
}
.kb-sl-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  min-height: 24px;
}
.kb-sl-over .kb-sl-bar { position: absolute; z-index: 3; left: 64px; right: 64px; bottom: 16px; margin: 0; }
.kb-sl-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.kb-sl-dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.kb-sl-dots button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--kb-text, #1c2226) 25%, transparent);
  transition: width 0.25s ease, background-color 0.25s ease;
}
.kb-sl-dots button[aria-current="true"]::before { width: 24px; background: var(--kb-primary); }
.kb-sl-over .kb-sl-dots button::before { background: rgb(255 255 255 / 0.5); }
.kb-sl-over .kb-sl-dots button[aria-current="true"]::before { background: #fff; }
.kb-sl-pause {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--kb-text, #1c2226) 10%, transparent);
  color: inherit;
  cursor: pointer;
}
.kb-sl-over .kb-sl-pause { background: rgb(255 255 255 / 0.2); color: #fff; }
.kb-sl-pause svg { width: 14px; height: 14px; }
@media (max-width: 767px) { .kb-sl-over .kb-sl-bar { left: 60px; right: 60px; bottom: 20px; } }

/* ---------- Pred / po ---------- */

.kb-compare {
  --kb-pos: 50%;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--kb-radius);
  background: var(--kb-surface);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  isolation: isolate;
}
.kb-cmp-v { touch-action: pan-x; cursor: ns-resize; }
.kb-cmp-after, .kb-cmp-before { position: absolute; inset: 0; }
.kb-cmp-after img, .kb-cmp-before img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.kb-cmp-h .kb-cmp-before { clip-path: inset(0 calc(100% - var(--kb-pos)) 0 0); }
.kb-cmp-v .kb-cmp-before { clip-path: inset(0 0 calc(100% - var(--kb-pos)) 0); }
.kb-cmp-label {
  position: absolute;
  z-index: 2;
  top: 14px;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  background: rgb(10 14 16 / 0.62);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.kb-cmp-lb { left: 14px; }
.kb-cmp-la { right: 14px; }
.kb-cmp-v .kb-cmp-label { top: auto; left: 14px; right: auto; }
.kb-cmp-v .kb-cmp-lb { top: 14px; }
.kb-cmp-v .kb-cmp-la { bottom: 14px; }
.kb-compare.is-start-b .kb-cmp-lb, .kb-compare.is-end-a .kb-cmp-la { opacity: 0; }
.kb-cmp-handle {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--kb-pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.3);
  outline: none;
}
.kb-cmp-v .kb-cmp-handle { top: var(--kb-pos); bottom: auto; left: 0; right: 0; width: auto; height: 3px; margin: -1.5px 0 0; }
.kb-cmp-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: var(--kb-text, #1c2226);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.25);
  transition: transform 0.15s ease;
}
.kb-compare.is-dragging .kb-cmp-knob, .kb-cmp-handle:hover .kb-cmp-knob { transform: translate(-50%, -50%) scale(1.08); }
.kb-cmp-handle:focus-visible .kb-cmp-knob { outline: 3px solid color-mix(in srgb, var(--kb-accent) 80%, transparent); outline-offset: 2px; }

/* ---------- Box s ikonou / fotkou ---------- */

.kb-iconbox { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.kb-iconbox.kb-align-center { align-items: center; }
.kb-iconbox.kb-align-right { align-items: flex-end; }
.kb-ib-left { flex-direction: row; align-items: flex-start; text-align: left; }
.kb-ib-icon {
  --kb-is: 28px;
  flex: none;
  display: inline-grid;
  place-items: center;
  color: var(--kb-primary);
}
.kb-ib-icon .kb-icon { width: var(--kb-is); height: var(--kb-is); stroke-width: 1.75; }
.kb-ib-square, .kb-ib-circle {
  width: calc(var(--kb-is) * 2);
  height: calc(var(--kb-is) * 2);
  background: var(--kb-ibg, color-mix(in srgb, var(--kb-primary) 9%, transparent));
}
.kb-ib-square { border-radius: var(--kb-radius); }
.kb-ib-circle { border-radius: 50%; }
.kb-ib-title { margin: 0 0 6px; font-size: 1.2rem; }
.kb-ib-title a { color: inherit; text-decoration: none; }
.kb-ib-text { color: var(--kb-muted); }
.kb-has-color .kb-ib-text { color: inherit; opacity: 0.82; }
.kb-ib-img { display: block; width: 100%; }
.kb-ib-img a { display: block; overflow: hidden; border-radius: var(--kb-radius); }
.kb-ib-img img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--kb-radius); transition: transform 0.4s ease; }
.kb-ib-img a:hover img { transform: scale(1.04); }
.kb-ib-left .kb-ib-img { flex: none; width: min(var(--kb-iw, 140px), 40%); }
.kb-ib-img-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  color: var(--kb-muted);
  background: color-mix(in srgb, var(--kb-text) 5%, transparent);
  border: 1px dashed color-mix(in srgb, var(--kb-text) 22%, transparent);
  border-radius: var(--kb-radius);
}
.kb-ib-left .kb-ib-img-empty { aspect-ratio: 1 / 1; }
.kb-ib-img-empty .kb-icon { width: 28px; height: 28px; stroke-width: 1.5; }
@media (prefers-reduced-motion: reduce) { .kb-ib-img img { transition: none; } .kb-ib-img a:hover img { transform: none; } }

/* ---------- Zoznam ---------- */

.kb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--kb-lgap, 10px); }
.kb-list-cols { grid-template-columns: repeat(var(--kb-lcols, 2), minmax(0, 1fr)); column-gap: var(--kb-gap); }
@media (max-width: 767px) { .kb-list-cols { grid-template-columns: 1fr; } }
.kb-list li { display: flex; gap: 0.65em; align-items: flex-start; }
.kb-list-icon { flex: none; color: var(--kb-primary); display: inline-flex; margin-top: 0.15em; }
.kb-list-icon .kb-icon { width: 1.15em; height: 1.15em; }

/* ---------- Počítadlo ---------- */

.kb-counter-num {
  font-family: var(--kb-font-heading);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--kb-primary);
}
.kb-counter-label { margin-top: 10px; color: var(--kb-muted); }
.kb-has-color .kb-counter-label { color: inherit; opacity: 0.82; }

/* ---------- Akordeón / FAQ ---------- */

.kb-accordion { display: flex; flex-direction: column; }
.kb-acc-item { border-bottom: 1px solid var(--kb-line); }
.kb-acc-lines .kb-acc-item:first-child { border-top: 1px solid var(--kb-line); }
.kb-acc-boxed { gap: 10px; }
.kb-acc-boxed .kb-acc-item { border: 1px solid var(--kb-line); border-radius: var(--kb-radius); padding: 0 18px; background: var(--kb-bg); }
.kb-acc-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.kb-acc-title::-webkit-details-marker { display: none; }
.kb-acc-title .kb-icon { flex: none; width: 20px; height: 20px; transition: transform 0.2s ease; color: var(--kb-muted); }
.kb-acc-item[open] .kb-acc-title .kb-icon { transform: rotate(180deg); }
.kb-acc-body { padding: 0 0 20px; color: var(--kb-muted); }

/* ---------- Karty článkov ---------- */

.kb-cards {
  display: grid;
  grid-template-columns: repeat(var(--kb-cols, 3), minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px) var(--kb-gap);
}
@media (max-width: 1024px) { .kb-cards { grid-template-columns: repeat(min(var(--kb-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 640px) { .kb-cards { grid-template-columns: 1fr; } }
.kb-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.kb-card-media { display: block; overflow: hidden; border-radius: var(--kb-radius); aspect-ratio: 3 / 2; background: var(--kb-surface); }
.kb-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.kb-card:hover .kb-card-media img { transform: scale(1.03); }
.kb-card-body { display: flex; flex-direction: column; gap: 8px; }
.kb-card-meta { font-size: 0.85rem; color: var(--kb-muted); }
.kb-card-title { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.kb-card-title a { color: inherit; text-decoration: none; }
.kb-card-title a:hover { color: var(--kb-primary); }
.kb-card-text { margin: 0; color: var(--kb-muted); }
.kb-more { margin-top: clamp(24px, 3vw, 40px); text-align: center; }
.kb-empty { color: var(--kb-muted); padding: 24px; border: 1px dashed var(--kb-line); border-radius: var(--kb-radius); text-align: center; }

/* ---------- Referencie ---------- */

.kb-project-grid {
  display: grid;
  grid-template-columns: repeat(var(--kb-cols, 3), minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px) var(--kb-gap);
}
@media (max-width: 1024px) { .kb-project-grid { grid-template-columns: repeat(min(var(--kb-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 640px) { .kb-project-grid { grid-template-columns: 1fr; } }
.kb-project { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
.kb-project[hidden] { display: none; }
.kb-project-media { display: block; overflow: hidden; border-radius: var(--kb-radius); aspect-ratio: 4 / 3; background: var(--kb-surface); }
.kb-project-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.kb-project:hover .kb-project-media img { transform: scale(1.04); }
.kb-project-body { display: flex; flex-direction: column; gap: 4px; }
.kb-project-title { font-family: var(--kb-font-heading); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.kb-project:hover .kb-project-title { color: var(--kb-primary); }
.kb-project-meta { font-size: 0.9rem; color: var(--kb-muted); }

.kb-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.kb-filter button, .chips a {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5em 1em;
  border: 1px solid var(--kb-line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.kb-filter button:hover, .chips a:hover { border-color: var(--kb-primary); color: var(--kb-primary); }
.kb-filter button.is-active, .chips a.is-active { background: var(--kb-primary); border-color: var(--kb-primary); color: #fff; }

/* ---------- Formulár ---------- */

.kb-form { width: 100%; }
.kb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.kb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kb-field-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .kb-form-grid { grid-template-columns: 1fr; } }
.kb-field > label:not(.kb-check) { font-size: 0.9rem; font-weight: 600; }
.kb-req { color: #b42318; }
.kb-form input:not([type="checkbox"]):not([type="radio"]),
.kb-form textarea,
.kb-form select {
  width: 100%;
  font: inherit;
  color: var(--kb-text);
  background: var(--kb-bg);
  border: 1px solid color-mix(in srgb, var(--kb-text) 22%, transparent);
  border-radius: var(--kb-radius);
  padding: 0.75em 0.9em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kb-form textarea { resize: vertical; min-height: 140px; }
.kb-form select {
  appearance: none;
  padding-right: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e686c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
}
.kb-form input:focus, .kb-form textarea:focus, .kb-form select:focus {
  outline: none;
  border-color: var(--kb-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kb-primary) 18%, transparent);
}
.kb-form .is-invalid input, .kb-form .is-invalid textarea, .kb-form .is-invalid select { border-color: #b42318; }
.kb-field-error { font-size: 0.85rem; color: #b42318; }
.kb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; line-height: 1.45; cursor: pointer; }
.kb-check input { width: 18px; height: 18px; margin: 0.1em 0 0; flex: none; accent-color: var(--kb-primary); }
.kb-form-actions { margin-top: 22px; }
.kb-form-msg { margin-top: 14px; font-weight: 500; }
.kb-form-msg:empty { display: none; }
.kb-form-msg.is-ok { padding: 14px 16px; border-radius: var(--kb-radius); background: color-mix(in srgb, #1e7a4f 10%, transparent); color: #135c3a; }
.kb-form-msg.is-error { padding: 14px 16px; border-radius: var(--kb-radius); background: color-mix(in srgb, #b42318 9%, transparent); color: #8f1c13; }
.kb-form.is-sent .kb-form-grid, .kb-form.is-sent .kb-form-actions { display: none; }
.kb-form button[disabled] { opacity: 0.7; cursor: progress; }

/* príloha – fotky a PDF (správanie v assets/blocks.js) */
.kb-file { position: relative; }
/* bez JavaScriptu (alebo v starom prehliadači) ostane bežné pole na výber súborov */
.kb-file:not(.is-enhanced) .kb-file-box { align-items: flex-start; padding: 6px 0 0; border: 0; background: none; text-align: left; }
.kb-file:not(.is-enhanced) .kb-file-box > :not(.kb-file-hint) { display: none; }
.kb-form .kb-file:not(.is-enhanced) input[type="file"] { padding: 10px; cursor: pointer; }
.kb-form .kb-file.is-enhanced input[type="file"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; font-size: 0; }
.kb-file-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 20px 16px; text-align: center; color: var(--kb-muted);
  border: 1.5px dashed color-mix(in srgb, var(--kb-text) 24%, transparent); border-radius: var(--kb-radius);
  background: color-mix(in srgb, var(--kb-surface) 55%, transparent);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.kb-file-box .kb-icon { color: var(--kb-primary); margin-bottom: 2px; }
.kb-file-text { font-size: 0.95rem; font-weight: 600; color: var(--kb-text); }
.kb-file-hint { font-size: 0.82rem; max-width: 46ch; }
@media (hover: none) { .kb-file-drop { display: none; } } /* na dotykovej obrazovke sa súbory nepresúvajú myšou */
.kb-file:hover .kb-file-box, .kb-file.is-over .kb-file-box { border-color: var(--kb-primary); background: color-mix(in srgb, var(--kb-primary) 6%, transparent); }
.kb-file:focus-within .kb-file-box { outline: 3px solid color-mix(in srgb, var(--kb-primary) 40%, transparent); outline-offset: 2px; }
.kb-file.is-full { display: none; }
.kb-form .is-invalid .kb-file-box { border-color: #b42318; }
.kb-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kb-file-list[hidden] { display: none; }
.kb-file-list li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 8px 7px 7px; border: 1px solid var(--kb-line); border-radius: var(--kb-radius); background: var(--kb-bg); color: var(--kb-text); font-size: 0.9rem; }
.kb-file-thumb { flex: none; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: max(2px, calc(var(--kb-radius) / 2)); background: var(--kb-surface); color: var(--kb-primary); }
.kb-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kb-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-file-size { flex: none; color: var(--kb-muted); font-size: 0.82rem; }
.kb-file-del { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--kb-muted); cursor: pointer; }
.kb-file-del:hover, .kb-file-del:focus-visible { background: color-mix(in srgb, #b42318 10%, transparent); color: #b42318; }
.kb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Lightbox ---------- */

.kb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: rgb(10 14 16 / 0.95);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.kb-lightbox.is-open { opacity: 1; }
.kb-lightbox[hidden] { display: none; }
.kb-lb-stage { position: relative; display: grid; place-items: center; padding: 60px 72px 12px; min-height: 0; overflow: hidden; touch-action: none; }
.kb-lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: transform;
}
.kb-lb-stage img.is-loaded { opacity: 1; }
.kb-lightbox.is-zoomed .kb-lb-stage img { cursor: grab; transition: opacity 0.25s ease; }
.kb-lightbox.is-panning .kb-lb-stage img { cursor: grabbing; }
.kb-lightbox.is-swiping .kb-lb-stage img { transition: none; }
.kb-lb-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgb(255 255 255 / 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: kb-spin 0.8s linear infinite;
  pointer-events: none;
}
.kb-lb-spin[hidden] { display: none; }
@keyframes kb-spin { to { transform: rotate(360deg); } }
.kb-lb-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 16px 16px; font-size: 0.92rem; }
.kb-lb-meta { display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 22px; text-align: center; }
.kb-lb-count { opacity: 0.7; font-variant-numeric: tabular-nums; }
.kb-lb-thumbs { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.kb-lb-thumbs::-webkit-scrollbar { display: none; }
.kb-lb-thumbs[hidden] { display: none; }
.kb-lb-thumbs button {
  flex: none;
  width: 64px;
  height: 46px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.08);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.kb-lb-thumbs button:hover { opacity: 0.85; }
.kb-lb-thumbs button[aria-current="true"] { opacity: 1; border-color: #fff; }
.kb-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kb-lb-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 2; }
.kb-lb-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  cursor: pointer;
}
.kb-lb-btn:hover { background: rgb(255 255 255 / 0.2); }
.kb-lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.kb-lb-btn[hidden] { display: none; }
.kb-lb-btn.is-active { background: rgb(255 255 255 / 0.28); }
.kb-lb-prev, .kb-lb-next { position: absolute; z-index: 2; top: calc(50% - 40px); transform: translateY(-50%); }
.kb-lb-prev { left: 12px; }
.kb-lb-next { right: 12px; }
@media (max-width: 640px) {
  .kb-lb-stage { padding: 64px 0 8px; }
  .kb-lb-prev, .kb-lb-next { display: none; }
  .kb-lb-thumbs button { width: 52px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .kb-lightbox, .kb-lb-stage img { transition: none; }
}

/* ---------- Ochrana formulárov ---------- */
.kb-captcha { margin-top: 18px; min-height: 0; }
.kb-captcha[hidden] { display: none; }
.kb-captcha-note { margin: 14px 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--kb-muted); }
.kb-captcha-note a { color: inherit; }
.grecaptcha-badge { visibility: hidden !important; }
.kb-form.is-sent :is(.kb-captcha, .kb-captcha-note) { display: none; }

/* ---------- Hlavička a päta z buildera ---------- */

.kb-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.kb-hdr { position: relative; z-index: 60; background: var(--kb-bg); transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.kb-hdr .kb-section { padding-top: 12px; padding-bottom: 12px; }
.kb-hdr-sticky { position: sticky; top: 0; }
html:has(.kb-hdr-sticky) { scroll-padding-top: calc(var(--kb-hdr-h, 0px) + 12px); }
.kb-hdr.is-scrolled { background: var(--kb-hdr-sbg, var(--kb-bg)); }
.kb-hdr-shadow.is-scrolled { box-shadow: 0 6px 24px rgb(16 24 28 / 0.09); }
/* priehľadná nad prvou sekciou – zapne ju assets/blocks.js (bez JavaScriptu je hlavička bežná) */
.kb-hdr-overlay.is-ready { margin-bottom: calc(-1 * var(--kb-hdr-h, 0px)); }
.kb-hdr.is-over { background: transparent; --kb-hdr-fg: var(--kb-hdr-ov, #fff); color: var(--kb-hdr-fg); }
.kb-hdr.is-over .kb-section { background-color: transparent !important; background-image: none !important; }
.kb-hdr.is-over .kb-section > .kb-overlay { display: none; }
.kb-hdr.is-over :is(.kb-logo, .kb-search, .kb-contact, .kb-heading, .kb-text, .kb-text a) { color: var(--kb-hdr-fg) !important; }
.kb-hdr.is-over :is(.kb-menu, .kb-langs) { --kb-menu-c: var(--kb-hdr-fg) !important; --kb-menu-bc: var(--kb-hdr-fg) !important; --kb-langs-c: var(--kb-hdr-fg) !important; --kb-langs-ac: var(--kb-hdr-fg) !important; }
.kb-hdr.is-over .kb-social-plain { --kb-soc-c: var(--kb-hdr-fg) !important; }
.kb-hdr.is-over .kb-langs a.is-current { text-decoration: underline; text-underline-offset: 4px; }
.kb-logo-alt { display: none !important; }
.kb-hdr.is-over .kb-logo:has(.kb-logo-alt) > .kb-logo-img:not(.kb-logo-alt) { display: none !important; }
.kb-hdr.is-over .kb-logo-alt { display: block !important; }
.kb-ftr { background: var(--kb-bg); }

/* prvky v stĺpci vedľa seba */
.kb-col-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start !important; column-gap: 16px; }
.kb-col-row.kb-text-center { justify-content: center !important; }
.kb-col-row.kb-text-right { justify-content: flex-end !important; }
.kb-col-row > .kb-w { flex: 0 1 auto; }

@media (max-width: 767px) {
  .kb-nostack > .kb-container > .kb-row { flex-wrap: nowrap; }
  .kb-nostack > .kb-container > .kb-row > .kb-col { flex: 1 1 auto; width: auto; }
}
/* riadok s hamburgerom: stĺpce podľa obsahu, stĺpec s hamburgerom úzky a na koniec (okrem menu v prvom stĺpci) */
@media (max-width: 1024px) {
  .kb-nostack:has(.kb-menu-bp-t) > .kb-container > .kb-row { flex-wrap: nowrap; }
  .kb-nostack:has(.kb-menu-bp-t) > .kb-container > .kb-row > .kb-col { flex: 1 1 auto; width: auto; }
  .kb-nostack > .kb-container > .kb-row > .kb-col:has(> .kb-col-inner > .kb-w-menu .kb-menu-bp-t) { flex: 0 0 auto; }
  .kb-nostack > .kb-container > .kb-row > .kb-col:not(:first-child):has(> .kb-col-inner > .kb-w-menu .kb-menu-bp-t) { order: 9; }
}
@media (max-width: 767px) {
  .kb-nostack > .kb-container > .kb-row > .kb-col:has(> .kb-col-inner > .kb-w-menu .kb-menu-bp-m) { flex: 0 0 auto; }
  .kb-nostack > .kb-container > .kb-row > .kb-col:not(:first-child):has(> .kb-col-inner > .kb-w-menu .kb-menu-bp-m) { order: 9; }
}

/* logo */
.kb-logo { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; color: var(--kb-text); text-decoration: none; font-family: var(--kb-font-heading); font-weight: 700; font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.02em; }
.kb-logo-img { display: block; height: var(--kb-logo-h, 44px); width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 767px) { .kb-logo-img { height: var(--kb-logo-hm, min(var(--kb-logo-h, 44px), 40px)); } }

/* menu */
.kb-menu { display: flex; align-items: center; font-size: var(--kb-menu-fs, 1rem); font-weight: var(--kb-menu-fw, 500); }
.kb-menu-list, .kb-menu-sub { list-style: none; margin: 0; padding: 0; }
.kb-menu-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--kb-menu-gap, 28px); }
.kb-menu.kb-justify-center, .kb-menu.kb-justify-center .kb-menu-list { justify-content: center; }
.kb-menu.kb-justify-right, .kb-menu.kb-justify-right .kb-menu-list { justify-content: flex-end; }
.kb-menu-list > li { position: relative; display: flex; align-items: center; gap: 2px; }
.kb-menu-list a { color: var(--kb-menu-c, inherit); text-decoration: none; transition: color 0.15s ease; }
.kb-menu-list a:hover, .kb-menu-list .is-active > a, .kb-menu-list .is-parent-active > a { color: var(--kb-menu-hc, var(--kb-primary)); }
.kb-menu-upper .kb-menu-list > li > a { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.92em; }
.kb-menu-sub-toggle { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--kb-menu-c, inherit); cursor: pointer; }
.kb-menu-sub-toggle svg { transition: transform 0.2s ease; }
.kb-menu-h .kb-menu-sub {
  position: absolute; z-index: 30; top: calc(100% + 10px); left: -14px;
  display: none; flex-direction: column; min-width: 230px; padding: 8px;
  background: var(--kb-bg, #fff); color: var(--kb-text); border-radius: var(--kb-radius);
  box-shadow: 0 16px 40px rgb(16 24 28 / 0.14), 0 0 0 1px var(--kb-line);
  text-transform: none; letter-spacing: 0;
}
.kb-menu-h .kb-menu-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.kb-menu-h .has-sub:hover > .kb-menu-sub, .kb-menu-h .has-sub:focus-within > .kb-menu-sub, .kb-menu-h .has-sub.is-open > .kb-menu-sub { display: flex; }
.kb-menu-h .kb-menu-sub a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--kb-text); font-size: 0.95em; }
.kb-menu-h .kb-menu-sub a:hover, .kb-menu-h .kb-menu-sub .is-active > a { background: var(--kb-surface); color: var(--kb-menu-hc, var(--kb-primary)); }
.kb-menu-v .kb-menu-list { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: var(--kb-menu-gap, 10px); }
.kb-menu-v.kb-justify-center .kb-menu-list { align-items: center; }
.kb-menu-v.kb-justify-right .kb-menu-list { align-items: flex-end; }
.kb-menu-v .kb-menu-list > li { flex-wrap: wrap; }
.kb-menu-v .kb-menu-sub-toggle { display: none; }
.kb-menu-v .kb-menu-sub { flex-basis: 100%; display: grid; gap: 6px; padding: 6px 0 0 14px; font-size: 0.95em; }
.kb-menu-toggle, .kb-menu-close, .kb-menu-extra { display: none; }
.kb-menu-panel { display: contents; }
.kb-burger { display: grid; gap: 5px; width: 24px; }
.kb-burger span { display: block; height: 2px; border-radius: 2px; background: var(--kb-menu-bc, currentColor); }
.kb-menu-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kb-menu-langs a { display: inline-grid; place-items: center; min-width: 44px; height: 38px; padding: 0 10px; border: 1px solid var(--kb-line); border-radius: 8px; color: var(--kb-text); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.kb-menu-langs a.is-current { background: var(--kb-primary); border-color: transparent; color: #fff; }
html.kb-menu-open { overflow: hidden; }
@media (max-width: 1024px) {
  .kb-menu-bp-t .kb-menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--kb-menu-bc, var(--kb-menu-c, inherit)); cursor: pointer; }
  .kb-menu-bp-t .kb-menu-panel {
    display: flex; flex-direction: column; gap: 24px;
    position: fixed; z-index: 1000; top: 0; right: 0; bottom: 0;
    width: min(380px, 88vw); padding: 76px 28px 32px; overflow-y: auto; overscroll-behavior: contain;
    background: var(--kb-bg, #fff); color: var(--kb-text); text-align: left; font-size: 1.08rem; text-transform: none; letter-spacing: 0;
    box-shadow: 0 0 0 100vmax rgb(10 14 16 / 0);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s, box-shadow 0.3s ease;
  }
  .kb-menu-bp-t.is-open .kb-menu-panel { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgb(10 14 16 / 0.45); }
  .kb-menu-bp-t .kb-menu-close { display: inline-grid; place-items: center; position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; }
  .kb-menu-bp-t .kb-menu-list { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .kb-menu-bp-t .kb-menu-list > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--kb-line); }
  .kb-menu-bp-t .kb-menu-list a { flex: 1; padding: 13px 0; color: var(--kb-text) !important; font-weight: 600; }
  .kb-menu-bp-t .kb-menu-list .is-active > a { color: var(--kb-primary) !important; }
  .kb-menu-bp-t .kb-menu-sub-toggle { width: 44px; height: 44px; color: var(--kb-text) !important; }
  .kb-menu-bp-t .has-sub.is-open > .kb-menu-sub-toggle svg { transform: rotate(180deg); }
  .kb-menu-bp-t .kb-menu-sub { position: static !important; display: none !important; flex-basis: 100%; min-width: 0; padding: 0 0 12px 14px !important; background: none !important; box-shadow: none !important; }
  .kb-menu-bp-t .kb-menu-sub::before { display: none; }
  .kb-menu-bp-t .has-sub.is-open > .kb-menu-sub { display: flex !important; flex-direction: column; }
  .kb-menu-bp-t .kb-menu-sub a { padding: 9px 0 !important; font-weight: 500; font-size: 0.95em; }
  .kb-menu-bp-t .kb-menu-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 767px) {
  .kb-menu-bp-m .kb-menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--kb-menu-bc, var(--kb-menu-c, inherit)); cursor: pointer; }
  .kb-menu-bp-m .kb-menu-panel {
    display: flex; flex-direction: column; gap: 24px;
    position: fixed; z-index: 1000; top: 0; right: 0; bottom: 0;
    width: min(380px, 88vw); padding: 76px 28px 32px; overflow-y: auto; overscroll-behavior: contain;
    background: var(--kb-bg, #fff); color: var(--kb-text); text-align: left; font-size: 1.08rem; text-transform: none; letter-spacing: 0;
    box-shadow: 0 0 0 100vmax rgb(10 14 16 / 0);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s, box-shadow 0.3s ease;
  }
  .kb-menu-bp-m.is-open .kb-menu-panel { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgb(10 14 16 / 0.45); }
  .kb-menu-bp-m .kb-menu-close { display: inline-grid; place-items: center; position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; }
  .kb-menu-bp-m .kb-menu-list { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .kb-menu-bp-m .kb-menu-list > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--kb-line); }
  .kb-menu-bp-m .kb-menu-list a { flex: 1; padding: 13px 0; color: var(--kb-text) !important; font-weight: 600; }
  .kb-menu-bp-m .kb-menu-list .is-active > a { color: var(--kb-primary) !important; }
  .kb-menu-bp-m .kb-menu-sub-toggle { width: 44px; height: 44px; color: var(--kb-text) !important; }
  .kb-menu-bp-m .has-sub.is-open > .kb-menu-sub-toggle svg { transform: rotate(180deg); }
  .kb-menu-bp-m .kb-menu-sub { position: static !important; display: none !important; flex-basis: 100%; min-width: 0; padding: 0 0 12px 14px !important; background: none !important; box-shadow: none !important; }
  .kb-menu-bp-m .kb-menu-sub::before { display: none; }
  .kb-menu-bp-m .has-sub.is-open > .kb-menu-sub { display: flex !important; flex-direction: column; }
  .kb-menu-bp-m .kb-menu-sub a { padding: 9px 0 !important; font-weight: 500; font-size: 0.95em; }
  .kb-menu-bp-m .kb-menu-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { .kb-menu-panel { transition: none !important; } }

/* prepínač jazykov */
.kb-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.kb-langs a { display: inline-block; padding: 4px 8px; border-radius: 6px; color: var(--kb-langs-c, inherit); opacity: 0.72; text-decoration: none; font-weight: 600; transition: opacity 0.15s ease; }
.kb-langs-code a { font-size: 0.88em; letter-spacing: 0.04em; }
.kb-langs a:hover { opacity: 1; }
.kb-langs a.is-current { color: var(--kb-langs-ac, var(--kb-primary)); opacity: 1; }

/* vyhľadávanie */
.kb-search { position: relative; display: inline-flex; vertical-align: middle; }
.kb-search-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.kb-search-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.kb-search-form { display: flex; align-items: stretch; color: var(--kb-text); }
.kb-search-form[hidden] { display: none; }
.kb-search-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--kb-line); border-right: 0; border-radius: var(--kb-radius) 0 0 var(--kb-radius); background: var(--kb-bg, #fff); color: var(--kb-text); font: inherit; font-size: 0.95rem; }
.kb-search-form input:focus { outline: 2px solid color-mix(in srgb, var(--kb-primary) 50%, transparent); outline-offset: -1px; }
.kb-search-go { display: grid; place-items: center; width: 48px; height: 44px; padding: 0; border: 0; border-radius: 0 var(--kb-radius) var(--kb-radius) 0; background: var(--kb-primary); color: #fff; cursor: pointer; }
.kb-search-icon .kb-search-form { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; width: min(380px, calc(100vw - 32px)); padding: 10px; background: var(--kb-bg, #fff); border-radius: var(--kb-radius); box-shadow: 0 16px 40px rgb(16 24 28 / 0.16), 0 0 0 1px var(--kb-line); }
.kb-search-field { display: flex; width: min(100%, 340px); }
.kb-search-field .kb-search-form { flex: 1; }

/* sociálne siete */
.kb-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--kb-soc-gap, 8px); }
.kb-social a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--kb-soc-c, inherit); text-decoration: none; transition: opacity 0.15s ease, transform 0.15s ease; }
.kb-social a:hover { opacity: 0.8; transform: translateY(-1px); }
.kb-social .kb-icon { flex: none; width: var(--kb-soc-s, 18px); height: var(--kb-soc-s, 18px); }
.kb-social-circle a, .kb-social-square a { min-width: calc(var(--kb-soc-s, 18px) + 20px); height: calc(var(--kb-soc-s, 18px) + 20px); background: var(--kb-soc-bg, color-mix(in srgb, currentColor 12%, transparent)); }
.kb-social-circle a { border-radius: 999px; }
.kb-social-square a { border-radius: 8px; }
.kb-social-labels.kb-social-circle a, .kb-social-labels.kb-social-square a { padding: 0 14px 0 11px; }
.kb-social-labels.kb-social-plain { flex-direction: column; }

/* kontaktné údaje */
.kb-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kb-contact-inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.kb-contact-list.kb-justify-center { align-items: center; }
.kb-contact-list.kb-justify-right { align-items: flex-end; }
.kb-contact li { display: flex; align-items: flex-start; gap: 10px; }
.kb-contact-inline li { align-items: center; }
.kb-contact .kb-icon { flex: none; width: 1.1em; height: 1.1em; margin-top: 0.2em; color: var(--kb-ct-ic, var(--kb-accent)); }
.kb-contact-inline .kb-icon { margin-top: 0; }
.kb-contact a { color: inherit; text-decoration: none; }
.kb-contact a:hover { text-decoration: underline; }

@media print { .kb-hdr, .kb-ftr { display: none !important; } }

/* =====================================================================
   Prvky na rôznorodý dizajn (od 1.11.0)
   ===================================================================== */

/* ---------- Nadpis: ozdoba ---------- */
.kb-hd-line::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 0.45em; border-radius: 2px; background: var(--kb-accent); }
.kb-hd-line.kb-hd-center::after { margin-left: auto; margin-right: auto; }
.kb-hd-line.kb-hd-right::after { margin-left: auto; }
.kb-heading.kb-hd-kicker { font-family: var(--kb-font-body); font-size: 0.8125rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--kb-accent) 62%, var(--kb-text)); }
.kb-has-color .kb-heading.kb-hd-kicker { color: var(--kb-accent); }

/* ---------- Obrázok: tvar a ozdoba ---------- */
.kb-image.kb-img-arch img { border-radius: 1000px 1000px var(--kb-radius) var(--kb-radius); }
.kb-image.kb-img-circle img { border-radius: 50%; }
.kb-image.kb-img-blob img { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.kb-image.kb-img-offset { padding: 0 18px 18px 0; }
.kb-image.kb-img-offset img { box-shadow: 18px 18px 0 color-mix(in srgb, var(--kb-accent) 70%, transparent); }
.kb-image.kb-img-border { padding: 12px; }
.kb-image.kb-img-border img { outline: 2px solid var(--kb-accent); outline-offset: 10px; }
@media (max-width: 767px) {
  .kb-image.kb-img-offset { padding: 0 10px 10px 0; }
  .kb-image.kb-img-offset img { box-shadow: 10px 10px 0 color-mix(in srgb, var(--kb-accent) 70%, transparent); }
}

/* ---------- Tlačidlá: efekty ---------- */
.kb-btnfx-shine .kb-btn { position: relative; overflow: hidden; }
.kb-btnfx-fill .kb-btn:not(.kb-btn-link) { background-image: linear-gradient(var(--kb-fx), var(--kb-fx)); background-repeat: no-repeat; background-size: 0% 100%; }
.kb-btnfx-fill .kb-btn-primary, .kb-btnfx-fill .kb-btn-light, .kb-btnfx-fill .kb-btn-outline { --kb-fx: var(--kb-accent); }
.kb-btnfx-fill .kb-btn-secondary { --kb-fx: var(--kb-primary); }
@media (prefers-reduced-motion: no-preference) {
  .kb-btnfx-lift .kb-btn { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease; }
  .kb-btnfx-lift .kb-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.45); }
  .kb-btnfx-fill .kb-btn:not(.kb-btn-link) { transition: background-size 0.35s ease, color 0.2s ease 0.12s, border-color 0.2s ease 0.12s; }
  .kb-btnfx-arrow .kb-btn .kb-icon { transition: transform 0.2s ease; }
  .kb-btnfx-arrow .kb-btn:hover .kb-icon:last-child { transform: translateX(5px); }
  .kb-btnfx-arrow .kb-btn:hover .kb-icon:first-child:not(:last-child) { transform: translateX(-5px); }
  .kb-btnfx-shine .kb-btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); transition: left 0.6s ease; pointer-events: none; }
  .kb-btnfx-shine .kb-btn:hover::after { left: 130%; }
  .kb-btnfx-pulse .kb-btn:not(.kb-btn-link) { animation: kb-pulse 2.4s ease-out infinite; }
  .kb-btnfx-pulse .kb-btn:hover { animation: none; }
}
.kb-btnfx-fill .kb-btn:not(.kb-btn-link):hover { background-size: 100% 100%; }
.kb-btnfx-fill :is(.kb-btn-primary, .kb-btn-light, .kb-btn-outline):hover { color: var(--kb-text); border-color: var(--kb-accent); }
.kb-btnfx-fill .kb-btn-secondary:hover { color: #fff; border-color: var(--kb-primary); }
@keyframes kb-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kb-accent) 65%, transparent); }
  70% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--kb-accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kb-accent) 0%, transparent); }
}

/* ---------- Počítadlo: kruh a pruh ---------- */
.kb-ring { position: relative; display: grid; place-items: center; width: 3.7em; aspect-ratio: 1; color: var(--kb-primary); }
.kb-has-color .kb-ring { color: inherit; }
.kb-counter.kb-align-center .kb-ring { margin-left: auto; margin-right: auto; }
.kb-counter.kb-align-right .kb-ring { margin-left: auto; }
.kb-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.kb-ring circle { fill: none; stroke-width: 7; }
.kb-ring-track { stroke: color-mix(in srgb, currentColor 14%, transparent); }
.kb-ring-bar { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--kb-p, 0)); transition: stroke-dashoffset 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.kb-ring .kb-counter-num { position: relative; font-size: 0.8em; color: inherit; }
.kb-counter-circle .kb-counter-label { margin-top: 14px; }
.kb-counter-bar { text-align: left; }
.kb-bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.kb-counter-bar .kb-counter-label { margin: 0; color: inherit; font-weight: 600; }
.kb-counter-bar .kb-counter-num { font-size: 1.15em; letter-spacing: 0; }
.kb-bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, currentColor 12%, transparent); overflow: hidden; }
.kb-bar > span { display: block; height: 100%; width: calc(var(--kb-p, 0) * 1%); border-radius: inherit; background: var(--kb-primary); transition: width 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.kb-has-color .kb-bar > span { background: var(--kb-accent); }
.kb-counter.kb-wait .kb-ring-bar { stroke-dashoffset: 100; }
.kb-counter.kb-wait .kb-bar > span { width: 0; }

/* ---------- Tvar okraja sekcie ---------- */
.kb-section { --kb-shape-h: clamp(26px, 5.5vw, 84px); }
.kb-shape { position: absolute; z-index: 2; left: 0; right: 0; height: var(--kb-shape-h); line-height: 0; color: var(--kb-bg); pointer-events: none; }
.kb-shape svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.kb-shape-top { top: -1px; }
.kb-shape-bottom { bottom: -1px; transform: rotate(180deg); }
/* ovládanie slidera nad tvarom dolného okraja (slider cez celú sekciu) */
.kb-section:has(> .kb-shape-bottom) .kb-sl-over .kb-sl-bar { bottom: calc(var(--kb-shape-h) + 6px); }
@media (max-width: 767px) { .kb-section:has(> .kb-shape-bottom) .kb-sl-over .kb-sl-arrow { bottom: calc(var(--kb-shape-h) + 4px); } }
