/* =========================================================================
   Tlačítka a bloky konfigurátoru (navrh.hutchhouse.cz) na webu
   Funkce v as/doplnky/konfigurator.php. Barvy a tvary jako zbytek webu (style.css).
   ========================================================================= */
.kf-tl,
.kf-karta,
.kf-plovouci,
.kf-kontakt {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--seda, #434246);
	background-color: var(--zluta, #FDB713);
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s ease-in-out, transform .2s ease-in-out, box-shadow .2s ease-in-out;
}
.kf-tl:hover,
.kf-karta:hover,
.kf-plovouci:hover,
.kf-kontakt:hover {
	background-color: var(--zluta-tmava, #E0A00C);
	color: var(--seda, #434246);
	text-decoration: none;
}
.kf-tl span, .kf-karta span, .kf-banner .kf-tl span { line-height: 130%; text-align: left; }
.kf-tl small { font-size: inherit; font-weight: inherit; }   /* na telefonu druhý menší řádek */
.kf-tl svg, .kf-karta svg, .kf-plovouci svg, .kf-kontakt svg { flex: 0 0 auto; }
.kf-rucne {
	display: block;
	font-family: 'Delicious Handrawn', cursive;
	font-size: 26px;
	line-height: 100%;
	color: var(--zluta, #FDB713);
}

/* ---- základní tlačítko (detail domu, bannery) ---- */
.kf-tl {
	min-height: 54px;
	padding: 0 34px 0 28px;
	font-size: 16px;
	clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
}

/* ---- úvodní stránka: sekce „Navrhněte si dům ve 3D“ (pod sloganem, nad dlaždicemi) ---- */
.kf-sekce {
	float: left;
	width: 100%;
	padding: 0 0 95px;
}
.kf-sekce-obal {
	display: flex;
	align-items: center;
	gap: 60px;
}
/* snímek obrazovky konfigurátoru celý (bez ořezu), za ním šikmá žlutá ploška jako akcent */
.kf-sekce-obr {
	flex: 1 1 56%;
	display: block;
	position: relative;
	z-index: 0;
	margin: 0 0 18px 18px;
}
.kf-sekce-obr::before {
	content: '';
	position: absolute;
	z-index: -1;
	left: -18px;
	bottom: -18px;
	width: 46%;
	height: 62%;
	background-color: var(--zluta, #FDB713);
	clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
	transition: transform .2s ease-in-out;
}
.kf-sekce-obr img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
	transition: filter .2s ease-in-out, transform .2s ease-in-out;
}
.kf-sekce-obr:hover img { filter: brightness(1.04); transform: translateY(-4px); }
.kf-sekce-obr:hover::before { transform: translate(-4px, 4px); }
.kf-sekce-text { flex: 1 1 44%; text-align: left; }
.kf-sekce-text .kf-rucne { font-size: 34px; }
.kf-sekce-text h2 {
	margin: 4px 0 18px;
	color: var(--seda, #434246);
	font-size: 34px;
	font-weight: 800;
	line-height: 115%;
	text-transform: uppercase;
}
.kf-sekce-text h2 strong { color: var(--zluta, #FDB713); }
.kf-sekce-text ul {
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}
.kf-sekce-text li {
	position: relative;
	margin: 0 0 11px;
	padding-left: 32px;
	color: var(--seda, #434246);
	font-size: 17px;
	line-height: 140%;
}
.kf-sekce-text li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 3px;
	width: 18px;
	height: 18px;
	background-color: var(--zluta, #FDB713);
	clip-path: polygon(0 52%, 14% 38%, 40% 62%, 86% 12%, 100% 26%, 40% 90%);
}

/* ---- úvodní stránka: tlačítko v bloku „Chci kvalitní dřevostavbu“ (blok je žlutý → tlačítko tmavé) ---- */
.kontakt_uvod .sloupec:nth-of-type(3) {
	padding-top: 62px;
}
.kontakt_uvod .sloupec:nth-of-type(3) a.kf-kontakt {
	display: inline-flex;
	gap: 14px;
	height: auto;
	min-height: 62px;
	line-height: normal;
	margin: 0;
	padding: 10px 32px 10px 26px;
	color: white;
	background-color: var(--seda, #434246);
	font-size: 17px;
	clip-path: polygon(8px 0, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.kontakt_uvod .sloupec:nth-of-type(3) a.kf-kontakt svg { width: 26px; height: 26px; color: var(--zluta, #FDB713); }
.kontakt_uvod .sloupec:nth-of-type(3) a.kf-kontakt span { display: flex; flex-direction: column; text-align: left; line-height: 125%; }
.kontakt_uvod .sloupec:nth-of-type(3) a.kf-kontakt b { font-weight: 700; }
.kontakt_uvod .sloupec:nth-of-type(3) a.kf-kontakt small { font-size: 14px; font-weight: 500; text-transform: none; }
.kontakt_uvod .sloupec:nth-of-type(3) a.kf-kontakt:hover { color: var(--seda, #434246); background-color: white; }
.kontakt_uvod .sloupec:nth-of-type(3) a.kf-kontakt:hover svg { color: var(--seda, #434246); }

/* ---- katalog: tlačítko pod kartou domu – světlé, aby dominovaly fotky; po najetí žluté ---- */
.modul .modul_odkaz {
	display: flow-root;
	color: inherit;
	text-decoration: none;
}
.modul .kf-karta {
	display: flex;
	box-sizing: border-box;
	justify-content: center;
	gap: 11px;
	width: 100%;
	min-height: 46px;
	margin: 18px 0 0;
	padding: 0 18px;
	color: var(--seda, #434246);
	background-color: #F1EFEA;
	font-size: 14px;
	letter-spacing: .6px;
	clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.modul .kf-karta svg { width: 20px; height: 20px; color: var(--zluta-tmava, #E0A00C); transition: color .2s ease-in-out; }
.modul .kf-karta:hover { color: var(--seda, #434246); background-color: var(--zluta, #FDB713); }
.modul .kf-karta:hover svg { color: var(--seda, #434246); }

/* ---- detail domu: blok pod tabulkou s cenou ---- */
.kf-detail {
	float: left;
	width: 100%;
	box-sizing: border-box;
	margin: 25px 0 10px;
	padding: 26px 30px 30px;
	background-color: #F4F3F0;
	border-left: 6px solid var(--zluta, #FDB713);
	text-align: left;
}
.kf-detail-nadpis {
	margin: 6px 0 12px !important;
	color: var(--seda, #434246);
	font-size: 22px;
	font-weight: 800;
	line-height: 125%;
	text-transform: uppercase;
}
.kf-detail ul {
	margin: 0 0 22px !important;
	padding: 0 0 0 26px !important;   /* místo pro odrážky webu */
	list-style: none;
}
.kf-detail li {
	margin: 0 0 6px;
	padding-left: 22px;
	position: relative;
	font-size: 15px;
	line-height: 140%;
}

/* ---- banner (stránka Poptávka, Dřevostavby na míru) ---- */
.kf-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	clear: both;
	margin: 10px 0 40px;
	padding: 26px 32px;
	background-color: var(--seda, #434246);
	text-align: left;
}
.kf-banner-nadpis {
	margin: 4px 0 6px !important;
	color: white;
	font-size: 22px;
	font-weight: 800;
	text-transform: uppercase;
}
.kf-banner p { color: #E6E5E2; margin: 0; }
.kf-banner .kf-tl { flex: 0 0 auto; }

/* ---- plovoucí tlačítko (všechny stránky) ---- */
.kf-plovouci {
	position: fixed;
	z-index: 900;
	right: 26px;
	bottom: 26px;
	padding: 12px 30px 12px 22px;
	font-size: 15px;
	line-height: 120%;
	clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	opacity: 0;
	transform: translateY(20px);
	pointer-events: none;
}
.kf-plovouci.je-videt {
	opacity: 1;
	transform: none;
	pointer-events: auto;
	transition: opacity .3s ease, transform .25s ease, background-color .2s ease-in-out, color .2s ease-in-out, box-shadow .25s ease;
}
.kf-plovouci span { display: flex; flex-direction: column; text-align: left; }
.kf-plovouci small {
	font-size: 12px;
	font-weight: 600;
	text-transform: none;
}
/* hover: ztmavne, nadzvedne se, kostka se pootočí a zprava vyjede šipka */
.kf-plovouci svg:first-child { transition: transform .35s ease, color .2s ease; }
.kf-plovouci .kf-sipka {
	width: 0;
	margin-left: -12px;
	opacity: 0;
	transform: translateX(-8px);
	transition: width .25s ease, margin .25s ease, opacity .25s ease, transform .25s ease;
}
.kf-plovouci.je-videt:hover {
	color: white;
	background-color: var(--seda, #434246);
	transform: translateY(-4px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, .32);
}
.kf-plovouci:hover svg:first-child { color: var(--zluta, #FDB713); transform: rotate(-20deg) scale(1.12); }
.kf-plovouci:hover .kf-sipka { width: 20px; margin-left: 0; opacity: 1; transform: none; color: var(--zluta, #FDB713); }

@media (max-width: 1000px) {
	.kf-sekce-obal { flex-direction: column; gap: 40px; }
	.kf-sekce-obr { width: calc(100% - 18px); }
	.kf-sekce-text { text-align: center; }
	.kf-sekce-text ul { display: inline-block; text-align: left; }
	.kf-sekce-text h2 { font-size: 28px; }
}
@media (max-width: 650px) {
	.kf-tl {
		gap: 14px;
		padding: 12px 26px 12px 20px;
		font-size: 15px;
		clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
	}
	.kf-tl svg { width: 26px; height: 26px; }
	.kf-tl span { display: flex; flex-direction: column; }
	.kf-tl small { font-size: 12px; font-weight: 600; text-transform: none; }
	/* sekce na úvodu: odstup od sloganu, velké tlačítko přes celou šířku */
	.kf-sekce { margin-top: 34px; }
	.kf-sekce .kf-tl {
		display: flex;
		justify-content: center;
		gap: 16px;
		min-height: 72px;
		padding: 14px 26px;
		font-size: 18px;
		box-sizing: border-box;
	}
	.kf-sekce .kf-tl svg { width: 32px; height: 32px; }
	.kf-sekce .kf-tl small { font-size: 14px; }
	/* spodní lišta konfigurátoru: pod patičkou místo, aby lišta nepřekryla logo realizace */
	footer { padding-bottom: 120px !important; }
	.kf-banner { flex-direction: column; align-items: stretch; text-align: center; padding: 24px 20px; }
	.kf-banner .kf-tl { justify-content: center; }
	.kf-detail { padding: 22px 20px 24px; }
	.kf-detail .kf-tl { width: 100%; justify-content: center; box-sizing: border-box; }
	.kf-sekce { padding: 0 0 70px; }
	.kontakt_uvod .sloupec:nth-of-type(3) { padding-top: 0; }
	.kontakt_uvod .sloupec:nth-of-type(3) a.kf-kontakt { margin: 18px 0 10px; padding: 12px 22px; }
	/* telefon: lišta přes celou šířku dole */
	.kf-plovouci {
		left: 0;
		right: 0;
		bottom: 0;
		justify-content: center;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		clip-path: none;
		box-shadow: 0 -6px 20px rgba(0, 0, 0, .18);
	}
	.kf-plovouci span { flex-direction: row; gap: 6px; align-items: baseline; }
}
.modul .kf-karta-misto { visibility: hidden; }
