/* ==========================================================================
   Konfigurátor brán a pergol
   --------------------------------------------------------------------------
   Všetko je pod triedou .kfg, aby štýly nezasahovali do témy.
   Farby a zaoblenie sa dajú prispôsobiť webu v téme, napr.:
     .kfg { --kfg-accent: #c0392b; --kfg-radius: 8px; }
   Písmo sa dedí z témy. Predvolené hodnoty sú v :where(), takže ich téma
   prebije aj vtedy, keď sa tento súbor načíta až po jej štýloch.
   ========================================================================== */
:where(.kfg) {
	--kfg-accent: #000;
	--kfg-accent-dark: #000;
	--kfg-heading: #0b0b0b;
	--kfg-text: #383838;
	--kfg-muted: #000;
	--kfg-line: #e3e7ef;
	--kfg-tint: #f3f5fa;
	--kfg-surface: #fff;
	--kfg-metal: #4a3431; /* Farba ilustrácií brán (RAL 8017 ako vo Figme). */
	--kfg-radius: 16px;
	--kfg-button-text-shift: 0px; /* Optické vyrovnanie textu v tlačidlách podľa písma témy. */
}

.sub-menu .menu-item a.menu-link {
	color: #fff;
}

.kfg {
	box-sizing: border-box;
	color: var(--kfg-text);
}

.kfg *,
.kfg *::before,
.kfg *::after {
	box-sizing: inherit;
}

.kfg-configurator {
	margin-bottom: 60px;	
}

/* Tlačidlo. */
.kfg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 30px!important;
	border: 2px solid var(--kfg-accent);
	border-color: var(--kfg-accent)!important;
    border-radius: 0;
	background: transparent;
	color: var(--kfg-accent)!important;
	font: inherit;
	font-size: 12px!important;
	font-weight: 500!important;
	line-height: 1.2;
	text-align: center;
	text-decoration: none!important;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.kfg-button:disabled {
	opacity: 0.6;
	cursor: wait;
}

.kfg-button:hover, .kfg-button:focus {
	background: #000!important;
	color: #fff!important;
}

.kfg-button--ghost {
	background: transparent;
	color: var(--kfg-accent);
	border-color: transparent!important;
}

.kfg-button--ghost:hover {
	background: var(--kfg-tint);
	color: var(--kfg-accent-dark);
	
}

.kfg-button[hidden] {
	display: none;
}

.kfg-button__arrow {
	transition: transform 0.25s ease;
}

/* Rozcestník: dve veľké karty s fotkou. */
.kfg-chooser {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.kfg-chooser--1 {
	grid-template-columns: minmax(0, 640px);
	justify-content: center;
}

/* Tri konfigurátory vedľa seba (brány, pergoly, garáže a domčeky). */
.kfg-chooser--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kfg-chooser--3 .kfg-chooser__title {
	font-size: clamp(26px, 2.2vw, 34px);
}

.kfg-chooser__card {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 520px;
	overflow: hidden;
	isolation: isolate;
	border-radius: calc(var(--kfg-radius) + 4px);
	background: #111622;
	color: #fff;
	text-decoration: none;
}

/* Fotku karty sa dá posunúť vyššie (--kfg-shift, atribút *_posun v shortcode), aby ju neprekrýval text.
   Spodok posunutej fotky plynulo prechádza do tmavého pozadia karty. */
.kfg-chooser__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: translateY(calc(-1 * var(--kfg-shift, 0%)));
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.kfg-chooser__card[style*="--kfg-shift"] .kfg-chooser__image {
	-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
	mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.kfg-chooser__card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Tmavý prechod len pod textom, horná časť fotky ostáva bez stmavenia. */
	background: linear-gradient(to top, rgba(17, 22, 34, 0.92) 15%, rgba(17, 22, 34, 0.55) 45%, rgba(17, 22, 34, 0) 70%);
}

.kfg-chooser__card:hover .kfg-chooser__image {
	transform: translateY(calc(-1 * var(--kfg-shift, 0%))) scale(1.04);
}

.kfg-chooser__card:hover .kfg-button__arrow {
	transform: translateX(4px);
}

.kfg-chooser__body {
	display: grid;
	justify-items: start;
	gap: 10px;
	padding: clamp(24px, 3vw, 40px);
}

.kfg-chooser__eyebrow {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	color: #a9c1f7;
}

.kfg-chooser__title {
	font-size: clamp(28px, 2.8vw, 40px);
	font-weight: 600;
	line-height: 1.1;
}

.kfg-chooser__text {
	max-width: 440px;
	margin-bottom: 8px;
	color: rgba(255, 255, 255, 0.85);
}

.kfg-chooser__button {
	white-space: normal;
}

/* Typy brán: mriežka kariet s ilustráciou. */
.kfg-types {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kfg-type {
	display: grid;
	grid-template-rows: auto auto auto 1fr auto; /* „Konfigurovať“ je vždy dole na rovnakej úrovni. */
	gap: 4px;
	height: 100%;
	padding: 18px 18px 20px;
	border: 1px solid var(--kfg-line);
	border-radius: var(--kfg-radius);
	background: var(--kfg-surface);
	color: var(--kfg-text)!important;
	text-decoration: none!important;
	transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.35s ease;
}

.kfg-type:hover,
.kfg-type:focus-visible {
	border-color: var(--kfg-accent);
	box-shadow: 0 14px 34px rgba(27, 33, 48, 0.1);
	transform: translateY(-3px);
}

.kfg-type__visual {
	display: block;
	margin-bottom: 12px;
	padding: 14px 10px;
	border-radius: calc(var(--kfg-radius) - 6px);
	background: var(--kfg-tint);
}

/* Fotka typu (assets/img/typy/) cez celú plochu, výrez 4 : 3. */
.kfg-type__visual:has(.kfg-type__photo) {
	overflow: hidden;
	padding: 0;
}

.kfg-type__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.kfg-type__code {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--kfg-heading);
}

.kfg-type__name {
	font-size: 15px;
}

.kfg-type__text {
	margin-top: 6px;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--kfg-muted);
}

