/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/





/* =========================================================================
   BBT-Materials Processing – vlastní styly webu
   -------------------------------------------------------------------------
   Barvy a písma se berou z globálních nastavení Elementoru (Site Settings):
     --e-global-color-primary  #006AFF   --e-global-color-accent  #00D8FF
     --e-global-color-text     #303030   --e-global-color-bbtblk1 #000000
     --e-global-color-bbtdrk1  #232323   --e-global-color-bbtlgt1 #F1F1F1
     --e-global-color-bbtoff1  #F8F8F8   --e-global-color-bbtwht1 #FFFFFF
   Breakpointy: tablet ≤ 1024 px, mobil ≤ 767 px.

   Proč místy „html body …“ a !important: Elementor generuje vlastní CSS
   s vysokou specificitou (např. .e-con > .elementor-widget), tyto
   prefixy zajišťují, že naše úprava vyhraje.

   OBSAH
    1. Písma (řecká sada)
    2. Obecné prvky a pomocné třídy
    3. Hlavička (sticky menu, skleněné bubliny)
    4. Liquid glass – sklo ve stylu iOS
    5. Crystal Highlights
    6. Portfolio
    7. Components – přepínač Kalomel / Kuzminite
    8. Products
    9. Services, About us, Contact, patička
   10. Video přes celou výšku sloupce
   11. Projects – časová osa
   12. Blog – karty článků (homepage + výpis)
   13. Blog – stránka výpisu, filtry, stránkování
   14. Blog – detail článku
   ========================================================================= */


/* =========================================================================
   1. PÍSMA – řecká sada (přesunuto z pluginu Custom CSS and JavaScript)
   Oswald nemá řecké znaky → pro ně se použije Source Sans 3 se zvětšením.
   ========================================================================= */
@font-face {
	font-family: "Oswald";
	src: url(/wp-content/uploads/fonts/source-sans-3-v20-greek-600.woff2) format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0370-03FF, U+1F00-1FFF;
	size-adjust: 110%;
}
@font-face {
	font-family: "Oswald";
	src: url(/wp-content/uploads/fonts/source-sans-3-v20-greek-700.woff2) format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0370-03FF, U+1F00-1FFF;
	size-adjust: 110%;
}


/* =========================================================================
   2. OBECNÉ PRVKY A POMOCNÉ TŘÍDY
   ========================================================================= */

html { scroll-behavior: smooth; }

/* Kotvy sekcí (#portfolio, #blog …) – rezerva nad nadpisem po doskrolování */
.bbt-section { scroll-margin-top: 24px; }

/* Poslední odstavec v textovém widgetu bez spodního okraje */
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Pomocné třídy (přidávají se v Elementoru → Advanced → CSS Classes) */
.bbt-hidden      { display: none !important; }            /* skrytý prvek */
.bbt-accent      { color: var(--e-global-color-primary); } /* modrý text */
.bbt-minw0       { min-width: 0; }                         /* flex položka se smí zúžit */
.bbt-glass       { -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.bbt-glass-dark  { -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px); }

/* Bílé „pilulky“ v seznamu (Crystal Highlights) */
.bbt-pills ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.bbt-pills li {
	background: #fff;
	border-radius: 10px;
	padding: 12px;
	margin: 0;
	color: var(--e-global-color-text);
}
.bbt-pills li strong {
	font-family: Oswald, sans-serif;
	font-weight: 500;
	color: var(--e-global-color-bbtdrk1);
}
.bbt-pills sub,
.bbt-pills sup { font-size: .65em; line-height: 0; }

/* -------------------------------------------------------------------------
   Tlačítko „More …“ se šipkou (třída bbt-btn-more)
   Šipka ↘ se na hover natočí o 45°. Varianty:
     bbt-arrow-up – na hover se natočí nahoru
     bbt-arrow-ne – výchozí ↗, na hover se natočí nahoru (blog)
   ------------------------------------------------------------------------- */
.bbt-btn-more .elementor-button { text-transform: none; }
.bbt-btn-more .elementor-button-icon { display: inline-flex; line-height: 0; }
.bbt-btn-more .elementor-button-icon svg {
	width: 11px;
	height: 11px;
	fill: currentColor;
	transition: transform .4s cubic-bezier(.65, 0, .35, 1);
}
.bbt-btn-more .elementor-button:hover .elementor-button-icon svg,
.bbt-btn-more .elementor-button:focus-visible .elementor-button-icon svg { transform: rotate(45deg); }

.bbt-btn-more.bbt-arrow-up .elementor-button:hover .elementor-button-icon svg,
.bbt-btn-more.bbt-arrow-up .elementor-button:focus-visible .elementor-button-icon svg { transform: rotate(-135deg); }

.bbt-arrow-ne .elementor-button-icon svg { transform: rotate(-90deg); }
.bbt-btn-more.bbt-arrow-ne .elementor-button:hover .elementor-button-icon svg,
.bbt-btn-more.bbt-arrow-ne .elementor-button:focus-visible .elementor-button-icon svg { transform: rotate(-135deg); }


/* =========================================================================
   3. HLAVIČKA
   Lišta s logem + samostatná bublina s menu a „Contact us“.
   Po odscrollování (třída .is-scrolled, nastavuje JS) se lišta stáhne
   k logu a bublina se zmenší a zarovná s pravou hranou obsahu.
   Na tabletu/mobilu se lišta „přelije“ do bubliny s hamburgerem.
   ========================================================================= */
.bbt-header {
	--bbt-ease: cubic-bezier(.65, 0, .35, 1);
	pointer-events: none;            /* průhledná plocha hlavičky neblokuje klikání */
}
.bbt-header .bbt-bar,
.bbt-header .bbt-pill { pointer-events: auto; }

/* Hlavní skleněná lišta – pozadí je v ::before, aby šlo animovat ořezem */
.bbt-bar { position: relative; isolation: isolate; }
.bbt-bar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: rgba(255, 255, 255, .1);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	clip-path: inset(0 0 0 0 round var(--bbt-r, 68px));
	transition: clip-path .6s var(--bbt-ease), opacity .3s ease .32s;
}
.bbt-header.is-scrolled .bbt-bar { pointer-events: none; }
.bbt-header.is-scrolled .bbt-bar::before {
	clip-path: inset(0 var(--bbt-cr, 80%) 0 0 round var(--bbt-r, 68px)); /* --bbt-cr počítá JS */
	opacity: 0;
}

/* Logo – po scrollu zmizí */
.bbt-logo { transition: opacity .3s ease .18s, transform .6s var(--bbt-ease); }
.bbt-header.is-scrolled .bbt-logo { opacity: 0; transform: translateX(-24px); pointer-events: none; }
.bbt-header:not(.is-scrolled) .bbt-logo { transition: opacity .35s ease .15s, transform .6s var(--bbt-ease); }

/* Podstránky se světlým pozadím (blog, článek) – tmavé logo */
body:not(.home) .bbt-logo img { filter: brightness(0); }

