article, aside, audio, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, meter, nav, output, progress, section, source, video {display: block;}
mark, rp, rt, ruby, summary, time {display: inline;}

html {width: 100%;}
body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	color: #333;
	background-image: url(../images/bgr.jpg);
	background-repeat: no-repeat;
	background-position: center top;
	background-attachment: fixed;
	background-size: cover;
}
a {
	color: #00a9ff;
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
.col-1, .col-2, .col-3, .col-4 {
	float: left;
}
.col-1 {
	width: 285px;
	margin-right: 10px;
}
.col-2 {
	width: 285px;
}
.col-3 {
	width: 350px;
	margin-right: 30px;
}
.col-4 {
	width: 500px;
}
.wrapper {
	width: 100%; 
	overflow: hidden;
}
.main {
	max-width: 984px;
	width: 100%;
	padding: 0px;
	margin: 0px auto;
	line-height: 1.285em;
}

.fleft {float: left;}
.fright {float: right;}
.alignright {text-align: right;}
.aligncenter {text-align: center;}
.it {font-style: italic;}
.letter {letter-spacing: -1px;}
.clear {
	clear: both;
}
.bold {
	font-weight: bold;
}

/* boxes */
.img-indent-r {
	float: right;
	margin-top: 4px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 15px;
}
/* header */
.logo-wrap {
	position: relative;
}
.section-intro {
	font-size: 15px;
	line-height: 1.6em;
	margin-bottom: 20px;
	color: #fff;
	text-align: center;
}
#content .section-intro {
	color: #444;
}
header {
	width: 100%;
	position: relative;
}
.row-1 {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: center;
	padding-bottom: 10px;
}
h1, .logo-wrap {
	padding: 0 15px;
	min-width: 0;
	flex-shrink: 1;
}
.logo, .logo2, .logo3 {
	display: block;
	margin: 10px 0;
}
.logo img,
.logo2 img,
.logo3 img {
	display: block;
	width: 100%;
	height: auto;
}
.logo img  { max-width: 300px; }
.logo2 img { max-width: 122px; }
.logo3 img { max-width: 327px; }
.slog {
	display: block;
	letter-spacing: -1px;
	margin-top: -5px;
	font-size: 16px;
}

/* content */
#content {
	width: 100%;
	border-radius: 18px 18px 0 0;
	-moz-border-radius: 18px 18px 0 0;
	-webkit-border-radius: 18px 18px 0 0;
	position: relative;
	background-color: #ffffff;
	border: 2px solid #666;
	padding-top: 10px;
	padding-right: 0pt;
	padding-bottom: 60px;
	padding-left: 0px;
	margin-top: -20px;
	z-index: 29;
}
#content_tattoo {
	width: 100%;
	border-radius: 18px 18px 0 0;
	-moz-border-radius: 18px 18px 0 0;
	-webkit-border-radius: 18px 18px 0 0;
	position: relative;
	background-color: #dc1b1b;
	background-image: url(../images/bgr_tattoo.jpg);
	background-repeat: no-repeat;
	background-position: center bottom;
	border: 2px solid #666;
	padding-top: 10px;
	padding-right: 0pt;
	padding-bottom: 60px;
	padding-left: 0px;
	z-index: 9;
}
.padding {
	padding-top: 30px;
	padding-right: 50px;
	padding-bottom: 0px;
	padding-left: 50px;
}
h2 {
	font-size: 18px;
	line-height: 2em;
	margin-top: -5px;
}
h2 span {
	font-size: 30px;
	display: block;
	color: #9dd9f3;
	margin-bottom: -11px;
	letter-spacing: -2px;
}
h2 span.red {
	font-size: 30px;
	display: block;
	color: #dc1b1b;
	margin-bottom: -11px;
	letter-spacing: -2px;
}
h3 {
	font-size: 25px;
	color: #000000;
	letter-spacing: -1px;
	margin-bottom: 30px;
	margin-top: 0px;
}
h4 {
	font-size: 25px;
	line-height: 1.2em;
	color: #ffffff;
	letter-spacing: -1px;
	margin-bottom: 20px;
}
.price {
	font-size: 25px;
	line-height: 1.3em;
	letter-spacing: -2px;
	color: #9dd9f3;
	float: right;
	font-weight: bold;
}
.red {
	color: #dc1b1b;	
}
.box {
	width: 100%;
	border-radius: 18px;
	-moz-border-radius: 18px;
	-webkit-border-radius: 18px;
	background-color: #ebebeb;
	border: 2px solid #666;
	margin-top: 5px;
	margin-bottom: 5px;
}
.box2 {
	width: 100%;
	border-radius: 18px;
	-moz-border-radius: 18px;
	-webkit-border-radius: 18px;
	background-color: #FC9;
	border: 2px solid #666;
	margin-top: 5px;
	margin-bottom: 5px;
}
.box h2, .box2 h2,
.box h3, .box2 h3 {
	margin-top: -5px;
}

