/*
 * Kufel Event: design D ("Smoking"), homepage only (front-page.php).
 *
 * One document, two layouts: desktop from 1024px (kd-*, Main.dc.html),
 * mobile below 1024px (km-*, Mobile.dc.html). Shared parts use kd-* names
 * and carry both sets of values in the two media blocks.
 *
 * Palette only: #F4F4F2 #EAEAE6 #111111 #DCDCD8 #6A6A66 #5E5E5A #A3A39E
 * #CAAB7F #1C1C1C #262626 #C8C8C3 and rgba() variants of these.
 * No italics anywhere. Fonts: Geist, Geist Mono (self-hosted).
 */

/* ==========================================================================
   1. Fonts
   ========================================================================== */

@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/kufe-d/geist-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/kufe-d/geist-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Geist Mono";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/kufe-d/geist-mono-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Geist Mono";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/kufe-d/geist-mono-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Registered custom properties (hero colour lens, readout counters)
   ========================================================================== */

@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 46%; }
@property --mxi { syntax: "<integer>"; inherits: true; initial-value: 50; }
@property --myi { syntax: "<integer>"; inherits: true; initial-value: 46; }

/* ==========================================================================
   3. Keyframes
   ========================================================================== */

@keyframes kdLine { from { transform: translateY(104%); } to { transform: none; } }
@keyframes kdFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes kdRise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes kmRise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes kdCurtain { 0%, 62% { clip-path: inset(0 0 0 0); visibility: visible; } 100% { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes kdCurtainIn { 0% { opacity: 0; transform: translateY(14px); } 30%, 72% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-18px); } }
@keyframes kdLoad { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kdTieL { from { transform: translateX(-22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes kdTieR { from { transform: translateX(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes kdKnot { 0%, 40% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes kdTug { 0%, 84%, 100% { transform: scaleX(1); } 89% { transform: scaleX(.78); } 94% { transform: scaleX(1.06); } }
@keyframes kdRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kdReveal { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes kmWander {
	0%, 100% { --mx: 30%; --my: 34%; --mxi: 30; --myi: 34; }
	25% { --mx: 68%; --my: 30%; --mxi: 68; --myi: 30; }
	50% { --mx: 66%; --my: 64%; --mxi: 66; --myi: 64; }
	75% { --mx: 32%; --my: 62%; --mxi: 32; --myi: 62; }
}
@keyframes kdMarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kdMarqR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes kdRowA { from { transform: translateX(0); } to { transform: translateX(-22%); } }
@keyframes kdRowB { from { transform: translateX(-22%); } to { transform: translateX(0); } }
@keyframes kmRow { from { transform: translateX(0); } to { transform: translateX(-30%); } }
@keyframes kdWipeA { from { clip-path: circle(0% at 0% var(--wy, 50%)); } to { clip-path: circle(150% at 0% var(--wy, 50%)); } }
@keyframes kdWipeB { from { clip-path: circle(0% at 0% var(--wy, 50%)); } to { clip-path: circle(150% at 0% var(--wy, 50%)); } }
@keyframes kmColorize {
	0% { filter: grayscale(1) contrast(1.06); transform: scale(1.16); }
	40%, 60% { filter: grayscale(0) contrast(1); transform: scale(1); }
	100% { filter: grayscale(1) contrast(1.06); transform: scale(1.16); }
}
@keyframes kmCardIn { 0% { opacity: .45; transform: scale(.92); } 40%, 60% { opacity: 1; transform: none; } 100% { opacity: .45; transform: scale(.92); } }
@keyframes kdStepIn { from { opacity: 0; transform: translateY(22px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes kmStepIn { from { opacity: 0; transform: translateY(18px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes kdLineIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kdPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes kdTieOn { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.15) rotate(6deg); } 100% { transform: scale(1) rotate(0deg); } }
@keyframes kdCue {
	0% { transform: scaleY(0); transform-origin: 50% 0; }
	45% { transform: scaleY(1); transform-origin: 50% 0; }
	55% { transform: scaleY(1); transform-origin: 50% 100%; }
	100% { transform: scaleY(0); transform-origin: 50% 100%; }
}
@keyframes kdProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kmProgY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes kdHead { to { padding-top: 12px; padding-bottom: 12px; box-shadow: 0 12px 32px rgba(17, 17, 17, .07); } }
@keyframes kmHead { to { padding-top: 9px; padding-bottom: 9px; box-shadow: 0 10px 28px rgba(17, 17, 17, .08); } }
@keyframes kdLogoS { to { width: 188px; } }
@keyframes kmLogoS { to { width: 124px; } }
@keyframes kdWord { from { color: #C8C8C3; } to { color: #111111; } }
@keyframes kdGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kdRun { from { left: 0%; } to { left: 100%; } }
@keyframes kmRunY { from { top: 0%; } to { top: 100%; } }
@keyframes kmDotOn { from { background-color: #F4F4F2; } to { background-color: #111111; } }
@keyframes kdStepOn { from { opacity: .16; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes kdPar { from { transform: translateY(-6%) scale(1.16); } to { transform: translateY(6%) scale(1.16); } }
@keyframes kmPar { from { transform: translateY(-7%) scale(1.18); } to { transform: translateY(7%) scale(1.18); } }
/* Dock ring: r = 20, circumference 2 * pi * 20 = 125.66. */
@keyframes kmRing { from { stroke-dashoffset: 125.66; } to { stroke-dashoffset: 0; } }
@keyframes kmNudge {
	0%, 100% { translate: 0 0; rotate: 0deg; }
	22% { translate: -26px 0; rotate: -3deg; }
	48% { translate: 14px 0; rotate: 2deg; }
	70% { translate: -6px 0; rotate: -1deg; }
}
@keyframes kmRipA { from { transform: scale(0); opacity: .3; } to { transform: scale(34); opacity: 0; } }
@keyframes kmRipB { from { transform: scale(0); opacity: .3; } to { transform: scale(34); opacity: 0; } }
@keyframes kdBumpA { from { transform: scale(.3); } to { transform: scale(1); } }
@keyframes kdBumpB { from { transform: scale(.3); } to { transform: scale(1); } }

/* ==========================================================================
   4. Base, reset, utilities
   ========================================================================== */

:root {
	color-scheme: light;
	/* Hero entrance offset: long only for the once-per-session intro. */
	--kd-in: 0s;
}
html.kd-intro { --kd-in: 1s; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body.kd-body {
	margin: 0;
	background: #F4F4F2;
}
/* No italics anywhere (client requirement). */
em, i, cite, address, dfn, var { font-style: normal; }

.kd-root {
	/* Inline padding: content capped at 1600px (desktop) / 680px (mobile). */
	--kd-px: max(48px, calc((100% - 1600px) / 2));
	--km-px: max(20px, calc((100% - 680px) / 2));
	position: relative;
	overflow-x: clip;
	background: #F4F4F2;
	color: #111111;
	font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-kerning: normal;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-tap-highlight-color: rgba(17, 17, 17, 0);
}
.kd-root,
.kd-root *,
.kd-root *::before,
.kd-root *::after { box-sizing: border-box; }
.kd-root :is(em, i, cite, address, dfn, var) { font-style: normal; }

:where(.kd-root) :is(h1, h2, h3, h4, p, ol, ul, figure, blockquote, fieldset, legend) { margin: 0; }
:where(.kd-root) :is(ol, ul) { padding: 0; list-style: none; }
:where(.kd-root) img { max-width: 100%; height: auto; }
:where(.kd-root) a { color: inherit; }
:where(.kd-root) :is(button, input, textarea, select) { font: inherit; color: inherit; }
:where(.kd-root) button { -webkit-appearance: none; appearance: none; }

.kd-root h1, .kd-root h2, .kd-root h3 { text-wrap: balance; }
.kd-root p { text-wrap: pretty; }

/* JS toggles [hidden] on many elements that also get a display from a class. */
.kd-root [hidden] { display: none !important; }

.kd-root ::selection { background: #CAAB7F; color: #111111; }

/* Focus: ink on light, tan on dark surfaces. */
.kd-root :focus-visible { outline: 2px solid #111111; outline-offset: 4px; }
.kd-root .kd-dark :focus-visible,
.kd-root .km-header[data-menu="true"] :focus-visible { outline-color: #CAAB7F; }
/* Containers that receive programmatic focus (skip-link target, wizard step, sent panel). */
.kd-step:focus { outline: none; }
.kd-root .kd-main:focus,
.kd-root .kd-main:focus-visible,
.kd-root .kd-step:focus,
.kd-root .kd-step:focus-visible,
.kd-root .kd-sent:focus,
.kd-root .kd-sent:focus-visible { outline: none; }

/* Anchor targets clear the sticky header. */
.kd-root [id],
.kd-root .kd-step,
.kd-root .kd-sent { scroll-margin-top: 84px; }

.kd-dark { background: #111111; color: #F4F4F2; }
.kd-alt { background: #EAEAE6; }

.kd-mono {
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}
.kd-mono-s { font-size: 11px; }

.kd-sr,
.kd-vh {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

/* Layout switch. */
@media (max-width: 1023.98px) {
	.kd-only { display: none !important; }
	.kd-root :focus-visible { outline-offset: 3px; }
	.kd-root [id],
	.kd-root .kd-step,
	.kd-root .kd-sent { scroll-margin-top: 64px; }
	.kd-mono { font-size: 11px; }
	.kd-mono-s { font-size: 10px; }
}
@media (min-width: 1024px) {
	.km-only { display: none !important; }
}

/* Skip link. */
.kd-skip {
	position: fixed;
	z-index: 400;
	left: 16px;
	top: 12px;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	background: #111111;
	color: #F4F4F2;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transform: translateY(calc(-100% - 24px));
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.kd-skip:focus,
.kd-skip:focus-visible { transform: none; outline-color: #CAAB7F; }

/* WordPress admin bar (logged-in users only). */
.admin-bar .kd-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .km-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .km-header { top: 0; }
}

/* ==========================================================================
   5. Shared controls: links, buttons, magnet, ripple
   ========================================================================== */

.kd-link,
.kd-under {
	position: relative;
	color: #111111;
	text-decoration: none;
}
.kd-link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -5px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .45s cubic-bezier(.6, .05, .2, 1);
}
.kd-under::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1px;
	background: currentColor;
	transform-origin: left;
	transition: transform .45s cubic-bezier(.6, .05, .2, 1);
}
.kd-under:active::after { transform: scaleX(.3); }

.kd-flink {
	position: relative;
	color: #F4F4F2;
	text-decoration: none;
}
.kd-flink::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1px;
	background: #CAAB7F;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .45s cubic-bezier(.6, .05, .2, 1);
}
.kd-flink:active::after,
.kd-flink:focus-visible::after { transform: scaleX(1); transform-origin: left; }

@media (hover: hover) {
	.kd-link:hover::after { transform: scaleX(1); transform-origin: left; }
	.kd-under:hover::after { transform: scaleX(.3); }
	.kd-flink:hover { color: #F4F4F2; }
	.kd-flink:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* Primary pill. */
.kd-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border: 0;
	border-radius: 999px;
	background: #111111;
	color: #F4F4F2;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .35s, color .35s, transform .2s;
}
.kd-ctatie { display: block; flex: none; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
@media (hover: hover) {
	.kd-cta:hover { background: #CAAB7F; color: #111111; }
	.kd-cta:hover .kd-ctatie { transform: scaleX(.68); }
	.kd-cta[disabled]:hover { background: #111111; color: #F4F4F2; }
	.kd-cta[disabled]:hover .kd-ctatie { transform: none; }
}

/* Outline pill. */
.kd-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid #111111;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0);
	color: #111111;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .35s, color .35s, transform .2s;
}
.kd-ghost:active { background: #111111; color: #F4F4F2; }
@media (hover: hover) {
	.kd-ghost:hover { background: #111111; color: #F4F4F2; }
}

/* Magnetic buttons (desktop JS sets --mgx / --mgy on the outer element). */
[data-kd-mag] {
	transform: translate3d(var(--mgx, 0px), var(--mgy, 0px), 0);
	transition: transform .5s cubic-bezier(.2, .8, .2, 1), background-color .35s, color .35s;
}
.kd-mag-in {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	transform: translate3d(calc(var(--mgx, 0px) * .45), calc(var(--mgy, 0px) * .45), 0);
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

/* Round icon buttons. kd-round: dark surfaces (lightbox); km-round: mobile controls. */
.kd-round {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(244, 244, 242, .5);
	border-radius: 50%;
	background: rgba(17, 17, 17, 0);
	color: #F4F4F2;
	cursor: pointer;
	transition: background-color .3s, color .3s, border-color .3s, transform .2s;
}
.kd-round:active { background: #F4F4F2; color: #111111; border-color: #F4F4F2; }
@media (hover: hover) {
	.kd-round:hover { background: #F4F4F2; color: #111111; border-color: #F4F4F2; }
}
.km-round {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(17, 17, 17, .35);
	border-radius: 50%;
	background: rgba(17, 17, 17, 0);
	color: #111111;
	cursor: pointer;
	transition: background-color .3s, color .3s, border-color .3s, transform .2s;
}
.km-round:active { background: #111111; color: #F4F4F2; border-color: #111111; }
.km-round-l { border-color: rgba(244, 244, 242, .45); color: #F4F4F2; }
.km-round-l:active { background: #F4F4F2; color: #111111; border-color: #F4F4F2; }
@media (hover: hover) {
	.km-round:hover { border-color: #111111; }
	.km-round-l:hover { border-color: #F4F4F2; }
}
.km-press:active { transform: scale(.96); }

/* "Dodaj do zapytania" toggles (bars, extras, mobile cards). */
.kd-add {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #111111;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0);
	color: #111111;
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .3s, color .3s, border-color .3s, transform .2s;
}
.kd-add[aria-pressed="true"] { background: #111111; color: #F4F4F2; }
.kd-add-ic { display: block; flex: none; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.kd-add[aria-pressed="true"] .kd-add-ic { transform: rotate(45deg); }
.kd-add-l { border-color: rgba(244, 244, 242, .6); color: #F4F4F2; }
.kd-add-l[aria-pressed="true"] { background: #F4F4F2; color: #111111; }
@media (hover: hover) {
	.kd-add:hover { background: #111111; color: #F4F4F2; }
	.kd-add-l:hover { background: #F4F4F2; color: #111111; }
}

/* Selection count badges (JS: text, [hidden], kd-bump-a / kd-bump-b). */
.kd-badge,
.km-badge {
	display: inline-grid;
	place-items: center;
	border-radius: 99px;
	background: #CAAB7F;
	color: #111111;
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0;
	font-variant-numeric: tabular-nums;
	text-transform: none;
}
.kd-badge { min-width: 22px; height: 22px; padding: 0 6px; }
.km-badge { min-width: 20px; height: 20px; padding: 0 5px; }
.kd-bump-a { animation: kdBumpA .5s cubic-bezier(.3, 1.6, .5, 1); }
.kd-bump-b { animation: kdBumpB .5s cubic-bezier(.3, 1.6, .5, 1); }

@media (max-width: 1023.98px) {
	[data-kd-mag] { transition: background-color .35s, color .35s, transform .2s; }
	.kd-cta:active,
	.kd-ghost:active { transform: scale(.96); }
	.kd-round { width: 44px; height: 44px; border-color: rgba(244, 244, 242, .45); }
	.kd-add { padding: 0 16px; font-size: 11px; }
	.kd-add:active { transform: scale(.96); }

	/* Ripple (JS sets --rx / --ry and alternates data-rip="a|b"). */
	[data-km-rip] { position: relative; overflow: hidden; isolation: isolate; }
	[data-km-rip]::after {
		content: "";
		position: absolute;
		z-index: -1;
		left: var(--rx, 50%);
		top: var(--ry, 50%);
		width: 14px;
		height: 14px;
		margin: -7px 0 0 -7px;
		border-radius: 50%;
		background: currentColor;
		opacity: 0;
		pointer-events: none;
	}
	[data-km-rip][data-rip="a"]::after { animation: kmRipA .75s cubic-bezier(.2, .8, .2, 1); }
	[data-km-rip][data-rip="b"]::after { animation: kmRipB .75s cubic-bezier(.2, .8, .2, 1); }
}

/* ==========================================================================
   6. Overlays: scroll progress, intro curtain, custom cursor
   ========================================================================== */

.kd-progress {
	position: fixed;
	z-index: 120;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: #CAAB7F;
	transform: scaleX(0);
	transform-origin: left;
	pointer-events: none;
}

/* The curtain only exists for the once-per-session intro (html.kd-intro). */
.kd-curtain { display: none; }
html.kd-intro .kd-curtain {
	position: fixed;
	z-index: 150;
	inset: 0;
	display: grid;
	place-items: center;
	height: 100vh;
	height: 100lvh;
	background: #111111;
	clip-path: inset(0 0 100% 0);
	pointer-events: none;
	animation: kdCurtain 1.8s cubic-bezier(.76, 0, .24, 1) both;
}
.kd-curtain-in {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	opacity: 0;
	animation: kdCurtainIn 1.6s cubic-bezier(.2, .75, .15, 1) both;
}
.kd-curtain-logo { display: block; width: 320px; height: auto; }
.kd-curtain-track { display: block; width: 200px; height: 1px; background: rgba(244, 244, 242, .2); }
.kd-load {
	display: block;
	height: 1px;
	background: #CAAB7F;
	transform-origin: left;
	animation: kdLoad 1s cubic-bezier(.6, .05, .2, 1) .1s both;
}
@media (max-width: 1023.98px) {
	.kd-curtain-in { gap: 22px; }
	.kd-curtain-logo { width: 210px; }
	.kd-curtain-track { width: 140px; }
}

/* Custom cursor (desktop, fine pointer; JS moves it and sets data-mode / data-on). */
.kd-cursor {
	position: fixed;
	z-index: 300;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity .3s;
}
.kd-cursor[data-on="1"] { opacity: 1; }
.kd-cursor-ring {
	position: absolute;
	left: -18px;
	top: -18px;
	width: 36px;
	height: 36px;
	border: 1.5px solid #111111;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(244, 244, 242, .55);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), background-color .35s;
}
.kd-cursor[data-mode="link"] .kd-cursor-ring { transform: scale(1.55); }
.kd-cursor[data-mode="view"] .kd-cursor-ring,
.kd-cursor[data-mode="color"] .kd-cursor-ring,
.kd-cursor[data-mode="add"] .kd-cursor-ring,
.kd-cursor[data-mode="drag"] .kd-cursor-ring { transform: scale(2.7); background: #111111; }
.kd-cursor-txt {
	position: absolute;
	left: 0;
	top: 0;
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #F4F4F2;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, -50%) scale(.6);
	transition: opacity .25s, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.kd-cursor[data-mode="view"] .kd-ct-view,
.kd-cursor[data-mode="color"] .kd-ct-color,
.kd-cursor[data-mode="add"] .kd-ct-add,
.kd-cursor[data-mode="drag"] .kd-ct-drag { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (pointer: coarse), (hover: none) {
	.kd-cursor { display: none !important; }
}

/* ==========================================================================
   7. Headers and mobile menu
   ========================================================================== */

/* Desktop header (sticky; shrinks with scroll, see section 20). */
.kd-header {
	position: sticky;
	top: 0;
	z-index: 100;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	padding: 22px var(--kd-px);
	border-bottom: 1px solid rgba(17, 17, 17, .12);
	background: #F4F4F2;
}
.kd-hnav {
	display: flex;
	align-items: center;
	gap: 30px;
	font-size: 14px;
	font-weight: 500;
}
.kd-hnav-r { justify-content: flex-end; }
/* 44px+ hit areas; padding is offset by negative margins, so nothing moves. */
.kd-hnav .kd-link { padding: 12px 9px; margin: 0 -9px; }
.kd-hnav .kd-link::after { left: 9px; right: 9px; bottom: 7px; }
.kd-header-logo { display: flex; align-items: center; width: 236px; min-height: 44px; }
.kd-header-logo img { display: block; width: 100%; height: auto; }
.kd-hcta { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* Mobile header. */
.km-header {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px var(--km-px);
	border-bottom: 1px solid rgba(17, 17, 17, .12);
	background: #F4F4F2;
	color: #111111;
	transition: background-color .45s ease, color .45s ease, border-color .45s ease;
}
.km-header[data-menu="true"] {
	background: #111111;
	color: #F4F4F2;
	border-bottom-color: rgba(244, 244, 242, .14);
}
.km-logo-wrap {
	display: flex;
	align-items: center;
	flex: none;
	width: 148px;
	min-height: 44px;
}
.km-logo-in { position: relative; display: block; width: 100%; }
.km-logo-in img { display: block; width: 100%; height: auto; transition: opacity .4s ease; }
.km-logo-in .km-logo-w { position: absolute; left: 0; top: 0; opacity: 0; }
.km-header[data-menu="true"] .km-logo-w { opacity: 1; }
.km-header[data-menu="true"] .km-logo-d { opacity: 0; }
.km-hright { display: flex; align-items: center; gap: 8px; }
.km-hcta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	background: #111111;
	color: #F4F4F2;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .35s, color .35s, transform .2s;
}
.km-header[data-menu="true"] .km-hcta { background: #F4F4F2; color: #111111; }
.km-burger {
	position: relative;
	display: block;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: rgba(17, 17, 17, 0);
	color: inherit;
	cursor: pointer;
	transition: transform .2s;
}
.km-burger:active { transform: scale(.94); }
.km-bl {
	position: absolute;
	left: 13px;
	right: 13px;
	top: 50%;
	height: 1.5px;
	margin-top: -.75px;
	background: currentColor;
	transition: transform .55s cubic-bezier(.7, 0, .2, 1);
}
.km-bl-a { transform: translateY(-3.5px); }
.km-bl-b { transform: translateY(3.5px); }
.km-burger[aria-expanded="true"] .km-bl-a { transform: rotate(45deg); }
.km-burger[aria-expanded="true"] .km-bl-b { transform: rotate(-45deg); }

/* Mobile menu: fixed, revealed with a circle from the burger. */
.km-menu {
	position: fixed;
	z-index: 90;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #111111;
	color: #F4F4F2;
	clip-path: circle(0px at calc(100% - var(--km-px) - 22px) 33px);
	visibility: hidden;
	transition: clip-path .8s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .8s;
}
.km-menu[data-open="true"] {
	clip-path: circle(160% at calc(100% - var(--km-px) - 22px) 33px);
	visibility: visible;
	transition: clip-path .8s cubic-bezier(.7, 0, .2, 1), visibility 0s;
}
.km-mnav {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 92px var(--km-px) calc(28px + env(safe-area-inset-bottom, 0px));
}
.km-mlist { border-top: 1px solid rgba(244, 244, 242, .16); }
.km-ml {
	display: block;
	overflow: hidden;
	padding: 14px 0;
	border-bottom: 1px solid rgba(244, 244, 242, .16);
	color: #F4F4F2;
	text-decoration: none;
}
.km-mi-in {
	display: flex;
	align-items: baseline;
	gap: 16px;
	transform: translateY(110%);
	transition: transform .6s cubic-bezier(.2, .75, .15, 1);
}
.km-menu[data-open="true"] .km-mi-in {
	transform: none;
	transition: transform .8s cubic-bezier(.2, .75, .15, 1) calc(.22s + var(--i, 0) * .055s);
}
.km-ml-no { color: #A3A39E; }
.km-ml-t {
	font-size: 36px;
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -0.045em;
	transition: color .3s;
}
.km-ml:active .km-ml-t { color: #CAAB7F; }
.km-mfoot {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: auto;
	padding-top: 40px;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .4s, transform .4s;
}
.km-menu[data-open="true"] .km-mfoot {
	opacity: 1;
	transform: none;
	transition: opacity .6s .6s, transform .8s cubic-bezier(.2, .75, .15, 1) .6s;
}
.km-mcta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 0 22px;
	border-radius: 999px;
	background: #F4F4F2;
	color: #111111;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .35s, color .35s, transform .2s;
}
.km-mcta svg { display: block; flex: none; }
.km-mlinks {
	display: grid;
	grid-template-columns: repeat(3, max-content);
	justify-content: start;
	column-gap: 22px;
	font-size: 15px;
}
.km-mlinks a { display: inline-flex; align-items: center; justify-self: start; min-width: 44px; min-height: 44px; }
.km-mlinks a:first-child { grid-column: 1 / -1; }
.km-mlinks a::after { bottom: 7px; }
@media (hover: hover) {
	.km-ml:hover { color: #F4F4F2; }
	.km-ml:hover .km-ml-t { color: #CAAB7F; }
	.km-mcta:hover { background: #CAAB7F; color: #111111; }
}

/* ==========================================================================
   8. Hero
   ========================================================================== */

.kd-hero { padding: 26px var(--kd-px) 36px; }

.kd-fade { animation: kdFade .9s cubic-bezier(.2, .75, .15, 1) both; }

.kd-hero-labels {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	color: #6A6A66;
}
.kd-hero .kd-hero-labels { animation-delay: calc(var(--kd-in) + .2s); }
.kd-hr { text-align: right; }
.kd-hl,
.kd-hr { white-space: nowrap; }
.kd-hero-tie { display: block; width: 120px; height: 20px; overflow: visible; }
.kd-rule { transform-origin: center; animation: kdRule 1.3s cubic-bezier(.6, .05, .2, 1) calc(var(--kd-in) + .25s) both; }
.kd-tug { transform-origin: center; animation: kdTug 6s ease-in-out calc(var(--kd-in) + 2s) infinite; }
.kd-tie-l { transform-box: fill-box; transform-origin: center; animation: kdTieL .8s cubic-bezier(.3, 1.3, .5, 1) calc(var(--kd-in) + .45s) both; }
.kd-tie-r { transform-box: fill-box; transform-origin: center; animation: kdTieR .8s cubic-bezier(.3, 1.3, .5, 1) calc(var(--kd-in) + .45s) both; }
.kd-knot { transform-box: fill-box; transform-origin: center; animation: kdKnot 1.1s cubic-bezier(.3, 1.5, .5, 1) calc(var(--kd-in) + .45s) both; }

/* One <h1>, two line splits (desktop 2 lines, mobile 3 lines). */
.kd-h1-wrap { container-type: inline-size; }
.kd-h1 {
	margin: 20px 0 0;
	text-align: center;
	font-size: clamp(54px, 8.9vw, 128px);
	font-weight: 300;
	line-height: .94;
	letter-spacing: -0.055em;
}
.kd-h1-v { display: block; }
.kd-lw { display: block; overflow: hidden; padding-bottom: .06em; }
.kd-line { display: block; animation: kdLine 1.05s cubic-bezier(.2, .75, .15, 1) both; }
.kd-h1-v.kd-only .kd-lw:nth-child(1) .kd-line { animation-delay: calc(var(--kd-in) + .18s); }
.kd-h1-v.kd-only .kd-lw:nth-child(2) .kd-line { animation-delay: calc(var(--kd-in) + .3s); }
.kd-h1-v.km-only .kd-lw:nth-child(1) .kd-line { animation-delay: calc(var(--kd-in) + .15s); }
.kd-h1-v.km-only .kd-lw:nth-child(2) .kd-line { animation-delay: calc(var(--kd-in) + .25s); }
.kd-h1-v.km-only .kd-lw:nth-child(3) .kd-line { animation-delay: calc(var(--kd-in) + .35s); }

.kd-lead {
	margin: 24px auto 0;
	max-width: 36em;
	font-size: 17px;
	line-height: 1.55;
	color: #6A6A66;
	text-align: center;
}
.kd-hero .kd-lead { animation-delay: calc(var(--kd-in) + .5s); }

.kd-hero-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px 30px;
	margin-top: 20px;
}
.kd-hero .kd-hero-cta { animation-delay: calc(var(--kd-in) + .6s); }
.kd-hero-btn { min-height: 54px; padding: 0 28px; font-size: 15px; }
.kd-hero-cta .kd-under { padding: 11px 0; font-size: 15px; font-weight: 500; }
.kd-hero-cta .kd-under::after { bottom: 7px; }

/* Stage: grayscale photo + colour copy under a radial mask that follows the pointer. */
.kd-stage {
	position: relative;
	height: clamp(300px, 23vw, 400px);
	margin-top: 32px;
	overflow: hidden;
	border-radius: 2px;
	background: #DCDCD8;
	transition: --mx .45s cubic-bezier(.2, .8, .2, 1), --my .45s cubic-bezier(.2, .8, .2, 1), --mxi .45s linear, --myi .45s linear;
	animation: kdReveal 1.5s cubic-bezier(.7, 0, .2, 1) calc(var(--kd-in) + .55s) both;
}
.kd-stage-pic { position: absolute; inset: 0; display: block; }
.kd-stage img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 30%;
	transform: scale(1.06) translate3d(calc(var(--tx, 0) * -14px), calc(var(--ty, 0) * -10px), 0);
	transition: transform .9s cubic-bezier(.2, .8, .2, 1);
	-webkit-user-drag: none;
	-webkit-user-select: none;
	user-select: none;
}
.kd-stage-base img { filter: grayscale(1) contrast(1.08); }
.kd-color {
	-webkit-mask-image: radial-gradient(circle 160px at var(--mx) var(--my), #111111 96%, rgba(17, 17, 17, 0) 100%);
	mask-image: radial-gradient(circle 160px at var(--mx) var(--my), #111111 96%, rgba(17, 17, 17, 0) 100%);
}
.kd-ring {
	position: absolute;
	left: var(--mx);
	top: var(--my);
	width: 320px;
	height: 320px;
	margin: -160px 0 0 -160px;
	border: 1px solid rgba(244, 244, 242, .8);
	border-radius: 50%;
	pointer-events: none;
}
.kd-stage-tag {
	position: absolute;
	margin: 0;
	padding: 6px 10px;
	border-radius: 2px;
	background: rgba(17, 17, 17, .75);
	color: #F4F4F2;
}
.kd-stage-cap { left: 20px; bottom: 16px; }
.kd-readout { right: 20px; bottom: 16px; }
.kd-readout::before {
	counter-reset: kx var(--mxi) ky var(--myi);
	content: "X " counter(kx) " · Y " counter(ky);
}
.km-hint { left: 12px; top: 12px; transition: opacity .4s ease; }
.kd-stage[data-touch="1"] .km-hint { opacity: 0; }

.kd-cue-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 22px;
	color: #6A6A66;
}
.kd-hero .kd-cue-row { animation-delay: .6s; }
html.kd-intro .kd-hero .kd-cue-row { animation-delay: 2.2s; }
.kd-cue-track {
	position: relative;
	display: block;
	width: 1px;
	height: 34px;
	overflow: hidden;
	background: rgba(17, 17, 17, .15);
}
.kd-cue {
	position: absolute;
	inset: 0;
	background: #111111;
	animation: kdCue 2.2s cubic-bezier(.6, .05, .2, 1) calc(var(--kd-in) + 1.4s) infinite;
}

@media (max-width: 1023.98px) {
	.kd-hero { padding: 20px var(--km-px) 28px; }
	.kd-hero-labels { display: flex; justify-content: space-between; gap: 10px; }
	.kd-hero-tie { flex: 0 1 84px; min-width: 36px; width: 84px; height: 14px; }
	.kd-h1 {
		margin: 22px 0 0;
		text-align: left;
		font-size: min(17vw, 104px);
		font-size: min(19cqw, 104px);
	}
	.kd-lead {
		margin: 18px 0 0;
		max-width: 34em;
		font-size: 16px;
		text-align: left;
	}
	.kd-hero-cta { justify-content: flex-start; gap: 14px 24px; margin-top: 22px; }
	.kd-hero-btn { min-height: 52px; padding: 0 24px; }
	.kd-stage {
		--my: 42%;
		--myi: 42;
		height: 440px;
		margin-top: 26px;
		touch-action: pan-y;
		cursor: crosshair;
		transition: --mx .5s cubic-bezier(.2, .8, .2, 1), --my .5s cubic-bezier(.2, .8, .2, 1), --mxi .5s linear, --myi .5s linear;
		animation: kdReveal 1.5s cubic-bezier(.7, 0, .2, 1) calc(var(--kd-in) + .55s) both, kmWander 11s ease-in-out calc(var(--kd-in) + 2.3s) infinite;
	}
	.kd-stage[data-touch="1"] { animation: kdReveal 1.5s cubic-bezier(.7, 0, .2, 1) calc(var(--kd-in) + .55s) both; }
	.kd-stage img {
		object-position: 48% 50%;
		transform: scale(1.08) translate3d(calc(var(--tx, 0) * -10px), calc(var(--ty, 0) * -8px), 0);
	}
	.kd-color {
		-webkit-mask-image: radial-gradient(circle 112px at var(--mx) var(--my), #111111 95%, rgba(17, 17, 17, 0) 100%);
		mask-image: radial-gradient(circle 112px at var(--mx) var(--my), #111111 95%, rgba(17, 17, 17, 0) 100%);
	}
	.kd-ring {
		width: 224px;
		height: 224px;
		margin: -112px 0 0 -112px;
		border-color: rgba(244, 244, 242, .85);
	}
	.kd-stage-tag { padding: 6px 9px; }
	.kd-stage-cap { left: 12px; bottom: 12px; }
	.kd-readout { right: 12px; bottom: 12px; }
	.kd-cue-row { gap: 12px; margin-top: 20px; }
	.kd-cue-track { height: 30px; }
}
@media (min-width: 680px) and (max-width: 1023.98px) {
	.kd-stage { height: 520px; }
}

/* ==========================================================================
   9. Marquee (CSS only; items printed twice for a seamless loop)
   ========================================================================== */

.kd-marquee {
	overflow: hidden;
	padding: 34px 0 30px;
	border-top: 1px solid rgba(17, 17, 17, .12);
	border-bottom: 1px solid rgba(17, 17, 17, .12);
}
.kd-row-b { margin-top: 18px; }
.kd-marq { display: flex; width: max-content; animation: kdMarq 60s linear infinite; }
.kd-marq-r { display: flex; width: max-content; animation: kdMarqR 75s linear infinite; }
.kd-mq {
	display: flex;
	align-items: center;
	gap: 40px;
	padding: 0 20px;
	font-size: 64px;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.045em;
	white-space: nowrap;
}
.kd-mq svg { display: block; flex: none; width: 34px; height: 14px; }
.kd-mq2 {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 0 11px;
	color: #6A6A66;
	white-space: nowrap;
}
.kd-mq2-dot { display: block; flex: none; width: 4px; height: 4px; background: #111111; }
@media (max-width: 1023.98px) {
	.kd-marquee { padding: 24px 0 22px; }
	.kd-row-b { margin-top: 14px; }
	.kd-marq { animation-duration: 46s; }
	.kd-marq-r { animation-duration: 60s; }
	.kd-mq { gap: 22px; padding: 0 11px; font-size: 36px; }
	.kd-mq svg { width: 24px; height: 10px; }
	.kd-mq2 { gap: 16px; padding: 0 8px; }
}

/* ==========================================================================
   10. Sections and section heads
   ========================================================================== */

.kd-sec {
	position: relative;
	padding: 140px var(--kd-px) 150px;
}
.kd-shead { display: flex; flex-direction: column; gap: 14px; }
.kd-shead-txt { display: flex; flex-direction: column; gap: 14px; }
.kd-slabel { color: #6A6A66; }
.kd-h2 { font-weight: 300; }
.kd-slead { color: #6A6A66; }
.kd-alt .kd-slabel,
.kd-alt .kd-slead { color: #5E5E5A; }
.kd-dark .kd-slabel,
.kd-dark .kd-slead { color: #A3A39E; }

@media (min-width: 1024px) {
	.kd-shead {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 24px;
		align-items: end;
	}
	.kd-shead > .kd-slabel { grid-column: span 3; }
	.kd-shead-txt { grid-column: span 9; gap: 18px; }
	.kd-h2 { font-size: clamp(42px, 6vw, 88px); line-height: .98; letter-spacing: -0.05em; }
	.kd-slead { max-width: 34em; font-size: 18px; }
}
@media (max-width: 1023.98px) {
	.kd-sec { padding: 88px var(--km-px) 92px; }
	.kd-h2 { font-size: clamp(40px, 6.4vw, 52px); line-height: 1; letter-spacing: -0.045em; }
	.kd-slead { max-width: 36em; font-size: 16px; line-height: 1.55; }
}

/* ==========================================================================
   11. Bars (#uslugi)
   ========================================================================== */

/* Desktop: list + wiping photo stage. */
.kd-bars { padding-bottom: 140px; }
.kd-bars-d {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
	margin-top: 72px;
}
.kd-blist { grid-column: span 5; border-top: 1px solid #111111; }
.kd-bli { border-bottom: 1px solid rgba(17, 17, 17, .15); }
.kd-bar {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 28px;
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 22px 0;
	border: 0;
	background: rgba(17, 17, 17, 0);
	color: #111111;
	text-align: left;
	cursor: pointer;
}
.kd-bar-name {
	font-size: clamp(28px, 3.3vw, 46px);
	font-weight: 300;
	font-variation-settings: "wght" 300;
	letter-spacing: -0.04em;
	line-height: 1.05;
	transition: transform .55s cubic-bezier(.2, .8, .2, 1), font-variation-settings .55s;
}
.kd-bar-no { color: #6A6A66; transition: color .3s; }
.kd-bar-go {
	display: block;
	opacity: 0;
	transform: translateX(-12px) rotate(-45deg);
	transition: opacity .35s, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.kd-bar[aria-pressed="true"] .kd-bar-name { transform: translateX(14px); font-variation-settings: "wght" 470; }
.kd-bar[aria-pressed="true"] .kd-bar-no { color: #111111; }
.kd-bar[aria-pressed="true"] .kd-bar-go { opacity: 1; transform: none; }
@media (hover: hover) {
	.kd-bar:hover .kd-bar-name { transform: translateX(14px); font-variation-settings: "wght" 470; }
	.kd-bar:hover .kd-bar-go { opacity: 1; transform: none; }
}
.kd-more {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .55s cubic-bezier(.2, .7, .2, 1);
}
.kd-more[data-open="true"] { grid-template-rows: 1fr; }
.kd-more-clip { min-height: 0; overflow: hidden; }
.kd-more-in {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	padding: 0 0 26px 72px;
	visibility: hidden;
	transition: visibility 0s linear .55s;
}
.kd-more[data-open="true"] .kd-more-in { visibility: visible; transition-delay: 0s; }
.kd-more-desc { max-width: 28em; font-size: 16px; color: #6A6A66; }

.kd-bstage {
	grid-column: 7 / span 6;
	position: relative;
	height: 640px;
	overflow: hidden;
	border-radius: 2px;
	background: #DCDCD8;
}
.kd-blayer { position: absolute; inset: 0; overflow: hidden; }
.kd-blayer img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.06);
	transform: scale(1.05);
	transition: filter .8s ease, transform 1.4s cubic-bezier(.2, .8, .2, 1);
}
@media (hover: hover) {
	.kd-bstage:hover .kd-blayer img { filter: none; transform: scale(1); }
}
.kd-wipe-a { animation: kdWipeA 1.15s cubic-bezier(.7, 0, .2, 1) both; }
.kd-wipe-b { animation: kdWipeB 1.15s cubic-bezier(.7, 0, .2, 1) both; }
.kd-bcap {
	position: absolute;
	z-index: 5;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	background: linear-gradient(0deg, rgba(17, 17, 17, .7), rgba(17, 17, 17, 0));
	color: #F4F4F2;
}
.kd-bcap-t { font-size: 30px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }

/* Mobile: horizontal rail of cards (full-bleed; children carry the inline padding). */
.km-railwrap { margin-top: 34px; timeline-scope: --km-bars; }
.km-rail {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 var(--km-px);
	padding: 0 var(--km-px) 6px;
	scroll-timeline: --km-bars inline;
	scrollbar-width: none;
}
.km-rail::-webkit-scrollbar { display: none; }
.km-card {
	display: flex;
	flex: 0 0 min(300px, 80%);
	flex-direction: column;
	gap: 12px;
	scroll-snap-align: start;
}
.km-card-media {
	position: relative;
	height: 360px;
	overflow: clip;
	border-radius: 2px;
	background: #DCDCD8;
}
.km-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-user-drag: none;
}
.km-card-no {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 5px 8px;
	border-radius: 2px;
	background: rgba(17, 17, 17, .75);
	color: #F4F4F2;
	font-size: 10px;
}
.km-card-t { margin-top: 4px; font-size: 28px; font-weight: 300; line-height: 1.05; letter-spacing: -0.035em; }
.km-card-d { font-size: 15px; line-height: 1.5; color: #6A6A66; }
.km-card-add { align-self: flex-start; margin-top: 4px; }
.km-railctl {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
	padding: 0 var(--km-px);
}
.km-railno { flex: none; }
.km-railtrack {
	position: relative;
	display: block;
	flex: 1;
	height: 2px;
	overflow: hidden;
	background: rgba(17, 17, 17, .14);
}
.km-railbar { position: absolute; inset: 0; background: #111111; transform-origin: left; }

@media (max-width: 1023.98px) {
	.kd-bars { padding: 88px 0 84px; }
	.kd-bars > .kd-shead { padding-inline: var(--km-px); }
}

/* ==========================================================================
   12. Extras (#atrakcje, dark)
   ========================================================================== */

.kd-extras { overflow: clip; }

/* Desktop: rows with a fill on hover + floating preview following the pointer. */
.kd-exlist { margin-top: 72px; border-top: 1px solid rgba(244, 244, 242, .18); }
.kd-ex { position: relative; border-bottom: 1px solid rgba(244, 244, 242, .18); }
.kd-ex-fill {
	position: absolute;
	inset: 0;
	background: #F4F4F2;
	transform: scaleY(0);
	transform-origin: 50% 0;
	transition: transform .55s cubic-bezier(.7, 0, .2, 1);
}
.kd-ex-row {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 28px;
	padding: 30px 8px;
	color: #F4F4F2;
	transition: color .4s;
}
.kd-ex-name {
	font-size: clamp(28px, 3.3vw, 48px);
	font-weight: 300;
	letter-spacing: -0.04em;
	line-height: 1.05;
	transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.kd-ex-desc { color: #A3A39E; transition: color .4s; }
@media (hover: hover) {
	.kd-ex:hover .kd-ex-fill { transform: scaleY(1); transform-origin: 50% 100%; }
	.kd-ex:hover .kd-ex-row { color: #111111; }
	.kd-ex:hover .kd-ex-name { transform: translateX(18px); }
	.kd-ex:hover .kd-ex-desc { color: #5E5E5A; }
	.kd-ex:hover .kd-add-l { border-color: #111111; color: #111111; }
	.kd-ex:hover .kd-add-l:hover,
	.kd-ex:hover .kd-add-l[aria-pressed="true"] { background: #111111; color: #F4F4F2; }
	.kd-ex:hover :focus-visible { outline-color: #111111; }
}
.kd-preview {
	position: absolute;
	z-index: 4;
	left: 0;
	top: 0;
	width: 300px;
	height: 380px;
	pointer-events: none;
	opacity: 0;
	transition: opacity .35s ease;
}
.kd-preview[data-on="true"] { opacity: 1; }
.kd-preview-in {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 3px;
	background: #1C1C1C;
	box-shadow: 0 30px 60px rgba(17, 17, 17, .35);
	transform: scale(.82);
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.kd-preview[data-on="true"] .kd-preview-in { transform: scale(1); }
.kd-pvl { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.kd-pvl[data-on="true"] { opacity: 1; }
.kd-pvl img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Illustrations always stay monochrome. */
.kd-root .kd-illu { filter: grayscale(1) contrast(1.08) !important; }

/* Mobile: swipeable deck of cards. */
.km-deck { position: relative; height: 468px; margin-top: 38px; }
.km-xcard {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 440px;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
	cursor: grab;
	transform-origin: 50% 100%;
	transform: translate3d(calc(var(--dx, 0) * 1px), calc(var(--d, 0) * 13px), 0) rotate(calc(var(--dx, 0) * .045deg)) scale(calc(1 - var(--d, 0) * .05));
	transition: transform .65s cubic-bezier(.2, .8, .2, 1), opacity .45s ease, filter .45s ease;
}
.km-xcard[data-drag="1"] { transition: none; cursor: grabbing; }
.km-xcard[data-depth="1"] { filter: brightness(.7); pointer-events: none; }
.km-xcard[data-depth="2"] { filter: brightness(.48); pointer-events: none; }
.km-xcard[data-depth="3"],
.km-xcard[data-depth="4"] { opacity: 0; pointer-events: none; }
.km-xcard img { -webkit-user-drag: none; pointer-events: none; }
.km-xcard-in {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(244, 244, 242, .14);
	border-radius: 6px;
	background: #1C1C1C;
	box-shadow: 0 24px 48px rgba(17, 17, 17, .35);
}
.km-nudge { animation: kmNudge 1.4s cubic-bezier(.45, 0, .2, 1) .5s 2 both; }
.km-xmedia { position: relative; flex: none; height: 230px; overflow: hidden; background: #262626; }
.km-xmedia img { display: block; width: 100%; height: 100%; object-fit: cover; }
.km-xmedia .kd-illu { object-position: 50% 12%; }
.km-xbody { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px; }
.km-xmeta { display: flex; justify-content: space-between; gap: 12px; color: #A3A39E; }
.km-xbadge { display: none; color: #CAAB7F; }
.km-xcard:not([data-depth="0"]):has([data-kd-add][aria-pressed="true"]) .km-xbadge { display: inline; }
.km-xtitle { font-size: 28px; font-weight: 300; line-height: 1.05; letter-spacing: -0.035em; }
.km-xdesc { font-size: 15px; line-height: 1.5; color: #A3A39E; }
.km-xadd { align-self: flex-start; margin-top: auto; }
/* As in the design, only the top card shows its toggle (cards behind are inert). */
.km-xcard:not([data-depth="0"]) .km-xadd { visibility: hidden; }
.km-deckctl {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 18px;
}
.km-xdots { display: flex; gap: 2px; }
.km-xdot {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: rgba(17, 17, 17, 0);
	color: #A3A39E;
	cursor: pointer;
	transition: color .3s;
}
.km-xdot span { position: relative; padding-bottom: 6px; }
.km-xdot span::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: #CAAB7F;
	transform: scaleX(0);
	transition: transform .45s cubic-bezier(.6, .05, .2, 1);
}
.km-xdot[aria-pressed="true"] { color: #F4F4F2; }
.km-xdot[aria-pressed="true"] span::after { transform: scaleX(1); }
/* Five 44px dots + two 44px arrows need 332px: below that the dots get their own row. */
@media (max-width: 371.98px) {
	.km-deckctl { flex-wrap: wrap; row-gap: 6px; }
	.km-xdots { order: -1; flex: 1 0 100%; justify-content: center; }
}
/* Below 360px a card can get a two-line title and a two-line description: give the text 30px of the media. */
@media (max-width: 359.98px) {
	.km-xmedia { height: 200px; }
}

@media (min-width: 680px) and (max-width: 1023.98px) {
	.km-deck { height: 528px; }
	.km-xcard { height: 500px; }
	.km-xmedia { height: 290px; }
}

/* ==========================================================================
   13. Process (#proces): scroll-linked timelines, CSS only
   ========================================================================== */

/* Desktop: horizontal timeline. */
.kd-ptl { position: relative; margin-top: 84px; view-timeline-name: --kd-proc; }
.kd-proc-line {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: rgba(17, 17, 17, .15);
}
.kd-proc-fill {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	margin-top: -.5px;
	background: #111111;
	transform-origin: left;
}
.kd-proc-tie { position: absolute; top: -10px; left: 100%; display: block; margin-left: -24px; overflow: visible; }
.kd-psteps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	padding-top: 44px;
}
.kd-pstep { display: flex; flex-direction: column; gap: 16px; }
.kd-proc-no {
	font-size: 96px;
	font-weight: 200;
	line-height: 1;
	letter-spacing: -0.05em;
	font-variant-numeric: tabular-nums;
}
.kd-pstep-t { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.kd-pstep-d { font-size: 16px; line-height: 1.6; color: #6A6A66; }

/* Mobile: vertical timeline. */
.km-proc { position: relative; margin-top: 44px; view-timeline-name: --km-proc; }
.km-proc-line {
	position: absolute;
	left: 8px;
	top: 8px;
	bottom: 8px;
	width: 1px;
	background: rgba(17, 17, 17, .15);
}
.km-proc-fill {
	position: absolute;
	left: 7px;
	top: 8px;
	bottom: 8px;
	width: 3px;
	background: #111111;
	transform-origin: 50% 0;
}
.km-proc-tie { position: absolute; left: 8px; top: 100%; width: 0; height: 0; }
.km-proc-tie svg { position: absolute; left: -15px; top: -6px; display: block; }
.km-steps { display: flex; flex-direction: column; gap: 36px; padding-left: 40px; }
.km-step { position: relative; display: flex; flex-direction: column; gap: 8px; }
.km-step-dot {
	position: absolute;
	left: -37px;
	top: 16px;
	width: 11px;
	height: 11px;
	border: 1px solid #111111;
	background: #F4F4F2;
}
.km-proc-no {
	font-size: 48px;
	font-weight: 200;
	line-height: 1;
	letter-spacing: -0.05em;
	font-variant-numeric: tabular-nums;
}
.km-step-t { font-size: 22px; font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; }
.km-step-d { max-width: 36em; font-size: 15px; line-height: 1.55; color: #6A6A66; }

@media (max-width: 1023.98px) {
	.kd-proc { padding-bottom: 88px; }
}

/* ==========================================================================
   14. Gallery (#realizacje) and the shared lightbox
   ========================================================================== */

/* Filter chips (desktop gallery) and checkbox chips (form, step 2). */
.kd-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(17, 17, 17, .35);
	border-radius: 999px;
	background: rgba(17, 17, 17, 0);
	color: #111111;
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .3s, color .3s, border-color .3s, transform .2s;
}
.kd-chip[aria-pressed="true"],
.kd-chip:has(input:checked) { background: #111111; border-color: #111111; color: #F4F4F2; }
.kd-chip:has(input:focus-visible) { outline: 2px solid #111111; outline-offset: 4px; }
.kd-chip-n { opacity: .6; }
@media (hover: hover) {
	.kd-chip:hover { border-color: #111111; }
}

/* Desktop grid. */
.kd-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.kd-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: clamp(200px, 15.3vw, 270px);
	grid-auto-flow: dense;
	gap: 24px;
	margin-top: 32px;
}
.kd-tile {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	overflow: hidden;
	border-radius: 2px;
	background: #DCDCD8;
	color: #F4F4F2;
	cursor: pointer;
}
.kd-tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
	transform: scale(1.02);
	transition: filter .7s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.kd-tile-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px;
	background: linear-gradient(0deg, rgba(17, 17, 17, .8), rgba(17, 17, 17, 0));
	color: #F4F4F2;
	text-align: left;
	transform: translateY(101%);
	transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}
.kd-tile-t { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.kd-tile:focus-visible img,
.kd-tile:active img { filter: none; transform: scale(1.07); }
.kd-tile:focus-visible .kd-tile-cap { transform: none; }
@media (hover: hover) {
	.kd-tile:hover img { filter: none; transform: scale(1.07); }
	.kd-tile:hover .kd-tile-cap { transform: none; }
}
@media (hover: none) {
	.kd-tile-cap { transform: none; }
}
.kd-tile[data-kd-tile="g1"] { grid-column: span 4; grid-row: span 2; }
.kd-tile[data-kd-tile="g2"] { grid-column: span 5; }
.kd-tile[data-kd-tile="g3"] { grid-column: span 3; grid-row: span 2; }
.kd-tile[data-kd-tile="g4"] { grid-column: span 5; }
.kd-tile[data-kd-tile="g5"] { grid-column: span 4; grid-row: span 2; }
.kd-tile[data-kd-tile="g6"] { grid-column: span 4; }
.kd-tile[data-kd-tile="g7"] { grid-column: span 4; grid-row: span 2; }
.kd-tile[data-kd-tile="g8"] { grid-column: span 4; }
.kd-tile[data-kd-tile="g8"] img,
.km-tile[data-kd-tile="g8"] img { object-position: 50% 70%; }

/* Mobile grid (full-bleed chip row; children carry the inline padding). */
.km-filters {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin-top: 30px;
	padding: 0 var(--km-px) 2px;
	scrollbar-width: none;
}
.km-filters::-webkit-scrollbar { display: none; }
.km-chip {
	display: inline-flex;
	align-items: center;
	flex: none;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid rgba(17, 17, 17, .35);
	border-radius: 999px;
	background: rgba(17, 17, 17, 0);
	color: #111111;
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .3s, color .3s, border-color .3s, transform .2s;
}
.km-chip[aria-pressed="true"] { background: #111111; border-color: #111111; color: #F4F4F2; }
.km-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: clamp(150px, 38.5vw, 260px);
	grid-auto-flow: dense;
	gap: 10px;
	margin-top: 20px;
	padding: 0 var(--km-px);
}
.km-tile {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	overflow: clip;
	border-radius: 2px;
	background: #DCDCD8;
	color: #F4F4F2;
	cursor: pointer;
	transition: transform .25s;
}
.km-tile:active { transform: scale(.97); }
.km-tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
	transition: scale 1.2s cubic-bezier(.2, .8, .2, 1), filter .7s ease;
}
.km-tile:active img,
.km-tile:focus-visible img { filter: none; }
@media (hover: hover) {
	.km-tile:hover img { scale: 1.06; filter: none; }
}
.km-tile-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 10px 9px;
	background: linear-gradient(0deg, rgba(17, 17, 17, .75), rgba(17, 17, 17, 0));
	color: #F4F4F2;
	font-size: 10px;
	text-align: left;
}
.km-tile[data-kd-tile="g1"],
.km-tile[data-kd-tile="g3"],
.km-tile[data-kd-tile="g5"] { grid-row: span 2; }
.km-tile[data-kd-tile="g4"] { grid-column: span 2; }

@media (max-width: 1023.98px) {
	.kd-gal { padding: 88px 0 92px; }
	.kd-gal > .kd-shead { padding-inline: var(--km-px); }
}

/* Lightbox: one dialog for both layouts, fixed above the headers. */
.kd-lb {
	position: fixed;
	z-index: 200;
	inset: 0;
	overflow: hidden;
	overscroll-behavior: contain;
	background: rgba(17, 17, 17, .96);
	color: #F4F4F2;
}
.kd-lb-in { position: relative; height: 100%; margin: 0 auto; }
.kd-lb-pos { color: #A3A39E; }
.kd-lb-stage {
	position: relative;
	touch-action: pan-y;
	cursor: grab;
	-webkit-user-select: none;
	user-select: none;
}
.kd-lb-stage[data-drag="1"] { cursor: grabbing; }
.kd-lb-img {
	position: absolute;
	inset: 0;
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: auto;
	-webkit-user-drag: none;
	transform: translateX(calc(var(--sx, 0) * 1px)) rotate(calc(var(--sx, 0) * .015deg));
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.kd-lb-stage[data-drag="1"] .kd-lb-img { transition: none; }
.kd-lb-title { font-weight: 300; }
.kd-lb-place { color: #CAAB7F; }
.kd-lb-nav { display: flex; flex-wrap: wrap; align-items: center; }
.kd-lb-hint { color: #A3A39E; }

@media (min-width: 1024px) {
	.kd-lb-in {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		grid-template-rows: 1fr auto auto auto 1fr;
		grid-template-areas:
			"stage ."
			"stage pos"
			"stage meta"
			"stage nav"
			"stage .";
		column-gap: 40px;
		row-gap: 22px;
		max-width: 1376px;
		padding: 32px 48px;
	}
	.kd-lb-bar { display: contents; }
	.kd-lb-pos { grid-area: pos; }
	.kd-lb-stage { grid-area: stage; min-height: 0; }
	.kd-lb-meta { grid-area: meta; display: flex; flex-direction: column; gap: 22px; }
	.kd-lb-title { font-size: 40px; line-height: 1.05; letter-spacing: -0.04em; }
	.kd-lb-nav { grid-area: nav; gap: 12px; margin-top: 12px; }
	.kd-lb-close { grid-area: nav; justify-self: end; align-self: start; margin-top: 12px; }
	.kd-lb-hint { flex-basis: 100%; margin-top: 10px; }
}
@media (max-width: 1023.98px) {
	.kd-lb-in {
		display: flex;
		flex-direction: column;
		gap: 16px;
		max-width: 760px;
		padding: calc(16px + env(safe-area-inset-top, 0px)) var(--km-px) calc(28px + env(safe-area-inset-bottom, 0px));
	}
	.kd-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
	.kd-lb-stage { flex: 1 1 auto; min-height: 220px; }
	.kd-lb-meta { display: flex; flex-direction: column; gap: 6px; }
	.kd-lb-title { font-size: 28px; line-height: 1.1; letter-spacing: -0.035em; }
	.kd-lb-nav { gap: 10px; }
	.kd-lb-hint { margin-left: auto; }
}

::view-transition-group(kd-photo) { animation-duration: .75s; animation-timing-function: cubic-bezier(.7, 0, .2, 1); }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .4s; }
@media (max-width: 1023.98px) {
	::view-transition-group(kd-photo) { animation-duration: .7s; }
	::view-transition-old(root),
	::view-transition-new(root) { animation-duration: .35s; }
}

/* ==========================================================================
   15. About (#o-nas)
   ========================================================================== */

.kd-about { padding-top: 150px; padding-bottom: 150px; }
.kd-manifest {
	font-weight: 300;
	view-timeline-name: --kd-manifest;
}
.kd-about-ph {
	position: relative;
	overflow: clip;
	border-radius: 2px;
	background: #DCDCD8;
}
.kd-par {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
}
.kd-about-tag {
	position: absolute;
	left: 20px;
	bottom: 16px;
	padding: 6px 10px;
	border-radius: 2px;
	background: rgba(17, 17, 17, .75);
	color: #F4F4F2;
}
.kd-values { border-top: 1px solid #111111; }
.kd-val {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 16px;
	padding: 22px 0;
	border-bottom: 1px solid rgba(17, 17, 17, .15);
}
.kd-val-no { padding-top: 6px; color: #6A6A66; }
.kd-val-t { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.kd-val-d { margin-top: 6px; color: #6A6A66; }

@media (min-width: 1024px) {
	.kd-about-top {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 24px;
	}
	.kd-about-top > .kd-slabel { grid-column: span 3; margin-top: 8px; }
	.kd-about-txt { grid-column: span 9; }
	.kd-manifest { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -0.035em; }
	.kd-about-grid {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 24px;
		align-items: stretch;
		margin-top: 96px;
	}
	.kd-about-ph { grid-column: span 5; height: 560px; }
	.kd-values { grid-column: 7 / span 6; }
}
@media (max-width: 1023.98px) {
	.kd-about { padding-top: 96px; padding-bottom: 96px; }
	.kd-manifest {
		margin-top: 22px;
		font-size: clamp(28px, 4.6vw, 40px);
		line-height: 1.16;
		letter-spacing: -0.03em;
	}
	.kd-about-grid { margin-top: 44px; }
	.kd-about-ph { height: 420px; }
	.kd-about-tag { left: 12px; bottom: 12px; padding: 6px 9px; }
	.kd-values { margin-top: 36px; }
	.kd-val { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
	.kd-val-no { padding-top: 5px; }
	.kd-val-t { font-size: 20px; }
	.kd-val-d { margin-top: 4px; font-size: 15px; }
}
@media (min-width: 680px) and (max-width: 1023.98px) {
	.kd-about-ph { height: 520px; }
}

/* ==========================================================================
   16. Inquiry (#kontakt): wizard form + live summary card
   ========================================================================== */

.kd-inq { border-top: 1px solid rgba(17, 17, 17, .12); }
.kd-inq-grid { margin-top: 72px; }
.kd-form { position: relative; }

/* Honeypot (bots fill it, people never see it). */
.kd-hp { display: none !important; }

/* Step navigation. */
.kd-snavs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.kd-snav {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	padding: 0;
	border: 0;
	background: rgba(17, 17, 17, 0);
	color: #6A6A66;
	text-align: left;
	cursor: pointer;
	transition: color .3s;
}
.kd-snav-bar {
	position: relative;
	display: block;
	height: 2px;
	overflow: hidden;
	background: rgba(17, 17, 17, .14);
}
.kd-snav-fill {
	position: absolute;
	inset: 0;
	background: #111111;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .8s cubic-bezier(.7, 0, .2, 1);
}
.kd-snav[data-state="cur"],
.kd-snav[data-state="done"] { color: #111111; }
.kd-snav[data-state="cur"] .kd-snav-fill,
.kd-snav[data-state="done"] .kd-snav-fill { transform: scaleX(1); }
.kd-stepcap { color: #6A6A66; }

/* Steps: fieldsets with the legend as the step title. */
.kd-steps { min-height: 430px; }
.kd-step {
	--kd-sg: 24px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
.kd-step[data-kd-step="1"] { --kd-sg: 28px; }
.kd-step[data-kd-step="2"] { --kd-sg: 26px; }
.kd-step-title {
	float: left;
	width: 100%;
	margin: 0 0 var(--kd-sg);
	padding: 0;
	color: #111111;
	font-size: 34px;
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: -0.035em;
}
.kd-step-body {
	clear: both;
	display: flex;
	flex-direction: column;
	gap: var(--kd-sg);
}
.kd-step-in { animation: kdStepIn .75s cubic-bezier(.2, .75, .15, 1) backwards; }

/* Step 0: option tiles (radio inside a label, styled like the DC buttons). */
.kd-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kd-opt {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 6px;
	min-height: 150px;
	padding: 22px;
	border: 1px solid rgba(17, 17, 17, .22);
	border-radius: 2px;
	background: rgba(17, 17, 17, 0);
	color: #111111;
	text-align: left;
	cursor: pointer;
	transition: background-color .4s, color .4s, border-color .4s, transform .2s;
}
.kd-opt:has(input:checked) { background: #111111; border-color: #111111; color: #F4F4F2; }
.kd-opt:has(input:focus-visible) { outline: 2px solid #111111; outline-offset: 4px; }
.kd-opt-no { opacity: .6; }
.kd-opt-name { font-size: 30px; font-weight: 300; line-height: 1.05; letter-spacing: -0.035em; }
.kd-opt-sub { font-size: 15px; color: #6A6A66; transition: color .4s; }
.kd-opt:has(input:checked) .kd-opt-sub { color: #A3A39E; }
.kd-opt-tie { position: absolute; right: 20px; top: 22px; display: block; opacity: 0; }
.kd-opt:has(input:checked) .kd-opt-tie { opacity: 1; animation: kdTieOn .6s cubic-bezier(.3, 1.4, .5, 1) both; }
@media (hover: hover) {
	.kd-opt:hover { border-color: #111111; }
}

/* Step 1: guests odometer + range, date, place. */
.kd-guests-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.kd-guests-num { display: flex; align-items: flex-end; gap: 16px; }
.kd-odo {
	display: flex;
	font-size: 120px;
	font-weight: 200;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}
.kd-odo-col { display: inline-block; height: 1em; overflow: hidden; }
.kd-odo-strip { display: flex; flex-direction: column; transition: transform .85s cubic-bezier(.2, .8, .2, 1); }
.kd-odo-strip span { display: block; height: 1em; line-height: 1; }
.kd-odo-unit { padding-bottom: 18px; color: #6A6A66; }
.kd-stepper { display: flex; gap: 8px; padding-bottom: 4px; }
.kd-range { position: relative; height: 44px; margin-top: 18px; }
.kd-range-track {
	position: absolute;
	left: 0;
	right: 0;
	top: 21px;
	height: 2px;
	background: rgba(17, 17, 17, .15);
}
.kd-range-fill {
	position: absolute;
	left: 0;
	top: 21px;
	height: 2px;
	background: #111111;
}
.kd-range-tie {
	position: absolute;
	top: 12px;
	display: block;
	width: 48px;
	height: 20px;
	margin-left: -24px;
	overflow: visible;
	pointer-events: none;
	transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.kd-range:hover .kd-range-tie,
.kd-range:active .kd-range-tie { transform: scale(1.2); }
.kd-range:focus-within .kd-range-tie { outline: 2px solid #111111; outline-offset: 6px; border-radius: 4px; }
.kd-range-in {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: grab;
}
.kd-range-in:active { cursor: grabbing; }
.kd-range-scale { display: flex; justify-content: space-between; margin-top: 6px; color: #6A6A66; }
.kd-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.kd-date-f { display: flex; flex-direction: column; gap: 6px; }
.kd-date-l { color: #6A6A66; }
.kd-when .kd-fl { align-self: end; }
.kd-date {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid rgba(17, 17, 17, .3);
	border-radius: 0;
	background: rgba(17, 17, 17, 0);
	color: #111111;
	font-size: 18px;
	line-height: 1.5;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.kd-date::-webkit-date-and-time-value { text-align: left; }
.kd-date:focus { border-bottom-color: #111111; }
.kd-root .kd-date:focus-visible { outline: none; border-bottom-width: 2px; padding-bottom: 9px; }

/* Floating-label fields (name, e-mail, phone, message, place, FAQ search). */
.kd-fl { position: relative; }
.kd-fl input,
.kd-fl textarea {
	display: block;
	width: 100%;
	padding: 24px 0 10px;
	border: 0;
	border-bottom: 1px solid rgba(17, 17, 17, .3);
	border-radius: 0;
	background: rgba(17, 17, 17, 0);
	color: #111111;
	font-size: 18px;
	line-height: 1.5;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.kd-fl input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
.kd-fl input[type="search"]::-webkit-search-cancel-button {
	/* 12px cross, 24px hit area (the input keeps its height). */
	width: 24px;
	height: 24px;
	margin: 0 -6px 0 4px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 1.5l9 9m0-9l-9 9' fill='none' stroke='%23111111' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
/* Autofill keeps the paper background and ink text (no browser yellow/blue). */
.kd-fl input:-webkit-autofill,
.kd-fl input:-webkit-autofill:hover,
.kd-fl input:-webkit-autofill:focus,
.kd-fl textarea:-webkit-autofill,
.kd-fl textarea:-webkit-autofill:hover,
.kd-fl textarea:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #F4F4F2 inset;
	box-shadow: 0 0 0 1000px #F4F4F2 inset;
	-webkit-text-fill-color: #111111;
	caret-color: #111111;
}
.kd-alt .kd-fl input:-webkit-autofill,
.kd-alt .kd-fl input:-webkit-autofill:hover,
.kd-alt .kd-fl input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #EAEAE6 inset;
	box-shadow: 0 0 0 1000px #EAEAE6 inset;
}
.kd-fl textarea { min-height: 92px; resize: vertical; }
.kd-fl label {
	position: absolute;
	left: 0;
	top: 24px;
	color: #6A6A66;
	font-size: 18px;
	line-height: 1.5;
	pointer-events: none;
	transform-origin: left top;
	transition: transform .4s cubic-bezier(.2, .8, .2, 1), color .3s;
}
.kd-fl input:focus + label,
.kd-fl input:not(:placeholder-shown) + label,
.kd-fl textarea:focus + label,
.kd-fl textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.72); color: #111111; }
.kd-fl-line {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: #111111;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s cubic-bezier(.7, 0, .2, 1);
}
.kd-fl input:focus ~ .kd-fl-line,
.kd-fl textarea:focus ~ .kd-fl-line { transform: scaleX(1); }
.kd-root .kd-fl input:focus-visible,
.kd-root .kd-fl textarea:focus-visible { outline: none; }

/* Step 2: checkbox chips in two groups. */
.kd-cgroup { display: flex; flex-direction: column; gap: 12px; }
.kd-cg-t { color: #6A6A66; }
.kd-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.kd-step-note { color: #6A6A66; }

/* Step 3: contact fields + consent. */
.kd-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.kd-fl-wide { grid-column: 1 / -1; }
.kd-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.kd-consent label { cursor: pointer; }
.kd-consent a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* The input itself is a 44px hit area; ::before draws the 22px (mobile 24px) box
   exactly where the design puts it, the negative margins keep the layout unchanged. */
.kd-check {
	--kd-ck: 22px;
	position: relative;
	display: block;
	flex: none;
	width: 44px;
	height: 44px;
	margin: -9px -11px -11px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(17, 17, 17, 0);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.kd-check::before {
	content: "";
	position: absolute;
	left: calc((44px - var(--kd-ck)) / 2);
	top: calc((44px - var(--kd-ck)) / 2);
	width: var(--kd-ck);
	height: var(--kd-ck);
	border: 1px solid #111111;
	border-radius: 2px;
	background: rgba(17, 17, 17, 0);
	transition: background-color .25s;
}
.kd-check::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 6px;
	margin: -4.5px 0 0 -5px;
	border-left: 2px solid #F4F4F2;
	border-bottom: 2px solid #F4F4F2;
	transform: rotate(-45deg) scale(0);
	transition: transform .3s cubic-bezier(.3, 1.5, .5, 1);
}
.kd-check:checked::before { background: #111111; }
.kd-check:checked::after { transform: rotate(-45deg) scale(1); }
.kd-root .kd-check:focus-visible { outline: none; }
.kd-root .kd-check:focus-visible::before { outline: 2px solid #111111; outline-offset: 3px; }

/* Errors (JS region and the server notice after a failed classic POST). */
.kd-form-error {
	padding: 14px 18px;
	border: 1px solid #111111;
	border-radius: 2px;
	background: #EAEAE6;
	color: #111111;
	font-size: 15px;
	line-height: 1.5;
}
.kd-form-error a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Wizard navigation. */
.kd-wiznav {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 28px;
	border-top: 1px solid rgba(17, 17, 17, .15);
}
.kd-wiznav-sp { flex: 1 1 auto; }
.kd-wbtn { min-height: 54px; padding: 0 28px; font-size: 15px; }
.kd-wbtn[disabled] { opacity: .35; cursor: not-allowed; }
.kd-form[aria-busy="true"] [data-kd-send] { cursor: progress; }
.kd-back { padding: 0 24px; }
.kd-back-ic { display: none; }
.kd-stepno { display: none; color: #6A6A66; white-space: nowrap; }
html.kd-js .kd-back[hidden] + .kd-stepno { display: inline; }
.kd-hint { font-size: 14px; color: #6A6A66; }
.kd-hint:empty { display: none; }

/* Sent panel. */
.kd-sent { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.kd-sent-t { font-size: 34px; font-weight: 300; letter-spacing: -0.035em; }
.kd-sent-txt { max-width: 32em; font-size: 18px; color: #6A6A66; }
.kd-sent-act { display: flex; flex-wrap: wrap; gap: 14px; }
.kd-sent-act .kd-wbtn { min-height: 52px; padding: 0 24px; }

/* Summary card: dark front, tan back, flips when sent. */
.kd-sum { perspective: 1600px; }
.kd-sum-in {
	position: relative;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 1.1s cubic-bezier(.7, 0, .2, 1);
}
.kd-sum-in[data-flipped="true"] { transform: rotateY(180deg); }
.kd-face {
	position: absolute;
	inset: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transition: visibility 0s linear .55s;
}
.kd-sum-in[data-flipped="true"] .kd-sum-front,
.kd-sum-in[data-flipped="false"] .kd-sum-back { visibility: hidden; }
.kd-sum-front {
	display: flex;
	flex-direction: column;
	padding: 34px 32px;
	border-radius: 4px;
	background: #111111;
	color: #F4F4F2;
	box-shadow: 0 40px 80px rgba(17, 17, 17, .18);
}
.kd-sum-back {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 34px 32px;
	border-radius: 4px;
	background: #CAAB7F;
	color: #111111;
	transform: rotateY(180deg);
	box-shadow: 0 40px 80px rgba(17, 17, 17, .18);
}
.kd-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kd-sum-head > span { white-space: nowrap; }
.kd-sum-live { display: flex; align-items: center; gap: 8px; color: #CAAB7F; }
.kd-live {
	display: block;
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #CAAB7F;
	animation: kdPulse 1.6s ease-in-out infinite;
}
.kd-sum-rule { height: 1px; margin: 22px 0; background: rgba(244, 244, 242, .2); }
.kd-sum-empty {
	font-size: 22px;
	font-weight: 300;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: #A3A39E;
}
.kd-slines { display: flex; flex-direction: column; gap: 14px; }
.kd-sline {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 12px;
	animation: kdLineIn .7s cubic-bezier(.6, .05, .2, 1) backwards;
}
.kd-sline-k { color: #A3A39E; }
.kd-sline-v { min-width: 0; font-size: 17px; overflow-wrap: break-word; }
.kd-sum-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid rgba(244, 244, 242, .2);
	color: #A3A39E;
}
.kd-sum-logo { display: block; flex: none; width: 128px; height: auto; opacity: .9; }
.kd-sum-mid { display: flex; flex-direction: column; gap: 18px; }
.kd-sum-tie { display: block; width: 96px; height: 40px; }
.kd-sum-thx { font-size: 40px; font-weight: 300; line-height: 1.05; letter-spacing: -0.04em; }
.kd-sum-note { font-size: 16px; }

@media (min-width: 1024px) {
	.kd-inq-grid {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 24px;
		align-items: start;
	}
	.kd-inq-main { grid-column: span 7; }
	.kd-form { display: flex; flex-direction: column; gap: 40px; }
	/* The card grows with its content (many services); the back face covers it. */
	.kd-sum { grid-column: 9 / span 4; position: sticky; top: 112px; height: auto; }
	.kd-sum-in { height: auto; }
	.kd-sum-front { position: relative; inset: auto; min-height: 560px; }
	.kd-slines { margin-bottom: 24px; }
	.kd-snav-l { white-space: nowrap; }
	.kd-snav { padding: 7px 0; margin: -7px 0; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
	.kd-inq-main { grid-column: 1 / span 7; }
	.kd-sum { grid-column: 8 / span 5; }
	/* Narrow form column: the hint gets its own right-aligned line under the buttons. */
	.kd-wiznav { flex-wrap: wrap; row-gap: 12px; }
	.kd-hint { order: 10; flex-basis: 100%; text-align: right; }
}
@media (max-width: 1023.98px) {
	.kd-inq { padding-bottom: 96px; }
	.kd-inq-grid { margin-top: 34px; }
	.kd-form-error-srv { margin-bottom: 22px; }
	.kd-snavs { gap: 6px; }
	.kd-snav { gap: 8px; padding: 10px 0; }
	.kd-snav-bar { height: 3px; }
	.kd-snav-l {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
	.kd-stepcap { margin-top: 8px; }
	.kd-steps { min-height: 500px; margin-top: 22px; }
	.kd-step { --kd-sg: 20px; }
	.kd-step[data-kd-step="1"],
	.kd-step[data-kd-step="2"] { --kd-sg: 24px; }
	.kd-step[data-kd-step="3"] { --kd-sg: 18px; }
	.kd-step-title { font-size: 28px; line-height: 1.1; }
	.kd-step-in { animation-name: kmStepIn; }

	.kd-opts { gap: 10px; }
	.kd-opt { min-height: 148px; padding: 16px; }
	.kd-opt:active { transform: scale(.96); }
	.kd-opt-name { font-size: 21px; line-height: 1.08; letter-spacing: -0.03em; }
	.kd-opt-sub { font-size: 13px; line-height: 1.4; }
	.kd-opt-tie { right: 14px; top: 16px; width: 28px; height: 12px; }

	.kd-guests-top { gap: 10px; }
	.kd-guests-num { gap: 8px; }
	.kd-odo { font-size: 76px; }
	.kd-odo-unit { padding-bottom: 10px; }
	.kd-range { margin-top: 14px; }
	.kd-range:active .kd-range-tie { transform: scale(1.25); }
	.kd-when { display: flex; flex-direction: column; gap: 24px; }
	.kd-when .kd-fl { align-self: stretch; }
	.kd-date { font-size: 17px; }

	.kd-fl input,
	.kd-fl textarea,
	.kd-fl label { font-size: 17px; }
	.kd-fl textarea { min-height: 96px; }

	.kd-chips { gap: 8px; }
	.kd-chip { flex: none; padding: 0 16px; font-size: 11px; white-space: nowrap; }
	.kd-chip:active { transform: scale(.96); }
	.kd-step-note { font-size: 15px; }

	.kd-fields { display: flex; flex-direction: column; gap: 18px; }
	.kd-consent { padding-top: 4px; }
	.kd-check { --kd-ck: 24px; margin: -10px; }

	.kd-form-error { margin-top: 16px; }
	.kd-wiznav { flex-wrap: wrap; gap: 10px; padding-top: 22px; }
	.kd-wiznav-sp,
	.kd-stepno { display: none !important; }
	.kd-back { width: 54px; height: 54px; flex: none; padding: 0; border-radius: 50%; }
	.kd-back-ic { display: block; }
	.kd-back-t {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
	.kd-next,
	.kd-send { flex: 1 1 0; padding: 0 24px; }
	.kd-hint { order: 5; flex-basis: 100%; margin-top: 2px; }

	.kd-sent { gap: 16px; }
	.kd-sent-t { font-size: 28px; line-height: 1.1; }
	.kd-sent-txt { font-size: 16px; }
	.kd-sent-act { flex-direction: column; align-items: flex-start; gap: 16px; }

	.kd-sum { position: relative; height: 360px; margin-top: 40px; perspective: 1400px; }
	.kd-sum-front { padding: 22px 22px 0; border-radius: 6px; box-shadow: 0 30px 60px rgba(17, 17, 17, .18); }
	.kd-sum-back { padding: 22px; border-radius: 6px; box-shadow: 0 30px 60px rgba(17, 17, 17, .18); }
	.kd-sum-rule { margin: 16px 0; }
	.kd-sum-empty { font-size: 19px; }
	.kd-slines { gap: 7px; overflow: hidden; }
	.kd-sline { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; }
	.kd-sline-v { overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; }
	.km-tline {
		position: absolute;
		left: 16px;
		right: 16px;
		bottom: 66px;
		border-top: 1px dashed rgba(244, 244, 242, .28);
	}
	.km-notch {
		position: absolute;
		bottom: 55px;
		width: 22px;
		height: 22px;
		border-radius: 50%;
		background: #F4F4F2;
	}
	.km-notch-l { left: -11px; }
	.km-notch-r { right: -11px; }
	.kd-sum-foot {
		position: absolute;
		left: 22px;
		right: 22px;
		bottom: 18px;
		gap: 12px;
		margin: 0;
		padding: 0;
		border: 0;
	}
	.kd-sum-logo { width: 104px; }
	.kd-sum-mid { gap: 14px; }
	.kd-sum-tie { width: 76px; height: 31px; }
	.kd-sum-thx { font-size: 32px; }
	.kd-sum-note { font-size: 15px; }
}
@media (min-width: 680px) and (max-width: 1023.98px) {
	.kd-opt-name { font-size: 26px; }
}

/* Before the script takes over (html.kd-js), show only step 0 so nothing jumps. */
html.kd-js .kd-form:has(.kd-snav[data-kd-goto="0"][aria-current="step"]) .kd-step:not([data-kd-step="0"]),
html.kd-js .kd-form:has(.kd-snav[data-kd-goto="0"][aria-current="step"]) [data-kd-send] { display: none; }

/* ==========================================================================
   17. FAQ (#faq)
   ========================================================================== */

.kd-faq-side { display: flex; flex-direction: column; gap: 22px; }
.kd-faq-count { color: #5E5E5A; }
.kd-faq-list { border-top: 1px solid #111111; }
.kd-faq { border-bottom: 1px solid rgba(17, 17, 17, .18); }
.kd-faq-h3 { font-size: inherit; font-weight: inherit; }
.kd-faq-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	min-height: 76px;
	padding: 22px 0;
	border: 0;
	background: rgba(17, 17, 17, 0);
	color: #111111;
	font-size: 22px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}
.kd-faq-ic { position: relative; flex: none; width: 22px; height: 22px; }
.kd-faq-ic::before,
.kd-faq-ic::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1.5px;
	margin-top: -1px;
	background: currentColor;
	transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.kd-faq-ic::after { transform: rotate(90deg); }
.kd-faq-btn[aria-expanded="true"] .kd-faq-ic::before,
.kd-faq-btn[aria-expanded="true"] .kd-faq-ic::after { transform: rotate(180deg); }
.kd-faq-panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .5s cubic-bezier(.2, .7, .2, 1);
}
.kd-faq-panel[data-open="true"] { grid-template-rows: 1fr; }
.kd-faq-panel > div {
	min-height: 0;
	overflow: hidden;
	visibility: hidden;
	transition: visibility 0s linear .5s;
}
.kd-faq-panel[data-open="true"] > div { visibility: visible; transition-delay: 0s; }
.kd-faq-panel p {
	padding: 0 64px 26px 0;
	font-size: 17px;
	line-height: 1.65;
	color: #5E5E5A;
}
.kd-hit { border-radius: 2px; background: #CAAB7F; color: #111111; }
.kd-faq-empty { padding: 28px 0; font-size: 18px; color: #5E5E5A; }

@media (min-width: 1024px) {
	.kd-faq-grid {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 24px;
		align-items: start;
	}
	.kd-faq-side { grid-column: span 4; position: sticky; top: 112px; }
	.kd-h2.kd-faq-h { font-size: clamp(42px, 5vw, 72px); }
	.kd-faq-search { margin-top: 8px; }
	.kd-faq-list { grid-column: 6 / span 7; }
}
@media (max-width: 1023.98px) {
	.kd-faqsec { padding-bottom: 96px; }
	.kd-faq-side { gap: 0; }
	.kd-faq-side .kd-faq-h { margin-top: 14px; }
	.kd-faq-search { margin-top: 22px; }
	.kd-faq-count { margin-top: 12px; }
	.kd-faq-list { margin-top: 20px; }
	.kd-faq-btn { gap: 18px; min-height: 64px; padding: 18px 0; font-size: 18px; letter-spacing: -0.015em; }
	.kd-faq-ic { width: 20px; height: 20px; }
	.kd-faq-panel p { padding: 0 30px 22px 0; font-size: 16px; line-height: 1.6; }
	.kd-faq-empty { padding: 24px 0; font-size: 16px; }
}

/* ==========================================================================
   18. Footer (dark)
   ========================================================================== */

.kd-footer { padding: 130px var(--kd-px) 40px; }
.kd-giant-wrap { container-type: inline-size; margin-top: 26px; }
.kd-giant {
	display: block;
	color: #F4F4F2;
	text-decoration: none;
	font-size: clamp(64px, 12.6vw, 190px);
	font-weight: 200;
	line-height: .92;
	letter-spacing: -0.06em;
	white-space: nowrap;
}
.kd-giant:hover { color: #F4F4F2; }
.kd-giant-in { display: block; }
.kd-gl {
	display: inline-block;
	font-variation-settings: "wght" var(--gw, 200);
	color: #F4F4F2;
	color: color-mix(in srgb, #CAAB7F calc((var(--gw, 200) - 200) / 6.2 * 1%), #F4F4F2);
	transition: font-variation-settings .6s cubic-bezier(.2, .8, .2, 1), color .35s;
}
.kd-gl-br { display: inline-block; width: .26em; }
@media (hover: hover) and (min-width: 1024px) {
	.kd-gl:hover { font-variation-settings: "wght" 820; color: #CAAB7F; }
	.kd-gl:hover + .kd-gl,
	.kd-gl:has(+ .kd-gl:hover) { font-variation-settings: "wght" 560; }
	.kd-gl:hover + .kd-gl + .kd-gl,
	.kd-gl:has(+ .kd-gl + .kd-gl:hover) { font-variation-settings: "wght" 360; }
}
.kd-giant-hint { margin-top: 16px; color: #A3A39E; }

.kd-fbrand { display: flex; flex-direction: column; gap: 18px; }
.kd-flogo { display: block; width: 220px; height: auto; }
.kd-fdesc { max-width: 22em; color: #A3A39E; }
.kd-fcol { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.kd-fcol-t { margin: 0 0 6px; color: #A3A39E; }
.kd-fbottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 64px;
	color: #A3A39E;
}
.kd-fbottom .kd-flink {
	display: inline-flex;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
	margin: -14px 0;
}
.kd-fbottom .kd-flink::after { bottom: 10px; }
.kd-fcol .kd-flink { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.kd-fcol .kd-flink::after { bottom: 6px; }
.kd-credit .kd-flink { white-space: normal; }

@media (min-width: 1024px) {
	.kd-fgrid {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 24px;
		margin-top: 90px;
		padding-top: 40px;
		border-top: 1px solid rgba(244, 244, 242, .18);
	}
	.kd-fbrand { grid-column: span 4; }
	.kd-fcol-site { grid-column: 6 / span 2; }
	.kd-fcol-contact { grid-column: span 3; }
	.kd-fcol-info { grid-column: span 2; }
	.kd-fcol { gap: 20px; }
	.kd-fcol .kd-flink { margin: -10px 0; }
	.kd-fcol-t { margin: 0 0 -2px; }
}
@media (max-width: 1023.98px) {
	.kd-footer { padding: 84px var(--km-px) calc(36px + env(safe-area-inset-bottom, 0px)); }
	.kd-giant-wrap { margin-top: 22px; }
	.kd-giant {
		font-size: min(23vw, 150px);
		font-size: min(26cqw, 150px);
		line-height: .9;
		letter-spacing: -0.05em;
		touch-action: pan-y;
		-webkit-user-select: none;
		user-select: none;
	}
	.kd-gl { transition: font-variation-settings .45s cubic-bezier(.2, .8, .2, 1), color .45s ease; }
	.kd-gl-br { display: block; width: auto; height: 0; }
	.kd-fgrid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 20px;
		margin-top: 52px;
		padding-top: 32px;
		border-top: 1px solid rgba(244, 244, 242, .18);
	}
	.kd-fbrand { grid-column: 1 / -1; gap: 16px; margin-bottom: 26px; }
	.kd-flogo { width: 190px; }
	.kd-fdesc { max-width: 30em; font-size: 15px; }
	.kd-fcol { gap: 0; font-size: 15px; }
	.kd-fcol .kd-flink::after { bottom: 7px; }
	.kd-fcol-t { margin: 0 0 4px; }
	.kd-fbottom { margin-top: 36px; }
	.kd-credit { order: 3; flex-basis: 100%; }
	.kd-credit .kd-flink {
		display: inline;
		min-width: 0;
		min-height: 0;
		margin: 0;
		padding: 16px 0;
	}
	.kd-credit .kd-flink::after { content: none; }
	.kd-credit .kd-flink:active,
	.kd-credit .kd-flink:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
}
@media (hover: hover) and (max-width: 1023.98px) {
	.kd-credit .kd-flink:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 359.98px) {
	.kd-fgrid { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
	.kd-fbrand { margin-bottom: 0; }
}

/* ==========================================================================
   19. Mobile dock (fixed CTA with scroll-progress ring)
   ========================================================================== */

.km-dock {
	position: fixed;
	z-index: 80;
	left: max(12px, calc(50% - 268px));
	right: max(12px, calc(50% - 268px));
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	visibility: hidden;
	transform: translateY(calc(100% + 28px + env(safe-area-inset-bottom, 0px)));
	transition: transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .6s;
}
.km-dock[data-show="true"] {
	visibility: visible;
	transform: none;
	transition: transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
.km-dock-a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 8px;
	border-radius: 999px;
	background: #111111;
	color: #F4F4F2;
	text-decoration: none;
	box-shadow: 0 18px 40px rgba(17, 17, 17, .28);
	transition: transform .2s;
}
.km-dock-a:active { transform: scale(.98); }
.km-dock-ring { position: relative; display: grid; flex: none; place-items: center; width: 44px; height: 44px; }
.km-dock-ring > svg { display: block; }
.km-dock-ring-svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.km-dock-txt { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.km-dock-t { font-size: 15px; font-weight: 500; line-height: 1.25; }
.km-dock-info { overflow: hidden; color: #A3A39E; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.km-dock-go {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #CAAB7F;
	color: #111111;
}
.km-dock-go svg { display: block; }

/* ==========================================================================
   20. Scroll-driven animations (progressive; static without support)
   ========================================================================== */

@supports (animation-timeline: scroll()) {
	.kd-progress { animation: kdProg linear both; animation-timeline: scroll(root); }

	@media (min-width: 1024px) {
		.kd-header { animation: kdHead linear both; animation-timeline: scroll(root); animation-range: 0 260px; }
		.kd-header-logo { animation: kdLogoS linear both; animation-timeline: scroll(root); animation-range: 0 260px; }
		.kd-row-a { animation: kdRowA linear both; animation-timeline: scroll(root); }
		.kd-row-b { animation: kdRowB linear both; animation-timeline: scroll(root); }
	}
	@media (max-width: 1023.98px) {
		.km-header { animation: kmHead linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
		.km-logo-wrap { animation: kmLogoS linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
		.kd-row-a { animation: kmRow linear both; animation-timeline: scroll(root); }
		.km-ring { animation: kmRing linear both; animation-timeline: scroll(root); }
		.km-railbar { animation: kdProg linear both; animation-timeline: --km-bars; }
	}
}

@supports (animation-timeline: view()) {
	/* Manifest words darken while the paragraph crosses the viewport (ranges inline). */
	.kd-word { animation: kdWord linear both; animation-timeline: --kd-manifest; }

	@media (min-width: 1024px) {
		.kd-rv { animation: kdRise linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
		.kd-proc-fill { animation: kdGrow linear both; animation-timeline: --kd-proc; animation-range: entry 55% cover 62%; }
		.kd-proc-tie { animation: kdRun linear both; animation-timeline: --kd-proc; animation-range: entry 55% cover 62%; }
		.kd-pstep { animation: kdStepOn linear both; animation-timeline: --kd-proc; }
		.kd-pstep:nth-child(1) { animation-range: entry 40% cover 38%; }
		.kd-pstep:nth-child(2) { animation-range: entry 55% cover 46%; }
		.kd-pstep:nth-child(3) { animation-range: entry 70% cover 54%; }
		.kd-pstep:nth-child(4) { animation-range: entry 85% cover 62%; }
		.kd-par { animation: kdPar linear both; animation-timeline: view(); }
	}
	@media (max-width: 1023.98px) {
		.kd-rv { animation: kmRise linear both; animation-timeline: view(); animation-range: entry 5% cover 25%; }
		.km-card { animation: kmCardIn linear both; animation-timeline: view(inline); }
		.km-card-img { animation: kmColorize linear both; animation-timeline: view(inline); }
		.km-proc-fill { animation: kmProgY linear both; animation-timeline: --km-proc; animation-range: cover 22% cover 72%; }
		.km-proc-tie { animation: kmRunY linear both; animation-timeline: --km-proc; animation-range: cover 22% cover 72%; }
		.km-step { animation: kdStepOn linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
		.km-step-dot { animation: kmDotOn linear both; animation-timeline: view(); animation-range: cover 35% cover 50%; }
		.kd-par { animation: kmPar linear both; animation-timeline: view(); }
		/* Footer letters rise one by one (per-letter ranges inline). */
		.kd-gl { animation: kmRise linear both; animation-timeline: view(); }
	}
}

/* ==========================================================================
   21. Without JavaScript: everything readable, the form posts classically
   ========================================================================== */

html:not(.kd-js) .kd-curtain,
html:not(.kd-js) .kd-cursor,
html:not(.kd-js) .km-burger,
html:not(.kd-js) .km-hint,
html:not(.kd-js) .kd-add,
html:not(.kd-js) .kd-filters,
html:not(.kd-js) .km-filters,
html:not(.kd-js) .km-railctl button,
html:not(.kd-js) .km-railno,
html:not(.kd-js) .km-deckctl,
html:not(.kd-js) .kd-faq-search,
html:not(.kd-js) [data-kd-faq-count],
html:not(.kd-js) .kd-faq-ic,
html:not(.kd-js) .kd-snavs,
html:not(.kd-js) [data-kd-stepcap],
html:not(.kd-js) .kd-stepper,
html:not(.kd-js) .kd-odo,
html:not(.kd-js) .kd-odo-unit,
html:not(.kd-js) .kd-range-track,
html:not(.kd-js) .kd-range-fill,
html:not(.kd-js) .kd-range-tie,
html:not(.kd-js) [data-kd-back],
html:not(.kd-js) [data-kd-next],
html:not(.kd-js) [data-kd-hint],
html:not(.kd-js) .kd-sum,
html:not(.kd-js) .km-dock { display: none !important; }

/* Bars: every description open. */
html:not(.kd-js) .kd-more { grid-template-rows: 1fr; }
html:not(.kd-js) .kd-more-in { visibility: visible; }

/* Deck: a plain vertical list of cards. */
html:not(.kd-js) .km-deck { display: flex; flex-direction: column; gap: 16px; height: auto; }
html:not(.kd-js) .km-xcard {
	position: relative;
	height: auto;
	transform: none;
	filter: none;
	opacity: 1;
	cursor: auto;
	pointer-events: auto;
}
html:not(.kd-js) .km-xcard-in { height: auto; }

/* Form: all four steps in a column; the native range input replaces the custom one. */
html:not(.kd-js) .kd-steps { min-height: 0; }
html:not(.kd-js) .kd-step + .kd-step {
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid rgba(17, 17, 17, .15);
}
html:not(.kd-js) .kd-range { height: auto; margin-top: 0; }
html:not(.kd-js) .kd-range-in {
	position: static;
	display: block;
	height: 44px;
	opacity: 1;
	accent-color: #111111;
}

/* FAQ: every answer open. */
html:not(.kd-js) .kd-faq-panel { grid-template-rows: 1fr; }
html:not(.kd-js) .kd-faq-panel > div { visibility: visible; }

/* ==========================================================================
   22. Reduced motion: no animation, no transition, no smooth scrolling
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.kd-root *,
	.kd-root *::before,
	.kd-root *::after {
		animation: none !important;
		transition: none !important;
	}
	.kd-curtain,
	.kd-cursor { display: none !important; }
	/* Without the wipe animation the active bar photo must not stay clipped. */
	.kd-blayer.kd-wipe-a,
	.kd-blayer.kd-wipe-b { clip-path: none !important; }
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) { animation: none !important; }
}
