/* ==========================================================================
   BigBox – custom.css
   Nadstavba nad šablónou Concept. Zachováva font (Montserrat), akcentové
   farby (#ff4081 / #5bc0de), ikony a animácie šablóny. Pridáva:
   svetlú/tmavú tému, zaoblené a animované prvky, OSX tiene, responzivitu.
   ========================================================================== */

:root {
  /* Farby loga BigBox – monochromatické (čierna/biela), theme-aware nižšie */
  --bb-accent: #17191e;
  --bb-accent-d: #000000;
  --bb-accent-2: #5c6470;
  --bb-accent-ink: #ffffff; /* text/ikony na akcentovom podklade */
  /* Bez zaoblení – všetko hranaté */
  --bb-radius: 0;
  --bb-radius-sm: 0;
  --bb-radius-pill: 0;
  --bb-nav-h: 98px;
  --bb-shadow-osx: 0 22px 48px -18px rgba(20,22,28,.34), 0 8px 18px -10px rgba(20,22,28,.22);
  --bb-shadow-osx-hover: 0 34px 66px -20px rgba(20,22,28,.42), 0 12px 26px -12px rgba(20,22,28,.28);
  --bb-shadow-card: 0 10px 30px -14px rgba(20,22,28,.18);
  --bb-ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Téma: svetlá (default) ---- */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --bg-soft2: #eef1f5;
  --text: #23262d;
  --muted: #6c747d;
  --border: #e6e9ee;
  --card: #ffffff;
  --nav-bg: rgba(255,255,255,.86);
  --nav-border: #eceff3;
  --footer-bg: #14161b;
  --footer-text: #c6ccd4;
  /* Jednotné svetlé pozadie pre obrázky – jemná chladná svetlosivá (podľa Image #11) */
  --bb-hero-bg: #e8ebee;
  /* Akcent = čierna z loga; text na ňom biely */
  --bb-accent: #17191e;
  --bb-accent-d: #000000;
  --bb-accent-2: #5c6470;
  --bb-accent-ink: #ffffff;
}

/* ---- Téma: tmavá ---- */
:root[data-theme="dark"] {
  --bg: #14161b;
  --bg-soft: #1a1d23;
  --bg-soft2: #20242c;
  --text: #e7eaee;
  --muted: #99a1ab;
  --border: #2a2f38;
  --card: #1e222a;
  --nav-bg: rgba(20,22,27,.86);
  --nav-border: #262b34;
  --footer-bg: #0f1115;
  --footer-text: #b6bcc6;
  --bb-hero-bg: #171a20;
  /* Na tmavej téme sa logo invertuje na bielu → akcent biely, text na ňom tmavý */
  --bb-accent: #f3f4f6;
  --bb-accent-d: #ffffff;
  --bb-accent-2: #aab2bd;
  --bb-accent-ink: #14161b;
  --bb-shadow-osx: 0 22px 48px -18px rgba(0,0,0,.6), 0 8px 18px -10px rgba(0,0,0,.5);
  --bb-shadow-osx-hover: 0 34px 66px -20px rgba(0,0,0,.68), 0 12px 26px -12px rgba(0,0,0,.55);
  --bb-shadow-card: 0 10px 30px -14px rgba(0,0,0,.5);
}

/* ---- Base ---- */
html, body { background: var(--bg); }
body.bb-body {
  color: var(--text);
  background: var(--bg);
  font: 500 15px/1.7 Montserrat, sans-serif;
  letter-spacing: -.3px;
  overflow-x: hidden;
  transition: background .3s var(--bb-ease), color .3s var(--bb-ease);
}
.bb-main { padding-top: var(--bb-nav-h); }
h1,h2,h3,h4,h5,h6 { color: var(--text); }
a { color: var(--bb-accent); transition: color .2s var(--bb-ease); }
a:hover, a:focus { color: var(--bb-accent-d); text-decoration: none; }
p { color: var(--text); }
.text-muted, .bb-muted { color: var(--muted) !important; }
section { background: var(--bg); }
.bb-soft { background: var(--bg-soft) !important; }
.bb-soft2 { background: var(--bg-soft2) !important; }
/* Preloader – CSS fallback: aj bez JS sa po chvíli skryje, nech nikdy neblokuje obsah */
#preloader { background: var(--bg); animation: bbPreloaderOut .6s ease 1.6s forwards; }
@keyframes bbPreloaderOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
::selection { background: var(--bb-accent); color: var(--bb-accent-ink); }

.bb-container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* Širší obsah na desktope (roztiahnutie stránky do šírky) */
@media (min-width: 1200px) {
  .container { width: 90%; max-width: 1340px; }
}
@media (min-width: 1600px) {
  .container { max-width: 1440px; }
}
.bb-kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: 2px;
  font-size: 12px; font-weight: 700; color: var(--bb-accent);
  margin-bottom: 14px;
}
.bb-section { padding: 92px 0; }
.bb-section-sm { padding: 60px 0; }
.bb-section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.bb-section-head h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.bb-section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.bb-lead { font-size: 18px; color: var(--muted); }

/* ---- Tlačidlá: zaoblené + animované ---- */
.btn-bb, .btn-bb-ghost, .btn-bb-2 {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: var(--bb-radius-pill);
  font-weight: 700; letter-spacing: .2px; border: 2px solid transparent;
  padding: 13px 26px; transition: all .28s var(--bb-ease);
  will-change: transform;
}
.btn-bb {
  background: var(--bb-accent); color: var(--bb-accent-ink);
  box-shadow: 0 10px 24px -10px rgba(20,22,28,.22);
}
.btn-bb:hover, .btn-bb:focus {
  background: var(--bb-accent-d); color: var(--bb-accent-ink); transform: translateY(-3px);
  box-shadow: 0 18px 34px -12px rgba(20,22,28,.26);
}
.btn-bb-2 { background: var(--bb-accent-2); color: var(--bb-accent-ink); box-shadow: 0 10px 24px -10px rgba(20,22,28,.18); }
.btn-bb-2:hover { transform: translateY(-3px); color: var(--bb-accent-ink); filter: brightness(.95); }
.btn-bb-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-bb-ghost:hover { border-color: var(--bb-accent); color: var(--bb-accent); transform: translateY(-3px); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* Globálne zaoblenie – VŠETKY tlačidlá (aj z Bootstrapu/šablóny) sú zaoblené */
.btn, .btn-dark, .btn-violet, .btn-info, .btn-gray, .btn-dark-border,
.btn-default, .btn-primary, .btn-lg, .btn-sm, .btn-xs, button.btn, input[type="submit"] {
  border-radius: var(--bb-radius-pill) !important;
  transition: all .28s var(--bb-ease);
}
.btn:hover { transform: translateY(-2px); }
.badge.price { border-radius: var(--bb-radius-pill) !important; }

/* Globálne zaoblenie obsahových obrázkov + jemná animácia */
img.img-responsive, img.center-block, .portfolio-item img, .thumbnail img,
.carousel-item img, .showcase img, .offcet-art-main img {
  border-radius: var(--bb-radius);
}
.form-control, .bb-input, input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], textarea, select { border-radius: var(--bb-radius-sm) !important; }