/* Product card h3 (overrides generic h3) */
.box h3, .box2 h3 {
	font-size: 18px;
	line-height: 2em;
	margin-bottom: 0;
	color: inherit;
	letter-spacing: normal;
}
.box h3 span, .box2 h3 span {
	font-size: 30px;
	display: block;
	color: #9dd9f3;
	margin-bottom: -11px;
	letter-spacing: -2px;
}
.box h3 span.red, .box2 h3 span.red {
	color: #dc1b1b;
}
.box .pad, .box2 .pad {
	padding-top: 30px;
	padding-right: 30px;
	padding-bottom: 30px;
	padding-left: 30px;
}
.box img, .box2 img {
	display: block;
	max-width: 100%;
	height: auto;
	padding: 20px 0;
}
.pripravujeme {
	background-image: url(../images/pripravujeme.png);
	background-repeat: no-repeat;
	background-position: right top;
}
#objednavka {
	width: 100%;
	border-radius: 18px 18px 0 0;
	-moz-border-radius: 18px 18px 0 0;
	-webkit-border-radius: 18px 18px 0 0;
	background-color: #fff265;
	border: 2px solid #666;
	margin-top: -20px;
	padding-top: 10px;
	padding-right: 0;
	padding-bottom: 40px;
	padding-left: 0;
	z-index: 99;
	position: relative;
	font-size: 13px;
	text-align: center;
}
footer {
	width: 100%;
	border-radius: 0 0 18px 18px;
	-moz-border-radius: 0 0 18px 18px;
	-webkit-border-radius: 0 0 18px 18px;
	background-color: #000000;
	border: 2px solid #666;
	margin-bottom: 5px;
	margin-top: -2px;
}
.row {
	padding-top: 30px;
	padding-right: 50px;
	padding-bottom: 40px;
	padding-left: 50px;
}
dl.adresa {
	line-height: 24px;
	color: #9d9d9d;
}
dl.adresa span {
	float: left;
	width: 74px;
	color: #fefefe;
}
.design {
	font-size: 11px;
	line-height: 20px;
	text-align: center;
	color: #000;
	width: 100%;
	height: 20px;
	margin-bottom: 20px;
}
.design a {
	color: #000;
}
.design a:hover {
	color: #fff;
}

/* Focus-visible styly – obnovuje viditelnost fokusu pro klávesnicovou navigaci
   (reset.css odstraňuje outline globálně, toto ho selektivně vrací) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #00a9ff;
	outline-offset: 3px;
}

/* ==============================================
   RESPONZIVNÍ DESIGN
   ============================================== */

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

/* --- Produktová mřížka: CSS Grid, vždy 3 sloupce ---
   Pokud je v řádku méně než 3 položky, poslední buňky zůstanou prázdné.
   ------------------------------------------------------ */
#content .padding > .wrapper,
#content_tattoo .padding > .wrapper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	overflow: visible;
	align-items: stretch;
}

/* Sloupce jsou grid-items – float a pevná šířka se ruší */
#content .padding > .wrapper > .col-1,
#content .padding > .wrapper > .col-2,
#content_tattoo .padding > .wrapper > .col-1,
#content_tattoo .padding > .wrapper > .col-2 {
	width: auto;
	margin-right: 0;
	float: none;
	min-width: 0;
	/* flex sloupec pro stejnou výšku boxů */
	display: flex;
	flex-direction: column;
}