.kfg-type__cta {
	margin-top: 10px;
	font-weight: 600;
	color: var(--kfg-accent);
}

/* Výzva pod typmi brán: vlastný dizajn na požiadanie. */
.kfg-custom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 48px;
	margin-top: 28px;
	padding: clamp(22px, 3vw, 36px);
	border-radius: var(--kfg-radius);
	background: var(--kfg-tint);
}

.kfg-custom > div {
	flex: 1 1 420px;
	min-width: 0;
}

.kfg-custom__title {
	margin: 0 0 8px;
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.2;
	color: var(--kfg-heading);
}

.kfg-custom__text {
	max-width: 760px;
	margin: 0;
	line-height: 1.6;
}

/* Ilustrácie brán a pergol. */
.kfg-gate,
.kfg-pergola {
	display: block;
	width: 100%;
	height: auto;
}

.kfg-gate__frame {
	fill: none;
	stroke: var(--kfg-metal);
	stroke-width: 4;
}

.kfg-gate__fill {
	fill: var(--kfg-metal);
}

.kfg-gate__ground {
	fill: #cfd5e1;
}

.kfg-cut {
	fill: var(--kfg-tint);
}

/* Vypálené čiary (hviezdičky ARTE, obrys obrázka pri vlastnom vzore). */
.kfg-cut-line {
	fill: none;
	stroke: var(--kfg-tint);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.kfg-cut-line--slit {
	stroke-width: 1.8;
}

/* Doplnky ilustrácií v kroku „Rozmery a položky“. */
.kfg-gate__post {
	fill: #4b5262;
}

.kfg-gate__handle,
.kfg-gate__steel {
	fill: #9aa3b2;
}

.kfg-gate__handle-plate {
	fill: #6b7383;
}

.kfg-gate__rail {
	fill: #6b7383;
}

.kfg-gate__wheel {
	fill: #4b5262;
	stroke: var(--kfg-tint);
	stroke-width: 2;
}

.kfg-gate__concrete,
.kfg-gate__pillar {
	fill: #d9dde5;
}

/* Vypálené popisné číslo na schránkovom boxe. */
.kfg-gate__number {
	fill: var(--kfg-tint);
	font-size: 28px;
	font-weight: 700;
}

/* Ilustrácie výplne krycej steny pergoly. */
.kfg-infill__frame {
	fill: none;
	stroke: #4b5262;
	stroke-width: 3;
}

.kfg-infill__shine {
	fill: none;
	stroke: rgba(255, 255, 255, 0.85);
	stroke-width: 2;
	stroke-linecap: round;
}

.kfg-infill__joint {
	fill: #8a93a3;
}

.kfg-infill__weave {
	fill: rgba(120, 104, 80, 0.18);
}

/* Obrys protiváhy samonosnej brány za stĺpikom. */
.kfg-gate__counterweight {
	fill: none;
	stroke: var(--kfg-metal);
	stroke-width: 3;
	stroke-linejoin: round;
}

.kfg-gate__ghost {
	opacity: 0.35;
}

.kfg-arrow {
	fill: none;
	stroke: var(--kfg-accent);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.kfg-pergola__glass {
	fill: #b9c9e8;
}

/* Kroky konfigurátora (podľa Figmy: kruh s číslom, „Krok 1“, názov, spojovacia čiara). */
.kfg-steps {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 16px 22px;
	margin: 20px 0 clamp(36px, 4vw, 56px);
	padding: 0 0 clamp(24px, 3vw, 36px);
	border-bottom: 1px solid var(--kfg-line);
	list-style: none;
}

.kfg-steps__item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--kfg-muted);
}

/* Spojovacia čiara pred každým krokom okrem prvého. */
.kfg-steps__item + .kfg-steps__item::before {
	content: "";
	width: clamp(24px, 5vw, 72px);
	height: 1.5px;
	margin-right: 10px;
	background: var(--kfg-line);
}

.kfg-steps__number {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--kfg-tint);
	font-size: 15px;
	font-weight: 700;
	color: var(--kfg-muted);
}

.kfg-steps__text {
	display: grid;
	line-height: 1.25;
}

.kfg-steps__kicker {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.kfg-steps__label {
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
}

/* Vybraný model pod krokom 1. */
.kfg-steps__value {
	margin-top: 2px;
	font-size: 13px;
	font-weight: 600;
	color: var(--kfg-accent);
}

.kfg-steps__item.is-active {
	color: var(--kfg-heading);
}

.kfg-steps__item.is-active .kfg-steps__kicker {
	color: var(--kfg-accent);
}

.kfg-steps__item.is-active .kfg-steps__label {
	font-weight: 700;
}

.kfg-steps__item.is-active .kfg-steps__number {
	border: 2px solid var(--kfg-accent);
	background: var(--kfg-surface);
	color: var(--kfg-accent);
	box-shadow: 0 0 0 5px rgba(63, 111, 219, 0.14);
}

.kfg-steps__item.is-done .kfg-steps__number {
	background: var(--kfg-accent);
	color: #fff;
}

.kfg-steps__item.is-done .kfg-steps__kicker {
	color: var(--kfg-accent);
}

.kfg-steps__button{
	color: #000!important;
	padding: 0!important;
}

.kfg-steps__button:hover {
	background-color: inherit!important;
	color: #1A6C7A!important;
}

/* Rozloženie: obsah kroku vľavo, súhrn vpravo. */
.kfg-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 456px);
	align-items: start;
	gap: 40px 64px;
	margin: 0;
}

.kfg-panel[hidden] {
	display: none;
}