/* Bublina s menu + Contact us */
.e-con.bbt-pill { --width: auto; width: auto; flex: 0 0 auto; }
.bbt-pill {
	position: relative;
	isolation: isolate;
	transform-origin: right center;
	transition: transform .6s var(--bbt-ease);
}
.bbt-pill::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(22px) saturate(1.4);
	backdrop-filter: blur(22px) saturate(1.4);
	box-shadow: none;
	transition: background-color .5s ease, box-shadow .5s ease;
}
/* Po scrollu: posun = padding lišty (24) + padding bubliny po zmenšení (24 × 0,9)
   → tlačítko Contact us lícuje s pravou hranou obsahu */
.bbt-header.is-scrolled .bbt-pill { transform: translateX(45.6px) translateY(-30px) scale(.9); }
.bbt-header.is-scrolled .bbt-pill::before {
	background: rgba(255, 255, 255, .76);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .10);
}

/* Položky menu
   nad videem:  aktivní = bílá výplň, hover = černý rámeček
   po scrollu:  aktivní = černý rámeček, hover = šedá výplň */
.bbt-nav .elementor-nav-menu--main .elementor-item {
	border-radius: 10px;
	box-shadow: inset 0 0 0 1px transparent;
	transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.bbt-nav .elementor-nav-menu--main .elementor-item:hover,
.bbt-nav .elementor-nav-menu--main .elementor-item:focus-visible {
	box-shadow: inset 0 0 0 1px #000;
	background-color: transparent;
}
.bbt-nav .elementor-nav-menu--main .elementor-item.elementor-item-active { background-color: #fff; }
.bbt-nav .elementor-nav-menu--main .elementor-item.elementor-item-active:hover { box-shadow: none; background-color: #fff; }

.bbt-header.is-scrolled .bbt-nav .elementor-nav-menu--main .elementor-item.elementor-item-active,
.bbt-header.is-scrolled .bbt-nav .elementor-nav-menu--main .elementor-item.elementor-item-active:hover {
	background-color: transparent;
	box-shadow: inset 0 0 0 1px #000;
}
.bbt-header.is-scrolled .bbt-nav .elementor-nav-menu--main .elementor-item:not(.elementor-item-active):hover,
.bbt-header.is-scrolled .bbt-nav .elementor-nav-menu--main .elementor-item:not(.elementor-item-active):focus-visible {
	background-color: var(--e-global-color-bbtlgt1);
	box-shadow: none;
}

.bbt-cta .elementor-button { font-size: 20px; line-height: 24px; }

/* --- Tablet + mobil: hamburger a rozbalovací menu ----------------------- */
@media (max-width: 1024px) {
	.bbt-header { --bbt-r: 38px; --bbt-p: 13px; --bbt-ph: 21px; }

	.bbt-cta .elementor-button { font-size: 16px; line-height: 20px; }

	.bbt-nav { position: relative; }
	.bbt-nav .elementor-menu-toggle {
		width: 48px;
		height: 48px;
		border-radius: 10px;
		transition: background-color .25s;
	}

	/* rozbalovací menu = skleněná karta vpravo pod hamburgerem */
	.bbt-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container {
		position: absolute;
		top: calc(100% + 20px);
		right: -10px;
		left: auto !important;
		width: min(300px, calc(100vw - 24px)) !important;
		transform-origin: top right;
	}
	html body .bbt-nav.elementor-element .elementor-nav-menu--dropdown.elementor-nav-menu__container {
		padding: 8px;
		border-radius: 20px;
		background-color: rgba(255, 255, 255, .62);
		-webkit-backdrop-filter: blur(26px) saturate(1.8);
		backdrop-filter: blur(26px) saturate(1.8);
		box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
	}
	.bbt-nav .elementor-nav-menu--dropdown .elementor-nav-menu { display: flex; flex-direction: column; gap: 4px; }

	html body .bbt-nav.elementor-element .elementor-nav-menu--dropdown a.elementor-item {
		border-radius: 10px;
		color: #000;
		background-color: transparent;
		box-shadow: inset 0 0 0 1px transparent;
		transition: background-color .2s ease, box-shadow .2s ease;
	}
	html body .bbt-nav.elementor-element .elementor-nav-menu--dropdown a.elementor-item:hover,
	html body .bbt-nav.elementor-element .elementor-nav-menu--dropdown a.elementor-item:focus-visible,
	html body .bbt-nav.elementor-element .elementor-nav-menu--dropdown a.elementor-item:active,
	html body .bbt-nav.elementor-element .elementor-nav-menu--dropdown a.elementor-item.highlighted {
		color: #000;
		background-color: var(--e-global-color-bbtlgt1);
		box-shadow: inset 0 0 0 1px transparent;
	}
	html body .bbt-nav.elementor-element .elementor-nav-menu--dropdown a.elementor-item.elementor-item-active,
	html body .bbt-nav.elementor-element .elementor-nav-menu--dropdown a.elementor-item.elementor-item-active:hover {
		color: #000;
		background-color: transparent;
		box-shadow: inset 0 0 0 1px #000;
	}

	/* lišta se při scrollu ořízne do tvaru bubliny (hodnoty --bbt-ct/cb/cl/cr/pr počítá JS) */
	.bbt-header .bbt-bar::before {
		transition: clip-path .6s var(--bbt-ease), background-color .6s ease, opacity 0s linear 0s;
	}
	.bbt-header.is-scrolled .bbt-bar::before {
		clip-path: inset(var(--bbt-ct, 0px) var(--bbt-cr, 0px) var(--bbt-cb, 0px) var(--bbt-cl, 0px) round var(--bbt-pr, 34px));
		background-color: rgba(255, 255, 255, .76);
		opacity: 0;
		transition: clip-path .6s var(--bbt-ease), background-color .6s ease, opacity .15s linear .6s;
	}

	/* logo jen zmizí (bez posunu) */
	.bbt-header .bbt-logo,
	.bbt-header.is-scrolled .bbt-logo { transform: none; }
	.bbt-header .bbt-logo { transition: opacity .35s ease .2s; }
	.bbt-header.is-scrolled .bbt-logo { opacity: 0; transition: opacity .25s ease; }

	/* bublina tlačítek: místo zmenšení se jen rozšíří padding */
	.bbt-header .e-con.bbt-pill {
		transform: none;
		transition: padding .6s var(--bbt-ease), margin .6s var(--bbt-ease);
	}
	html body .bbt-header.is-scrolled .e-con.bbt-pill {
		padding: var(--bbt-p) var(--bbt-ph);
		margin: calc(var(--bbt-p) * -1) calc(var(--bbt-ph) * -1);
		transform: none;
	}
	.bbt-header .bbt-pill::before {
		opacity: 0;
		background: rgba(255, 255, 255, .76);
		transition: opacity .12s linear 0s;
	}
	.bbt-header.is-scrolled .bbt-pill::before { opacity: 1; transition: opacity .2s ease .5s; }

	html body .bbt-header.is-scrolled .bbt-nav.elementor-element .elementor-menu-toggle {
		background-color: var(--e-global-color-bbtlgt1);
	}
}

@media (max-width: 767px) {
	.bbt-header { --bbt-r: 34px; --bbt-p: 11px; --bbt-ph: 18px; }
	.bbt-cta .elementor-button { font-size: 14px; line-height: 18px; }
	.bbt-nav .elementor-menu-toggle { width: 44px; height: 44px; }
	.bbt-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container { top: calc(100% + 18px); right: -8px; }
}

@media (prefers-reduced-motion: reduce) {
	.bbt-bar::before,
	.bbt-logo,
	.bbt-pill,
	.bbt-pill::before { transition: none !important; }
}


/* =========================================================================
   4. LIQUID GLASS – sklo ve stylu iOS (odlesk, fyzický okraj, rozostření)
   Platí pro bublinu menu po scrollu, sticky přepínač Components
   a rozbalovací menu na tabletu/mobilu.
   ========================================================================= */
:root {
	--bbt-sheen: linear-gradient(160deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .08) 32%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .12) 100%);
	--bbt-rim-soft: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 0 0 1px rgba(255, 255, 255, .10);
	--bbt-rim-light: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(0, 0, 0, .06), inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 0 0 .5px rgba(0, 0, 0, .05);
	--bbt-drop: 0 12px 32px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .04);
	--bbt-blur: blur(24px) saturate(1.9) brightness(1.04);
	--bbt-glass-light: rgba(255, 255, 255, .55);
}

