/*
 * Hlavní styly šablony REDPLUS Vizitka.
 * Struktura používá jasné sekce, vysoký kontrast a viditelné focus stavy pro lepší přístupnost.
 */
:root {
	--rp-red: #ed1c24;
	--rp-red-dark: #b80f18;
	--rp-gray-900: #202226;
	--rp-gray-700: #555a61;
	--rp-gray-500: #9fa2a7;
	--rp-gray-100: #f4f5f7;
	--rp-white: #ffffff;
	--rp-border: #dfe2e7;
	--rp-radius: 22px;
	--rp-shadow: 0 20px 60px rgba(32, 34, 38, 0.12);
	--rp-container: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--rp-gray-900);
	background: var(--rp-white);
}

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

a {
	color: var(--rp-red-dark);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--rp-red);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -5rem;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--rp-gray-900);
	color: var(--rp-white);
	border-radius: 0 0 10px 10px;
}

.skip-link:focus {
	top: 0;
}

.container {
	width: min(100% - 2rem, var(--rp-container));
	margin-inline: auto;
}

.narrow {
	max-width: 820px;
}

.section {
	padding: clamp(4rem, 7vw, 7rem) 0;
}

.section-light {
	background: var(--rp-gray-100);
}

.section-heading {
	max-width: 760px;
	margin-bottom: 2rem;
}

.eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rp-red);
}

h1,
h2,
h3 {
	margin: 0 0 1rem;
	line-height: 1.08;
	letter-spacing: -0.04em;
}

h1 {
	font-size: clamp(2.5rem, 7vw, 5.8rem);
}

h2 {
	font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
	font-size: clamp(1.4rem, 2vw, 2rem);
}

p {
	margin: 0 0 1.2rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	overflow: visible;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--rp-border);
	backdrop-filter: blur(14px);
}

/* Při přihlášení ve WordPressu nechá fixní horní lištu viditelnou pod admin barem. */
body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

.header-inner {
	display: grid;
	grid-template-columns: minmax(180px, 280px) 1fr auto;
	align-items: center;
	gap: clamp(1rem, 2vw, 1.75rem);
	min-height: 88px;
}

.site-brand {
	display: inline-flex;
	align-items: center;
}

.site-brand img {
	display: block;
	width: 260px;
}

.main-nav-list {
	display: flex;
	justify-content: flex-end;
	gap: clamp(0.5rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav-list a {
	font-size: clamp(1rem, 1.05vw, 1.12rem);
	font-weight: 800;
	color: var(--rp-gray-900);
	text-decoration: none;
}

.main-nav-list a:hover {
	color: var(--rp-red);
}

.header-phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.25rem;
	font-size: clamp(1rem, 1.05vw, 1.12rem);
	font-weight: 800;
	color: var(--rp-white);
	background: var(--rp-red);
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
}

.header-phone:hover {
	color: var(--rp-white);
	background: var(--rp-red-dark);
}

.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 15% 20%, rgba(237, 28, 36, 0.14), transparent 30%),
		linear-gradient(135deg, #ffffff 0%, #f4f5f7 100%);
}

.hero::after {
	content: "";
	position: absolute;
	right: -8rem;
	bottom: -8rem;
	width: 24rem;
	height: 24rem;
	background: var(--rp-red);
	opacity: 0.06;
	border-radius: 999px;
}

.hero-grid {
	position: relative;
	z-index: 1;
	display: block;
}

.hero-copy {
	width: 100%;
}

.hero-lead {
	max-width: 980px;
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	color: var(--rp-gray-700);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.85rem 1.25rem;
	font-weight: 800;
	border: 2px solid transparent;
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
}

.button-primary {
	color: var(--rp-white);
	background: var(--rp-red);
}

.button-primary:hover {
	color: var(--rp-white);
	background: var(--rp-red-dark);
}

.button-secondary {
	color: var(--rp-gray-900);
	background: var(--rp-white);
	border-color: var(--rp-border);
}

.button-secondary:hover {
	color: var(--rp-red-dark);
	border-color: var(--rp-red);
}

.service-card,
.meaning-card,
.contact-form-card,
.content-card {
	background: var(--rp-white);
	border: 1px solid var(--rp-border);
	border-radius: var(--rp-radius);
	box-shadow: var(--rp-shadow);
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.service-card {
	position: relative;
	overflow: hidden;
	padding: clamp(1.5rem, 3vw, 2rem);
}

.service-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 6px;
	background: var(--rp-red);
}

.section-redplus {
	color: var(--rp-white);
	background: var(--rp-gray-900);
}

.section-redplus .eyebrow,
.section-redplus a {
	color: var(--rp-white);
}

.brands-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
	align-items: center;
	gap: 2rem;
}

.brand-list {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.brand-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.25rem;
	font-size: clamp(1.4rem, 4vw, 2.6rem);
	font-weight: 900;
	letter-spacing: -0.05em;
	color: var(--rp-white);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px;
}

.brand-name {
	flex: 1 1 auto;
	min-width: 0;
}

