/* www.cistymail.cz - styly webu (bez frameworku) */

:root {
	--cervena: #d4002c;
	--cervena-tmava: #a80023;
	--cervena-svetla: #fdecef;
	--text: #1d2330;
	--text-slaby: #5a6272;
	--pozadi: #ffffff;
	--pozadi-sede: #f5f6f8;
	--tmava: #1b1f27;
	--okraj: #e2e5ea;
	--zelena: #1a7f37;
	--zelena-svetla: #e8f5ec;
	--oranzova: #9a5b00;
	--oranzova-svetla: #fff4e0;
	--radius: 10px;
	--stin: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .07);
	--sirka: 1160px;
	--pismo-nadpisy: 'Raleway', system-ui, sans-serif;
	--pismo-text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--pismo-text);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--pozadi);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--cervena); text-underline-offset: 2px; }
a:hover { color: var(--cervena-tmava); }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
	font-family: var(--pismo-nadpisy);
	line-height: 1.2;
	margin: 0 0 .6em;
	color: var(--text);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.obal { width: 100%; max-width: var(--sirka); margin: 0 auto; padding: 0 20px; }
.sekce { padding: clamp(48px, 8vw, 88px) 0; }
.sekce-seda { background: var(--pozadi-sede); }
.sekce-uvod { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.sekce-uvod p { color: var(--text-slaby); font-size: 1.1rem; }
.uzky { max-width: 820px; }
.stred { text-align: center; }

.preskocit {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--tmava); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.preskocit:focus { top: 12px; color: #fff; }

/* --- Ikony --- */
.ikona {
	width: 24px; height: 24px; flex: none;
	fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* --- Logo --- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-znak { width: 40px; height: 40px; }
.logo-stit { fill: var(--cervena); }
.logo-obalka { fill: #fff; }
.logo-chlopen { fill: none; stroke: var(--cervena); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo-text { font-family: var(--pismo-nadpisy); font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.logo-text b { font-weight: 800; color: var(--cervena); margin-left: .18em; }
.logo-svetle { color: #fff; }

/* --- Hlavicka a menu --- */
.hlavicka {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--okraj);
	backdrop-filter: saturate(1.4) blur(8px);
}
.hlavicka-obal { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.menu ul a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu ul a:hover, .menu ul a[aria-current="page"] { color: var(--cervena); border-bottom-color: var(--cervena); }
.menu-akce { display: flex; align-items: center; gap: 16px; }
.jazyk, .admin-odkaz { color: var(--text-slaby); text-decoration: none; font-size: .9rem; font-weight: 600; }
.jazyk { border: 1px solid var(--okraj); border-radius: 6px; padding: 2px 8px; }
.jazyk:hover, .admin-odkaz:hover { color: var(--cervena); }
.menu-tlacitko {
	display: none; align-items: center; gap: 10px;
	background: none; border: 1px solid var(--okraj); border-radius: 8px;
	padding: 8px 12px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}
.menu-carky, .menu-carky::before, .menu-carky::after {
	display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menu-carky::before, .menu-carky::after { content: ""; position: absolute; left: 0; }
.menu-carky::before { top: -6px; }
.menu-carky::after { top: 6px; }

@media (max-width: 1199px) {
	.js .menu-tlacitko { display: inline-flex; }
	.js .menu { display: none; }
	.menu {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--okraj); box-shadow: var(--stin);
		padding: 8px 20px 20px;
	}
	.js .menu.otevreno { display: flex; }
	.menu ul { flex-direction: column; gap: 0; }
	.menu ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--okraj); }
	.menu ul a[aria-current="page"] { border-bottom-color: var(--okraj); }
	.menu-akce { flex-wrap: wrap; padding-top: 16px; }
	.no-js .hlavicka { position: static; }
	.no-js .menu { position: static; box-shadow: none; border: 0; padding: 0 0 16px; }
	.no-js .hlavicka-obal { flex-wrap: wrap; }
}

/* --- Tlacitka --- */
.tlacitko {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--cervena); color: #fff; text-decoration: none;
	font-weight: 700; font-size: 1rem; line-height: 1.2;
	padding: 14px 26px; border-radius: 8px; border: 2px solid var(--cervena);
	cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s;
}
.tlacitko:hover { background: var(--cervena-tmava); border-color: var(--cervena-tmava); color: #fff; }
.tlacitko-male { padding: 9px 16px; font-size: .92rem; }
.tlacitko-obrys { background: transparent; color: var(--cervena); }
.tlacitko-obrys:hover { background: var(--cervena-svetla); color: var(--cervena-tmava); }
.tlacitko-bile { background: #fff; color: var(--cervena); border-color: #fff; }
.tlacitko-bile:hover { background: var(--cervena-svetla); border-color: var(--cervena-svetla); color: var(--cervena-tmava); }
.tlacitko-pruhledne { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.tlacitko-pruhledne:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.tlacitko[disabled] { opacity: .6; cursor: wait; }
.tlacitka { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Uvodni blok --- */
.hero {
	background: linear-gradient(135deg, var(--cervena) 0%, #b30027 100%);
	color: #fff; overflow: hidden;
}
.hero-mrizka { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; }
.nadtitulek { display: block; font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 14px; font-family: var(--pismo-text); }
.hero-text { font-size: 1.2rem; opacity: .95; max-width: 34em; margin-bottom: 1.6em; }
.hero-obrazek img { display: block; margin: 0 auto; max-height: 440px; width: auto; }
.hero-body { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 28px 0 0; padding: 0; font-weight: 600; font-size: .95rem; }
.hero-body li { display: flex; align-items: center; gap: 8px; }
.hero-body .ikona { width: 20px; height: 20px; }
@media (max-width: 860px) {
	.hero-mrizka { grid-template-columns: 1fr; }
	.hero-obrazek { order: -1; }
	.hero-obrazek img { max-height: 240px; }
}

/* --- Karty --- */
.karty { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.karta {
	background: #fff; border: 1px solid var(--okraj); border-radius: var(--radius);
	padding: 26px; box-shadow: var(--stin);
}
.karta p { color: var(--text-slaby); margin: 0; }
.karta-ikona {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 12px; margin-bottom: 14px;
	background: var(--cervena-svetla); color: var(--cervena);
}

/* --- Kroky --- */
.kroky { counter-reset: krok; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; }
.kroky li { position: relative; padding: 26px 24px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--okraj); }
.kroky li::before {
	counter-increment: krok; content: counter(krok);
	display: flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%; margin-bottom: 12px;
	background: var(--cervena); color: #fff; font-weight: 800; font-family: var(--pismo-nadpisy);
}
.kroky p { color: var(--text-slaby); margin: 0; }

/* --- Seznam s fajfkami --- */
.fajfky { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 10px 28px; }
.fajfky li { position: relative; padding-left: 30px; }
.fajfky li::before {
	content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
	background: var(--zelena-svetla) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.fajfky-jeden { grid-template-columns: 1fr; }

/* --- Reference --- */
.reference { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.reference li { background: #fff; border: 1px solid var(--okraj); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }
.reference .reference-dalsi { background: transparent; border-style: dashed; color: var(--text-slaby); font-weight: 500; font-style: italic; }

/* --- Vyzva (pruh) --- */
.vyzva { background: var(--tmava); color: #fff; }
.vyzva h2 { color: #fff; }
.vyzva p { color: #c9ced8; }
.vyzva-obal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.vyzva-obal > div:first-child { max-width: 620px; }

/* --- Schema toku posty --- */
.schema { display: block; width: 100%; max-width: 1000px; margin: 0 auto; overflow: visible; }
.schema text { font-family: var(--pismo-text); fill: var(--text); }
.schema .s-box { fill: #fff; stroke: var(--okraj); stroke-width: 1.5; }
.schema .s-mrak { fill: url(#g-mrak); }
.schema .s-filtr { fill: url(#g-filtr); stroke: var(--cervena); stroke-width: 2; }
.schema .s-sipka { stroke: var(--text-slaby); stroke-width: 2.5; fill: none; marker-end: url(#sipka); }
.schema .s-sipka-ok { stroke: var(--zelena); marker-end: url(#sipka-ok); }
.schema .s-sipka-zla { stroke: var(--cervena); stroke-dasharray: 6 5; marker-end: url(#sipka-c); }
.schema .s-nadpis { font-weight: 700; font-size: 17px; }
.schema .s-popis { font-size: 13.5px; font-weight: 400; fill: var(--text-slaby); }
.schema .s-cervene { fill: var(--cervena); font-weight: 700; }
.schema .s-zelene { fill: var(--zelena); font-weight: 600; }
.schema #sipka path { fill: var(--text-slaby); }
.schema #sipka-c path { fill: var(--cervena); }
.schema #sipka-ok path { fill: var(--zelena); }
.schema .s-ik { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.schema .s-ik-sedy { stroke: #8a93a3; }
.schema .s-ik-zeleny { stroke: var(--zelena); }
.schema .s-ik-cerveny { stroke: var(--cervena); }
.schema .s-kruh-zeleny { fill: var(--zelena-svetla); }
.schema .s-kruh-cerveny { fill: var(--cervena-svetla); }
.schema .s-ramecek { fill: none; stroke: #d5d9e0; stroke-width: 1; }
.schema .s-avatar { fill: #fff; stroke: #f6c9d2; stroke-width: 2; }
.schema .s-logo-stit { fill: var(--cervena); }
.schema .s-logo-obalka { fill: #fff; }
.schema .s-logo-chlopen { fill: none; stroke: var(--cervena); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.schema-mobil { display: none; }
@media (max-width: 700px) {
	.schema { display: none; }
	.schema-mobil { display: grid; }
}

/* --- Tabulka (cenik) --- */
.tabulka-obal { overflow-x: auto; border: 1px solid var(--okraj); border-radius: var(--radius); background: #fff; box-shadow: var(--stin); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--okraj); white-space: nowrap; }
th { background: var(--pozadi-sede); font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-slaby); }
td.cislo, th.cislo { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfc; }
.poznamka { color: var(--text-slaby); font-size: .95rem; margin-top: 14px; }

/* --- Dotazy (details) --- */
.dotazy { max-width: 860px; margin: 0 auto; }
.dotazy details { border-bottom: 1px solid var(--okraj); }
.dotazy summary {
	cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
	font-family: var(--pismo-nadpisy); font-weight: 700; font-size: 1.12rem;
}
.dotazy summary::-webkit-details-marker { display: none; }
.dotazy summary::after {
	content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	font-size: 1.6rem; font-weight: 400; color: var(--cervena);
}
.dotazy details[open] summary::after { content: "−"; }
.dotazy details > div { padding: 0 0 18px; color: var(--text-slaby); }

/* --- Formulare --- */
.formular { display: grid; gap: 16px; }
.formular-dva { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .formular-dva { grid-template-columns: 1fr; } }
.pole label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.pole input, .pole textarea {
	width: 100%; font: inherit; color: var(--text);
	padding: 12px 14px; border: 1px solid #c8cdd5; border-radius: 8px; background: #fff;
}
.pole textarea { min-height: 160px; resize: vertical; }
.pole input:focus, .pole textarea:focus { outline: 3px solid rgba(212, 0, 44, .2); border-color: var(--cervena); }
.pole-napoveda { color: var(--text-slaby); font-size: .88rem; margin-top: 4px; }
.robot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-gdpr { font-size: .88rem; color: var(--text-slaby); margin: 0; }
.panel { background: #fff; border: 1px solid var(--okraj); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--stin); }
.dva-sloupce { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .dva-sloupce { grid-template-columns: 1fr; } }

/* --- Hlaseni --- */
.hlaseni { border-radius: 8px; padding: 14px 16px; margin: 0 0 16px; font-weight: 600; }
.hlaseni-ok { background: var(--zelena-svetla); color: var(--zelena); }
.hlaseni-chyba { background: var(--cervena-svetla); color: var(--cervena-tmava); }
.hlaseni:empty { display: none; }

/* --- Test domeny --- */
.test-formular { display: flex; gap: 12px; flex-wrap: wrap; max-width: 640px; margin: 0 auto; }
.test-formular input { flex: 1 1 260px; font: inherit; font-size: 1.1rem; padding: 14px 16px; border: 1px solid #c8cdd5; border-radius: 8px; }
.vysledky { display: grid; gap: 14px; max-width: 900px; margin: 36px auto 0; }
.vysledek { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--okraj); background: #fff; }
.vysledek .ikona { grid-row: span 3; width: 28px; height: 28px; margin-top: 2px; }
.vysledek h3 { margin: 0; font-size: 1.05rem; }
.vysledek p { margin: 0; color: var(--text-slaby); }
.vysledek code { display: block; margin-top: 6px; padding: 8px 10px; background: var(--pozadi-sede); border-radius: 6px; font-size: .85rem; overflow-wrap: anywhere; color: var(--text); }
.v-ok .ikona { color: var(--zelena); }
.v-pozor .ikona { color: var(--oranzova); }
.v-chyba .ikona { color: var(--cervena); }
.v-info .ikona { color: var(--text-slaby); }
.v-ok { border-left: 4px solid var(--zelena); }
.v-pozor { border-left: 4px solid #e8a33a; background: var(--oranzova-svetla); }
.v-chyba { border-left: 4px solid var(--cervena); background: var(--cervena-svetla); }
.vysledky ~ .panel { max-width: 900px; margin-left: auto; margin-right: auto; }
.souhrn { text-align: center; font-size: 1.15rem; font-weight: 700; margin: 30px 0 0; }

/* --- Textova stranka --- */
.text h2 { font-size: 1.4rem; margin-top: 1.8em; }
.text ul { padding-left: 1.2em; }
.text li { margin-bottom: .4em; }

/* --- Zahlavi podstranky --- */
.zahlavi { background: var(--pozadi-sede); border-bottom: 1px solid var(--okraj); padding: clamp(36px, 6vw, 64px) 0; }
.zahlavi h1 { margin-bottom: .3em; }
.zahlavi p { color: var(--text-slaby); font-size: 1.15rem; max-width: 46em; margin: 0; }

/* --- Paticka --- */
.paticka { background: var(--tmava); color: #c9ced8; padding: 56px 0 0; font-size: .95rem; }
.paticka a { color: #fff; }
.paticka a:hover { color: #ffd2db; }
.paticka h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1em; }
.paticka ul { list-style: none; padding: 0; margin: 0; }
.paticka li { margin-bottom: .45em; }
.paticka p { margin-top: 1em; }
.paticka small { color: #9aa1ad; }
.paticka-mrizka { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.paticka .logo-stit { fill: var(--cervena); }
.paticka-spodek { border-top: 1px solid #333a47; margin-top: 40px; padding-top: 20px; padding-bottom: 24px; color: #9aa1ad; font-size: .88rem; }
@media (max-width: 760px) { .paticka-mrizka { grid-template-columns: 1fr; } }

/* --- Postupne zobrazeni pri posunu (jen s JS a bez omezeni pohybu) --- */
@media (prefers-reduced-motion: no-preference) {
	.js .odhalit { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
	.js .odhalit.videt { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* --- 404 --- */
.chyba-404 { text-align: center; padding: clamp(60px, 12vw, 120px) 0; }
.chyba-404 .kod { font-family: var(--pismo-nadpisy); font-size: 5rem; font-weight: 800; color: var(--cervena); line-height: 1; }

.odstup { margin-top: 28px; }

/* kod a ukazky DNS zaznamu v textu */
.text code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: #fff; border: 1px solid var(--okraj); border-radius: 4px; padding: 1px 5px; }
.text pre { background: var(--tmava); color: #e6e9ef; border-radius: 8px; padding: 14px 16px; overflow-x: auto; margin: 0 0 1.2em; }
.text pre code { background: none; border: 0; padding: 0; color: inherit; font-size: .9rem; white-space: pre; }
.text h3 { margin-top: 1.6em; }
.text ol li { margin-bottom: .5em; }

/* Navody */
.drobecky { font-size: .9rem; color: var(--text-slaby); margin-bottom: 14px; }
.drobecky a { color: var(--text-slaby); }
.clanek-meta { font-size: .9rem; margin-top: 12px !important; }
.karta-odkaz { position: relative; transition: border-color .15s, box-shadow .15s; }
.karta-odkaz:hover { border-color: var(--cervena); }
.karta-odkaz h3 a { color: var(--text); text-decoration: none; }
.karta-odkaz h3 a::after { content: ""; position: absolute; inset: 0; }
.karta-odkaz h3 a:hover { color: var(--cervena); }
.karta-vice { color: var(--cervena) !important; font-weight: 700; margin-top: 12px !important; }
.tlacitka-stred { justify-content: center; }
.text blockquote { margin: 0 0 1.2em; padding: 12px 18px; border-left: 4px solid var(--cervena); background: var(--pozadi-sede); border-radius: 0 8px 8px 0; }
.text table { margin-bottom: 1.2em; }
.text td, .text th { white-space: normal; }
.karty-dve { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.menu ul a, .menu-akce a { white-space: nowrap; }

/* odrazky v uvodu: 2 x 2, na uzkem displeji pod sebou */
.hero-body { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; }
@media (max-width: 420px) { .hero-body { grid-template-columns: 1fr; } }

/* --- Ukazky administrace --- */
.admin-body { max-width: 940px; margin: 0 auto 36px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .admin-body { grid-template-columns: 1fr; } }
.karta-foto { padding: 0; margin: 0; overflow: hidden; }
.karta-foto img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--okraj); }
.karta-foto figcaption { padding: 22px 26px 26px; }
/* koláž administrace v uvodnim bloku (misto ilustrace) */
.hero-admin img { max-height: none; width: 100%; height: auto; }
.hero-admin { margin: -30px -40px -40px 0; }
@media (max-width: 860px) { .hero-admin { order: 0; margin: 0 -8px; } .hero-admin img { max-height: none; } }