/* ==========================================================================
   Navigácia
   ========================================================================== */
.bb-nav {
  min-height: var(--bb-nav-h);
  background: var(--nav-bg) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: none; margin: 0; border-radius: 0;
  transition: background .3s var(--bb-ease), box-shadow .3s var(--bb-ease);
}
.bb-nav.top-nav-collapse { box-shadow: 0 6px 24px -14px rgba(0,0,0,.35); }
.bb-nav .container { position: relative; }
.bb-nav .navbar-header { display: flex; align-items: center; min-height: var(--bb-nav-h); }

.bb-brand { padding: 0 !important; height: var(--bb-nav-h); display: flex; align-items: center; }
.bb-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 800; letter-spacing: -1px; color: var(--text); }
.bb-logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--bb-accent), var(--bb-accent-d));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 8px 18px -8px rgba(20,22,28,.22);
  transition: transform .3s var(--bb-ease);
}
.bb-brand:hover .bb-logo-mark { transform: rotate(-8deg) scale(1.05); }
.bb-logo-text { color: var(--text); }
.bb-logo-text strong { color: var(--bb-accent); }

/* Skutočné logo BigBox (JPG: čierne na bielom) – blend odstráni biele pozadie */
.bb-brand-logo { height: 84px; width: auto; display: block; }
:root[data-theme="light"] .bb-brand-logo { mix-blend-mode: multiply; }
:root[data-theme="dark"] .bb-brand-logo { filter: invert(1) brightness(2.2) contrast(1.05); mix-blend-mode: screen; }
.bb-footer-logo { height: 80px; width: auto; filter: invert(1) brightness(2.2); mix-blend-mode: screen; }

.bb-nav-left, .bb-nav-right { margin: 0; }
.bb-nav-left > li > a, .bb-nav-right > li:not(.bb-tool) > a {
  color: var(--text); font-weight: 600; font-size: 14px; letter-spacing: .3px;
  line-height: var(--bb-nav-h); padding: 0 14px; background: transparent !important;
  position: relative; transition: color .2s var(--bb-ease); text-transform: uppercase;
}
.bb-nav-left > li > a::after, .bb-nav-right > li:not(.bb-tool) > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 22px; height: 2px;
  background: var(--bb-accent); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--bb-ease); border-radius: 2px;
}
.bb-nav-left > li:hover > a, .bb-nav-left > li.active > a,
.bb-nav-right > li:hover > a, .bb-nav-right > li.active > a { color: var(--bb-accent); }
.bb-nav-left > li:hover > a::after, .bb-nav-left > li.active > a::after,
.bb-nav-right > li:not(.bb-tool):hover > a::after, .bb-nav-right > li.active > a::after { transform: scaleX(1); }

/* Dropdown */
.bb-nav .dropdown-menu {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--bb-radius-sm); box-shadow: var(--bb-shadow-osx);
  padding: 8px; margin-top: 6px; min-width: 220px;
}
.bb-nav .dropdown-menu > li > a {
  color: var(--text); border-radius: 9px; padding: 10px 14px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; transition: all .18s var(--bb-ease);
}
.bb-nav .dropdown-menu > li > a i { color: var(--bb-accent); font-size: 17px; }
.bb-nav .dropdown-menu > li > a:hover { background: var(--bg-soft); color: var(--bb-accent); }

/* Nástroje vpravo */
.bb-nav-tools { display: flex; align-items: center; }
.bb-nav-tools > li { display: flex; align-items: center; }
.bb-tool { line-height: var(--bb-nav-h); }
.bb-theme-toggle {
  width: auto; height: auto; border: 0 !important; border-radius: 0; background: transparent !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  color: var(--text) !important; font-size: 40px; padding: 0 10px !important;
  transition: all .25s var(--bb-ease);
}
.bb-theme-toggle:hover { color: var(--bb-accent) !important; transform: rotate(18deg); }
.bb-lang { gap: 4px; font-weight: 700; font-size: 13px; padding: 0 6px; }
.bb-lang a { color: var(--muted); padding: 6px 5px; }
.bb-lang a.on { color: var(--bb-accent); }
.bb-lang a:hover { color: var(--text); }
.bb-lang-sep { color: var(--border); }
.bb-nav-cta { margin-left: 6px; }
/* CTA v menu – vyššia špecificita než template nav link (biely text na čiernom) */
.bb-nav .bb-nav-cta,
.bb-nav .bb-nav-cta:hover,
.bb-nav .bb-nav-cta:focus { background: var(--bb-accent) !important; color: var(--bb-accent-ink) !important; }
.bb-nav .bb-nav-cta:hover { background: var(--bb-accent-d) !important; }

/* Menu s LOGOM V STREDE (navbar-center): ľavá skupina | logo | pravá skupina */
.bb-nav-center .container { position: relative; }
.bb-nav-center .bb-brand { position: absolute; left: 50%; transform: translateX(-50%); top: 0; height: var(--bb-nav-h); z-index: 4; }
@media (min-width: 992px) {
  .bb-nav-center .navbar-collapse { display: flex !important; justify-content: space-between; align-items: center; padding: 0; }
  .bb-nav-center .bb-nav-left, .bb-nav-center .bb-nav-right {
    float: none; display: flex; align-items: center; flex-wrap: nowrap; margin: 0;
  }
  .bb-nav-center .bb-nav-right { margin-left: auto; }
  .bb-nav-center .bb-nav-left > li, .bb-nav-center .bb-nav-right > li { white-space: nowrap; }
  .bb-nav-center .navbar-toggle { display: none; }
}
/* Prepínač jazyka – vždy v jednom riadku */
.bb-lang { display: inline-flex !important; align-items: center; white-space: nowrap; }