.kfg-panel__title {
	margin: 0 0 20px;
	font-size: clamp(26px, 2.6vw, 36px);
	line-height: 1.15;
	color: var(--kfg-heading);
}

/* Detail vybraného modelu. */
.kfg-model__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	margin-bottom: 16px;
}

.kfg-badge {
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--kfg-tint);
	font-size: 12px;
	line-height: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: #4b5466;
}

.kfg-link {
	padding: 0!important;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 600!important;
	color: var(--kfg-accent)!important;
	text-decoration: none!important;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
}

.kfg-link:hover, .kfg-link:focus {
	text-decoration: underline;
	background-color: transparent!important;
}

.kfg-link--underline {
	color: var(--kfg-heading);
	text-decoration: underline!important;
	text-underline-offset: 3px;
}

.kfg-link[hidden] {
	display: none;
}

.kfg-model__title {
	margin: 0;
	font-size: clamp(32px, 3.2vw, 46px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--kfg-heading);
	text-wrap: balance;
}

.kfg-model__text {
	max-width: 760px;
	margin: 18px 0 32px;
	font-size: 17px;
	line-height: 1.8;
}

.kfg-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 40px;
}

.kfg-specs__item {
	display: grid;
	gap: 4px;
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--kfg-tint);
}

.kfg-specs__item dt {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--kfg-muted);
}

.kfg-specs__item dd {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--kfg-heading);
}

.kfg-how__title {
	margin: 0 0 18px;
	font-size: 20px;
	font-weight: 600;
	color: var(--kfg-heading);
}

.kfg-how {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kfg-how__item {
	display: flex;
	gap: 14px;
}

.kfg-how__number {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--kfg-tint);
	font-size: 14px;
	font-weight: 600;
	color: var(--kfg-accent);
}

.kfg-how__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--kfg-heading);
}

.kfg-how__text {
	display: block;
	margin-top: 4px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--kfg-muted);
}

/* Karty výberu modelu (keď model ešte nie je vybraný). */
.kfg-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}

.kfg-option {
	position: relative;
	display: grid;
	gap: 10px;
	padding: 12px 12px 16px;
	border: 1.5px solid var(--kfg-line);
	border-radius: var(--kfg-radius);
	background: var(--kfg-surface);
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kfg-option:hover {
	border-color: #b9c9ef;
}

.kfg-option__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.kfg-option__visual {
	display: block;
	padding: 12px 8px;
	border-radius: calc(var(--kfg-radius) - 6px);
	background: var(--kfg-tint);
}

.kfg-option__body {
	display: grid;
	gap: 2px;
	padding-inline: 4px;
}

.kfg-option__code {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--kfg-heading);
}

.kfg-option__name {
	font-size: 14px;
	line-height: 1.4;
}

.kfg-option__check {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--kfg-line);
	border-radius: 50%;
	background: var(--kfg-surface);
}

.kfg-option:has(.kfg-option__input:checked) {
	border-color: var(--kfg-accent);
	box-shadow: 0 0 0 3px rgba(63, 111, 219, 0.15);
}

.kfg-option__input:checked ~ .kfg-option__check {
	border-color: var(--kfg-accent);
	background: var(--kfg-accent);
	box-shadow: inset 0 0 0 4px var(--kfg-surface);
}

.kfg-option:has(.kfg-option__input:focus-visible) {
	outline: 2px solid var(--kfg-accent);
	outline-offset: 2px;
}

/* Zástupný obsah krokov, ktoré ešte nie sú hotové. */
.kfg-soon {
	display: grid;
	justify-items: start;
	gap: 10px;
	padding: 28px;
	border: 1.5px dashed var(--kfg-line);
	border-radius: var(--kfg-radius);
	background: var(--kfg-tint);
}

.kfg-soon__title {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	color: var(--kfg-heading);
}

.kfg-soon p {
	margin: 0;
}

/* Súhrn vpravo: náhľad + „Vaša konfigurácia“. */
.kfg-summary {
	position: sticky;
	top: 110px;
	overflow: hidden;
	border: 1px solid var(--kfg-line);
	border-radius: calc(var(--kfg-radius) + 2px);
	background: var(--kfg-surface);
	box-shadow: 0 24px 50px rgba(27, 33, 48, 0.07);
}

.kfg-summary__preview {
	display: grid;
	justify-items: center;
	gap: 14px;
	padding: 48px 36px 24px;
	background: var(--kfg-tint);
}

.kfg-summary__visual {
	width: 100%;
	min-height: 120px;
}

/* Garáže a domčeky: ilustrácia stavby v náhľade je nižšia, aby bolo tlačidlo Pokračovať vidieť bez posúvania. */
.kfg-summary__preview:has(.kfg-hs) {
	padding-top: 24px;
}

.kfg-summary__visual .kfg-hs {
	display: block;
	width: auto;
	max-width: 100%;
	height: 180px;
	margin: 0 auto;
}

.kfg-summary__note {
	margin: 0;
	font-size: 12px;
	text-align: center;
	color: var(--kfg-muted);
}

/* Odkaz „Zobraziť fotky“ vedľa textu „Ilustračný náhľad“. */
.kfg-summary__photos {
	display: inline-block;
	margin-top: 4px;
	font-weight: 600!important;
	color: var(--kfg-accent)!important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.kfg-summary__photos:hover {
	text-decoration: none;
}

/* Viditeľná poznámka, aby používateľ vedel, že fotky sú v novom okne a konfigurácia ostáva otvorená. */
.kfg-summary__photos-hint {
	margin-left: 4px;
}

.kfg-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.kfg-summary__body {
	display: grid;
	gap: 14px;
	padding: 26px 28px 28px;
}

.kfg-summary__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--kfg-heading);
}

.kfg-summary__list {
	margin: 0;
}

.kfg-summary__list div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--kfg-line);
}

