/* Kalibrovat.cz — úvodní strana (2026). Samostatné styly, bez CSS staré šablony Xtra.
   Proměnné (--kx-*) a tlačítka (.kx-btn) pocházejí z kalib-shell.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.hm {
	margin: 0; background: #fff; color: var(--kx-ink);
	font-family: var(--kx-font); font-size: 16px; line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.hm img { max-width: 100%; height: auto; display: block; }
.hm a { color: inherit; text-decoration: none; }
.hm h1, .hm h2, .hm h3, .hm p, .hm ul { margin: 0; padding: 0; }
.hm main svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.hm .kx-btn svg { width: 18px; height: 18px; }
.hm .kx-footer { margin-top: 0; }
.hm :focus-visible { outline: 3px solid var(--kx-amber); outline-offset: 3px; border-radius: 0; }

:root { --hm-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace; }

/* ---------- HERO ---------- */
.hm-hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 520px at 78% 38%, rgba(0, 122, 222, .55), transparent 68%),
		linear-gradient(160deg, #001226 0%, #001a33 45%, #06315c 100%);
}
/* jemný měřicí rastr */
.hm-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 55%, transparent 100%);
	mask-image: linear-gradient(100deg, transparent 5%, #000 55%, transparent 100%);
}
.hm-hero-in {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	gap: 32px; align-items: center; padding-top: 76px; padding-bottom: 132px;
}
.hm-hero h1 {
	font-size: clamp(36px, 4.7vw, 62px); line-height: 1.04; font-weight: 800; letter-spacing: -.028em;
	max-width: 13.5em; text-wrap: balance;
}
.hm-hero h1 em { font-style: normal; color: #6cc0ff; }
.hm-lead { margin-top: 22px !important; max-width: 34em; font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.6; color: rgba(255, 255, 255, .8); }


.hm-hero-visual { position: relative; height: 480px; }
.hm-hero-glow {
	position: absolute; left: 50%; top: 52%; width: 440px; height: 440px; transform: translate(-50%, -50%);
	border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16);
	background: radial-gradient(circle, rgba(108, 192, 255, .32), rgba(108, 192, 255, 0) 68%);
}
.hm-hero-glow::before, .hm-hero-glow::after {
	content: ""; position: absolute; inset: -56px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .13);
}
.hm-hero-glow::after { inset: 64px; border-style: solid; border-color: rgba(255, 255, 255, .1); }
.hm-hero-visual img { position: absolute; filter: drop-shadow(0 28px 34px rgba(0, 10, 25, .55)); }
.hm-hero-p1 { width: 330px; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.hm-hero-p2 { width: 215px; left: 0; top: 4%; z-index: 1; }
.hm-hero-p3 { width: 230px; right: -8px; bottom: -4%; z-index: 3; }

/* ---------- RYCHLÉ ODKAZY ---------- */
.hm-quick {
	position: relative; z-index: 5; margin-top: -72px; margin-bottom: 88px;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.hm-quick-card {
	display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 24px;
	background: #fff; border: 1px solid var(--kx-line); border-radius: 0;
	box-shadow: 0 20px 44px -24px rgba(0, 26, 51, .38);
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.hm-quick-card:hover { transform: translateY(-4px); border-color: var(--kx-blue); box-shadow: 0 28px 50px -24px rgba(0, 90, 163, .5); }
.hm-quick-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 0; margin-bottom: 12px;
	background: var(--kx-blue-l); color: var(--kx-blue-d); transition: background .18s, color .18s;
}
.hm-quick-icon svg { width: 22px; height: 22px; }
.hm-quick-card:hover .hm-quick-icon { background: var(--kx-blue); color: #fff; }
.hm-quick-card strong { font-size: 17px; font-weight: 700; color: var(--kx-navy); line-height: 1.3; }
.hm-quick-card > span:last-child { font-size: 14px; color: var(--kx-muted); line-height: 1.45; }

/* ---------- SPOLEČNÉ PRO SEKCE ---------- */
.hm-section { padding-top: 88px; padding-bottom: 88px; }
.hm-section-tight { padding-top: 0; }
.hm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.hm-kicker {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
	font: 600 12.5px var(--hm-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--kx-blue);
}
.hm-kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.hm-head h2 { font-size: clamp(27px, 3vw, 38px); line-height: 1.14; font-weight: 800; letter-spacing: -.022em; color: var(--kx-navy); text-wrap: balance; }
.hm-head p { margin-top: 12px !important; max-width: 40em; font-size: 17px; color: var(--kx-muted); }
.hm-head-light h2 { color: #fff; }
.hm-head-light p { color: rgba(255, 255, 255, .72); }
.hm-head-light .hm-kicker { color: #6cc0ff; }
.hm-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; color: var(--kx-blue-d) !important; white-space: nowrap; }
.hm-link svg { width: 17px; height: 17px; transition: transform .18s; }
a.hm-link:hover svg, a:hover > .hm-link svg, a:hover .hm-link svg { transform: translateX(4px); }
.hm-head-link { padding-bottom: 6px; }

/* ---------- VYUŽITÍ ---------- */
/* Využití je na bílém podkladu a plynule na něj navazují reference. */
.hm-band { background: #fff; }
.hm-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-use {
	display: flex; align-items: center; gap: 14px; padding: 15px 16px;
	background: #fff; border: 1px solid var(--kx-line); border-radius: 0;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hm-use:hover { border-color: var(--kx-blue); box-shadow: 0 14px 30px -20px rgba(0, 90, 163, .55); transform: translateY(-2px); }
.hm-use-icon {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 44px; height: 44px; border-radius: 0; background: var(--kx-blue-l); color: var(--kx-blue-d);
}
.hm-use-icon svg { width: 22px; height: 22px; }
.hm-use-text { flex: 1; min-width: 0; }
.hm-use-text strong { display: block; font-size: 16px; font-weight: 700; color: var(--kx-navy); line-height: 1.3; }
.hm-use-text small { display: block; margin-top: 2px; font: 500 12.5px var(--hm-mono); color: var(--kx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-use-arrow { color: #b6c2d1; transition: color .15s, transform .15s; display: inline-flex; }
.hm-use-arrow svg { width: 18px; height: 18px; }
.hm-use:hover .hm-use-arrow { color: var(--kx-blue); transform: translateX(3px); }
.hm-use-guide { background: var(--kx-navy); border-color: var(--kx-navy); }
.hm-use-guide .hm-use-text strong { color: #fff; }
.hm-use-guide .hm-use-text small { color: rgba(255, 255, 255, .62); }
.hm-use-guide .hm-use-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.hm-use-guide .hm-use-arrow { color: rgba(255, 255, 255, .5); }
.hm-use-guide:hover { border-color: var(--kx-blue); }
.hm-use-guide:hover .hm-use-arrow { color: #fff; }

/* ---------- KALIBRACE (tmavý pás) ---------- */
.hm-dark {
	position: relative; color: #fff;
	background: radial-gradient(800px 400px at 12% 0%, rgba(0, 122, 222, .35), transparent 70%), var(--kx-navy);
}
.hm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.hm-step { padding: 30px 32px 4px 0; }
.hm-step + .hm-step { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .16); }
.hm-step-num { font: 700 13px var(--hm-mono); letter-spacing: .1em; color: #6cc0ff; margin-bottom: 14px; }
.hm-step-num::before { content: "KROK 0"; }
.hm-step h3 { font-size: 21px; line-height: 1.25; font-weight: 700; color: #fff; }
.hm-step p { margin: 10px 0 18px !important; font-size: 15.5px; color: rgba(255, 255, 255, .74); }
.hm-step .hm-link { color: #fff !important; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 3px; }
.hm-step .hm-link:hover { border-color: #fff; }

/* ---------- REFERENCE ---------- */
.hm-refs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-ref { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 0; background: var(--kx-navy); }
.hm-ref img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, opacity .35s; }
.hm-ref::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 18, 38, 0) 35%, rgba(0, 18, 38, .9) 100%); }
.hm-ref span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.hm-ref:hover img { transform: scale(1.06); }

/* ---------- ZÁVĚREČNÁ VÝZVA ---------- */
.hm-cta {
	position: relative; overflow: hidden;
	display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
	padding: 48px 52px; border-radius: 0; color: #fff;
	background: linear-gradient(135deg, #003a73 0%, #0059a3 50%, #007ade 100%);
	box-shadow: 0 24px 60px -28px rgba(0, 58, 115, .6);
}
.hm-cta::before {
	content: ""; position: absolute; right: -90px; top: -110px; width: 340px; height: 340px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%); pointer-events: none;
}
.hm-cta > * { position: relative; }
.hm-cta h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hm-cta p { margin-top: 10px !important; max-width: 34em; color: rgba(255, 255, 255, .85); }
.hm-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- RESPONZIVITA ---------- */
@media (max-width: 1100px) {
	.hm-hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 120px; }
	.hm-hero-visual { display: none; }
	.hm-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hm-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hm-refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.hm-section { padding-top: 64px; padding-bottom: 64px; }
	.hm-section-tight { padding-top: 0; }
	.hm-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
	.hm-steps { grid-template-columns: minmax(0, 1fr); }
	.hm-step, .hm-step + .hm-step { padding: 26px 0 22px; border-left: 0; }
	.hm-step + .hm-step { border-top: 1px solid rgba(255, 255, 255, .16); }
	.hm-cta { padding: 36px 28px; }
}
@media (max-width: 560px) {
	.hm-hero-in { padding-top: 40px; padding-bottom: 104px; }
	.hm-quick { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: -64px; }
	.hm-quick-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 16px 18px; }
	.hm-quick-icon { margin-bottom: 0; }
	.hm-quick-card strong { flex: 1; }
	.hm-quick-card > span:last-child { flex-basis: 100%; padding-left: 60px; margin-top: -8px; }
	.hm-uses { grid-template-columns: minmax(0, 1fr); }
	.hm-refs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hm-ref span { left: 12px; right: 12px; bottom: 12px; font-size: 13.5px; }
	.hm-cta-actions, .hm-cta-actions .kx-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.hm *, .hm *::before, .hm *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

/* kotvy pod lepivou hlavičkou */
.hm [id] { scroll-margin-top: 92px; }
@media (max-width: 820px) { .hm-quick { margin-bottom: 56px; } }