.navbar-toggle { border: 1px solid var(--border); border-radius: 10px; margin-top: 20px; }
.navbar-toggle .icon-bar { background: var(--text); transition: all .3s var(--bb-ease); }
.navbar-toggle:hover { background: var(--bg-soft); }

/* ==========================================================================
   Hero
   ========================================================================== */
.bb-hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  color: #fff; overflow: hidden; margin-top: calc(-1 * var(--bb-nav-h));
  padding: calc(var(--bb-nav-h) + 40px) 0 60px;
}
.bb-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.bb-hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,17,22,.86) 0%, rgba(15,17,22,.62) 45%, rgba(233,30,99,.42) 100%); }
.bb-hero .container { position: relative; z-index: 3; }
.bb-hero-inner { max-width: 720px; }
.bb-hero .bb-kicker { color: #fff; opacity: .9; }
.bb-hero h1 { font-size: 52px; font-weight: 800; line-height: 1.08; margin-bottom: 22px; color: #fff; letter-spacing: -1.6px; }
.bb-hero p { font-size: 20px; color: rgba(255,255,255,.9); margin-bottom: 34px; max-width: 620px; }
.bb-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.bb-hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; color: rgba(255,255,255,.7); font-size: 26px; animation: bbBounce 2s infinite; }
@keyframes bbBounce { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,10px);} }

/* Page hero (vnútorné stránky) */
.bb-page-hero { position: relative; padding: 92px 0 48px; background: var(--bg-soft); border-bottom: 1px solid var(--border); text-align: center; }
.bb-page-hero h1 { padding-top: 6px; }
.bb-page-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; }
.bb-page-hero p { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 auto; }
.bb-breadcrumb { display: none; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.bb-breadcrumb a { color: var(--muted); }
.bb-breadcrumb a:hover { color: var(--bb-accent); }

/* ==========================================================================
   Karty (služby / produkty / tím / certifikáty) – zaoblené + OSX tieň + anim.
   ========================================================================== */
.bb-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--bb-radius); overflow: hidden; height: 100%;
  box-shadow: var(--bb-shadow-card); transition: transform .4s var(--bb-ease), box-shadow .4s var(--bb-ease), border-color .3s;
  display: flex; flex-direction: column;
}
.bb-card:hover { transform: translateY(-8px); box-shadow: var(--bb-shadow-osx-hover); border-color: transparent; }
.bb-card-media { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.bb-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--bb-ease); }
.bb-card:hover .bb-card-media img { transform: scale(1.08); }
.bb-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.bb-card-body h3, .bb-card-body h4 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.bb-card-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; flex: 1; }
.bb-card-icon {
  width: 58px; height: 58px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--bb-accent); background: color-mix(in srgb, var(--bb-accent) 10%, transparent); margin-bottom: 16px;
  transition: all .35s var(--bb-ease);
}
.bb-card:hover .bb-card-icon { background: var(--bb-accent); color: var(--bb-accent-ink); transform: rotate(-6deg); }
.bb-card-link { font-weight: 700; font-size: 13px; color: var(--bb-accent); text-transform: uppercase; letter-spacing: 1px; margin-top: auto; }
.bb-card-link i { transition: transform .25s var(--bb-ease); }
.bb-card:hover .bb-card-link i { transform: translateX(5px); }
.bb-badge-pop {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--bb-accent); color: var(--bb-accent-ink);
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: var(--bb-radius-pill); letter-spacing: .5px;
  box-shadow: 0 6px 14px -6px rgba(20,22,28,.22);
}

/* Obrázky všeobecne – zaoblené + OSX tieň + jemná animácia */
.bb-img { border-radius: var(--bb-radius); box-shadow: var(--bb-shadow-osx); max-width: 100%; transition: transform .5s var(--bb-ease), box-shadow .5s var(--bb-ease); }
.bb-img:hover { transform: translateY(-6px); box-shadow: var(--bb-shadow-osx-hover); }
.bb-img-frame { border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow-osx); }
.bb-img-frame img { width: 100%; display: block; transition: transform .7s var(--bb-ease); }
.bb-img-frame:hover img { transform: scale(1.05); }

/* ---- Grid helpers ---- */
.bb-grid { display: grid; gap: 26px; }
.bb-grid-2 { grid-template-columns: repeat(2, 1fr); }
.bb-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bb-grid-4 { grid-template-columns: repeat(4, 1fr); }
.bb-grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---- Split (obrázok + text) ---- */
.bb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bb-split.rev .bb-split-media { order: 2; }
.bb-split-body h2 { font-size: 32px; font-weight: 800; margin-bottom: 18px; }
.bb-split-body p { color: var(--muted); font-size: 16px; }
.bb-signature { font-family: "Gloria Hallelujah", cursive; color: var(--bb-accent); font-size: 20px; }

/* ==========================================================================
   Proces / kroky
   ========================================================================== */
.bb-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.bb-step { text-align: center; position: relative; }
.bb-step-num {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--bb-accent-ink); background: linear-gradient(135deg, var(--bb-accent), var(--bb-accent-d));
  box-shadow: 0 14px 30px -12px rgba(20,22,28,.22); position: relative; z-index: 2; transition: transform .35s var(--bb-ease);
}
.bb-step:hover .bb-step-num { transform: translateY(-6px) scale(1.05); }
.bb-step h4 { font-size: 16px; margin-bottom: 8px; }
.bb-step p { font-size: 13.5px; color: var(--muted); }
.bb-step-count { position: absolute; top: -8px; right: calc(50% - 46px); background: var(--card); border: 2px solid var(--bb-accent); color: var(--bb-accent); width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 3; }

/* ==========================================================================
   Odvetvia / industries
   ========================================================================== */
.bb-industry { text-align: center; padding: 30px 18px; border-radius: var(--bb-radius); background: var(--card); border: 1px solid var(--border); transition: all .35s var(--bb-ease); }
.bb-industry:hover { transform: translateY(-6px); box-shadow: var(--bb-shadow-osx); border-color: transparent; }
.bb-industry i { font-size: 42px; color: var(--bb-accent); display: block; margin-bottom: 14px; }
.bb-industry span { font-weight: 700; font-size: 14.5px; }

/* ==========================================================================
   Fakty / štatistiky
   ========================================================================== */