.kfg-summary__list div:first-child {
	padding-top: 4px;
}

.kfg-summary__list dt {
	font-size: 15px;
	color: var(--kfg-text);
}

.kfg-summary__list dd {
	margin: 0;
	font-size: 14px;
	text-align: right;
	color: var(--kfg-muted);
}

.kfg-summary__list dd.is-set {
	font-weight: 600;
	color: var(--kfg-heading);
}

.kfg-summary__free {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 10px;
	font-size: 13px;
}

.kfg-summary__free svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--kfg-accent);
}

.kfg-summary__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.kfg-summary__actions .kfg-button {
	margin-left: auto;
	padding: calc(6px + var(--kfg-button-text-shift)) 6px calc(6px - var(--kfg-button-text-shift)) 20px!important;
}

.kfg-button__icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-block: calc(-1 * var(--kfg-button-text-shift)) var(--kfg-button-text-shift);
	border-radius: 50%;
	background: #fff;
	color: var(--kfg-accent);
	transition: transform 0.3s ease;
}

.kfg-button__icon svg {
	width: 14px;
	height: 14px;
}

.kfg-button:hover .kfg-button__icon {
	transform: rotate(45deg);
}

/* Krok „Farba“. */
.kfg-tab {
	display: inline-block;
	margin-bottom: 20px;
	padding: 11px 22px;
	border-radius: 10px;
	background: var(--kfg-surface);
	box-shadow: 0 0 0 4px var(--kfg-tint);
	font-size: 14px;
	font-weight: 600;
	color: var(--kfg-heading);
}

/* Upozornenie pod nadpisom „Obľúbené odtiene RAL“. */
.kfg-colors__hint {
	margin: -4px 0 20px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--kfg-muted);
}

.kfg-swatches {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 16px;
}

.kfg-swatch {
	position: relative;
	display: grid;
	gap: 2px;
	cursor: pointer;
}

.kfg-swatch input,
.kfg-finish input {
	position: absolute;
	opacity: 0;
}

.kfg-swatch__color {
	position: relative;
	display: block;
	height: 92px;
	margin-bottom: 8px;
	border: 1px solid rgba(27, 33, 48, 0.14);
	border-radius: 12px;
}

.kfg-swatch input:checked + .kfg-swatch__color {
	outline: 3px solid var(--kfg-accent);
	outline-offset: -1px;
}

.kfg-swatch input:checked + .kfg-swatch__color::after {
	content: "";
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--kfg-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10.5 3.3 3.3L15 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.kfg-swatch input:focus-visible + .kfg-swatch__color {
	outline: 3px solid var(--kfg-accent);
	outline-offset: 2px;
}

.kfg-swatch__name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--kfg-heading);
}

.kfg-swatch__code {
	font-size: 12px;
	color: var(--kfg-muted);
}

.kfg-ral {
	display: flex;
	gap: 12px;
	margin-top: 6px;
}

.kfg-ral .kfg-input {
	flex: 1;
	min-width: 0;
}

.kfg-ral .kfg-button {
	border-radius: 10px;
}

.kfg-input.is-applied {
	border-color: var(--kfg-accent);
}

.kfg-finishes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.kfg-finish {
	position: relative;
	display: flex;
	gap: 12px;
	padding: 16px;
	border: 1.5px solid var(--kfg-line);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.kfg-finish::before {
	content: "";
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 1.5px solid var(--kfg-line);
	border-radius: 50%;
	background: var(--kfg-surface);
}

.kfg-finish:has(input:checked) {
	border-color: var(--kfg-accent);
	background: rgba(63, 111, 219, 0.05);
}

.kfg-finish:has(input:checked)::before {
	border-color: var(--kfg-accent);
	background: var(--kfg-accent);
	box-shadow: inset 0 0 0 4px var(--kfg-surface);
}

.kfg-finish:has(input:focus-visible) {
	outline: 2px solid var(--kfg-accent);
	outline-offset: 2px;
}

.kfg-finish__name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--kfg-heading);
}

.kfg-finish__text {
	display: block;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--kfg-muted);
}

/* Krok 1: povinný výber prevedenia (napr. rozmer tyčiek pri TERRA). */
.kfg-variant {
	margin: 0 0 40px;
}

.kfg-variant__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.kfg-variant__options--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 560px) {
	.kfg-variant__options--3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Izometrické ilustrácie umiestnenia pergoly. */
.kfg-pl__shadow {
	fill: #dde1e8;
}

.kfg-pl__wall {
	fill: #b4bac5;
}

.kfg-pl__wall-side {
	fill: #c7ccd5;
}

.kfg-pl__wall-top {
	fill: #9da4b1;
}

.kfg-pl__post {
	stroke: var(--kfg-metal);
	stroke-width: 4;
	stroke-linecap: square;
}

/* Strecha je priesvitná, aby bola vidno aj zadná stena. */
.kfg-pl__roof {
	fill: rgba(255, 255, 255, 0.2);
}

/* Výplne strechy podľa typu pergoly. */
.kfg-pl__glass {
	fill: #bccfeb;
}

.kfg-pl__sheet {
	fill: #c9ced8;
}

.kfg-pl__fabric {
	fill: #e9e2d6;
}

.kfg-pl__rafter {
	stroke: var(--kfg-metal);
	stroke-width: 2;
}

.kfg-pl__rib {
	stroke: #9aa1ae;
	stroke-width: 1;
}

.kfg-pl__seam {
	stroke: #c9bfae;
	stroke-width: 1.2;
}

/* Auto pod prístreškom PORTO. */
.kfg-pl__car {
	fill: #8f97a6;
}

.kfg-pl__car-side {
	fill: #7a8291;
}

.kfg-pl__car-top {
	fill: #a9b0bd;
}

.kfg-pl__car-glass {
	fill: #4a5568;
}

.kfg-pl__wheel {
	fill: #2b303a;
}

.kfg-pl__slat {
	stroke: var(--kfg-metal);
	stroke-width: 3.2;
}

/* Bioklimatická pergola: schéma rezu lamelami s rozsahom natočenia. */
.kfg-pl__section-axis {
	stroke: var(--kfg-metal);
	stroke-width: 1.2;
	opacity: 0.5;
}

.kfg-pl__section-slat {
	stroke: var(--kfg-metal);
	stroke-width: 6;
	stroke-linecap: round;
}

.kfg-pl__section-text {
	fill: var(--kfg-heading);
	font-size: 11px;
	font-weight: 600;
}

.kfg-pl__frame {
	fill: none;
	stroke: var(--kfg-metal);
	stroke-width: 3;
	stroke-linejoin: round;
}

/* Krycia stena v kroku 2: zvýraznená farbou konfigurátora. */
.kfg-pl__cover {
	fill: rgba(63, 111, 219, 0.4);
	stroke: var(--kfg-accent);
	stroke-width: 1.5;
	stroke-linejoin: round;
}

.kfg-pl__board {
	stroke: var(--kfg-accent);
	stroke-width: 1;
	opacity: 0.6;
}

.kfg-pl__beam,
.kfg-pl__beam-side {
	fill: var(--kfg-metal);
}

/* Pole s vysvetlivkou: popis a odkaz „Zistiť viac“ v jednom riadku. */
.kfg-field__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
}