.brand-logo-frame {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(180px, 46%);
	min-height: 64px;
	padding: 0.7rem 1rem;
	background: var(--rp-white);
	border-radius: 14px;
	box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.brand-logo-frame img {
	display: block;
	max-width: 100%;
	max-height: 46px;
	object-fit: contain;
}

.brand-logo-frame-klaro img {
	max-height: 38px;
}

.plus-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.9fr 0.9fr;
	gap: 1.25rem;
	align-items: stretch;
}

.meaning-card {
	padding: 2rem;
}

.meaning-card h3 {
	font-size: clamp(2.4rem, 5vw, 4rem);
}

.meaning-red h3 {
	color: var(--rp-red);
}

.meaning-plus h3 {
	color: var(--rp-gray-500);
}

.contact-section {
	background: var(--rp-gray-100);
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

/* Kontaktní nadpis drží na desktopu v jednom řádku podle požadavku zadání. */
.contact-info h2 {
	font-size: clamp(1.7rem, 2.4vw, 2.6rem);
	white-space: nowrap;
}

.contact-info address {
	margin: 1.5rem 0;
	font-style: normal;
}

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

.contact-links li + li {
	margin-top: 0.3rem;
}

.opening-hours {
	padding: 1rem;
	font-weight: 700;
	background: var(--rp-white);
	border-left: 6px solid var(--rp-red);
	border-radius: 14px;
}

.contact-form-card {
	padding: clamp(1.25rem, 3vw, 2rem);
}

.form-message {
	margin-bottom: 1.25rem;
	padding: 1rem;
	border-radius: 14px;
}

.form-message-success {
	color: #174b2a;
	background: #e8f7ee;
	border: 1px solid #b7e2c5;
}

.form-message-error {
	color: #7c0d14;
	background: #fde8ea;
	border: 1px solid #f4bbc0;
}

.required-note {
	font-size: 0.95rem;
	color: var(--rp-gray-700);
}

.form-field {
	margin-bottom: 1rem;
}

.form-field label,
.form-check label {
	display: block;
	font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.85rem 1rem;
	font: inherit;
	color: var(--rp-gray-900);
	background: var(--rp-white);
	border: 1px solid var(--rp-border);
	border-radius: 14px;
}

.form-field textarea {
	resize: vertical;
}

.form-check {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem;
	align-items: start;
	margin: 1rem 0 1.5rem;
}

.form-check input {
	width: 1.2rem;
	height: 1.2rem;
	margin-top: 0.25rem;
	accent-color: var(--rp-red);
}

.honeypot-field {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}


.site-footer {
	position: relative;
	overflow: hidden;
	padding: 3rem 0 1rem;
	color: var(--rp-white);
	background: var(--rp-gray-900);
}

.footer-pattern {
	position: absolute;
	right: -2rem;
	bottom: -4rem;
	width: 18rem;
	height: 18rem;
	background-image: url('../img/vrstevnice.png');
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.11;
}

.footer-grid,
.footer-bottom {
	position: relative;
	z-index: 1;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
}

.footer-logo {
	width: 260px;
	padding: 0.5rem;
	background: var(--rp-white);
	border-radius: 12px;
}

.footer-company a,
.footer-cottage a {
	color: var(--rp-white);
}

.footer-cottage {
	padding: 0;
}

.footer-cottage-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 260px;
	min-height: 78px;
	padding: 0.5rem;
	background: var(--rp-white);
	border-radius: 12px;
}

.footer-cottage-logo-link:hover {
	opacity: 0.9;
}

.footer-cottage-logo-link img {
	display: block;
	width: 190px;
}

.footer-recommend-title {
	margin: 0.9rem 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 800;
}

.footer-cottage-description {
	max-width: 480px;
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
	margin-top: 2rem;
	padding-top: 1rem;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.74);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.content-card {
	padding: clamp(1.5rem, 4vw, 3rem);
}


/* Menší a srozumitelná 404 stránka pro nenalezený/neveřejný obsah. */
.error-card {
	text-align: center;
}

.error-title {
	font-size: clamp(1.8rem, 4vw, 3rem);
	letter-spacing: -0.03em;
}

.error-message {
	max-width: 620px;
	margin-inline: auto;
	color: var(--rp-gray-700);
}

.error-card .button {
	margin-top: 0.75rem;
}