.bb-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.bb-fact { text-align: center; }
.bb-fact-num { font-size: 46px; font-weight: 800; color: var(--bb-accent); letter-spacing: -2px; line-height: 1; }
.bb-fact-label { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ==========================================================================
   Portfólio (index Agency)
   ========================================================================== */
.bb-portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bb-portfolio-item { position: relative; border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow-card); aspect-ratio: 1/1; transition: transform .45s var(--bb-ease), box-shadow .45s var(--bb-ease); }
.bb-portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--bb-ease); }
.bb-portfolio-item:hover { transform: translateY(-6px); box-shadow: var(--bb-shadow-osx-hover); }
.bb-portfolio-item:hover img { transform: scale(1.1); }
.bb-portfolio-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; opacity: 0; transition: opacity .35s var(--bb-ease);
  background: linear-gradient(0deg, rgba(15,17,22,.85), transparent 70%); color: #fff; }
.bb-portfolio-item:hover .bb-portfolio-overlay { opacity: 1; }
.bb-portfolio-overlay h5 { color: #fff; font-size: 16px; margin: 0 0 4px; }
.bb-portfolio-overlay span { font-size: 12.5px; opacity: .8; }

/* ==========================================================================
   Tím
   ========================================================================== */
.bb-team-card { text-align: center; }
.bb-team-photo { position: relative; width: 100%; aspect-ratio: 3/4; border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow-osx); margin-bottom: 18px; transition: transform .45s var(--bb-ease), box-shadow .45s var(--bb-ease); }
.bb-team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--bb-ease); filter: grayscale(.15); }
.bb-team-card:hover .bb-team-photo { transform: translateY(-8px); box-shadow: var(--bb-shadow-osx-hover); }
.bb-team-card:hover .bb-team-photo img { transform: scale(1.06); filter: grayscale(0); }
.bb-team-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; color: var(--bb-accent-ink); background: linear-gradient(135deg, var(--bb-accent), var(--bb-accent-d)); }
.bb-team-name { font-size: 18px; font-weight: 700; margin-bottom: 3px; }
.bb-team-role { color: var(--bb-accent); font-size: 13px; font-weight: 600; letter-spacing: .5px; }

/* ==========================================================================
   Certifikáty
   ========================================================================== */
/* Certifikáty – reálne logá + PDF na kliknutie */
.bb-grid-5 { grid-template-columns: repeat(5, 1fr); }
.bb-cert-card { display: flex; flex-direction: column; text-decoration: none; cursor: pointer; }
.bb-cert-card:hover { color: inherit; }
.bb-cert-logo { height: 120px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; padding: 22px; border-bottom: 1px solid var(--border); }
.bb-cert-logo img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.bb-cert-ic { font-size: 44px; color: #4e9a2f; }
.bb-cert-code { font-size: 26px; font-weight: 800; letter-spacing: -1px; color: #23262d; }
.bb-cert-link { margin-top: auto; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--bb-accent); display: inline-flex; align-items: center; gap: 6px; padding-top: 10px; }
.bb-cert-link i { font-size: 16px; }
.bb-cert-card:hover .bb-cert-link { gap: 10px; }
.bb-cert { text-align: center; padding: 24px 20px; }
.bb-cert-badge { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 20px; background: color-mix(in srgb, var(--bb-accent-2) 16%, transparent); color: var(--bb-accent-2); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; letter-spacing: -1px; transition: all .35s var(--bb-ease); }
.bb-card:hover .bb-cert-badge { background: var(--bb-accent-2); color: var(--bb-accent-ink); }

/* ==========================================================================
   Kalkulačka
   ========================================================================== */
.bb-calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.bb-calc-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--bb-radius); padding: 30px; box-shadow: var(--bb-shadow-card); }
.bb-calc-result { background: linear-gradient(135deg, var(--bb-accent), var(--bb-accent-d)); color: var(--bb-accent-ink); border-radius: var(--bb-radius); padding: 34px; box-shadow: var(--bb-shadow-osx); position: sticky; top: calc(var(--bb-nav-h) + 20px); }
.bb-calc-result .bb-res-price { font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.bb-calc-result .bb-res-sub { opacity: .9; font-size: 14px; }
.bb-res-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-size: 14px; }
.bb-res-note { font-size: 12.5px; opacity: .82; margin-top: 16px; line-height: 1.5; }
.bb-res-ref { font-size: 22px; font-weight: 700; text-decoration: line-through; opacity: .72; letter-spacing: -1px; }
.bb-res-saving { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: rgba(255,255,255,.18); padding: 7px 14px; border-radius: var(--bb-radius-pill); font-size: 14px; font-weight: 700; }
.bb-res-saving i { font-size: 18px; }

.bb-field { margin-bottom: 18px; }
.bb-field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 7px; color: var(--text); }
.bb-field .form-control, .bb-input {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--bb-radius-sm);
  padding: 12px 15px; color: var(--text); font-size: 15px; transition: all .2s var(--bb-ease); height: auto;
}
.bb-field .form-control:focus, .bb-input:focus { border-color: var(--bb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bb-accent) 16%, transparent); outline: none; background: var(--card); }
.bb-field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
select.bb-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }

/* ==========================================================================
   Formuláre / dopyt / kontakt
   ========================================================================== */
.bb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bb-form-msg { font-size: 14px; margin-top: 12px; min-height: 20px; }
.bb-form-msg.ok { color: #2ecc71; }
.bb-form-msg.err { color: var(--bb-accent); }
.bb-form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--bb-radius); padding: 32px; box-shadow: var(--bb-shadow-card); }
.bb-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.bb-checkbox input { margin-top: 3px; }

.bb-contact-info { display: grid; gap: 18px; }
.bb-contact-item { display: flex; gap: 16px; align-items: flex-start; }
.bb-contact-item .bb-ci-ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; background: color-mix(in srgb, var(--bb-accent) 10%, transparent); color: var(--bb-accent); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.bb-contact-item h5 { margin: 0 0 4px; font-size: 15px; }
.bb-contact-item p, .bb-contact-item a { margin: 0; color: var(--muted); font-size: 14px; }
.bb-map { border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow-osx); border: 1px solid var(--border); }
.bb-map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.2); }
:root[data-theme="dark"] .bb-map iframe { filter: grayscale(.3) invert(.9) hue-rotate(180deg); }

