/*
 * Bombex – Popisky produktů.
 *
 * 1) Úvod: dlaždice – fotka produktu s nadpisem vlevo, výhody 2 × 2 vpravo (první v barvě e-shopu).
 * 2) Scény: karty – čtvercová fotka / GIF / video přes půl karty a text vedle, střídavě.
 * 3) Specifikace: údaje ve dvou sloupcích, obsah balení zvýrazněný vedle.
 * 4) Časté dotazy (rozbalovací) a vedle nenápadně záruka, kontakt a důvody k nákupu.
 *
 * Barva e-shopu = --bxd-accent (Nastavení). Písmo ze šablony. Rozložení se řídí šířkou
 * popisku (container queries) – sedí na počítači, tabletu i telefonu v každé šabloně.
 */
.bxd {
	--bxd-accent: #1aa6b7;
	--bxd-ink: #1b1e29;
	--bxd-muted: #5a6072;
	--bxd-line: #e6e8ee;
	--bxd-surface: #f6f7f9;
	--bxd-tint: #edf7f8;
	--bxd-tint: color-mix(in srgb, var(--bxd-accent) 9%, #fff);
	--bxd-tint-2: color-mix(in srgb, var(--bxd-accent) 18%, #fff);
	--bxd-r: 28px;
	--bxd-pad: 44px;
	container-type: inline-size;
	max-width: 1120px;
	margin: 8px auto 0;
	color: var(--bxd-ink);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.bxd *, .bxd *::before, .bxd *::after { box-sizing: border-box; }
.bxd :where(h2, h3, p, ul, dl, dt, dd, figure, li, details, summary) { margin: 0; padding: 0; border: 0; }
.bxd :where(h2, h3) { font-family: inherit; text-transform: none; letter-spacing: normal; }
.bxd :where(ul) { list-style: none; }
.bxd img, .bxd video { display: block; max-width: 100%; }
.bxd > section + section { margin-top: 64px; }

/* Společné nadpisy sekcí */
.bxd .bxd-head__title,
.bxd .bxd-reviews__title,
.bxd .bxd-spec__title,
.bxd .bxd-faq__title {
	font-size: clamp(24px, 3cqi, 32px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -.022em;
	color: var(--bxd-ink);
}

/* ---------- 1) Úvod: dlaždice („bento“) – fotka produktu s nadpisem + výhody kolem ---------- */
.bxd .bxd-hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 12px;
}
.bxd .bxd-hero--plain { grid-template-columns: minmax(0, 1fr); }
.bxd .bxd-hero__visual {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	border-radius: var(--bxd-r);
	overflow: hidden;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--bxd-line);
}
.bxd .bxd-hero__media { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 28px 28px 0; }
.bxd .bxd-hero__media img,
.bxd .bxd-hero__media video { width: 100%; max-height: 440px; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 16px; }
.bxd .bxd-hero__caption {
	padding: 22px 28px 26px;
	background: linear-gradient(to top, var(--bxd-tint), rgba(255, 255, 255, 0));
}
.bxd .bxd-hero__title {
	font-size: clamp(24px, 3cqi, 32px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -.022em;
	color: var(--bxd-ink);
}
.bxd .bxd-hero__title--plain { margin-bottom: 8px; }
.bxd .bxd-hero__name { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--bxd-muted); }

.bxd .bxd-hero__tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 12px;
}
.bxd .bxd-hero--plain .bxd-hero__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bxd .bxd-hero--plain[data-count="3"] .bxd-hero__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bxd .bxd-hero[data-count="1"] .bxd-hero__tiles,
.bxd .bxd-hero[data-count="2"] .bxd-hero__tiles { grid-template-columns: minmax(0, 1fr); }
.bxd .bxd-hero[data-count="3"]:not(.bxd-hero--plain) .bxd-tile:last-child,
.bxd .bxd-hero[data-count="5"]:not(.bxd-hero--plain) .bxd-tile:last-child { grid-column: 1 / -1; }
.bxd .bxd-tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 26px 26px 24px;
	border-radius: var(--bxd-r);
	background: var(--bxd-surface);
}
/* První výhoda v barvě e-shopu – oko ví, kde začít. */
.bxd .bxd-tile:first-child { background: var(--bxd-tint); }
.bxd .bxd-tile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(27, 30, 41, .06);
	color: var(--bxd-accent);
}
.bxd .bxd-tile__icon img { width: 30px; height: 30px; object-fit: contain; }
.bxd .bxd-tile__title { font-size: 18px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; color: var(--bxd-ink); }
.bxd .bxd-tile__text { font-size: 15px; line-height: 1.6; color: var(--bxd-muted); }