@media (max-width: 980px) {
	.header-inner,
	.brands-grid,
	.plus-grid,
	.contact-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.header-inner {
		padding: 1rem 0;
	}

	.main-nav-list {
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.cards-grid {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 760px) {
	.contact-info h2 {
		white-space: normal;
	}
}

@media (max-width: 560px) {
	.brand-list li {
		align-items: flex-start;
		flex-direction: column;
	}

	.brand-logo-frame {
		width: 100%;
	}

	.site-brand img,
	.footer-logo {
		width: 220px;
	}

	.hero-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.button,
	.header-phone {
		width: 100%;
	}

	.footer-cottage-logo-link,
	.footer-logo {
		width: 220px;
	}

	.footer-cottage-logo-link img {
		width: 160px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* Cookie lišta a dialog souhlasů.
 * Volitelné kategorie nejsou předem zaškrtnuté a návštěvník má stejně dostupné odmítnutí i přijetí.
 */
.footer-cookie-settings {
	padding: 0;
	font: inherit;
	color: rgba(255, 255, 255, 0.88);
	background: transparent;
	border: 0;
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

.footer-cookie-settings:hover {
	color: var(--rp-white);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
	justify-content: space-between;
}

.cookie-dialog-open {
	overflow: hidden;
}

.cookie-overlay {
	position: fixed;
	inset: 0;
	z-index: 1998;
	background: rgba(32, 34, 38, 0.58);
}

.cookie-banner {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	z-index: 1997;
	color: var(--rp-gray-900);
}

.cookie-banner-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.25rem;
	align-items: center;
	width: min(100%, var(--rp-container));
	margin-inline: auto;
	padding: 1.25rem;
	background: var(--rp-white);
	border: 1px solid var(--rp-border);
	border-radius: var(--rp-radius);
	box-shadow: 0 22px 70px rgba(32, 34, 38, 0.22);
}

.cookie-banner-copy h2 {
	margin-bottom: 0.35rem;
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	letter-spacing: -0.03em;
}

.cookie-banner-copy p {
	margin-bottom: 0;
	color: var(--rp-gray-700);
}

.cookie-banner-actions,
.cookie-dialog-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
}

.cookie-banner-actions .button,
.cookie-dialog-actions .button {
	min-height: 44px;
	padding: 0.7rem 1rem;
}

.cookie-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 1999;
	width: min(92vw, 680px);
	max-height: min(90vh, 760px);
	transform: translate(-50%, -50%);
	color: var(--rp-gray-900);
}

.cookie-dialog-card {
	overflow: auto;
	max-height: min(90vh, 760px);
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--rp-white);
	border: 1px solid var(--rp-border);
	border-radius: var(--rp-radius);
	box-shadow: 0 28px 90px rgba(32, 34, 38, 0.28);
}

.cookie-dialog-header {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	justify-content: space-between;
}

.cookie-dialog-header h2 {
	font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.cookie-dialog-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 2rem;
	line-height: 1;
	color: var(--rp-gray-900);
	background: var(--rp-gray-100);
	border: 1px solid var(--rp-border);
	border-radius: 999px;
	cursor: pointer;
}

.cookie-dialog-intro {
	color: var(--rp-gray-700);
}

.cookie-options {
	display: grid;
	gap: 0.85rem;
	margin: 1.5rem 0;
}

.cookie-option {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
	border: 1px solid var(--rp-border);
	border-radius: 16px;
	background: var(--rp-white);
}

.cookie-option h3,
.cookie-option strong {
	display: block;
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
	letter-spacing: normal;
}

.cookie-option p,
.cookie-option small {
	display: block;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--rp-gray-700);
}

.cookie-required {
	flex: 0 0 auto;
	padding: 0.4rem 0.7rem;
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--rp-red-dark);
	background: rgba(237, 28, 36, 0.09);
	border-radius: 999px;
}

.cookie-option-toggle {
	cursor: pointer;
}

.cookie-option-toggle input {
	flex: 0 0 auto;
	width: 1.35rem;
	height: 1.35rem;
	accent-color: var(--rp-red);
}

@media (max-width: 900px) {
	.cookie-banner-inner {
		grid-template-columns: 1fr;
	}

	.cookie-banner-actions,
	.cookie-dialog-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	.brand-list li {
		align-items: flex-start;
		flex-direction: column;
	}

	.brand-logo-frame {
		width: 100%;
	}

	.cookie-banner {
		right: 0.75rem;
		bottom: 0.75rem;
		left: 0.75rem;
	}

	.cookie-banner-actions .button,
	.cookie-dialog-actions .button {
		width: 100%;
	}

	.cookie-option {
		align-items: flex-start;
		flex-direction: column;
	}

	.cookie-required {
		align-self: flex-start;
	}
}

/* Pevné tlačítko zpět nahoru pro rychlý návrat na začátek dlouhé stránky. */
.back-to-top {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 900;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.35rem;
	height: 3.35rem;
	font-size: 1.8rem;
	font-weight: 900;
	line-height: 1;
	color: var(--rp-white);
	background: var(--rp-red);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 16px 38px rgba(32, 34, 38, 0.22);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(0.75rem);
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	visibility: hidden;
}

.back-to-top:hover {
	background: var(--rp-red-dark);
	box-shadow: 0 18px 44px rgba(32, 34, 38, 0.28);
}

.back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

@media (max-width: 560px) {
	.brand-list li {
		align-items: flex-start;
		flex-direction: column;
	}

	.brand-logo-frame {
		width: 100%;
	}

	.back-to-top {
		right: 0.85rem;
		bottom: 0.85rem;
		width: 3rem;
		height: 3rem;
		font-size: 1.55rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.back-to-top {
		transition: none;
	}
}