/* Priame kontakty */
.bb-person { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.bb-person:last-child { border-bottom: 0; }
.bb-person-name { font-weight: 700; }
.bb-person-role { color: var(--muted); font-size: 13px; }
.bb-person-contact { text-align: right; font-size: 14px; }

/* ==========================================================================
   Predaj / katalóg + dopytový košík
   ========================================================================== */
.bb-cat-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.bb-filter { display: inline-flex; gap: 8px; background: var(--bg-soft); padding: 6px; border-radius: var(--bb-radius-pill); border: 1px solid var(--border); }
.bb-filter button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: var(--bb-radius-pill); cursor: pointer; transition: all .2s var(--bb-ease); }
.bb-filter button.on { background: var(--bb-accent); color: var(--bb-accent-ink); }
.bb-price { font-weight: 800; color: var(--text); font-size: 18px; }
.bb-price small { color: var(--muted); font-weight: 600; font-size: 12px; }
.bb-prod-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.bb-minqty { font-size: 12px; color: var(--muted); }

/* Plávajúci dopytový panel */
.bb-inquiry-fab { position: fixed; right: 22px; bottom: 22px; z-index: 900; }
.bb-inquiry-fab button { border: 0; background: var(--bb-accent); color: var(--bb-accent-ink); border-radius: var(--bb-radius-pill); padding: 14px 22px; font-weight: 700; box-shadow: var(--bb-shadow-osx); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: transform .25s var(--bb-ease); }
.bb-inquiry-fab button:hover { transform: translateY(-3px); }
.bb-inquiry-count { background: var(--bb-accent-ink); color: var(--bb-accent); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.bb-inq-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.bb-inq-row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.bb-inq-qty { width: 62px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.bb-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: 66px; }
.bb-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.bb-footer-brand { font-size: 24px; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.bb-footer-brand strong { color: var(--bb-accent); }
.bb-footer-about { font-size: 14px; line-height: 1.7; color: var(--footer-text); opacity: .8; }
.bb-footer-links, .bb-footer-contact { list-style: none; padding: 0; margin: 0; }
.bb-footer-links li, .bb-footer-contact li { margin-bottom: 11px; font-size: 14px; }
.bb-footer-links a { color: var(--footer-text); opacity: .82; }
.bb-footer-links a:hover { color: var(--bb-accent); opacity: 1; padding-left: 4px; }
.bb-footer-contact li { display: flex; gap: 10px; opacity: .85; }
.bb-footer-contact i { color: var(--bb-accent); font-size: 17px; }
.bb-footer-contact a { color: var(--footer-text); }
.bb-social { margin-top: 18px; }
.bb-social li { padding: 0 3px; }
.bb-social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; transition: all .25s var(--bb-ease); }
.bb-social a:hover { background: var(--bb-accent); transform: translateY(-3px); }
.bb-newsletter-row { display: flex; gap: 8px; }
.bb-newsletter .form-control { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: var(--bb-radius-sm); height: 46px; }
.bb-newsletter .form-control::placeholder { color: rgba(255,255,255,.5); }
.bb-newsletter .btn-bb { padding: 12px 16px; }

/* Spodný pruh – všetko horizontálne, verzia čitateľná */
.bb-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 54px; padding: 20px 0; }
.bb-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.bb-copy { font-size: 13px; color: var(--footer-text); opacity: .72; }
.bb-credit { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--footer-text); opacity: .9; }
.bb-credit-luma { color: #fff; font-weight: 700; }
.bb-credit-luma:hover { color: var(--bb-accent); }
.bb-version { display: inline-flex; align-items: center; background: var(--bb-accent); color: var(--bb-accent-ink); font-weight: 700; font-size: 12px; padding: 4px 11px; border-radius: var(--bb-radius-pill); letter-spacing: .3px; }

/* ==========================================================================
   Cookie lišta
   ========================================================================== */
.bb-cookie { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 1200; background: var(--card); border: 1px solid var(--border); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow-osx); padding: 18px 22px; animation: bbCookieIn .5s var(--bb-ease); }
@keyframes bbCookieIn { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.bb-cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; }
.bb-cookie-text { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text); flex: 1; min-width: 240px; }
.bb-cookie-text i { color: var(--bb-accent); font-size: 24px; }
.bb-cookie-text a { color: var(--bb-accent); font-weight: 600; }
.bb-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ==========================================================================
   Utility
   ========================================================================== */
.bb-mt0 { margin-top: 0; } .bb-mb0 { margin-bottom: 0; }
.bb-center { text-align: center; }
.bb-cta-band { background: linear-gradient(120deg, var(--bb-accent), var(--bb-accent-d)); color: var(--bb-accent-ink); border-radius: var(--bb-radius); padding: 48px; text-align: center; box-shadow: var(--bb-shadow-osx); }
.bb-cta-band h2 { color: var(--bb-accent-ink); font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.bb-cta-band p { color: var(--bb-accent-ink); opacity: .9; margin-bottom: 26px; font-size: 17px; }
.bb-cta-band .btn-bb { background: var(--bb-accent-ink); color: var(--bb-accent); box-shadow: 0 12px 26px -10px rgba(0,0,0,.3); }
.bb-cta-band .btn-bb:hover { background: var(--bb-accent-ink); color: var(--bb-accent); filter: brightness(.97); transform: translateY(-3px); }
.topbtn { background: var(--bb-accent); color: var(--bb-accent-ink); border-radius: 50%; width: 46px; height: 46px; display: none; align-items: center; justify-content: center; box-shadow: var(--bb-shadow-osx); }
.topbtn.show { display: flex; }
.topbtn:hover { color: var(--bb-accent-ink); background: var(--bb-accent-d); }
.bb-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; opacity: .7; }
.bb-partners img { max-height: 44px; filter: grayscale(1); transition: all .3s var(--bb-ease); }
:root[data-theme="dark"] .bb-partners img { filter: grayscale(1) invert(1) brightness(1.6); }
.bb-partners img:hover { filter: none; opacity: 1; }

/* ==========================================================================
   RESPONZIVITA
   ========================================================================== */

/* MacBook Air / menšie desktopy (≤1440) */
@media (max-width: 1440px) {
  .bb-container { max-width: 1120px; }
  .bb-hero h1 { font-size: 46px; }
}
@media (max-width: 1280px) {
  .bb-hero h1 { font-size: 42px; }
  .bb-section { padding: 76px 0; }
  .bb-nav-left > li > a, .bb-nav-right > li:not(.bb-tool) > a { padding: 0 10px; font-size: 13px; }
}