/* Box vyplní celou výšku buňky */
#content .padding > .wrapper > .col-1 .box,
#content .padding > .wrapper > .col-2 .box,
#content_tattoo .padding > .wrapper > .col-1 .box,
#content_tattoo .padding > .wrapper > .col-2 .box {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Pad vyplní celou výšku boxu */
#content .padding > .wrapper > .col-1 .box .pad,
#content .padding > .wrapper > .col-2 .box .pad,
#content_tattoo .padding > .wrapper > .col-1 .box .pad,
#content_tattoo .padding > .wrapper > .col-2 .box .pad {
	flex: 1;
}

/* --- Patička: flexbox --- */
footer .wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	overflow: visible;
}

footer .col-3,
footer .col-4 {
	flex: 1 1 280px;
	float: none;
	margin-right: 0;
	width: auto;
}

/* --- Hlavička: loga na středních displejích ≤ 640px --- */
@media (max-width: 640px) {
	h1, .logo-wrap {
		padding: 0 8px;
	}
	.slog {
		font-size: 12px;
		margin-left: 5px;
	}
}

/* --- Střední displeje ≤ 640px: 2 sloupce ---
   .padding se stane grid kontejnerem, .wrapper je průhledný (display: contents)
   → karty ze všech řádků tvoří jednu mřížku, žádný prázdný sudý řádek.
   ------------------------------------------------------------------ */
@media (max-width: 640px) {
	.padding {
		padding: 20px 25px;
	}
	.row {
		padding: 20px 25px;
	}
	/* Přesun gridu z .wrapper na .padding */
	#content .padding,
	#content_tattoo .padding {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	/* .wrapper se stane průhledným – jeho děti jdou přímo do .padding gridu */
	#content .padding > .wrapper,
	#content_tattoo .padding > .wrapper {
		display: contents;
	}
	/* section-intro přes celou šířku gridu */
	#content .padding > .section-intro,
	#content_tattoo .padding > .section-intro {
		grid-column: 1 / -1;
	}
	/* Centrovanie obrázků */
	.box img, .box2 img {
		margin-left: auto;
		margin-right: auto;
	}
	h2 span,
	h2 span.red,
	.box h3 span,
	.box h3 span.red,
	.box2 h3 span,
	.box2 h3 span.red {
		font-size: 22px;
	}
	.price {
		font-size: 20px;
	}
	.box .pad, .box2 .pad {
		padding: 15px;
	}
}

/* --- Mobilní displeje ≤ 400px: 1 sloupec --- */
@media (max-width: 400px) {
	.padding {
		padding: 15px;
	}
	.row {
		padding: 15px;
	}
	/* Přepis na 1 sloupec (display: contents a section-intro se dědí z 640px) */
	#content .padding,
	#content_tattoo .padding {
		grid-template-columns: 1fr;
	}
	/* Loga se skládají pod sebou, vycentrovaná */
	.row-1 {
		flex-direction: column;
		align-items: center;
	}
	h1, .logo-wrap {
		padding: 5px 0;
	}
	/* Obrázky loga: přirozená velikost (ne 100% šířky při vertikálním skládání) */
	.logo img, .logo2 img, .logo3 img {
		width: auto;
		max-width: 100%;
	}
	.slog {
		display: none;
	}
	h2 {
		font-size: 15px;
		line-height: 1.6em;
	}
	.box h3, .box2 h3 {
		font-size: 15px;
		line-height: 1.6em;
	}
	h2 span,
	h2 span.red,
	.box h3 span,
	.box h3 span.red,
	.box2 h3 span,
	.box2 h3 span.red {
		font-size: 18px;
		margin-bottom: -6px;
	}
	h3 {
		font-size: 20px;
		margin-bottom: 15px;
	}
	h4 {
		font-size: 20px;
	}
	.price {
		font-size: 18px;
	}
	.section-intro {
		font-size: 13px;
	}
	.logo2, .logo3 {
		margin-left: 8px;
	}
	#content_tattoo,
	#content,
	#objednavka {
		border-radius: 10px 10px 0 0;
		-moz-border-radius: 10px 10px 0 0;
		-webkit-border-radius: 10px 10px 0 0;
	}
	footer {
		border-radius: 0 0 10px 10px;
		-moz-border-radius: 0 0 10px 10px;
		-webkit-border-radius: 0 0 10px 10px;
	}
}