/* ---------- 2) Scény ---------- */
.bxd .bxd-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.bxd .bxd-head__lead { margin-top: 12px; font-size: 18px; line-height: 1.55; color: var(--bxd-muted); }
.bxd .bxd-story__list { display: grid; gap: 20px; }
.bxd .bxd-scene {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	border-radius: var(--bxd-r);
	overflow: hidden;
	background: var(--bxd-surface);
}
.bxd .bxd-scene--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.bxd .bxd-scene--flip .bxd-scene__media { order: 2; }
.bxd .bxd-scene--text { grid-template-columns: minmax(0, 1fr); }
.bxd .bxd-scene__media { align-self: stretch; background: #fff; }
.bxd .bxd-scene__img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.bxd .bxd-scene__body { padding: var(--bxd-pad) calc(var(--bxd-pad) + 8px); }
.bxd .bxd-scene__title { font-size: clamp(21px, 2.5cqi, 27px); line-height: 1.22; font-weight: 800; letter-spacing: -.018em; color: var(--bxd-ink); }
.bxd .bxd-scene__text { max-width: 40ch; margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--bxd-muted); }

/* ---------- 3) Specifikace ---------- */
.bxd .bxd-spec { padding: var(--bxd-pad); border-radius: var(--bxd-r); box-shadow: inset 0 0 0 1px var(--bxd-line); }
.bxd .bxd-spec--box { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.bxd .bxd-spec__title { margin-bottom: 18px; }
.bxd .bxd-spec__note { max-width: 60ch; margin-bottom: 14px; color: var(--bxd-muted); }
.bxd .bxd-spec__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.bxd .bxd-fact { padding: 14px 0 13px; border-top: 1px solid var(--bxd-line); }
.bxd .bxd-fact dt { font-size: 14px; line-height: 1.4; color: var(--bxd-muted); font-weight: 400; }
.bxd .bxd-fact dd { margin-top: 3px; font-size: 16px; line-height: 1.45; font-weight: 650; color: var(--bxd-ink); }
.bxd .bxd-spec__side { display: grid; gap: 16px; }
.bxd .bxd-box { padding: 26px 24px 20px; border-radius: 22px; background: var(--bxd-tint); }
.bxd .bxd-box__title { margin-bottom: 14px; font-size: 18px; line-height: 1.3; font-weight: 750; color: var(--bxd-ink); }
.bxd .bxd-box__list li {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--bxd-tint-2);
	font-size: 15.5px;
	line-height: 1.45;
	font-weight: 600;
}
.bxd .bxd-box__list li:first-child { border-top: 0; padding-top: 0; }
.bxd .bxd-box__qty {
	flex: 0 0 auto;
	min-width: 38px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #fff;
	color: var(--bxd-accent);
	font-weight: 800;
	font-size: 14px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* ---------- 4) Časté dotazy, záruka, důvody k nákupu ---------- */
.bxd .bxd-info { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.bxd .bxd-info--nofaq { grid-template-columns: minmax(0, 1fr); }
.bxd .bxd-faq__title { margin-bottom: 16px; }
.bxd .bxd-faq__item { border-top: 1px solid var(--bxd-line); }
.bxd .bxd-faq__item:last-child { border-bottom: 1px solid var(--bxd-line); }
.bxd .bxd-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 2px;
	cursor: pointer;
	list-style: none;
	font-size: 16.5px;
	line-height: 1.4;
	font-weight: 650;
	color: var(--bxd-ink);
}
.bxd .bxd-faq__item summary::-webkit-details-marker { display: none; }
.bxd .bxd-faq__item summary:focus-visible { outline: 2px solid var(--bxd-accent); outline-offset: 2px; border-radius: 6px; }
.bxd .bxd-faq__item summary i {
	position: relative;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bxd-surface);
	transition: background-color .2s ease;
}
.bxd .bxd-faq__item summary i::before,
.bxd .bxd-faq__item summary i::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	margin: -1px 0 0 -6px;
	border-radius: 2px;
	background: var(--bxd-ink);
}
.bxd .bxd-faq__item summary i::after { transform: rotate(90deg); transition: transform .2s ease; }
.bxd .bxd-faq__item[open] summary i { background: var(--bxd-tint-2); }
.bxd .bxd-faq__item[open] summary i::after { transform: rotate(0deg); }
.bxd .bxd-faq__item p { max-width: 62ch; padding: 0 48px 20px 2px; color: var(--bxd-muted); }

.bxd .bxd-trust { padding: 28px 26px; border-radius: 22px; background: var(--bxd-surface); color: var(--bxd-muted); font-size: 14.5px; }
.bxd .bxd-trust__title { font-size: 16px; line-height: 1.35; font-weight: 700; color: var(--bxd-ink); }
.bxd .bxd-trust__text { margin-top: 6px; line-height: 1.55; }
.bxd .bxd-trust__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--bxd-line);
}
.bxd .bxd-trust > .bxd-trust__list:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.bxd .bxd-trust__list li { display: flex; align-items: center; gap: 10px; line-height: 1.35; }
.bxd .bxd-trust__list img { flex: 0 0 auto; width: 26px; height: 26px; object-fit: contain; opacity: .8; }

