/* contelio.cz — čistý, moderní statický web. Tokeny na :root, tmavá ve dvou blocích. */

:root {
	--navy: #1b2a63;
	--navy-2: #2c4090;
	--accent: #3b82f6;

	--bg: #ffffff;
	--bg-soft: #f6f7fb;
	--bg-card: #ffffff;
	--line: #e6e8f0;
	--line-soft: #eef0f6;
	--text: #131a2b;
	--text-soft: #5a6376;
	--text-faint: #8b93a5;
	--brand: var(--navy);
	--brand-ink: #ffffff;
	--shadow: 0 1px 2px rgba(19,26,43,.04), 0 8px 24px rgba(19,26,43,.06);
	--shadow-lift: 0 2px 4px rgba(19,26,43,.05), 0 18px 40px rgba(19,26,43,.10);
	--radius: 16px;
	--maxw: 1120px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0d1017;
		--bg-soft: #121724;
		--bg-card: #151a27;
		--line: #232a3b;
		--line-soft: #1c2231;
		--text: #eef1f7;
		--text-soft: #a3acc0;
		--text-faint: #7b8499;
		--brand: #7d9bff;
		--brand-ink: #0d1017;
		--shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
		--shadow-lift: 0 2px 4px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.5);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #0d1017;
	--bg-soft: #121724;
	--bg-card: #151a27;
	--line: #232a3b;
	--line-soft: #1c2231;
	--text: #eef1f7;
	--text-soft: #a3acc0;
	--text-faint: #7b8499;
	--brand: #7d9bff;
	--brand-ink: #0d1017;
	--shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
	--shadow-lift: 0 2px 4px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.5);
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "cv02", "cv03", "cv04", "ss01";
}

img { max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- hlavička ---------- */

.top {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, background .2s ease;
}
.top.is-stuck { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }

.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo-img { height: 34px; width: auto; display: block; }
/* v tmavém režimu má logo bílý nápis — přepínají se dvě varianty téhož obrázku */
.logo-img--dark { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .logo-img--light { display: none; }
	:root:not([data-theme="light"]) .logo-img--dark { display: block; }
}
:root[data-theme="dark"] .logo-img--light { display: none; }
:root[data-theme="dark"] .logo-img--dark { display: block; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-soft); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 9px; transition: color .15s ease, background .15s ease; }
.nav a:hover { color: var(--text); background: var(--bg-soft); }

.tools { display: flex; align-items: center; gap: 6px; padding-left: 8px; margin-left: 4px; border-left: 1px solid var(--line); }
.iconbtn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; border-radius: 9px; cursor: pointer; color: var(--text-soft); padding: 0; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.iconbtn:hover { color: var(--text); border-color: var(--text-faint); }
.iconbtn svg { width: 17px; height: 17px; }
.langs { display: flex; gap: 4px; }
.lang { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; padding: 0; opacity: .55; transition: opacity .15s ease, border-color .15s ease; text-decoration: none; }
.lang:hover { opacity: .85; }
.lang.is-active { opacity: 1; border-color: var(--line); background: var(--bg-soft); }
.lang svg { width: 20px; height: 14px; border-radius: 2px; display: block; }

.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 18px; border-radius: 10px;
	font-size: 14.5px; font-weight: 600; text-decoration: none;
	border: 1px solid transparent; cursor: pointer; white-space: nowrap;
	transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text-faint); background: var(--bg-soft); }
.top .btn { padding: 9px 15px; }

/* .nav a je specifičtější než .btn--*, tlačítko v liště si proto barvy vynucuje samo */
.nav a.btn--primary, .nav a.btn--primary:hover { color: var(--brand-ink); background: var(--brand); }
.nav a.btn--ghost, .nav a.btn--ghost:hover { color: var(--text); }

@media (max-width: 900px) {
	/* skrýt jen odkazy sekcí — vlaječky i tlačítko helpdesku musí zůstat */
	.nav > a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
	.top .wrap { gap: 10px; height: 62px; padding: 0 16px; }
	.nav { gap: 0; }
	.nav .btn span { display: none; }
	.nav .btn { padding: 9px 11px; }
	.tools { gap: 4px; padding-left: 6px; margin-left: 0; margin-right: 8px; }
	.langs { gap: 2px; }
	.lang, .iconbtn { width: 30px; height: 30px; }
	.lang svg { width: 18px; height: 12px; }
	.logo-img { height: 28px; }
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero::before {
	content: ""; position: absolute; inset: -40% 0 auto -10%; height: 620px;
	background: radial-gradient(60% 60% at 25% 40%, color-mix(in srgb, var(--navy) 16%, transparent), transparent 70%),
	            radial-gradient(45% 45% at 80% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
	pointer-events: none;
}
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 600; letter-spacing: .02em;
	color: var(--text-soft); background: var(--bg-card);
	border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
	position: relative;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 22%, transparent); }