/* Tablet (≤1024) */
@media (max-width: 1024px) {
  .bb-split { grid-template-columns: 1fr; gap: 34px; }
  .bb-split.rev .bb-split-media { order: 0; }
  .bb-grid-4, .bb-portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .bb-grid-5, .bb-facts { grid-template-columns: repeat(2, 1fr); }
  .bb-steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .bb-calc { grid-template-columns: 1fr; }
  .bb-calc-result { position: static; }
  .bb-hero { min-height: 70vh; }
  .bb-hero h1 { font-size: 40px; }
}

/* Mobilné menu breakpoint (Bootstrap 3 = 768) */
@media (max-width: 767px) {
  :root { --bb-nav-h: 78px; }
  .bb-brand { height: 78px; }
  .bb-brand-logo { height: 60px; }
  /* Logo v strede, hamburger vľavo */
  .bb-nav-center .navbar-toggle { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); margin: 0; z-index: 5; }
  .bb-nav-center .bb-brand { position: absolute; left: 50%; transform: translateX(-50%); }

  /* Rozbaľovacie menu na mobile */
  .bb-nav .navbar-collapse {
    background: var(--card); border-top: 1px solid var(--border);
    box-shadow: var(--bb-shadow-osx); max-height: calc(100vh - 62px); overflow-y: auto;
    margin: 8px -15px 0; padding: 8px 0; display: block;
  }
  .bb-nav-left, .bb-nav-right { float: none; margin: 0; display: block; }
  .bb-nav-left > li, .bb-nav-right > li { float: none; }
  .bb-nav-left > li > a, .bb-nav-right > li:not(.bb-tool) > a { line-height: 1.4; padding: 14px 22px; border-bottom: 1px solid var(--border); }
  .bb-nav-left > li > a::after, .bb-nav-right > li > a::after { display: none; }
  .bb-nav .dropdown-menu {
    position: static; float: none; width: auto; box-shadow: none; border: 0; border-bottom: 1px solid var(--border);
    background: var(--bg-soft); border-radius: 0; margin: 0; padding: 4px 0;
  }
  .bb-nav .dropdown-menu > li > a { padding-left: 40px; }
  .bb-nav-right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 22px 14px; }
  .bb-tool { line-height: 1; }
  .bb-nav-cta { margin-left: auto; }

  .bb-hero { min-height: auto; padding: 100px 0 56px; text-align: left; }
  .bb-hero h1 { font-size: 32px; letter-spacing: -1px; }
  .bb-hero p { font-size: 16px; }
  .bb-hero-actions { flex-direction: column; align-items: stretch; }
  .bb-hero-actions .btn-bb, .bb-hero-actions .btn-bb-ghost { justify-content: center; }
  .bb-hero-scroll { display: none; }

  .bb-section { padding: 56px 0; }
  .bb-section-head h2 { font-size: 27px; }
  .bb-page-hero { padding: 60px 0 34px; }
  .bb-page-hero h1 { font-size: 30px; }
  .bb-page-hero p { font-size: 16px; }

  .bb-grid-2, .bb-grid-3, .bb-grid-4, .bb-grid-5 { grid-template-columns: 1fr; }
  .bb-portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bb-facts { grid-template-columns: repeat(2, 1fr); }
  .bb-fact-num { font-size: 36px; }
  .bb-steps { grid-template-columns: 1fr; gap: 26px; }
  .bb-field-row { grid-template-columns: 1fr; }
  .bb-cta-band { padding: 34px 22px; }
  .bb-cta-band h2 { font-size: 24px; }

  .bb-footer-bottom-inner { flex-direction: column; text-align: center; }
  .bb-footer-top { text-align: center; }
  .bb-footer-contact li, .bb-social { justify-content: center; }
  .bb-cookie { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .bb-cookie-actions { width: 100%; }
  .bb-cookie-actions .btn { flex: 1; }
  .bb-person { justify-content: center; text-align: center; }
  .bb-person-contact { text-align: center; }
}

@media (max-width: 420px) {
  .bb-portfolio-grid { grid-template-columns: 1fr; }
  .bb-facts { grid-template-columns: 1fr; }
}

/* Mobil/tablet – agency sekcie: žiadny horizontálny pretok */
@media (max-width: 991px) {
  .bb-agency #about .row > [class*=col-] { width: 100%; float: none; margin-left: 0; }
  .bb-agency #about .col-lg-5, .bb-agency #about .text-center { text-align: center; margin-top: 20px; }
  .bb-agency #about .circle { display: inline-block !important; margin: 6px 10px 22px !important; }
  .bb-agency #action-slider .row > [class*=col-] { width: 100%; float: none; margin-left: 0; padding: 20px 15px; }
  .bb-agency .v-center { margin-left: 0 !important; margin-right: 0 !important; }
  .bb-agency .v-center > [class*=col] { display: block; width: 100%; padding: 18px 15px; }
  .bb-agency .offcet-art-main .col-lg-10 { width: 100%; margin-left: 0; }
  .bb-agency #services .col-agency { flex: 1 1 46%; }
}
@media (max-width: 600px) {
  .bb-agency #services .col-agency { flex: 1 1 100%; }
  .bb-agency #partners .bb-clients { gap: 40px; }
  .bb-agency #partners img { height: 48px; }
  /* containment proti horizontálnemu pretoku */
  .bb-agency section, .bb-agency .container-fluid, .bb-agency .box-shadow,
  .bb-portfolio-home #portfolio, .bb-pf-wrap { overflow-x: hidden; max-width: 100%; }
  .bb-portfolio-home .bb-pf-filter { gap: 4px; padding: 0 6px; }
  .bb-portfolio-home .bb-pf-filter a { padding: 4px 9px; font-size: 10.5px; letter-spacing: .3px; }
  .bb-portfolio-home #portfolio .container { padding-left: 10px; padding-right: 10px; }
}

/* ==========================================================================
   AGENCY homepage (podľa indexagency.html) – most na tému + zaoblenia/tiene
   ========================================================================== */