.kfg-field__more {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--kfg-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Okno s vysvetlivkou (motív garážovej brány). */
.kfg-help {
	width: min(760px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: clamp(24px, 4vw, 40px);
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: var(--kfg-heading);
	box-shadow: 0 24px 60px rgba(17, 22, 34, 0.25);
}

.kfg-help::backdrop {
	background: rgba(17, 22, 34, 0.55);
}

.kfg-help__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--kfg-tint);
	color: var(--kfg-heading);
	cursor: pointer;
}

.kfg-help__close svg {
	width: 18px;
	height: 18px;
}

.kfg-help__title {
	margin: 0 48px 10px 0;
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.2;
}

.kfg-help__lead {
	margin: 0 0 24px;
	color: var(--kfg-text, #5b6475);
}

.kfg-help__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.kfg-help__visual {
	padding: 16px;
	border-radius: 14px;
	background: var(--kfg-tint);
}

.kfg-help__visual svg {
	display: block;
	width: 100%;
	height: auto;
}

.kfg-help__name {
	margin: 14px 0 6px;
	font-size: 18px;
}

.kfg-help__text {
	margin: 0;
	font-size: 15px;
	color: var(--kfg-text, #5b6475);
}

.kfg-motif__door {
	fill: #f6f7f9;
	stroke: #d5d9e0;
}

.kfg-motif__line {
	stroke: #b9bfc9;
	stroke-width: 1.2;
}

.kfg-motif__base {
	fill: #2b303a;
}

.kfg-motif__handle {
	fill: #8f97a6;
}

@media (max-width: 560px) {
	.kfg-help__options {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Garáže a domčeky: steny z panelov vo farbe --kfg-metal (náhľad ju prepne podľa zvoleného odtieňa). */
.kfg-hs__wall,
.kfg-hs__roof,
.kfg-hs__trim,
.kfg-hs__trim-side {
	fill: var(--kfg-metal);
}

.kfg-hs__shade {
	fill: rgba(0, 0, 0, 0.2);
}

.kfg-hs__roof {
	fill: color-mix(in srgb, var(--kfg-metal) 78%, #fff);
}

.kfg-hs__trim {
	fill: color-mix(in srgb, var(--kfg-metal) 88%, #000);
}

.kfg-hs__trim-side {
	fill: color-mix(in srgb, var(--kfg-metal) 72%, #000);
}

.kfg-hs__joint {
	stroke: rgba(255, 255, 255, 0.22);
	stroke-width: 0.8;
}

.kfg-hs__gate {
	fill: #e4e7ec;
	stroke: #b3bac5;
	stroke-width: 0.8;
}

.kfg-hs__rib {
	stroke: #b3bac5;
	stroke-width: 0.8;
}

.kfg-hs__door {
	fill: color-mix(in srgb, var(--kfg-metal) 80%, #000);
	stroke: rgba(0, 0, 0, 0.25);
	stroke-width: 0.8;
}

.kfg-hs__frame {
	fill: #f4f5f7;
}

/* Hliníkový prístrešok pri stavbe. */
.kfg-hs__post {
	stroke: #7d8592;
	stroke-width: 4;
	stroke-linecap: square;
}

.kfg-hs__canopy-roof {
	fill: #d3d8e0;
}

.kfg-hs__alu {
	fill: #9aa1ad;
}

.kfg-hs__alu-side {
	fill: #7d8592;
}

/* Vrch boxu markízy a koľajníc (VELA), o odtieň svetlejší ako bočnice. */
.kfg-pl__box-top {
	fill: color-mix(in srgb, var(--kfg-metal) 72%, #fff);
}

/* Predná strana koľajníc markízy, odlíšená od rámu pergoly. */
.kfg-pl__rail {
	fill: color-mix(in srgb, var(--kfg-metal) 82%, #fff);
}

.kfg-variant__option {
	position: relative;
	display: grid;
	gap: 12px;
	padding: 12px 12px 16px;
	border: 1.5px solid var(--kfg-line);
	border-radius: 14px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.kfg-variant__option input {
	position: absolute;
	opacity: 0;
}

.kfg-variant__option:hover {
	border-color: rgba(63, 111, 219, 0.5);
}

.kfg-variant__option:has(input:checked) {
	border-color: var(--kfg-accent);
	background: rgba(63, 111, 219, 0.05);
}

.kfg-variant__option:has(input:focus-visible) {
	outline: 2px solid var(--kfg-accent);
	outline-offset: 2px;
}

.kfg-variant__visual {
	display: block;
	padding: 10px 8px;
	border-radius: 10px;
	background: var(--kfg-tint);
}

.kfg-variant__visual svg {
	display: block;
	width: 100%;
	height: auto;
}

.kfg-variant__body {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

/* Rádiový krúžok pred názvom, rovnaký ako pri štruktúre povrchu. */
.kfg-variant__body::before {
	content: "";
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1.5px solid var(--kfg-line);
	border-radius: 50%;
	background: var(--kfg-surface);
}

.kfg-variant__option:has(input:checked) .kfg-variant__body::before {
	border-color: var(--kfg-accent);
	background: var(--kfg-accent);
	box-shadow: inset 0 0 0 4px var(--kfg-surface);
}

.kfg-variant__name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--kfg-heading);
}

.kfg-variant__text {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--kfg-muted);
}

.kfg-variant__custom {
	margin-top: 16px;
}

.kfg-variant__custom[hidden] {
	display: none;
}

.kfg-variant__custom .kfg-input {
	margin-top: 6px;
}

/* Kóta nad ilustráciou výplne. */
.kfg-gate .kfg-dim {
	fill: none;
	stroke: var(--kfg-muted);
	stroke-width: 1.2;
}

.kfg-gate .kfg-dim__text {
	fill: var(--kfg-heading);
	font-size: 9px;
	font-weight: 600;
	paint-order: stroke;
	stroke: var(--kfg-tint);
	stroke-width: 4px;
}

/* Obrys, aby bola v náhľade viditeľná aj biela farba. */
.kfg-summary__visual svg {
	filter: drop-shadow(0 0 1px rgba(27, 33, 48, 0.45));
}

.kfg-summary__dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	border: 1px solid rgba(27, 33, 48, 0.2);
	border-radius: 50%;
	vertical-align: -2px;
}

.kfg-items__error[hidden] {
	display: none;
}

/* Krok „Súhrn a odoslanie“. */
.kfg-review {
	border: 1px solid var(--kfg-line);
	border-radius: 16px;
}

.kfg-review__row {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px 12px;
	padding: 16px 22px;
}

.kfg-review__row + .kfg-review__row {
	border-top: 1px solid var(--kfg-line);
}

.kfg-review__row[hidden],
.kfg-summary__actions[hidden] {
	display: none;
}

.kfg-review__row--items {
	grid-template-columns: minmax(0, 1fr) auto;
}

.kfg-review__label {
	font-size: 15px;
}

.kfg-review__value {
	font-size: 14px;
	font-weight: 600;
	color: var(--kfg-heading);
}

.kfg-review__muted {
	font-weight: 400;
	color: var(--kfg-muted);
}

.kfg-review__scroll {
	grid-column: 1 / -1;
	overflow-x: auto;
}

.kfg-review__table {
	width: 100%;
	min-width: 460px;
	border-collapse: collapse;
	font-size: 14.5px;
}

.kfg-review__table th {
	padding: 9px 12px;
	background: var(--kfg-tint);
	font-size: 11px;
	font-weight: 600;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--kfg-muted);
}

.kfg-review__table th:first-child {
	border-radius: 8px 0 0 8px;
}

.kfg-review__table th:last-child {
	border-radius: 0 8px 8px 0;
}

.kfg-review__table td {
	padding: 12px;
	border-bottom: 1px solid var(--kfg-line);
	color: var(--kfg-heading);
}

.kfg-review__table td:nth-child(2),
.kfg-review__table td:nth-child(3) {
	white-space: nowrap;
}

.kfg-review__table th:last-child,
.kfg-review__table td:last-child {
	text-align: right;
}

.kfg-review__table tfoot td {
	border-bottom: 0;
	font-weight: 600;
}

.kfg-contact {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.kfg-textarea {
	min-height: 110px;
	resize: vertical;
}

.kfg-file {
	position: relative;
	display: grid;
	gap: 2px;
	grid-column: 1 / -1;
	padding: 16px 20px;
	border: 1.5px dashed var(--kfg-accent);
	border-radius: 12px;
	background: var(--kfg-tint);
	cursor: pointer;
}

.kfg-file input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.kfg-file:focus-within {
	outline: 2px solid var(--kfg-accent);
	outline-offset: 2px;
}

.kfg-file__title {
	font-weight: 600;
	word-break: break-word;
	color: var(--kfg-heading);
}

.kfg-file__hint {
	font-size: 13px;
	color: var(--kfg-muted);
}

.kfg-variant__file {
	margin-top: 6px;
}

.kfg-file.has-file {
	border-style: solid;
}

.kfg-trap {
	position: absolute;
	left: -9999px;
}

.kfg-consent {
	margin-top: 20px;
}

/* Google reCAPTCHA v3 – ikonka vo formulári (vykreslí sa po začatí vypĺňania). */
.kfg-recaptcha:not(:empty) {
	margin-top: 16px;
}

.kfg-send {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin-top: 20px;
}

.kfg-send__note {
	flex: 1 1 240px;
	font-size: 13px;
	color: var(--kfg-muted);
}

.kfg-done[hidden],
[data-kfg-review-body][hidden] {
	display: none;
}

.kfg-done:focus {
	outline: none;
}

/* Kroky ako tlačidlá: navštívené sa dajú rozkliknúť, ostatné vyzerajú ako text. */
.kfg-steps__button {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
}

.kfg-steps__button:not(:disabled) {
	cursor: pointer;
}

.kfg-steps__button:not(:disabled):hover .kfg-steps__label {
	color: var(--kfg-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kfg-steps__button:focus-visible {
	border-radius: 8px;
	outline: 2px solid var(--kfg-accent);
	outline-offset: 4px;
}

/* Dokončený krok: fajka namiesto čísla, modrá spojovacia čiara. */
.kfg-steps__item.is-done .kfg-steps__number {
	color: transparent;
	background: var(--kfg-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10.5 3.3 3.3L15 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.kfg-steps__item.is-active::before,
.kfg-steps__item.is-done::before {
	background: var(--kfg-accent) !important;
}

/* Krok „Rozmery a položky“. */
.kfg-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.kfg-items__heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 28px 0 14px;
	font-size: 20px;
	font-weight: 600;
	color: var(--kfg-heading);
}

.kfg-add-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Položka, ktorá pri zvolenom prevedení z kroku 1 nedáva zmysel (napr. stena na strane domu). */
.kfg-add[hidden] {
	display: none;
}

.kfg-add {
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	gap: 4px;
	padding: 12px;
	border: 1px solid var(--kfg-line);
	border-radius: 14px;
	background: var(--kfg-surface);
}

.kfg-add__visual {
	display: block;
	margin-bottom: 10px;
	padding: 12px 34px;
	border-radius: 10px;
	background: var(--kfg-tint);
}

.kfg-add__name {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--kfg-heading);
}

.kfg-add__text {
	margin-bottom: 10px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--kfg-muted);
}

.kfg-add__button {
	width: 100%;
	padding: calc(9px + var(--kfg-button-text-shift)) 12px calc(9px - var(--kfg-button-text-shift));
	font-size: 14px;
}

.kfg-add__button:disabled {
	border-color: var(--kfg-line);
	background: var(--kfg-tint);
	color: var(--kfg-muted);
	cursor: default;
}

.kfg-items__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 36px;
}

.kfg-items__head .kfg-items__heading {
	margin: 0;
}

.kfg-items__badge {
	display: grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--kfg-accent);
	font-size: 12px;
	line-height: 12px;
	font-weight: 600;
	color: #fff;
}

.kfg-items__total {
	font-size: 14px;
	color: var(--kfg-muted);
}

.kfg-items__empty {
	margin: 14px 0 0;
	padding: 22px;
	border: 1.5px dashed var(--kfg-line);
	border-radius: 14px;
	color: var(--kfg-muted);
	text-align: center;
}

.kfg-items__empty[hidden],
.kfg-items__more[hidden],
.kfg-items__error[hidden],
.kfg-extra__text[hidden] {
	display: none;
}

.kfg-items {
	display: grid;
	gap: 14px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.kfg-item {
	display: grid;
	gap: 18px;
	padding: 20px 22px 22px;
	border: 1px solid var(--kfg-line);
	border-radius: 16px;
	background: var(--kfg-surface);
	transition: border-color 0.2s ease;
}

.kfg-item:focus-within {
	border-color: var(--kfg-accent);
}

.kfg-item__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.kfg-item__thumb {
	display: block;
	flex-shrink: 0;
	width: 76px;
	padding: 8px;
	border-radius: 10px;
	background: var(--kfg-tint);
}

.kfg-item__titles {
	display: grid;
	flex: 1;
	min-width: 0;
}

.kfg-item__kicker {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--kfg-muted);
}

.kfg-item__name {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--kfg-heading);
}

.kfg-item__qty {
	display: flex;
	align-items: center;
	gap: 10px;
}

.kfg-item__unit {
	font-size: 13px;
	color: var(--kfg-muted);
}

.kfg-qty {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--kfg-line);
	border-radius: 10px;
}

.kfg-qty__button {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 7px;
	background: var(--kfg-tint);
	color: var(--kfg-heading);
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.kfg-qty__value {
	min-width: 32px;
	font-weight: 600;
	text-align: center;
	color: var(--kfg-heading);
	font-variant-numeric: tabular-nums;
}

.kfg-item__remove {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0!important;
	border: 1px solid #d9534f!important;
	border-radius: 10px;
	background: #fff;
	color: #d9534f!important;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.kfg-item__remove:hover {
	background: #d9534f!important;
	color: #fff!important;
}

.kfg-item__remove svg {
	width: 20px;
	height: 20px;
}

.kfg-item__fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.kfg-field {
	display: grid;
	align-content: start;
	gap: 6px;
	min-width: 0;
}

.kfg-field--wide,
.kfg-field--full,
.kfg-field--inline {
	grid-column: 1 / -1;
}

/* Výber z kariet s obrázkami (výplň steny pergoly, typ posuvného panela). */
.kfg-cards-field[hidden],
.kfg-field[hidden] {
	display: none;
}

.kfg-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin-top: 6px;
}

.kfg-card-option {
	position: relative;
	display: grid;
	gap: 6px;
	padding: 8px 8px 10px;
	border: 1.5px solid var(--kfg-line);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.kfg-card-option input {
	position: absolute;
	opacity: 0;
}

.kfg-card-option:hover {
	border-color: rgba(63, 111, 219, 0.5);
}

.kfg-card-option:has(input:checked) {
	border-color: var(--kfg-accent);
	background: rgba(63, 111, 219, 0.05);
}

/* Zaškrtávacie políčko v rohu karty: zvolená karta má modrý štvorček s fajkou. */
.kfg-card-option::after {
	content: "";
	position: absolute;
	top: 14px;
	right: 14px;
	width: 20px;
	height: 20px;
	border: 1.5px solid var(--kfg-line);
	border-radius: 5px;
	background: var(--kfg-surface) center / 12px no-repeat;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kfg-card-option:has(input:checked)::after {
	border-color: var(--kfg-accent);
	background-color: var(--kfg-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.kfg-card-option:has(input:focus-visible) {
	outline: 2px solid var(--kfg-accent);
	outline-offset: 2px;
}

.kfg-card-option__visual {
	display: block;
	padding: 6px;
	border-radius: 8px;
	background: var(--kfg-tint);
}

.kfg-card-option__visual svg {
	display: block;
	width: 100%;
	height: auto;
}

/* Fotka na karte (typy posuvných panelov) na bielom pozadí, celá viditeľná. */
.kfg-card-option__visual:has(.kfg-card-option__photo) {
	background: #fff;
}

.kfg-card-option__photo {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: contain;
}

.kfg-card-option__name {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--kfg-heading);
}

/* Farebné štvorčeky (farba garážovej brány): štvorček, pod ním kód a názov. */
.kfg-cards--swatches {
	grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	gap: 8px;
}

.kfg-cards--swatches .kfg-card-option {
	gap: 8px;
	padding: 6px 6px 10px;
}

.kfg-cards--swatches .kfg-card-option::after {
	top: 10px;
	right: 10px;
	width: 18px;
	height: 18px;
}

.kfg-cards--swatches .kfg-card-option__visual {
	padding: 0;
	background: none;
}

.kfg-swatch-chip {
	display: block;
	aspect-ratio: 1;
	border-radius: 8px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.kfg-cards--swatches .kfg-card-option__name {
	display: grid;
	gap: 2px;
	font-size: 13px;
	text-align: center;
}

.kfg-card-option__sub {
	font-size: 11.5px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--kfg-text, #5b6475);
}

.kfg-cards-field__error {
	display: none;
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #c0392b;
}

.kfg-cards-field.is-invalid .kfg-cards-field__error {
	display: block;
}

.kfg-cards-field.is-invalid .kfg-card-option {
	border-color: #e5a29b;
}

.kfg-field--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

.kfg-field__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--kfg-heading);
}

.kfg-input {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px!important;
	border: 1px solid var(--kfg-line);
	border-radius: 10px;
	background: #fff!important;
	color: var(--kfg-heading)!important;
	font: inherit;
	font-size: 15px!important;
}

.kfg-input:focus {
	border-color: var(--kfg-accent);
	outline: 3px solid rgba(63, 111, 219, 0.18);
}

.kfg-input::placeholder {
	color: #a4abb8;
}

/* Nevybraný rozbaľovací zoznam vyzerá ako prázdne pole. */
select.kfg-input:invalid {
	color: #8a93a3;
}

select.kfg-input option {
	color: var(--kfg-heading);
}

.kfg-input.is-invalid {
	border-color: #d9534f;
}

.kfg-unit {
	position: relative;
}

.kfg-unit .kfg-input {
	padding-right: 46px;
	appearance: textfield;
	-moz-appearance: textfield;
}

.kfg-unit .kfg-input::-webkit-inner-spin-button,
.kfg-unit .kfg-input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.kfg-unit__label {
	position: absolute;
	top: 50%;
	right: 14px;
	font-size: 13px;
	color: var(--kfg-muted);
	transform: translateY(-50%);
}

.kfg-segmented {
	display: inline-flex;
	padding: 4px;
	border-radius: 10px;
	background: var(--kfg-tint);
}

.kfg-segmented__option input {
	position: absolute;
	opacity: 0;
}

.kfg-segmented__option span {
	display: block;
	padding: 7px 16px;
	border-radius: 7px;
	font-size: 13.5px;
	cursor: pointer;
}

.kfg-segmented__option input:checked + span {
	background: var(--kfg-surface);
	font-weight: 600;
	color: var(--kfg-heading);
	box-shadow: 0 1px 3px rgba(27, 33, 48, 0.14);
}

.kfg-segmented__option input:focus-visible + span {
	outline: 2px solid var(--kfg-accent);
}

.kfg-check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	cursor: pointer;
}

.kfg-check input {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--kfg-accent);
}

.kfg-items__more {
	width: 100%;
	margin-top: 14px;
	padding: 16px;
	border: 1.5px dashed var(--kfg-accent);
	border-radius: 14px;
	background: none;
	color: var(--kfg-accent);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.kfg-extras {
	display: grid;
	gap: 12px;
	padding: 18px 20px;
	border: 1px solid var(--kfg-line);
	border-radius: 14px;
}

.kfg-extra {
	display: grid;
	gap: 10px;
}

.kfg-items__error {
	margin: 18px 0 0;
	font-weight: 600;
	color: #c0392b;
}

.kfg-items__note {
	margin: 24px 0 0;
	padding: 14px 18px;
	border-radius: 12px;
	background: var(--kfg-tint);
	font-size: 13.5px;
	line-height: 1.5;
}

@media (max-width: 1100px) {
	.kfg-types {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.kfg-layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
		gap: 40px;
	}

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

@media (max-width: 900px) {
	.kfg-chooser,
	.kfg-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.kfg-chooser__card {
		min-height: 380px;
	}

	.kfg-types {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kfg-summary {
		position: static;
	}

	.kfg-steps {
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.kfg-steps__item + .kfg-steps__item::before {
		display: none;
	}

	.kfg-steps__item:not(.is-active) .kfg-steps__text {
		display: none;
	}
}

@media (max-width: 560px) {
	.kfg-specs,
	.kfg-add-grid,
	.kfg-finishes,
	.kfg-contact {
		grid-template-columns: minmax(0, 1fr);
	}

	.kfg-swatches {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kfg-item {
		padding: 16px;
	}

	/* Hlavička položky: počet kusov a kôš na vlastnom riadku. */
	.kfg-item__head {
		flex-wrap: wrap;
	}

	.kfg-item__titles {
		flex-basis: calc(100% - 90px);
	}

	.kfg-item__qty {
		margin-right: auto;
	}

	.kfg-item__fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Na mobile jeden typ na riadok, aby boli náhľady brán a pergol dostatočne veľké. */
	.kfg-types {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.kfg-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.kfg-summary__preview {
		padding: 28px 20px 16px;
	}

	.kfg-summary__body {
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kfg * {
		transition: none !important;
	}
}
