/* Tempestorm marketing — na vrchu tempestorm.css (ľadová téma) */

[data-bs-theme="light"] { --ts-alt-bg: #ecf5fb; }
[data-bs-theme="dark"]  { --ts-alt-bg: #0d1b27; }

/* sticky navbar nech neprekrýva nadpis pri skoku na kotvu */
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
section[id] { scroll-margin-top: 92px; }

.ts-navbar .btn-light { color: var(--ts-ice-700); }
.ts-navbar .btn-light:hover { color: var(--ts-ice-700); }

/* hero */
.ts-hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); }
.ts-hero h1 { letter-spacing: -.02em; }
.ts-badge {
	display: inline-block; padding: .35rem .85rem; border-radius: 999px;
	font-size: .8rem; font-weight: 600;
	color: var(--ts-ice-700); background: var(--ts-ice-100);
	border: 1px solid var(--bs-border-color);
}
[data-bs-theme="dark"] .ts-badge { color: #bfe9f7; background: rgba(63,185,230,.12); }

/* dashboard mock */
.ts-mock { border-radius: 16px; overflow: hidden; border: 1px solid var(--bs-border-color); }
.ts-mock-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--ts-card-header-bg); border-bottom: 1px solid var(--bs-border-color); }
.ts-mock-bar span { width: 10px; height: 10px; border-radius: 50%; }
.ts-mock-bar span:nth-child(1) { background: #e8615a; }
.ts-mock-bar span:nth-child(2) { background: #e6b800; }
.ts-mock-bar span:nth-child(3) { background: #41c47a; }
.ts-mock .ts-card { border-radius: 12px; }
.ts-spark { width: 100%; height: 60px; display: block; opacity: .85; }

/* alternating sections */
.ts-alt { background: var(--ts-alt-bg); }

/* steps */
.ts-step-num {
	width: 2.4rem; height: 2.4rem; border-radius: 50%; margin: 0 auto;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; color: #fff; background: var(--bs-primary);
}

/* feature icon */
.ts-feat-ico {
	flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 12px;
	display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
	color: var(--bs-primary); background: var(--ts-ice-100);
}
[data-bs-theme="dark"] .ts-feat-ico { background: rgba(63,185,230,.12); }

/* who pills */
.ts-pill-who {
	padding: .5rem 1rem; border-radius: 999px; font-weight: 500;
	background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
}

/* "nielen teplota" CTA box */
.ts-cta-box { background: var(--ts-ice-100); border: 1px solid var(--bs-border-color); }
[data-bs-theme="dark"] .ts-cta-box { background: rgba(63,185,230,.08); }

/* footer */
.ts-footer { background: var(--ts-card-header-bg); border-top: 1px solid var(--bs-border-color); }

/* ============================================================
   POLISH — typografia, vzduch, premium feel
   ============================================================ */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/assets/fonts/InterVariable.woff2') format('woff2');
}
body {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	letter-spacing: -.011em;
}
h1, h2, h3, .h1, .h2, .h3, .display-1, .display-2, .display-3, .display-4, .display-5 {
	letter-spacing: -.025em;
	font-weight: 800;
}
p { line-height: 1.65; }
.lead { line-height: 1.6; }

/* vzdušnejšie sekcie */
.ts-hero, section[id] {
	padding-top: clamp(3.5rem, 6vw, 6rem) !important;
	padding-bottom: clamp(3.5rem, 6vw, 6rem) !important;
}
.ts-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; }
section h2.h3 { font-size: clamp(1.8rem, 3.3vw, 2.35rem); }

/* navbar — viac vzduchu medzi položkami + vyššia lišta */
.ts-navbar {
	--bs-navbar-nav-link-padding-x: 1.05rem;
	--bs-navbar-padding-y: .85rem;
}
.ts-navbar .navbar-brand { font-size: 1.3rem; letter-spacing: -.02em; }
.ts-navbar .nav-link { font-weight: 500; }

/* karty — väčší radius, jemný tieň, hover lift, viac paddingu */
.card {
	--bs-card-spacer-y: 1.5rem;
	--bs-card-spacer-x: 1.5rem;
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(10, 40, 60, .04);
	transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(10, 40, 60, .10); }
[data-bs-theme="dark"] .card { box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
[data-bs-theme="dark"] .card:hover { box-shadow: 0 16px 44px rgba(0, 0, 0, .45); }

/* tlačidlá */
.btn { font-weight: 600; border-radius: 12px; }
.btn-lg { padding: .8rem 1.65rem; }

/* feature/sensor ikony väčšie */
.ts-feat-ico { width: 3rem; height: 3rem; border-radius: 14px; font-size: 1.35rem; }

/* badge v hero */
.ts-badge { padding: .45rem 1rem; }

/* ============================================================
   ĽADOVÁ GRAFIKA + POHYB
   ============================================================ */

/* --- scroll reveal (skryté kým JS nepridá .is-visible) --- */
.js-anim .ts-hero .col-lg-6,
.js-anim section:not(.ts-hero) > .container > h2,
.js-anim section:not(.ts-hero) > .container > p,
.js-anim #problem .row > div,
.js-anim #how .row > div,
.js-anim #features .row > div,
.js-anim #sensors .row > div,
.js-anim #sensors .ts-cta-box,
.js-anim #who .ts-pill-who,
.js-anim #why .row > div,
.js-anim #contact .card {
	opacity: 0; transform: translateY(26px);
	transition: opacity .7s cubic-bezier(.22, .61, .21, 1), transform .7s cubic-bezier(.22, .61, .21, 1);
}
.js-anim .is-visible { opacity: 1 !important; transform: none !important; }

/* --- hero ako scéna --- */
.ts-hero { position: relative; overflow: hidden; }
.ts-hero-visual { position: relative; transition: transform .3s ease; transform-style: preserve-3d; z-index: 2; }

/* aurora glow za oknom */
.ts-aurora {
	position: absolute; z-index: 0; top: -18%; right: -12%; width: 460px; height: 460px; pointer-events: none;
	background: radial-gradient(circle at 50% 50%, rgba(63, 185, 230, .50), rgba(31, 151, 194, .18) 45%, transparent 70%);
	filter: blur(40px);
}
[data-bs-theme="dark"] .ts-aurora { background: radial-gradient(circle at 50% 50%, rgba(63, 185, 230, .38), rgba(31, 151, 194, .14) 45%, transparent 70%); }

/* app window (frosted) */
.ts-app-window {
	position: relative; z-index: 2; border-radius: 18px; overflow: hidden;
	border: 1px solid var(--bs-border-color);
	box-shadow: 0 34px 80px -22px rgba(8, 40, 60, .48), 0 10px 28px -14px rgba(8, 40, 60, .32);
	animation: tsFloat 7s ease-in-out infinite;
}
@keyframes tsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ts-mock-bar em { margin-left: auto; font-style: normal; font-size: .72rem; color: var(--bs-secondary-color); letter-spacing: .02em; }

/* graf v okne */
.ts-chart-wrap { border: 1px solid var(--bs-border-color); border-radius: 12px; padding: .45rem; background: var(--bs-body-bg); }
.ts-chart-svg { width: 100%; height: auto; display: block; }
.ts-ch-zone { fill: rgba(31, 157, 87, .10); }
[data-bs-theme="dark"] .ts-ch-zone { fill: rgba(52, 196, 122, .12); }
.ts-ch-grid { stroke: var(--bs-border-color); stroke-width: 1; }
.ts-ch-max { stroke: var(--ts-alarm); stroke-width: 1.5; }
.ts-ch-area { fill: url(#tsFill); }
.ts-ch-line { fill: none; stroke: var(--bs-primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ts-ch-dot { fill: var(--ts-alarm); }

/* dekoratívne vločky (vlastné SVG) */
.ts-deco-flake { position: absolute; z-index: 1; color: var(--ts-ice-400); pointer-events: none; display: block; }
[data-bs-theme="dark"] .ts-deco-flake { color: #3fb9e6; }
.ts-flake-1 { width: 60px; height: 60px; top: -1%; left: -13%; opacity: .6; animation: tsSpin 26s linear infinite; }
.ts-flake-2 { width: 30px; height: 30px; bottom: 6%; left: 8%; opacity: .4; animation: tsSpin 34s linear infinite reverse; }
.ts-flake-3 { width: 22px; height: 22px; top: 16%; right: 3%; opacity: .45; animation: tsSpin 30s linear infinite; }
@keyframes tsSpin { to { transform: rotate(360deg); } }

/* jemné sneženie v hero (i = bi-snow generované JS-om) */
.ts-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.ts-snow i { position: absolute; top: -5%; color: var(--ts-ice-300); animation-name: tsFall; animation-timing-function: linear; animation-iteration-count: infinite; }
[data-bs-theme="dark"] .ts-snow i { color: #6fc7e8; }
@keyframes tsFall {
	0%   { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
	10%  { opacity: .7; }
	90%  { opacity: .5; }
	100% { transform: translateY(680px) translateX(26px) rotate(260deg); opacity: 0; }
}

/* eyebrow predel nad nadpismi sekcií */
section:not(.ts-hero) > .container > h2::before {
	content: ''; display: block; width: 52px; height: 3px; border-radius: 3px; margin: 0 auto 1.15rem;
	background: linear-gradient(90deg, var(--ts-ice-300), var(--ts-ice-600));
}

/* vlajky */
.ts-flag { width: 1.3rem; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }

/* menej pohybu = vypni animácie */
@media (prefers-reduced-motion: reduce) {
	.ts-app-window, .ts-deco-flake, .ts-snow i { animation: none !important; }
	.ts-hero-visual { transition: none !important; }
}

/* ============================================================
   PREMIUM v2 — frosted glass, gradient akcenty, flow
   ============================================================ */

/* bohatšie ľadové pozadie celej stránky */
[data-bs-theme="light"] body {
	background:
		radial-gradient(1100px 560px at 86% -6%, #e0f2fb 0%, transparent 55%),
		radial-gradient(900px 520px at 8% 16%, #edf8fc 0%, transparent 52%),
		linear-gradient(180deg, #f4fafd 0%, #e9f4fa 100%);
}
[data-bs-theme="dark"] body {
	background:
		radial-gradient(1000px 520px at 86% -6%, #11304a 0%, transparent 56%),
		radial-gradient(820px 480px at 8% 16%, #0f2638 0%, transparent 52%),
		linear-gradient(180deg, #0b1a26 0%, #081019 100%);
}

/* alt sekcie = jemný ľadový gradient (nie plochá farba) */
.ts-alt { background: linear-gradient(180deg, rgba(31, 151, 194, .07), rgba(31, 151, 194, .02)); }
[data-bs-theme="dark"] .ts-alt { background: linear-gradient(180deg, rgba(63, 185, 230, .07), rgba(63, 185, 230, .015)); }

/* FROSTED GLASS karty (mráz) */
.card {
	background: rgba(255, 255, 255, .62);
	-webkit-backdrop-filter: blur(14px) saturate(1.15);
	backdrop-filter: blur(14px) saturate(1.15);
	border: 1px solid rgba(255, 255, 255, .7);
}
[data-bs-theme="dark"] .card {
	background: rgba(18, 32, 45, .55);
	border-color: rgba(120, 170, 200, .16);
}

/* gradient ikonové dlaždice */
.ts-feat-ico {
	background: linear-gradient(135deg, var(--ts-ice-400), var(--ts-ice-600));
	color: #fff;
	box-shadow: 0 8px 18px -7px rgba(31, 151, 194, .55);
}

/* gradient krokové čísla + spojnica medzi krokmi */
.ts-step-num {
	background: linear-gradient(135deg, var(--ts-ice-400), var(--ts-ice-600));
	box-shadow: 0 8px 18px -7px rgba(31, 151, 194, .55);
	position: relative; z-index: 1;
}
@media (min-width: 992px) {
	#how .row { position: relative; }
	#how .row::before {
		content: ''; position: absolute; top: 1.2rem; left: 14%; right: 14%; height: 2px; z-index: 0;
		background: linear-gradient(90deg, transparent, var(--ts-ice-300) 12%, var(--ts-ice-300) 88%, transparent);
	}
}

/* gradient primárne tlačidlo */
.btn-primary {
	background: linear-gradient(135deg, var(--ts-ice-500), var(--ts-ice-600));
	border: none;
	box-shadow: 0 10px 22px -10px rgba(31, 151, 194, .65);
}
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, var(--ts-ice-600), var(--ts-ice-700)); }

/* sebavedomejšie nadpisy sekcií */
section:not(.ts-hero) > .container > h2 { font-size: clamp(1.95rem, 3.6vw, 2.6rem); margin-bottom: 2.6rem; }
section:not(.ts-hero) > .container > h2.mb-2 { margin-bottom: 1rem; }
.ts-hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.7rem); }

/* re-assert dramatický tieň app-okna (po frosted .card) */
.ts-app-window { box-shadow: 0 36px 84px -22px rgba(8, 40, 60, .5), 0 12px 30px -14px rgba(8, 40, 60, .34); }

/* ---- foto band (reálna fotka + ľadový overlay) ---- */
.ts-band {
	position: relative; color: #fff;
	background: linear-gradient(125deg, rgba(7, 26, 42, .9), rgba(11, 75, 112, .72)), url('/assets/img/display-case.webp') center / cover no-repeat;
}
.ts-band .container { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); position: relative; }
.ts-band h2, .ts-band p { color: #fff; }
.ts-band h2::before { background: linear-gradient(90deg, var(--ts-ice-300), #fff) !important; }
.ts-band .btn-light { color: var(--ts-ice-700); }

/* ---- hero s fotkou (tmavý ľadový) ---- */
.ts-hero-photo {
	background: linear-gradient(100deg, rgba(6, 22, 36, .94) 26%, rgba(7, 30, 48, .74) 60%, rgba(11, 70, 105, .55)), url('/assets/img/cold-storage.webp') center / cover no-repeat;
	color: #fff;
}
.ts-hero-photo h1 { color: #fff; }
.ts-hero-photo .lead, .ts-hero-photo .text-secondary { color: rgba(255, 255, 255, .8) !important; }
.ts-hero-photo .text-primary { color: #8fd6ff !important; }
.ts-hero-photo .ts-badge { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #eaf6fb; }
.ts-hero-photo .btn-outline-primary { color: #fff; border-color: rgba(255, 255, 255, .6); }
.ts-hero-photo .btn-outline-primary:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* ---- trust strip ---- */
.ts-trust {
	border-top: 1px solid var(--bs-border-color); border-bottom: 1px solid var(--bs-border-color);
	background: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
[data-bs-theme="dark"] .ts-trust { background: rgba(18, 32, 45, .4); }
.ts-trust .container { padding-top: .95rem; padding-bottom: .95rem; }
.ts-trust span { font-size: .92rem; font-weight: 600; white-space: nowrap; }
.ts-trust i { color: var(--bs-primary); margin-right: .45rem; }

/* ---- hero mock: čitateľné labely status kariet (cez fotku zanikali) ---- */
.ts-app-window .ts-card { background: rgba(255, 255, 255, .93); }
[data-bs-theme="dark"] .ts-app-window .ts-card { background: rgba(20, 34, 48, .94); }
.ts-app-window .ts-card .text-secondary { color: #51626f !important; font-weight: 600; }
[data-bs-theme="dark"] .ts-app-window .ts-card .text-secondary { color: #a6bcc9 !important; }

/* ---- nové logo (teplotná pulz/vlna) ---- */
.ts-logo { width: 1.75rem; height: 1.75rem; flex: 0 0 auto; display: block; }
.ts-logo-sm { width: 1.5rem; height: 1.5rem; }
/* EKG impulz bežiaci po krivke loga */
.ts-logo-pulse {
	stroke-dasharray: 14 86;
	filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, .9));
	animation: tsEkg 2.2s linear infinite;
}
@keyframes tsEkg { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
	.ts-logo-pulse { animation: none; stroke-dasharray: none; filter: none; }
}

/* ---- hero: vrstvená fotka (svetlý hero, odlíšenie od konkurencie) ---- */
.ts-hero-photo-card {
	position: absolute; z-index: 1; right: -3%; bottom: -9%;
	width: 60%; max-width: 320px; aspect-ratio: 4 / 3; object-fit: cover;
	border-radius: 16px; border: 4px solid #fff; transform: rotate(3deg);
	box-shadow: 0 26px 54px -22px rgba(8, 40, 60, .42);
}
[data-bs-theme="dark"] .ts-hero-photo-card { border-color: #16293a; }

/* ============================================================
   THERMAL — farba krivky = teplota + živý pohyb
   ============================================================ */
.ts-ch-line {
	stroke: url(#tsThermal);
	stroke-dasharray: 100; stroke-dashoffset: 100;
	animation: tsDraw 2.2s cubic-bezier(.4, .1, .2, 1) .35s forwards;
}
@keyframes tsDraw { to { stroke-dashoffset: 0; } }
.ts-ch-area { animation: tsAreaIn 1.2s ease .35s both; }
@keyframes tsAreaIn { from { opacity: 0; } to { opacity: 1; } }
/* radar pulz na alarm bode */
.ts-ch-ping {
	fill: none; stroke: var(--ts-alarm); stroke-width: 1.6;
	transform-box: fill-box; transform-origin: center;
	animation: tsPing 1.9s ease-out infinite;
}
@keyframes tsPing {
	0% { transform: scale(.5); opacity: .9; }
	100% { transform: scale(2.7); opacity: 0; }
}
/* bežiaci impulz po krivke (live monitor feel) */
.ts-ch-pulse {
	fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round;
	stroke-dasharray: 5 95;
	filter: drop-shadow(0 0 2.5px rgba(255, 255, 255, .95));
	animation: tsChPulse 3.2s linear 2.6s infinite;
}
@keyframes tsChPulse { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
	.ts-ch-line { stroke-dashoffset: 0; animation: none; }
	.ts-ch-area { animation: none; }
	.ts-ch-ping { animation: none; opacity: .3; }
	.ts-ch-pulse { animation: none; opacity: 0; }
}

/* ============================================================
   BENTO grid (funkcie) — rozbitie monotónnosti kariet
   ============================================================ */
.ts-bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.ts-bento .card { margin: 0; height: 100%; }
@media (min-width: 768px) {
	.ts-bento { grid-template-columns: repeat(2, 1fr); }
	.ts-bento-lg { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
	.ts-bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
	.ts-bento-lg { grid-column: 1 / span 2; grid-row: 1 / span 2; }
}
.ts-bento-lg .ts-feat-ico { width: 3.4rem; height: 3.4rem; font-size: 1.6rem; border-radius: 16px; }
.ts-bento-mock { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 14px; padding: .85rem; }
.ts-mini-pill { font-weight: 700; font-size: .82rem; padding: .3rem .65rem; border-radius: 9px; white-space: nowrap; }
.ts-mini-pill.is-ok { color: var(--ts-ok); background: rgba(31, 157, 87, .12); }
.ts-mini-pill.is-alarm { color: var(--ts-alarm); background: rgba(214, 59, 59, .12); }
.ts-bento-spark { width: 100%; height: auto; display: block; }

/* ============================================================
   KOLEČKO 1 — a11y text, stat strip, odľahčené senzory
   ============================================================ */
/* tmavší sekundárny text (light) = lepší kontrast/čitateľnosť */
[data-bs-theme="light"] { --bs-secondary-color: #4d5d6a; }

/* senzory = odľahčené položky (NIE ťažké karty ako funkcie) */
.ts-sensor-item { padding: 1.1rem .25rem; border-top: 1px solid var(--bs-border-color); }
.ts-sensor-item .ts-feat-ico { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; border-radius: 12px; }

/* stat strip (ľadový pás s číslami) */
.ts-stats { background: linear-gradient(135deg, var(--ts-ice-600), var(--ts-ice-700)); color: #fff; }
[data-bs-theme="dark"] .ts-stats { background: linear-gradient(135deg, #0d2030, #0a1620); border-block: 1px solid #1d3344; }
.ts-stats .container { padding-top: 2.6rem; padding-bottom: 2.6rem; }
.ts-stat-num { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.ts-stat-label { font-size: .9rem; opacity: .85; margin-top: .35rem; }

/* KOLEČKO 4 — problém karty ako „danger" */
.ts-risk-card { border-top: 4px solid var(--ts-alarm); }
.ts-risk-ico {
	width: 2.9rem; height: 2.9rem; border-radius: 13px;
	display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
	color: var(--ts-alarm); background: rgba(214, 59, 59, .12);
}
[data-bs-theme="dark"] .ts-risk-ico { background: rgba(255, 92, 92, .14); }

/* blog článok — čitateľná typografia */
.ts-article h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; margin-top: 1.9rem; margin-bottom: .6rem; }
.ts-article p { margin-bottom: 1rem; line-height: 1.75; }
.ts-article ul { margin-bottom: 1.1rem; padding-left: 1.25rem; }
.ts-article li { margin-bottom: .45rem; line-height: 1.6; }
.ts-article a { color: var(--bs-primary); text-underline-offset: 2px; }

/* cookie consent — banner */
.ts-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080; background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); border-top: 1px solid var(--bs-border-color); box-shadow: 0 -6px 26px rgba(13, 60, 80, .12); }
.ts-cookie[hidden], .ts-cookie-modal[hidden] { display: none; }
.ts-cookie-inner { display: flex; align-items: center; gap: 14px 28px; padding: 16px 0; flex-wrap: wrap; }
.ts-cookie-text { flex: 1 1 420px; font-size: .85rem; line-height: 1.5; color: var(--bs-secondary-color); }
.ts-cookie-text strong { color: var(--bs-body-color); font-size: .95rem; }
.ts-cookie-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
[data-bs-theme="dark"] .ts-cookie { background: rgba(12, 32, 42, .97); }

/* cookie consent — modal */
.ts-cookie-modal { position: fixed; inset: 0; z-index: 1090; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ts-cookie-backdrop { position: absolute; inset: 0; background: rgba(8, 24, 32, .55); backdrop-filter: blur(3px); }
.ts-cookie-dialog { position: relative; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 16px; box-shadow: 0 24px 60px rgba(8, 24, 32, .35); }
.ts-cookie-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--bs-border-color); }
.ts-cookie-modal-body { padding: 6px 22px 18px; }
.ts-cookie-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid var(--bs-border-color); }
.ts-cookie-cat:first-of-type { border-top: none; }
.ts-cookie-cat-info { flex: 1; }
.ts-cookie-switch { flex-shrink: 0; padding-top: 2px; }
.ts-cookie-switch .form-check-input { width: 2.4em; height: 1.3em; cursor: pointer; }
.ts-cookie-modal-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 22px; border-top: 1px solid var(--bs-border-color); }

/* error stránka — veľké číslo kódu (ladový gradient) */
.ts-error-code { font-size: clamp(4.5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; background: linear-gradient(135deg, #46c2ec, #137ba3 55%, #0e6585); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- cenník konfigurátor ---------- */
.ts-pricing-card .btn-check + .btn { text-align: left; }
.ts-stepper .btn { width: 34px; font-weight: 700; }
.ts-stepper-val { min-width: 2.2ch; text-align: center; font-variant-numeric: tabular-nums; font-size: 1.15rem; }
#ts-pricing .ts-pricing-row:last-child { border-bottom: 0 !important; }

/* ---------- AI CHAT (pattern z datastorm.sk, ľadová téma) ---------- */
.ai-chat { position: fixed; right: 22px; bottom: 22px; z-index: 1200; font-family: inherit; }
.ai-chat-launcher {
	display: flex; align-items: center; gap: 9px; padding: 12px 18px 12px 14px;
	background: linear-gradient(135deg, var(--ts-ice-600), var(--ts-ice-700));
	color: #fff; border: 0; border-radius: 14px;
	font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
	box-shadow: 0 10px 30px rgba(8, 44, 62, .30);
	transition: transform .18s ease, box-shadow .18s ease;
}
.ai-chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(8, 44, 62, .38); }
.ai-flake { width: 20px; height: 20px; flex-shrink: 0; }
.ai-chat.is-open .ai-chat-launcher { display: none; }

.ai-chat-panel {
	position: absolute; right: 0; bottom: 0; width: 370px; max-width: calc(100vw - 32px);
	background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 18px;
	box-shadow: 0 24px 64px rgba(8, 24, 32, .28); overflow: hidden; display: flex; flex-direction: column;
}
/* explicitné display:flex vyššie by prebilo UA pravidlo pre [hidden] → panel by bol stále otvorený */
.ai-chat-panel[hidden] { display: none; }
.ai-chat-head {
	display: flex; align-items: center; gap: 10px; padding: 14px 16px;
	background: linear-gradient(135deg, var(--ts-ice-600), var(--ts-ice-700)); color: #fff;
}
.ai-chat-title { display: flex; flex-direction: column; line-height: 1.25; }
.ai-chat-title strong { font-size: 15px; }
.ai-chat-title span { font-size: 12px; color: rgba(255,255,255,.7); }
.ai-chat-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.75); font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.ai-chat-close:hover { color: #fff; }

.ai-chat-msgs { height: 320px; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--ts-card-header-bg); }
.ai-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: break-word; }
.ai-msg-assistant { align-self: flex-start; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-bottom-left-radius: 5px; }
.ai-msg-user { align-self: flex-end; background: rgba(31, 151, 194, .13); border: 1px solid rgba(31, 151, 194, .30); border-bottom-right-radius: 5px; }
.ai-msg-assistant a { color: var(--ts-ice-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ai-msg-typing { opacity: .55; animation: ai-pulse 1.1s ease infinite; }
@keyframes ai-pulse { 50% { opacity: .3; } }

.ai-chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; background: var(--ts-card-header-bg); }
.ai-chat-chips button {
	font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
	border: 1px solid rgba(31, 151, 194, .40); background: var(--bs-body-bg); color: inherit; cursor: pointer; text-align: left;
}
.ai-chat-chips button:hover { background: rgba(31, 151, 194, .10); }

.ai-chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--bs-border-color); background: var(--bs-body-bg); }
.ai-chat-form input { flex: 1; font: inherit; font-size: 14px; padding: 10px 13px; border: 1px solid var(--bs-border-color); border-radius: 10px; background: var(--bs-body-bg); color: inherit; }
.ai-chat-form input:focus { outline: none; border-color: var(--ts-ice-600); box-shadow: 0 0 0 3px rgba(31, 151, 194, .16); }
.ai-chat-send { width: 42px; border: none; border-radius: 10px; background: var(--ts-ice-600); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ai-chat-send svg { width: 20px; height: 20px; }
.ai-chat-send:hover { filter: brightness(1.08); }

.ai-chat-note { padding: 8px 14px 12px; font-size: 11.5px; opacity: .65; background: var(--bs-body-bg); }
.ai-chat-note a { color: var(--ts-ice-600); }

@media (max-width: 560px) {
	.ai-chat { right: 12px; bottom: 12px; }
	/* bottom sheet na celú šírku, nezávislý od pozície launchera */
	.ai-chat-panel { position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; max-height: calc(100dvh - 16px); }
	.ai-chat-msgs { height: 42dvh; min-height: 110px; }
	/* iOS Safari pri font-size < 16px zoomne celú stránku pri fokuse inputu */
	.ai-chat-form input { font-size: 16px; }
}

/* ---------- navbar: nelám položky + užší padding tesne nad xl breakpointom ---------- */
.ts-navbar .nav-link { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1499.98px) {
	.ts-navbar { --bs-navbar-nav-link-padding-x: .55rem; }
	.ts-navbar .navbar-brand { font-size: 1.15rem; }
}

/* burger na tmavom navbare — biele čiary + svetlý rám (default Bootstrap je tmavý) */
.ts-navbar .navbar-toggler { border-color: rgba(255,255,255,.5); }
.ts-navbar .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,255,255,.25); }
.ts-navbar .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* sticky súhrn cenníka: pod sticky headerom (Bootstrap dáva obom z-index 1020 → DOM poradie by vyhral súhrn) */
.ts-pricing-sum.sticky-lg-top { top: 96px; z-index: 10; }