.bb-agency section { color: var(--text); }
.bb-agency .bg-gray, .bb-agency section.bg-gray { background: var(--bg-soft) !important; }
.bb-agency .bg-gray2, .bb-agency section.bg-gray2 { background: var(--bg-soft2) !important; }
.bb-agency .bg-white, .bb-agency section.bg-white { background: var(--bg) !important; }
.bb-agency h1, .bb-agency h2, .bb-agency h3, .bb-agency h4, .bb-agency h5, .bb-agency .dark-gray { color: var(--text); }
.bb-agency p { color: var(--muted); }
.bb-agency .icon-big { color: var(--bb-accent); }
.bb-agency .classic { font-family: "Gloria Hallelujah", cursive; color: var(--bb-accent); letter-spacing: 0; }

/* offcet-art karta */
.bb-agency .offcet-art, .bb-agency .offcet-art-right {
  background: var(--card); color: var(--text);
  box-shadow: var(--bb-shadow-osx); border-radius: var(--bb-radius);
}
.bb-agency .offcet-art h3, .bb-agency .offcet-art p { color: var(--text); }
.bb-agency .offcet-art-dark {
  background: linear-gradient(135deg, #1b1e25, #0f1115); color: #fff;
  box-shadow: var(--bb-shadow-osx); border-radius: var(--bb-radius);
}
.bb-agency .offcet-art-dark h1, .bb-agency .offcet-art-dark p { color: #fff; }
.bb-agency .offcet-art-dark small { color: rgba(255,255,255,.7); }

/* Obrázky – zaoblené + OSX tieň + jemná animácia */
.bb-agency .offcet-art-main > .row > [class*=col-] > img,
.bb-agency .showcase img, .bb-agency .box-shadow > .row img,
.bb-agency #carousel-light4 img, .bb-agency .carousel-item img {
  border-radius: var(--bb-radius); box-shadow: var(--bb-shadow-osx);
  transition: transform .5s var(--bb-ease), box-shadow .5s var(--bb-ease);
}
.bb-agency .offcet-art-main img:hover, .bb-agency .showcase img:hover { transform: translateY(-5px); box-shadow: var(--bb-shadow-osx-hover); }
.bb-agency .box-shadow { box-shadow: var(--bb-shadow-osx); border-radius: var(--bb-radius); background: var(--card); padding: 0; overflow: hidden; }
.bb-agency .portfolio-item { border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow-card); margin-bottom: 18px; }
.bb-agency .portfolio-item img { border-radius: var(--bb-radius); transition: transform .7s var(--bb-ease); width: 100%; }
.bb-agency .portfolio-item:hover img { transform: scale(1.06); }
.bb-agency .img-circle { box-shadow: var(--bb-shadow-osx); }

/* Rotujúci nadpis */
.bb-agency #bbRotate { transition: opacity .4s var(--bb-ease); display: inline-block; color: var(--bb-accent); }
.bb-agency .offcet-art-dark h1 { font-size: 30px; line-height: 1.3; min-height: 1.3em; }

/* Play tlačidlo (watch story) */
.bb-agency .bb-play { width: 84px; height: 84px; border-radius: 50%; background: var(--bb-accent); color: var(--bb-accent-ink) !important; display: inline-flex; align-items: center; justify-content: center; font-size: 38px; box-shadow: 0 14px 30px -12px rgba(20,22,28,.22); transition: transform .3s var(--bb-ease); margin-bottom: 18px; }
.bb-agency .bb-play:hover { transform: scale(1.08); }
.bb-agency .icon-big { font-size: 54px; display: inline-block; margin-bottom: 12px; }

/* Services icon-big riadok – flex, zarovnané riadky + pevná výška ikony */
.bb-agency #services .row { display: flex; flex-wrap: wrap; justify-content: center; }
.bb-agency #services h4 { font-size: 16px; letter-spacing: .5px; margin-bottom: 12px; }
.bb-agency #services .col-agency { padding: 22px 18px; display: flex; flex-direction: column; }
.bb-agency #services .col-agency .icon-big { display: block; height: 68px; line-height: 68px; margin: 0 auto 10px; }
.bb-agency #services .col-agency p { flex: 1; }

/* Testimonials */
.bb-agency #testimonials .img-circle { width: 120px; height: 120px; object-fit: cover; }
.bb-quote-avatar { width: 110px; height: 110px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 52px; color: var(--bb-accent-ink); background: linear-gradient(135deg, var(--bb-accent), var(--bb-accent-d)); box-shadow: var(--bb-shadow-osx); }
.bb-agency #testimonials h3 { color: var(--text); }

