/* Kassoft – responsive layout (2026) */

:root {
	--blue: #1d5a8c;
	--blue-dark: #143f63;
	--blue-light: #e8f1f8;
	--red: #b8202a;
	--text: #1f2933;
	--muted: #5f6b76;
	--border: #d9e2ea;
	--bg: #f4f7fa;
	--card: #ffffff;
	--radius: 10px;
	--shadow: 0 1px 3px rgba(16, 42, 67, .08), 0 4px 16px rgba(16, 42, 67, .06);
	--max: 1160px;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
}

a {
	color: var(--blue);
	text-underline-offset: 2px;
}

a:hover {
	color: var(--red);
}

h1, h2, h3 {
	line-height: 1.25;
	color: var(--blue-dark);
	margin: 1.4em 0 .5em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }

p, ul, ol, blockquote, table {
	margin: 0 0 1em;
}

ul, ol {
	padding-left: 1.4em;
}

li {
	margin-bottom: .35em;
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 1.5em 0;
}

.container {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 16px;
}


/* ---------- Header ---------- */

.site-header {
	background: var(--card);
	border-bottom: 3px solid var(--blue);
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}

.brand img {
	display: block;
	height: 56px;
	width: auto;
}

.nav-toggle {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.nav-toggle-label {
	display: none;
	cursor: pointer;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-weight: 600;
	color: var(--blue-dark);
	user-select: none;
}

.nav-toggle-label span {
	display: inline-block;
	width: 18px;
	height: 2px;
	background: currentColor;
	position: relative;
	vertical-align: middle;
	margin-right: 8px;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.nav-toggle-label span::before { top: -6px; }
.nav-toggle-label span::after { top: 6px; }

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav li {
	margin: 0;
}

.site-nav a {
	display: block;
	padding: 8px 14px;
	border-radius: 8px;
	color: var(--text);
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
}

.site-nav a:hover {
	background: var(--blue-light);
	color: var(--blue-dark);
}

.site-nav .active a {
	background: var(--blue);
	color: #fff;
}

.nav-toggle:focus-visible + .nav-toggle-label {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}


/* ---------- Layout ---------- */

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 28px;
	padding-top: 28px;
	padding-bottom: 40px;
}

.content {
	min-width: 0;
}

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.card,
.content > .boxed {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 20px 24px;
	margin-bottom: 24px;
}

.sidebar .card {
	margin: 0;
	padding: 18px 20px;
}

.card > :first-child,
.content > .boxed > :first-child,
.post > :first-child {
	margin-top: 0;
}

.card > :last-child,
.content > .boxed > :last-child {
	margin-bottom: 0;
}

.sidebar h2 {
	font-size: 1.05rem;
	margin: 0 0 .6em;
}

.contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.contact-list li {
	margin-bottom: .5em;
}

.contact-list a {
	font-weight: 600;
	text-decoration: none;
}

.partners {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 16px;
}

.partners img {
	max-height: 70px;
	width: auto;
}

.partners .polozka,
#sloupec .polozka {
	margin: 0;
}

.partners .clearer {
	display: none;
}


/* ---------- Page content (texts from the database) ---------- */

.page-title {
	margin-top: 0;
	font-size: 1.9rem;
}

.boxed {
	margin-bottom: 24px;
}

.post + .post {
	margin-top: 1.5em;
}

.title,
.boxed .title,
.post .title {
	font-weight: 700;
	color: var(--blue-dark);
}

h2.title {
	font-size: 1.4rem;
	padding-bottom: .3em;
	border-bottom: 2px solid var(--blue-light);
}

.story {
	overflow-wrap: break-word;
}

.story img {
	margin: 8px;
	border-radius: 4px;
}

.story table,
.table-wrap {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

table {
	border-collapse: collapse;
}

td, th {
	padding: 6px 12px 6px 0;
	text-align: left;
	vertical-align: top;
}

.kontakt-cisla th.undr {
	border-bottom: 2px solid var(--border);
}

.kontakt-cisla td {
	border-bottom: 1px solid var(--border);
}

.map {
	width: 100%;
	height: 360px;
	border-radius: var(--radius);
	overflow: hidden;
	margin: 1em 0;
}

.services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0 24px;
}

.services h3 {
	margin-top: .6em;
}


/* ---------- News / offers ---------- */

.akce {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 20px;
	padding: 20px 0;
	border-top: 1px solid var(--border);
}

#dialog + .akce {
	border-top: 0;
}

.akce .akce_img a {
	display: block;
	position: relative;
}

.akce .akce_img img {
	width: 140px;
	border-radius: 6px;
	border: 1px solid var(--border);
}

.akce_img a span {
	position: absolute;
	top: 6px;
	left: 6px;
}

.akce .akce_text {
	grid-column: 2;
	min-width: 0;
}

.akce .akce_text:only-child,
.akce .akce_text:first-child {
	grid-column: 1 / -1;
}

.akce .akce_text h2 {
	margin-top: 0;
	font-size: 1.25rem;
}

.akce .akce_text h2:empty {
	display: none;
}

.akce .akce_text h2.title {
	border: 0;
	padding: 0;
	font-size: 1.15rem;
}

.akce_info {
	margin-top: .5em;
}

.akce_info a,
.btn,
button,
input[type="submit"] {
	display: inline-block;
	padding: 8px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--blue);
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.akce_info a:hover,
.btn:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--blue-dark);
	color: #fff;
}

.akce_sep {
	display: none;
}


/* ---------- E-shop / order ---------- */

#eshop_kosik .polozka {
	border-top: 1px solid var(--border);
	padding: 16px 0;
}

.shifted {
	padding-left: 0;
}

.cena_total {
	font-weight: 700;
	color: var(--red);
	font-size: 1.2em;
}

form fieldset {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 12px 16px;
	margin: 0 0 16px;
}

form legend {
	font-weight: 700;
	padding: 0 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
	font: inherit;
	padding: 6px 10px;
	border: 1px solid #b9c6d2;
	border-radius: 6px;
	max-width: 100%;
}

input[type="reset"] {
	font: inherit;
	padding: 6px 12px;
	margin-left: 6px;
}

tr.required th label::after {
	content: " *";
	color: var(--red);
}

ul.error {
	color: var(--red);
	font-weight: 600;
	list-style: none;
	padding: 12px 16px;
	background: #fdeeee;
	border-radius: 8px;
}

.flash-info {
	color: #17803d;
	font-weight: 700;
}


/* ---------- Footer ---------- */

.site-footer {
	background: var(--blue-dark);
	color: #d6e2ec;
	font-size: .92rem;
	padding: 28px 0;
}

.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 40px;
}

.site-footer a {
	color: #fff;
}

.site-footer p {
	margin: 0 0 .3em;
}


/* ---------- Responsive ---------- */

@media (max-width: 980px) {
	.nav-toggle-label {
		display: inline-block;
	}

	.site-header .container {
		flex-wrap: wrap;
	}

	.site-nav {
		display: none;
		width: 100%;
		padding-bottom: 12px;
	}

	.site-nav ul {
		flex-direction: column;
	}

	.nav-toggle:checked ~ .site-nav {
		display: block;
	}

	.layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-header {
		position: static;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 15px;
	}

	.brand img {
		height: 44px;
	}

	.card {
		padding: 16px;
	}

	.akce {
		grid-template-columns: minmax(0, 1fr);
	}

	.akce .akce_text {
		grid-column: 1;
	}

	.akce .akce_img img {
		width: 100%;
		max-width: 320px;
	}

	.story img {
		margin: 8px 0;
	}

	.map {
		height: 260px;
	}
}