/* Úvodní stav nad videem = jednoduché sklo bez lesku */
html body .bbt-header:not(.is-scrolled) .bbt-bar::before {
	background-color: rgba(255, 255, 255, .1);
	background-image: none;
	box-shadow: none;
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}
html body .bbt-header:not(.is-scrolled) .bbt-pill::before {
	background-color: rgba(255, 255, 255, .16);
	background-image: none;
	box-shadow: none;
	-webkit-backdrop-filter: blur(22px) saturate(1.4);
	backdrop-filter: blur(22px) saturate(1.4);
}
html body .bbt-header.is-scrolled .bbt-bar::before { background-image: none; }

/* Světlé sklo: lesk + fyzický okraj */
html body .bbt-header.is-scrolled .bbt-pill::before,
html body .bbt-tabs .e-n-tabs-heading,
html body .bbt-nav.elementor-element .elementor-nav-menu--dropdown.elementor-nav-menu__container {
	background-image: var(--bbt-sheen);
	-webkit-backdrop-filter: var(--bbt-blur);
	backdrop-filter: var(--bbt-blur);
}
html body .bbt-header.is-scrolled .bbt-pill::before,
html body .bbt-tabs .e-n-tabs-heading {
	background-color: var(--bbt-glass-light);
	box-shadow: var(--bbt-rim-light), var(--bbt-drop);
}
html body .bbt-nav.elementor-element .elementor-nav-menu--dropdown.elementor-nav-menu__container {
	box-shadow: var(--bbt-rim-light), 0 16px 40px rgba(0, 0, 0, .14);
}
@media (max-width: 1024px) {
	html body .bbt-header.is-scrolled .bbt-bar::before { box-shadow: var(--bbt-rim-light); }
}


/* =========================================================================
   5. CRYSTAL HIGHLIGHTS
   ========================================================================= */

/* Fotka krystalu splyne s pozadím (darken) a okraje se rozplynou (maska) */
.bbt-crystal-fade img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	mix-blend-mode: darken;
	-webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}

/* Řádek se dvěma krystaly – obě fotky vždy stejně velké
   --bbt-g = mezera, --bbt-rw = šířka obsahu, --bbt-tw = šířka textového sloupce */
.bbt-crys-row { --bbt-g: clamp(40px, 4.5vw, 96px); --bbt-rw: min(100vw - 160px, 1568px); }
html body .e-con.bbt-crys-row { gap: var(--bbt-g); }
html body .bbt-crys-row .bbt-crystal-fade {
	flex: 0 0 auto;
	width: clamp(220px, calc((var(--bbt-rw) - var(--bbt-g)) / 2 - var(--bbt-tw, 342px)), 352px);
	min-width: 0;
	margin-top: 40px;
}

@media (min-width: 1440px) {
	.bbt-crys-row { --bbt-tw: 410px; --bbt-g: clamp(40px, 3.5vw, 72px); }
	html body .bbt-crys-card > .e-con.bbt-crys-body { --width: var(--bbt-tw); width: var(--bbt-tw); }
	.bbt-crys-row .bbt-pills li { white-space: nowrap; }
}
@media (max-width: 1279px) {
	html body .e-con.bbt-crys-row { flex-direction: column; align-items: center; gap: 64px; }
	html body .bbt-crys-row .bbt-crystal-fade { width: 300px; order: -1; }
	html body .bbt-crys-row > .e-con.bbt-crys-card { --width: auto; width: auto; gap: 32px; }
}
@media (max-width: 767px) {
	html body .e-con.bbt-crys-row { gap: 56px; }
	html body .bbt-crys-row .bbt-crystal-fade { width: 240px; margin-top: 0; border-radius: 32px; }
	html body .bbt-crys-row > .e-con.bbt-crys-card { --width: 100%; width: 100%; gap: 24px; }
	html body .bbt-crys-card > .e-con.bbt-crys-body { --width: 100%; width: 100%; }
}


/* =========================================================================
   6. PORTFOLIO (Components / Products / Services)
   Celá karta je klikací (JS), šipka tlačítka se točí už při najetí na kartu.
   ========================================================================= */
.bbt-pf-card { min-height: 564px; cursor: pointer; }
@media (min-width: 1025px) {
	html body .e-con.bbt-pf-card { max-width: 483px; }
	html body .e-con:has(> .e-con.bbt-pf-card) { justify-content: center; }
}

/* Produktová fotka vycentrovaná nad bílým boxem, bez deformace */
.bbt-pf-img { display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.bbt-pf-img img { width: auto; max-width: 100%; object-fit: contain; }

.bbt-pf-card:hover .bbt-btn-more .elementor-button-icon svg { transform: rotate(45deg); }
.bbt-pf-card:hover .bbt-btn-more.bbt-arrow-up .elementor-button-icon svg { transform: rotate(-135deg); }

@media (max-width: 1024px) {
	.bbt-pf-card { max-width: 560px; min-height: 0; }
	.bbt-pf-img { padding: 24px 0; }
}


/* =========================================================================
   7. COMPONENTS – přepínač Kalomel / Kuzminite (Nested Tabs)
   Na desktopu se přepínač při scrollu přilepí (JS přidá .is-stuck)
   a zarovná se s levou hranou obsahu. Na tabletu/mobilu je napevno.
   ========================================================================= */
.bbt-tabs.elementor-widget-n-tabs {
	--n-tabs-gap: 56px;
	--n-tabs-title-gap: 12px;
	--n-tabs-title-background-color: transparent;
	--n-tabs-title-background-color-hover: #FFFFFF;
	--n-tabs-title-background-color-active: var(--e-global-color-primary);
	--n-tabs-title-color: #000;
	--n-tabs-title-color-hover: #000;
	--n-tabs-title-color-active: #fff;
	--n-tabs-title-border-radius: 10px;
	--n-tabs-title-padding-top: 15px;
	--n-tabs-title-padding-bottom: 15px;
	--n-tabs-title-padding-left: 24px;
	--n-tabs-title-padding-right: 24px;
	--n-tabs-title-font-size: 22px;
}

/* Lišta s přepínači = skleněná bublina */
.bbt-tabs .e-n-tabs-heading {
	position: sticky;
	top: var(--bbt-st, 22px);           /* --bbt-st nastavuje JS (+ admin bar) */
	z-index: 90;
	justify-content: center;
	gap: 12px;
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
	padding: 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .76);
	-webkit-backdrop-filter: blur(22px) saturate(1.5);
	backdrop-filter: blur(22px) saturate(1.5);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .10);
	transform-origin: left top;
	transition: transform .6s cubic-bezier(.65, 0, .35, 1), background-color .4s ease, box-shadow .4s ease;
	will-change: transform;
}
html body .bbt-tabs.elementor-widget-n-tabs .e-n-tabs-heading { background-image: var(--bbt-sheen); }