/* Partneri */
.bb-agency #partners .bb-clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1120px; margin: 30px auto 0; }
.bb-client-tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--bb-radius); height: 120px; display: flex; align-items: center; justify-content: center; padding: 22px; transition: all .3s var(--bb-ease); }
.bb-client-tile:hover { box-shadow: var(--bb-shadow-card); transform: translateY(-3px); }
.bb-client-tile img { max-height: 46px; max-width: 100%; width: auto; filter: grayscale(1) brightness(.15) contrast(1.4); }
.bb-client-word { font-size: 30px; font-weight: 800; letter-spacing: -1.5px; color: var(--text); white-space: nowrap; }
:root[data-theme="dark"] .bb-client-tile img { filter: grayscale(1) invert(1) brightness(2.2); }
@media (max-width: 767px) { .bb-agency #partners .bb-clients { grid-template-columns: repeat(2, 1fr); gap: 14px; } .bb-client-tile { height: 96px; } .bb-client-word { font-size: 24px; } }

@media (max-width: 1199px) {
  .bb-agency .offcet-art, .bb-agency .offcet-art-dark, .bb-agency .offcet-art-right { position: static; left: 0; width: 100%; margin-top: -40px; }
}
@media (max-width: 767px) {
  .bb-agency .offcet-art-dark h1 { font-size: 23px; }
  .bb-agency .v-center > [class*=col] { padding: 18px 15px; }
  .bb-agency .box-shadow { margin: 0 12px; }
}

/* ==========================================================================
   Portfólio na úvode – jednotné svetlé pozadie + obrázky o ~1/5 menšie
   ========================================================================== */
/* CSS GRID – 4 stĺpce, dokonalé horizontálne zarovnanie, dlaždica cez 2 riadky */
.bb-portfolio-home #portfolio { background: var(--bg); padding-top: 44px; padding-bottom: 20px; }
.bb-pf-wrap { padding: 0 12px; }
.bb-portfolio-home .bb-pf-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  max-width: 1260px; margin: 0 auto;
}
.bb-portfolio-home .bb-pf-cell { min-width: 0; }
/* Responzívne stĺpce – tablet 3, mobil 2 (bez horizontálneho pretoku) */
@media (max-width: 991px) { .bb-portfolio-home .bb-pf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .bb-portfolio-home .bb-pf-grid { grid-template-columns: repeat(2, 1fr); } }
.bb-portfolio-home .bb-pf-cell:not(.bb-tall) { aspect-ratio: 16/10; }
/* 2. dlaždica o 3 % kratšia (na želanie) */
.bb-portfolio-home .bb-pf-cell:nth-child(2) { aspect-ratio: 16/9.7; align-self: start; }
.bb-portfolio-home .bb-pf-cell.bb-tall { grid-row: span 2; }
.bb-portfolio-home .portfolio-item {
  position: relative; height: 100%; overflow: hidden; background: var(--bb-hero-bg);
  transition: transform .4s var(--bb-ease);
}
.bb-portfolio-home .portfolio-item > a { display: block; height: 100%; }
.bb-portfolio-home .portfolio-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: var(--bb-hero-bg); transition: transform .6s var(--bb-ease), filter .4s var(--bb-ease);
  filter: grayscale(1) contrast(1.03); /* len odtiene sivej */
}
.bb-portfolio-home .portfolio-item:hover img { transform: scale(1.06); }
/* Vybrané dlaždice farebné (výnimka z grayscale) */
.bb-portfolio-home .portfolio-item img[src*="doprava"],
.bb-portfolio-home .portfolio-item img[src*="bigbox1"],
.bb-portfolio-home .portfolio-item img[src*="bigbox2"],
.bb-portfolio-home .portfolio-item img[src*="karton.webp"],
.bb-portfolio-home .portfolio-item img[src*="pena"] { filter: none !important; }
/* Filter – centrovaný, aktívny = sivá pilulka */
.bb-portfolio-home .bb-pf-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0 0 30px; }
.bb-portfolio-home .bb-pf-filter a {
  display: inline-block; padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text); background: transparent; border: 0;
  border-radius: 999px !important; cursor: pointer; transition: all .2s var(--bb-ease); line-height: 1.6;
}
.bb-portfolio-home .bb-pf-filter a.active,
.bb-portfolio-home .bb-pf-filter a:hover { background: var(--muted); color: var(--bg); }

/* Zjednotenie pozadí obrázkov v kartách/rámoch (aby fotky na bielom ladili) */
.bb-card-media, .bb-img-frame, .bb-agency .box-shadow, .bb-agency .carousel-item,
.bb-agency #carousel-light4, .bb-agency .offcet-art-main > .row > [class*=col-] {
  background: var(--bb-hero-bg);
}

/* ==========================================================================
   BEZ ZAOBLENÍ – všetko hranaté (obrázky, tlačidlá, karty, dlaždice, inputy)
   ========================================================================== */
.btn, .btn-bb, .btn-bb-ghost, .btn-bb-2, button.btn, input[type="submit"],
img, .bb-img, .bb-img-frame, .bb-img-frame img,
.bb-card, .bb-card-media, .bb-card-icon,
.portfolio-item, .portfolio-item > a, .portfolio-overlay, .portfolio-item img,
.bb-portfolio-home .portfolio-item, .bb-portfolio-home .portfolio-item > a,
.bb-portfolio-home .portfolio-overlay, .bb-portfolio-home .portfolio-item img,
.bb-form-card, .bb-input, .form-control, input, textarea, select,
.carousel-item img, .showcase img, .offcet-art-main img, .box-shadow,
.offcet-art, .offcet-art-dark, .offcet-art-right, .bb-cta-band, .bb-map, .bb-map iframe,
.bb-industry, .bb-team-photo, .bb-team-photo img, .bb-cert-badge, .bb-calc-form, .bb-calc-result,
.badge, .badge.price, .bb-version, .bb-badge-pop, .bb-filter, .bb-filter button,
.bb-nav .dropdown-menu, .bb-cookie, .bb-logo-mark, .navbar-toggle {
  border-radius: 0 !important;
}

/* Vyhľadávanie */
.bb-nav-search { color: var(--text) !important; font-size: 22px; display: inline-flex; align-items: center; padding: 0 6px; transition: color .2s var(--bb-ease); }
.bb-nav-search:hover { color: var(--bb-accent) !important; }
.bb-search-big { display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 18px auto 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--bb-radius); padding: 8px 8px 8px 18px; box-shadow: var(--bb-shadow-card); }
.bb-search-big i { font-size: 22px; color: var(--muted); }
.bb-search-big input { flex: 1; border: 0; background: transparent; font-size: 16px; color: var(--text); outline: none; padding: 8px 4px; }
.bb-search-results { display: grid; gap: 10px; }
.bb-search-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--bb-radius); transition: all .2s var(--bb-ease); }
.bb-search-item:hover { border-color: var(--bb-accent); transform: translateX(4px); }
.bb-search-ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: var(--bg-soft); color: var(--bb-accent); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.bb-search-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bb-search-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--bb-accent); font-weight: 700; }
.bb-search-body strong { color: var(--text); }
.bb-search-desc { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-search-arrow { color: var(--muted); }

/* Proces výroby – striedavé kroky */
.bb-proc-row { display: grid; grid-template-columns: 0.8fr 1fr; gap: 40px; align-items: center; margin-bottom: 46px; }
.bb-proc-row.rev .bb-proc-media { order: 2; }
.bb-proc-num { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.bb-proc-num span { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; background: var(--bb-accent); color: var(--bb-accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; box-shadow: var(--bb-shadow-card); }
.bb-proc-num i { font-size: 34px; color: var(--bb-accent); }
.bb-proc-body h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.bb-proc-body p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 767px) {
  .bb-proc-row { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }
  .bb-proc-row.rev .bb-proc-media { order: 0; }
}

/* Sledovanie dopytu – kroky */
.bb-track-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.bb-track-step { flex: 1; min-width: 90px; text-align: center; }
.bb-track-dot { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--bg-soft); color: var(--muted); border: 2px solid var(--border); margin-bottom: 8px; }
.bb-track-step.done .bb-track-dot { background: var(--bb-accent); color: var(--bb-accent-ink); border-color: var(--bb-accent); }
.bb-track-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.bb-track-step.done .bb-track-label { color: var(--text); }

/* Rešpektuj preferenciu redukovaného pohybu */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .05ms !important; }
}