h1 {
	position: relative;
	margin: 22px 0 0; max-width: 17ch;
	font-size: clamp(38px, 6vw, 62px); line-height: 1.06; text-wrap: balance;
	letter-spacing: -.035em; font-weight: 700;
}
h1 em { font-style: normal; background: linear-gradient(100deg, var(--navy), var(--navy-2) 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] h1 em { background: linear-gradient(100deg, #8fa8ff, #6ea8ff 60%, #57d0ff); -webkit-background-clip: text; background-clip: text; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h1 em { background: linear-gradient(100deg, #8fa8ff, #6ea8ff 60%, #57d0ff); -webkit-background-clip: text; background-clip: text; } }
.lead { position: relative; margin: 22px 0 0; max-width: 62ch; text-wrap: pretty; font-size: clamp(17px, 2vw, 19.5px); color: var(--text-soft); }
.hero-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 64px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-card); padding: 22px 24px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; font-weight: 700; }
.stat span { font-size: 13.5px; color: var(--text-soft); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- sekce ---------- */

section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head .kicker { font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.section-head h2 { margin: 12px 0 0; text-wrap: balance; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.14; letter-spacing: -.03em; font-weight: 700; }
.section-head p { margin: 14px 0 0; text-wrap: pretty; color: var(--text-soft); font-size: 17px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid { grid-template-columns: 1fr; } }

.card {
	background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 26px 24px 24px; transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); margin-bottom: 16px; }
.card .ico svg { width: 20px; height: 20px; }
.card h3 { margin: 0 0 8px; font-size: 17.5px; letter-spacing: -.015em; font-weight: 650; }
.card p { margin: 0; color: var(--text-soft); font-size: 15px; text-wrap: pretty; }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.card li { font-size: 12.5px; color: var(--text-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* ---------- reference ---------- */

.refs { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ref {
	display: flex; flex-direction: column; align-items: flex-start;
	background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 24px; text-decoration: none; color: inherit;
	transition: transform .18s ease, border-color .25s ease, box-shadow .25s ease;
}
.ref:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-lift); }
.ref-logo { display: flex; align-items: center; height: 40px; margin-bottom: 20px; }
.ref-logo img { max-height: 34px; width: auto; max-width: 172px; display: block; }
/* v tmavém režimu se barevná loga na tmavém pozadí ztrácejí — jedou jako bílá silueta */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .ref-logo img { filter: brightness(0) invert(1); opacity: .9; }
}
:root[data-theme="dark"] .ref-logo img { filter: brightness(0) invert(1); opacity: .9; }
.ref h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.ref p { margin: 0 0 16px; color: var(--text-soft); font-size: 14.5px; text-wrap: pretty; }
.ref-web { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.ref-web::after { content: " →"; transition: none; }
.ref:hover .ref-web { text-decoration: underline; }

/* ---------- postup ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: -1px; left: 0; transform: translateY(-100%); padding-bottom: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--brand); }
.step h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 650; }
.step p { margin: 0; font-size: 14.5px; color: var(--text-soft); }

/* ---------- časté dotazy ---------- */

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; transition: border-color .2s ease; }
.faq-item[open] { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.faq-item summary {
	list-style: none; cursor: pointer; padding: 16px 28px 16px 0; position: relative;
	font-size: 16px; font-weight: 600; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px;
	border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
	transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item p { margin: 0 0 18px; color: var(--text-soft); font-size: 15px; max-width: 68ch; text-wrap: pretty; }

/* ---------- kontakt ---------- */

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.contact-list li { grid-column: span 2; display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.contact-list li.half { grid-column: span 1; }
.contact-list li.half + li.half { border-bottom: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { flex: none; width: 68px; font-size: 12.5px; color: var(--text-faint); }
.contact-list .v { font-size: 15px; line-height: 1.45; }
@media (max-width: 560px) { .contact-list li.half { grid-column: span 2; } .contact-list li.half + li.half { border-bottom: 0; } }
.contact-list a { color: var(--brand); text-decoration: none; font-weight: 550; }
.contact-list a:hover { text-decoration: underline; }
.helpdesk { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 30px; }
.helpdesk h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; }
.helpdesk p { margin: 0 0 22px; color: rgba(255,255,255,.78); font-size: 15px; }
.helpdesk .btn { background: #fff; color: var(--navy); }
.helpdesk .btn:hover { transform: translateY(-1px); }

/* WhatsApp — zelená je značková, drží se i v tmavém režimu */
.whats {
	display: flex; align-items: center; gap: 14px; margin-top: 16px;
	background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 16px 18px; text-decoration: none; color: inherit;
	transition: transform .18s ease, border-color .25s ease, box-shadow .25s ease;
}
.whats:hover { transform: translateY(-2px); border-color: #25d366; box-shadow: var(--shadow); }
.whats-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #25d366; color: #fff; }
.whats-ico svg { width: 24px; height: 24px; }
.whats-text { display: block; }
.whats-text b { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.whats-text small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-soft); }

/* ---------- patička ---------- */

footer { border-top: 1px solid var(--line); padding: 34px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer p { margin: 0; font-size: 13.5px; color: var(--text-faint); }
footer nav { display: flex; gap: 18px; }
footer nav a { font-size: 13.5px; color: var(--text-soft); text-decoration: none; }
footer nav a:hover { color: var(--text); }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- chat s asistentem ---------- */

.chat-bublina {
	position: fixed; right: 22px; bottom: 22px; z-index: 60;
	width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--navy); color: #fff; display: grid; place-items: center;
	box-shadow: 0 6px 20px rgba(19,26,43,.28);
	transition: transform .18s ease, box-shadow .2s ease;
}
.chat-bublina:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 26px rgba(19,26,43,.34); }
.chat-bublina svg { width: 26px; height: 26px; }
.chat-otevren .chat-bublina { transform: scale(.9); opacity: .85; }

.chat-panel {
	position: fixed; right: 22px; bottom: 90px; z-index: 61;
	width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 130px));
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
	box-shadow: 0 18px 50px rgba(19,26,43,.24);
	animation: chat-vjezd .18s ease-out;
}
@keyframes chat-vjezd { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat-panel { animation: none; } }

.chat-hlavicka {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px;
	background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: #fff;
}
.chat-znak { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.chat-znak img { display: block; }
.chat-kdo { display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; }
.chat-kdo b { font-size: 14.5px; font-weight: 650; }
.chat-kdo small { font-size: 12px; color: rgba(255,255,255,.72); }
.chat-zavri { background: none; border: 0; color: rgba(255,255,255,.8); cursor: pointer; padding: 4px; display: grid; place-items: center; }
.chat-zavri:hover { color: #fff; }
.chat-zavri svg { width: 18px; height: 18px; }

.chat-telo { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.chat-zprava { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.chat-zprava a { color: inherit; }
.chat-zprava--asistent { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-zprava--clovek { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.chat-pise { opacity: .6; font-style: italic; }

.chat-patka { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); background: var(--bg-card); }
.chat-pole {
	flex: 1; resize: none; max-height: 110px; padding: 10px 12px;
	border: 1px solid var(--line); border-radius: 11px; background: var(--bg);
	color: var(--text); font: inherit; font-size: 14.5px; line-height: 1.4;
}
.chat-pole:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 1px; border-color: var(--brand); }
.chat-posli { flex: none; width: 40px; height: 40px; border: 0; border-radius: 11px; background: var(--brand); color: var(--brand-ink); cursor: pointer; display: grid; place-items: center; }
.chat-posli:hover { filter: brightness(1.05); }
.chat-posli svg { width: 18px; height: 18px; }

.chat-pod { padding: 0 14px 12px; background: var(--bg-card); display: flex; flex-direction: column; gap: 4px; }
.chat-wa { font-size: 13px; font-weight: 600; color: #128c4a; text-decoration: none; }
:root[data-theme="dark"] .chat-wa { color: #4ade80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chat-wa { color: #4ade80; } }
.chat-wa:hover { text-decoration: underline; }
.chat-poznamka { font-size: 11.5px; color: var(--text-faint); line-height: 1.4; }

@media (max-width: 560px) {
	.chat-panel { right: 10px; left: 10px; bottom: 84px; width: auto; max-height: calc(100vh - 110px); }
	.chat-bublina { right: 16px; bottom: 16px; }
}