/* Výchozí (nepřilepený) stav – větší boční padding */
html body .bbt-tabs:not(.is-stuck):not(.bbt-measure) .e-n-tabs-heading { padding-left: 36px; padding-right: 36px; }

/* Přilepený stav = stejné míry jako bublina menu, zmenšení na 90 %
   --bbt-dx / --bbt-ml počítá JS */
.bbt-tabs.is-stuck.is-left .e-n-tabs-heading {
	transform: translateX(var(--bbt-dx, 0px)) scale(.9);
	margin-bottom: 22px;
	margin-left: var(--bbt-ml, auto);
	margin-right: auto;
}
html body .bbt-tabs.is-left.is-stuck .e-n-tab-title,
html body .bbt-tabs.bbt-measure .e-n-tab-title { font-size: 20px; line-height: 24px; padding: 8px 15px; }
.bbt-tabs.bbt-measure .e-n-tabs-heading { transition: none !important; }

/* Jednotlivá tlačítka přepínače */
html body .bbt-tabs.elementor-widget-n-tabs .e-n-tab-title {
	font-family: Oswald, sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 32px;
	letter-spacing: 0;
	text-transform: none;
	padding: 15px 24px;
	border: 0;
	border-radius: 10px;
	background-color: transparent;
	color: #000;
	transition: background-color .25s ease, color .25s ease;
}
html body .bbt-tabs.elementor-widget-n-tabs .e-n-tab-title[aria-selected=true] {
	background-color: var(--e-global-color-primary);
	color: #fff;
}
html body .bbt-tabs.elementor-widget-n-tabs .e-n-tab-title[aria-selected=false]:hover {
	background-color: #FFFFFF;
	color: #000;
}
html body .bbt-tabs .e-n-tab-title .e-n-tab-title-text {
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	font-family: inherit;
}
.bbt-tabs .e-n-tabs-content > .e-con { padding: 0; }

/* Obsah záložek */
/* Diagram: nahraj SVG s průhledným pozadím, gradient je v pozadí widgetu */
.bbt-diagram {
	--bbt-dg-radial: radial-gradient(67.64% 67.64% at 51.66% 32.36%, #006AFF 0%, #0049AF 100%);
	--bbt-dg-base: linear-gradient(0deg, #006AFF, #006AFF);
	background: var(--bbt-dg-radial), var(--bbt-dg-base);
	border-radius: 10px;
	overflow: hidden;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
}
.bbt-diagram img { display: block; width: 100%; height: auto; }

/* Tabulka parametrů (název … hodnota) */
.bbt-spec ul { list-style: none; margin: 0; padding: 0; }
.bbt-spec li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 12px 0;
	margin: 0;
	border-top: 1px solid #DDDDDD;
}
.bbt-spec li:first-child { border-top: 0; padding-top: 0; }
.bbt-spec li:last-child { padding-bottom: 0; }
.bbt-spec strong {
	font-family: Oswald, sans-serif;
	font-weight: 500;
	color: var(--e-global-color-bbtdrk1);
	text-align: right;
}

/* Modrá tečka před textem */
.bbt-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--e-global-color-primary);
	margin-right: 6px;
	vertical-align: middle;
	position: relative;
	top: -1px;
}
.bbt-types-title { text-transform: uppercase; }

/* Šedé štítky vedle sebe */
.bbt-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bbt-chips li {
	background: var(--e-global-color-bbtoff1);
	border-radius: 10px;
	padding: 12px;
	margin: 0;
	line-height: 1.5;
}