.bxd .bxd-contact { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--bxd-line); }
.bxd .bxd-trust > .bxd-contact:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.bxd .bxd-contact__title { margin-bottom: 8px; font-size: 14.5px; font-weight: 600; color: var(--bxd-ink); }
.bxd .bxd-contact__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	color: var(--bxd-ink);
	font-weight: 600;
	text-decoration: none;
	word-break: break-word;
}
.bxd .bxd-contact__row svg { flex: 0 0 auto; color: var(--bxd-accent); }
.bxd .bxd-contact__row:hover span { text-decoration: underline; }
.bxd .bxd-contact__row:focus-visible { outline: 2px solid var(--bxd-accent); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
	.bxd .bxd-faq__item summary i, .bxd .bxd-faq__item summary i::after { transition: none; }
}

/* ---------- Tablet (popisek užší než 900 px) ---------- */
@container (max-width: 900px) {
	/* Proměnné na sekcích – kontejner (.bxd) sám sebe dotazem měnit nemůže. */
	.bxd > section { --bxd-pad: 32px; --bxd-r: 24px; }
	.bxd > section + section { margin-top: 52px; }

	/* Úvod: fotka s nadpisem jako pruh nahoře, výhody pod ní 2 × 2. */
	.bxd .bxd-hero { grid-template-columns: minmax(0, 1fr); }
	.bxd .bxd-hero__visual { flex-direction: row; align-items: center; min-height: 0; }
	.bxd .bxd-hero__media { flex: 0 0 168px; padding: 16px; }
	.bxd .bxd-hero__media img, .bxd .bxd-hero__media video { border-radius: 12px; }
	.bxd .bxd-hero__caption { flex: 1 1 auto; padding: 16px 28px 16px 4px; background: none; }
	.bxd .bxd-hero--plain .bxd-hero__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bxd .bxd-tile { padding: 22px; }

	.bxd .bxd-scene, .bxd .bxd-scene--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.bxd .bxd-scene__body { padding: var(--bxd-pad); }
	.bxd .bxd-scene__text { font-size: 16px; }

	.bxd .bxd-spec--box { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.bxd .bxd-spec__side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

	.bxd .bxd-info { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.bxd .bxd-trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Telefon (popisek užší než 600 px) ---------- */
@container (max-width: 600px) {
	.bxd > section { --bxd-pad: 20px; --bxd-r: 20px; font-size: 15.5px; }
	.bxd > section + section { margin-top: 44px; }

	.bxd .bxd-hero { gap: 10px; }
	.bxd .bxd-hero__media { flex-basis: 96px; padding: 10px; }
	.bxd .bxd-hero__caption { padding: 10px 18px 10px 2px; }
	.bxd .bxd-hero__name { font-size: 14px; }
	.bxd .bxd-hero__tiles,
	.bxd .bxd-hero--plain .bxd-hero__tiles,
	.bxd .bxd-hero--plain[data-count="3"] .bxd-hero__tiles { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 10px; }
	.bxd .bxd-tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px; }
	.bxd .bxd-tile__icon { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; border-radius: 13px; }
	.bxd .bxd-tile__icon img { width: 26px; height: 26px; }
	.bxd .bxd-tile__title { font-size: 16.5px; align-self: center; }
	.bxd .bxd-tile__text { grid-column: 2; font-size: 15px; }

	.bxd .bxd-head { margin-bottom: 22px; }
	.bxd .bxd-head__lead { font-size: 16px; }
	.bxd .bxd-story__list { gap: 16px; }
	.bxd .bxd-scene, .bxd .bxd-scene--flip { grid-template-columns: minmax(0, 1fr); }
	.bxd .bxd-scene--flip .bxd-scene__media { order: 0; }
	.bxd .bxd-scene__body { padding: 20px var(--bxd-pad) 24px; }
	.bxd .bxd-scene__text { margin-top: 8px; font-size: 15.5px; }

	.bxd .bxd-spec { padding: 24px var(--bxd-pad); }
	.bxd .bxd-spec__facts { grid-template-columns: minmax(0, 1fr); }
	.bxd .bxd-fact { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
	.bxd .bxd-fact dt { flex: 0 0 42%; }
	.bxd .bxd-fact dd { margin-top: 0; text-align: right; }
	.bxd .bxd-box { padding: 20px 18px 16px; }

	.bxd .bxd-faq__item summary { padding: 16px 0; font-size: 15.5px; }
	.bxd .bxd-faq__item p { padding: 0 0 18px; }
	.bxd .bxd-trust { padding: 22px 20px; }
	.bxd .bxd-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 5) Recenze (widget z portálu, kód v Nastavení) ---------- */
.bxd .bxd-reviews__title { margin-bottom: 18px; }