@media (max-width: 1024px) {
	/* tablet + mobil: přepínač napevno, bez sticky */
	html body .bbt-tabs .e-n-tabs-heading {
		position: relative;
		top: auto;
		transform: none !important;
		margin-bottom: 0 !important;
	}
}
@media (max-width: 767px) {
	.bbt-tabs.elementor-widget-n-tabs { --n-tabs-gap: 40px; }
	html body .bbt-tabs .e-n-tabs-heading {
		flex-direction: row;
		flex-wrap: nowrap;
		padding: 6px;
		border-radius: 999px;
		gap: 2px;
	}
	html body .bbt-tabs:not(.is-stuck):not(.bbt-measure) .e-n-tabs-heading { padding-left: 6px; padding-right: 6px; }
	html body .bbt-tabs.elementor-widget-n-tabs .e-n-tab-title {
		font-size: 16px;
		line-height: 22px;
		padding: 10px 14px;
		white-space: nowrap;
		flex: 0 0 auto;
		width: auto;
	}
	.bbt-spec li { flex-direction: column; gap: 2px; }
	.bbt-spec strong { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	.bbt-tabs .e-n-tabs-heading { transition: none; }
}


/* =========================================================================
   8. PRODUCTS (AOTF, IRCAPOL, TWINS)
   Pozadí: gradient z návrhu + dvě rozostřené vrstvy světel.
     transform       → pohyb podle scrollu (--bbt-pp 0–1 nastavuje JS)
     translate/rotate → automatická pomalá animace (běží jen když je
                        sekce vidět – třída .is-visible z JS)
   Tyrkysový text v dlaždicích: v nadpisu dlaždice obal slova do <em>…</em>.
   ========================================================================= */
.bbt-products {
	--pr-gap: 8px;                    /* mezera mezi dlaždicemi */
	--pr-w: 1064px;                   /* šířka obsahu sekce */
	--c: var(--bbt-pp, 0);            /* průběh scrollu sekcí 0 → 1 */
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: linear-gradient(180deg, #180281 0%, #2801e6 100%) !important;
}
.bbt-products > .e-con-inner { position: relative; z-index: 1; }

/* Vrstva 1 – modrá záře + tmavá hloubka */
.bbt-products::before {
	content: "";
	position: absolute;
	z-index: 0;
	inset: -40%;
	pointer-events: none;
	background:
		radial-gradient(26% 20% at 28% 30%, rgba(0, 106, 255, .62), transparent 72%),
		radial-gradient(30% 24% at 72% 72%, rgba(12, 0, 96, .65), transparent 72%),
		radial-gradient(18% 14% at 60% 22%, rgba(150, 70, 255, .22), transparent 70%);
	filter: blur(40px);
	will-change: transform;
	transform:
		translate3d(calc((var(--c) - .5) * 56%), calc((var(--c) - .5) * -40%), 0)
		rotate(calc(var(--c) * 110deg))
		scale(calc(1 + var(--c) * .35));
	animation: bbt-pr-float-a 26s ease-in-out infinite alternate;
	animation-play-state: paused;
}

/* Vrstva 2 – fialová + #b9246c, ke konci sekce sílí */
.bbt-products::after {
	content: "";
	position: absolute;
	z-index: 0;
	inset: -40%;
	pointer-events: none;
	background:
		radial-gradient(28% 22% at 72% 36%, rgba(118, 40, 255, .6), transparent 72%),
		radial-gradient(22% 18% at 24% 66%, rgba(185, 36, 108, .42), transparent 72%),
		radial-gradient(18% 14% at 58% 82%, rgba(185, 36, 108, .28), transparent 72%),
		radial-gradient(20% 16% at 40% 40%, rgba(140, 60, 255, .3), transparent 72%);
	filter: blur(40px);
	will-change: transform, opacity;
	opacity: calc(.3 + var(--c) * .7);
	transform:
		translate3d(calc((.5 - var(--c)) * 50%), calc((var(--c) - .5) * 36%), 0)
		rotate(calc(var(--c) * -80deg))
		scale(calc(1.3 - var(--c) * .3));
	animation: bbt-pr-float-b 34s ease-in-out infinite alternate;
	animation-play-state: paused;
}
.bbt-products.is-visible::before,
.bbt-products.is-visible::after { animation-play-state: running; }

@keyframes bbt-pr-float-a {
	0%   { translate: -6% -4%; rotate: 0deg; }
	30%  { translate: 7% 3%;   rotate: 18deg; }
	65%  { translate: -3% 8%;  rotate: -12deg; }
	100% { translate: 6% -6%;  rotate: 10deg; }
}
@keyframes bbt-pr-float-b {
	0%   { translate: 5% 4%;   rotate: 0deg; }
	35%  { translate: -8% -3%; rotate: -16deg; }
	70%  { translate: 4% -7%;  rotate: 12deg; }
	100% { translate: -5% 6%;  rotate: -8deg; }
}
@media (prefers-reduced-motion: reduce) {
	.bbt-products::before,
	.bbt-products::after { transform: none; animation: none; }
}

/* Nadtitulek „End-to-end optical systems“ (nadpis Products má stejnou barvu v Elementoru) */
.bbt-pr-eyebrow .elementor-heading-title { color: #5C9DFF; }

/* Rozvržení: produkt = hlavní část (2/3) + boční sloupec (1/3) */
.bbt-pr-list { width: 100% !important; max-width: var(--pr-w); }
html body .bbt-pr-product,
html body .bbt-pr-top,
html body .bbt-pr-tiles,
html body .bbt-pr-side,
html body .bbt-pr-main,
html body .bbt-pr-col { gap: var(--pr-gap) !important; }
.bbt-pr-product,
.bbt-pr-top { align-items: flex-start !important; }
html body .bbt-pr-side { flex: 0 0 calc((100% - 2 * var(--pr-gap)) / 3) !important; width: auto !important; min-width: 0; }
html body .bbt-pr-main { flex: 1 1 0 !important; width: auto !important; min-width: 0; }
.bbt-pr-main--center { align-self: stretch; justify-content: center !important; }
.bbt-pr-tiles { align-items: flex-start !important; width: 100%; }
html body .bbt-pr-col { flex: 1 1 0 !important; min-width: 0; width: auto !important; }

/* Úvod produktu: název, citace, tlačítko */
.bbt-pr-intro { padding: 32px 24px 40px; text-align: center; }
html body .bbt-pr-title .elementor-heading-title {
	font-family: Oswald, sans-serif;
	font-weight: 600;
	font-size: 40px;
	line-height: 1.2;
	color: #fff;
	margin-bottom: 12px;
}
html body .bbt-pr-quote { color: #fff; max-width: 600px; margin: 0 auto 14px !important; }
html body .bbt-pr-quote p { margin-bottom: 0 !important; }

/* Obrázky */
.bbt-pr-img img { display: block; width: 100%; border-radius: 10px; object-fit: cover; }
.bbt-pr-photo img { aspect-ratio: 1 / 1; }
.bbt-pr-diagram img {
	object-fit: contain;
	max-height: 340px;
	width: auto;
	max-width: 100%;
	margin: 0 auto 32px;
	border-radius: 0;
}
.bbt-pr-diagram--twins img { max-height: 220px; margin-top: 8px; }
.bbt-pr-wide { width: 100%; margin-top: var(--pr-gap); }
.bbt-pr-wide img { aspect-ratio: 2.11 / 1; }

/* Dlaždice s parametry */
.bbt-pr-tile {
	width: 100%;
	padding: 22px 24px 24px;
	border-radius: 10px;
	background: rgba(58, 10, 255, .82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background-color .3s ease, transform .3s ease;
}
.bbt-pr-tile:hover { background: rgba(70, 30, 255, .95); }
html body .bbt-pr-tile-t .elementor-heading-title {
	font-family: Oswald, sans-serif;
	font-weight: 400;
	font-size: 22px;
	line-height: 1.4;
	color: #fff;
}
.bbt-pr-tile-t em { font-style: normal; color: var(--e-global-color-accent); }
html body .bbt-pr-tile-l .elementor-heading-title {
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: var(--e-global-color-accent);
	margin-top: 10px;
}

@media (max-width: 1024px) {
	/* vše pod sebe, text vždy první, dlaždice ve dvou sloupcích */
	html body .bbt-pr-product,
	html body .bbt-pr-top { flex-direction: column !important; }
	html body .bbt-pr-side,
	html body .bbt-pr-main { flex: 1 1 auto !important; width: 100% !important; }
	.bbt-pr-main { order: -1; }
	html body .bbt-pr-tiles { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	html body .bbt-pr-col { display: contents !important; }  /* dlaždice ze sloupců jdou rovnou do mřížky */
	html body .bbt-pr-side > .bbt-pr-col { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
	.bbt-pr-tile { height: 100%; }
	.bbt-pr-photo { max-width: 100%; }
	.bbt-pr-photo img { aspect-ratio: 16 / 9; }
	.bbt-pr-intro { padding: 8px 0 24px; }
	html body .bbt-pr-title .elementor-heading-title { font-size: 36px; }
	html body .bbt-pr-tile-t .elementor-heading-title { font-size: 20px; }
}
@media (max-width: 767px) {
	html body .bbt-pr-tiles,
	html body .bbt-pr-side > .bbt-pr-col { grid-template-columns: 1fr; }
	.bbt-pr-photo img,
	.bbt-pr-wide img { aspect-ratio: 4 / 3; }
	html body .bbt-pr-title .elementor-heading-title { font-size: 30px; }
	html body .bbt-pr-tile-t .elementor-heading-title { font-size: 19px; }
	.bbt-pr-tile { padding: 18px 20px 20px; }
	.bbt-pr-diagram img { margin-bottom: 20px; }
}


/* =========================================================================
   9. SERVICES, ABOUT US, CONTACT, PATIČKA
   ========================================================================= */
.bbt-svc-row .elementor-icon,
.bbt-check .elementor-icon { display: flex; }

/* About us */
.bbt-role .elementor-heading-title { font-size: 16px; letter-spacing: 0; text-transform: none; }
.bbt-mail .elementor-heading-title { font-family: Oswald, sans-serif; font-size: 16px; font-weight: 400; }
.bbt-mail a:hover { color: var(--e-global-color-primary); }
.bbt-about-img img { width: 100%; display: block; }
.bbt-avatar img { aspect-ratio: 1 / 1; }

/* Kontaktní formulář */
.bbt-form .elementor-field-group .elementor-field { padding: 12px 16px; }
.bbt-form .elementor-field-textual::placeholder { color: #303030; opacity: 1; }

/* Patička */
.bbt-footer .bbt-foot-text { font-size: 15px; color: var(--e-global-color-bbtdrk1); }
.bbt-footer .bbt-foot-text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bbt-footer .bbt-foot-text a:hover { color: var(--e-global-color-primary); }
.bbt-footer .elementor-widget-divider { --divider-border-width: 1px; }
@media (max-width: 767px) {
	.bbt-footer .bbt-foot-text { text-align: center; }
}


/* =========================================================================
   10. VIDEO PŘES CELOU VÝŠKU SLOUPCE (třída bbt-video-cover na Video widgetu)
   Na desktopu video vyplní výšku sousedního sloupce a ořízne se
   (jako background-size: cover). Na tabletu 16:9, na mobilu 4:3.
   ========================================================================= */
.bbt-video-cover .elementor-wrapper { overflow: hidden; border-radius: inherit; }
.bbt-video-cover video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1025px) {
	.bbt-video-cover { align-self: stretch; }
	.bbt-video-cover > .elementor-widget-container { height: 100%; }
	.bbt-video-cover .elementor-wrapper { height: 100%; aspect-ratio: auto !important; }
}
@media (max-width: 1024px) {
	.bbt-video-cover .elementor-wrapper { aspect-ratio: 16 / 9 !important; }
}
@media (max-width: 767px) {
	.bbt-video-cover .elementor-wrapper { aspect-ratio: 4 / 3 !important; }
}


/* =========================================================================
   11. PROJECTS – horizontální časová osa (Loop Grid + typ obsahu Projekty)
   Posouvání (tažení myší, setrvačnost, přichytávání) řeší JS.
   ========================================================================= */
.bbt-tl {
	--tl-gap: clamp(28px, 2.4vw, 44px);        /* mezera mezi kartami */
	--tl-card: clamp(300px, 23vw, 420px);       /* šířka karty */
	--tl-start: clamp(280px, 23.15vw, 400px);   /* šířka sloupce „Your Project“ */
	--bl: max(80px, calc((100vw - 1568px) / 2)); /* vzdálenost obsahu od okraje okna */
	overflow-x: clip;
}
@media (max-width: 1024px) {
	.bbt-tl { --tl-gap: 28px; --tl-card: 300px; --tl-start: 280px; --bl: 40px; }
}

.bbt-tl-row { position: relative; }

/* „Your Project“ vlevo – při posunu zmizí (JS přidá .is-moved) */
.bbt-tl-start {
	position: absolute !important;
	left: 0;
	top: 0;
	width: var(--tl-start) !important;
	z-index: 0;
	transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.bbt-tl:not(.is-moved) .bbt-tl-start {
	z-index: 2;   /* nad posuvnou vrstvou, aby šlo kliknout na tlačítko */
	transition: opacity .45s ease, transform .45s ease, visibility 0s;
}
.bbt-tl.is-moved .bbt-tl-start { opacity: 0; visibility: hidden; transform: translateX(-24px); }
.bbt-tl-starttext { max-width: 370px; }
.bbt-tl-btn .elementor-button { transition: background-color .3s ease, color .3s ease; }

/* Posuvná vrstva přes celou šířku okna */
.bbt-tl-grid {
	position: relative;
	z-index: 1;
	align-self: stretch !important;
	min-width: 0;
	width: calc(100% + 2 * var(--bl)) !important;
	max-width: none !important;
	margin-left: calc(-1 * var(--bl)) !important;
	margin-right: calc(-1 * var(--bl)) !important;
}
.bbt-tl-grid .elementor-loop-container {
	display: flex !important;
	grid-template-columns: none !important;
	gap: var(--tl-gap) !important;
	align-items: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	padding: 0 var(--bl) 48px calc(var(--bl) + var(--tl-start) + var(--tl-gap));
	scroll-padding-left: var(--bl);
	scrollbar-width: none;
	cursor: grab;
	outline: none;
}
.bbt-tl-grid .elementor-loop-container::-webkit-scrollbar { display: none; }
@media (pointer: coarse) {
	/* dotyková zařízení – nativní přichytávání */
	.bbt-tl-grid .elementor-loop-container { scroll-snap-type: x proximity; }
}
.bbt-tl-grid .e-loop-item { flex: 0 0 var(--tl-card); width: var(--tl-card); scroll-snap-align: start; }
.bbt-tl-grid.is-drag .elementor-loop-container { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.bbt-tl-grid img { -webkit-user-drag: none; user-select: none; }

/* Tečka a spojovací čára časové osy */
.bbt-tl-dot { position: relative; width: 100%; height: 16px; margin: 14px 0 18px; }
.bbt-tl-dot::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	z-index: 1;
	width: 16px;
	height: 16px;
	margin-left: -8px;
	border-radius: 50%;
	background: var(--e-global-color-primary);
}
.bbt-tl-grid .e-loop-item:not(:last-of-type) .bbt-tl-dot::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 7px;
	height: 2px;
	width: calc(100% + var(--tl-gap));
	background: rgba(0, 106, 255, .25);
}

/* Karta projektu */
.bbt-tl-card { width: 100%; }
.bbt-tl-img img { display: block; width: 100%; }
.bbt-tl-code .elementor-heading-title {
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #8C8C8C;
}
html body .bbt-tl-code { margin-bottom: 22px !important; }
html body .bbt-tl-desc { margin-bottom: 22px !important; }
.bbt-tl-desc p:last-child,
.bbt-tl-outtext p:last-child { margin-bottom: 0; }
.bbt-tl-label .elementor-heading-title {
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #8C8C8C;
	text-transform: uppercase;
}
html body .bbt-tl-out { margin-top: 24px !important; }

/* Štítky financování (Post Info → Terms) */
.bbt-tl-fund:not(:has(.elementor-post-info__terms-list-item)) { display: none; } /* bez financování se řádek skryje */
html body .bbt-tl-chips .elementor-icon-list-items { margin: 0 !important; padding: 0; }
html body .bbt-tl-chips .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
html body .bbt-tl-chips .elementor-icon-list-item::after,
.bbt-tl-chips .elementor-icon-list-icon { display: none !important; }
html body .bbt-tl-chips .elementor-post-info__terms-list { display: flex !important; flex-wrap: wrap; gap: 8px; font-size: 0; }
html body .bbt-tl-chips .elementor-post-info__terms-list-item {
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--e-global-color-primary);
	background: rgba(0, 106, 255, .18);
	padding: 14px 13px;
	border-radius: 10px;
}

@media (max-width: 767px) {
	.bbt-tl { --tl-gap: 20px; --tl-card: min(320px, 80vw); --bl: 20px; }
	.bbt-tl-start { display: none !important; }   /* na mobilu bez „Your Project“ */
	.bbt-tl-grid .elementor-loop-container {
		padding-left: var(--bl) !important;
		scroll-padding-left: var(--bl) !important;
	}
}


/* =========================================================================
   12. BLOG – KARTY ČLÁNKŮ (šablona „Blog – karta (homepage)“)
   Použito na homepage, na stránce Blog i pod článkem.
   ========================================================================= */
html body .bbt-bl-grid .elementor-loop-container { column-gap: 56px !important; row-gap: 48px !important; }
.bbt-bl-grid .e-loop-item > .e-con { height: 100%; }

/* Obrázek se při najetí jemně přiblíží */
.bbt-bl-img a { display: block; overflow: hidden; border-radius: 10px; }
.bbt-bl-img img { display: block; width: 100%; transition: transform .5s ease; }
.bbt-bl-item:hover .bbt-bl-img img { transform: scale(1.04); }

/* Název a perex (max. 7 řádků) */
html body .bbt-bl-title { margin: 16px 0 12px !important; }
.bbt-bl-title a { color: inherit; }
.bbt-bl-title a:hover { color: var(--e-global-color-primary); }
.bbt-bl-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 7;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bbt-bl-excerpt p:last-child { margin-bottom: 0; }

/* Spodní část karty: štítky + More (vždy dole) */
html body .bbt-bl-foot { margin-top: auto !important; padding-top: 24px; }
.bbt-bl-foot .bbt-btn-more { align-self: flex-end; }
.bbt-bl-foot .bbt-btn-more .elementor-button { white-space: nowrap; }

/* Štítky (Post Info → Terms) – všechny skupiny v jednom zalamovaném řádku */
.bbt-bl-cat { flex: 1 1 auto; min-width: 0; }
html body .bbt-bl-cat .elementor-icon-list-items {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-start;
	margin: 0 !important;
	padding: 0;
}
html body .bbt-bl-cat .elementor-icon-list-item,
html body .bbt-bl-cat .elementor-icon-list-text,
html body .bbt-bl-cat .elementor-post-info__terms-list { display: contents !important; }
.bbt-bl-cat .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.bbt-bl-cat .elementor-icon-list-item::after,
.bbt-bl-cat .elementor-icon-list-icon { display: none !important; }
html body .bbt-bl-cat .elementor-post-info__terms-list-item {
	display: inline-block;
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: 16px !important;
	font-weight: 400;
	line-height: 1.5;
	color: var(--e-global-color-text);
	background: var(--e-global-color-bbtoff1);
	padding: 12px;
	border-radius: 10px;
}
html body .bbt-bl-cat a.elementor-post-info__terms-list-item { transition: background-color .25s ease, color .25s ease; }
html body .bbt-bl-cat a.elementor-post-info__terms-list-item:hover { background: #ECECEC; color: var(--e-global-color-primary); }

@media (max-width: 1366px) {
	html body .bbt-bl-grid .elementor-loop-container { column-gap: 40px !important; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
	/* menší desktop: 2 × 2 místo 4 vedle sebe */
	html body .bbt-bl-grid .elementor-loop-container {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 48px !important;
	}
	html body .bbt-bl-img img { height: 240px !important; }
}
@media (max-width: 767px) {
	html body .bbt-bl-grid .elementor-loop-container { row-gap: 40px !important; }
	/* homepage: na mobilu jen 2 nejnovější články */
	.bbt-bl-grid:not(.bbt-bl-grid--all) .e-loop-item:nth-of-type(n+3) { display: none; }
}


/* =========================================================================
   13. BLOG – STRÁNKA VÝPISU (šablona „Blog – výpis článků (archiv)“)
   Filtry = Elementor Taxonomy Filter zobrazený jako rozbalovací nabídky
   (otevírání, počet vybraných a „Clear filters“ řeší JS).
   ========================================================================= */
html body .bbt-bp-filters { position: relative; z-index: 5; width: 100%; }
html body .bbt-bp-group { position: relative; width: auto !important; flex: 0 0 auto !important; }

/* Tlačítko skupiny (Material type ▾ …) */
html body .bbt-bp-label { cursor: pointer; user-select: none; }
html body .bbt-bp-label:focus-visible { outline: none; }
html body .bbt-bp-label .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #FFFFFF;
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--e-global-color-bbtblk1);
	transition: box-shadow .25s ease, color .25s ease;
}
html body .bbt-bp-label .elementor-heading-title::after {       /* šipka ▾ */
	content: "";
	width: 8px;
	height: 8px;
	margin: -4px 2px 0 2px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .3s ease, margin .3s ease;
}
html body .bbt-bp-label:hover .elementor-heading-title,
html body .bbt-bp-label:focus-visible .elementor-heading-title,
html body .bbt-bp-group.is-open .bbt-bp-label .elementor-heading-title {
	color: var(--e-global-color-primary);
	box-shadow: inset 0 0 0 1px var(--e-global-color-primary);
}
html body .bbt-bp-group.is-open .bbt-bp-label .elementor-heading-title::after { transform: rotate(-135deg); margin-top: 4px; }
html body .bbt-bp-group.has-active .bbt-bp-label .elementor-heading-title { color: var(--e-global-color-primary); }

/* Odznak s počtem vybraných štítků */
.bbt-bp-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: var(--e-global-color-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}
.bbt-bp-count[hidden] { display: none; }

/* Rozbalovací panel se štítky – šířka podle obsahu, max. 520 px */
html body .bbt-bp-filter {
	position: absolute !important;
	top: calc(100% + 8px);
	left: 0;
	z-index: 30;
	width: max-content !important;
	min-width: 220px !important;
	max-width: min(520px, calc(100vw - 40px)) !important;
	padding: 16px;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
html body .bbt-bp-group.is-open .bbt-bp-filter {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

/* Štítky uvnitř panelu */
html body .bbt-bp-filter .e-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-start;
	overflow: visible !important;
}
html body .bbt-bp-filter .e-filter-item {
	margin: 0;
	padding: 8px 14px;
	border: 0;
	border-radius: 10px;
	background: var(--e-global-color-bbtoff1);
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	color: var(--e-global-color-text);
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease;
}
html body .bbt-bp-filter .e-filter-item:hover {
	color: var(--e-global-color-primary);
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px var(--e-global-color-primary);
}
html body .bbt-bp-filter .e-filter-item[aria-pressed="true"] {
	background: var(--e-global-color-primary);
	color: #FFFFFF;
	box-shadow: none;
}
html body .bbt-bp-filter .e-filter-item[data-filter="__all"] { order: -1; }   /* „All“ vždy první */
html body .bbt-bp-filter .e-filter-item:focus-visible { outline: 2px solid var(--e-global-color-primary); outline-offset: 2px; }

/* Odkaz „Clear filters“ (vkládá JS) */
.bbt-bp-clear {
	background: none !important;
	border: 0 !important;
	padding: 12px 4px !important;
	font-family: var(--e-global-typography-text-font-family), sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	color: #8C8C8C !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.bbt-bp-clear:hover { color: var(--e-global-color-primary) !important; }
.bbt-bp-clear[hidden] { display: none; }

/* Stránkování */
.bbt-bl-grid--all .elementor-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--e-global-typography-bbtlnk1-font-family), sans-serif;
	font-weight: 700;
}
.bbt-bl-grid--all .elementor-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	margin: 0 !important;
	border-radius: 10px;
	background: var(--e-global-color-bbtoff1);
	color: var(--e-global-color-primary);
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease;
}
.bbt-bl-grid--all .elementor-pagination a.page-numbers:hover { background: #ECECEC; }
.bbt-bl-grid--all .elementor-pagination .page-numbers.current { background: var(--e-global-color-primary); color: #fff; }
.bbt-bl-grid--all .elementor-pagination .page-numbers.dots { background: none; }
.bbt-bl-grid--all .e-load-more-message,
.bbt-bl-grid--all .e-loop-nothing-found-message { text-align: center; }

@media (max-width: 767px) {
	/* filtry: dvě tlačítka vedle sebe, panel přes celou šířku */
	html body .bbt-bp-group { position: static; flex: 1 1 calc(50% - 6px) !important; }
	html body .bbt-bp-label { width: 100% !important; }
	html body .bbt-bp-label .elementor-heading-title { display: flex; width: 100%; justify-content: space-between; }
	html body .bbt-bp-count { margin-left: auto; }
	html body .bbt-bp-filter { left: 0; right: 0; width: auto !important; max-width: none; min-width: 0; }
}


/* =========================================================================
   14. BLOG – DETAIL ČLÁNKU (šablona „Blog – detail článku“)
   ========================================================================= */

/* Hlavní obrázek – na desktopu zůstává při čtení na místě */
.bbt-post-media { position: sticky; top: 120px; }
.bbt-post-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

html body .bbt-post-title { margin-bottom: 20px !important; }

/* Drobečková navigace BBT / Blog / Název */
.bbt-crumb {
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #8C8C8C;
}
.bbt-crumb .elementor-heading-title {
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #8C8C8C;
}
.bbt-crumb a { color: #8C8C8C; transition: color .25s ease; }
.bbt-crumb a:hover { color: var(--e-global-color-primary); }
.bbt-crumb:not(:last-child)::after { content: "/"; margin: 0 8px; color: #C4C4C4; }
.bbt-crumb:last-child .elementor-heading-title { color: var(--e-global-color-text); font-weight: 600; }

/* Štítky + datum a autor */
html body .bbt-post-meta { margin: 28px 0 32px !important; }
html body .bbt-post-meta > .bbt-post-tags { flex: 0 1 auto !important; width: auto !important; max-width: 100%; }
html body .bbt-post-tags .elementor-post-info__terms-list-item { background: #FFFFFF; }
html body .bbt-post-tags a.elementor-post-info__terms-list-item:hover {
	background: #FFFFFF;
	color: var(--e-global-color-primary);
	box-shadow: inset 0 0 0 1px var(--e-global-color-primary);
}

.bbt-post-byline { margin-top: 4px; }
html body .bbt-post-date .elementor-icon-list-text,
html body .bbt-post-by .elementor-heading-title {
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: #8C8C8C;
}
.bbt-post-date .elementor-icon-list-item::after,
.bbt-post-date .elementor-icon-list-icon { display: none !important; }
.bbt-post-date .elementor-icon-list-items,
.bbt-post-date .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
/* svislá čárka mezi datem a autorem; bez autora se nic nezobrazí */
.bbt-post-by:not(:has(.elementor-heading-title:empty)) { position: relative; padding-left: 15px; margin-left: 14px; }
.bbt-post-by::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1px;
	height: 16px;
	margin-top: -8px;
	background: #CFCFCF;
}
.bbt-post-by:has(.elementor-heading-title:empty),
.bbt-post-by:empty { display: none; }

/* Text článku (obsah z editoru WordPressu) */
.bbt-post-content { font-size: 17px; line-height: 1.65; color: var(--e-global-color-text); }
.bbt-post-content > *:first-child { margin-top: 0; }
.bbt-post-content p { margin: 0 0 1.1em; }
.bbt-post-content h2,
.bbt-post-content h3,
.bbt-post-content h4 {
	font-family: Oswald, sans-serif;
	font-weight: 600;
	line-height: 1.25;
	color: var(--e-global-color-bbtblk1);
	margin: 1.6em 0 .6em;
}
.bbt-post-content h2 { font-size: 32px; }
.bbt-post-content h3 { font-size: 24px; }
.bbt-post-content h4 { font-size: 20px; }
.bbt-post-content a { color: var(--e-global-color-primary); text-decoration: underline; text-underline-offset: 3px; }
.bbt-post-content ul,
.bbt-post-content ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.bbt-post-content li { margin-bottom: .4em; }
.bbt-post-content li::marker { color: var(--e-global-color-primary); }
.bbt-post-content img { border-radius: 10px; height: auto; }
.bbt-post-content figure { margin: 1.6em 0; }
.bbt-post-content figcaption { font-size: 14px; color: #8C8C8C; margin-top: 8px; }
.bbt-post-content blockquote {
	margin: 1.6em 0;
	padding: 20px 24px;
	background: #FFFFFF;
	border-left: 3px solid var(--e-global-color-primary);
	border-radius: 0 10px 10px 0;
	font-size: 18px;
}
.bbt-post-content blockquote p:last-child { margin-bottom: 0; }
.bbt-post-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.bbt-post-content th,
.bbt-post-content td { padding: 10px 12px; border-bottom: 1px solid #E4E4E4; text-align: left; }
.bbt-post-content .wp-block-file a:not(.wp-element-button) { font-weight: 600; }

@media (max-width: 1024px) {
	.bbt-post-media { position: relative; top: 0; }
	.bbt-post-img img { aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
	.bbt-post-content { font-size: 16px; }
	.bbt-post-content h2 { font-size: 26px; }
	.bbt-post-content h3 { font-size: 21px; }
	html body .bbt-post-meta { margin: 20px 0 24px !important; }
}
