.ksf {
	--ksf-ink: #28212f;
	--ksf-muted: #6f6875;
	--ksf-purple: #72458d;
	--ksf-purple-dark: #58316f;
	--ksf-coral: #ee6b57;
	--ksf-yellow: #f4c552;
	--ksf-cream: #fffaf3;
	--ksf-line: #e7dfea;
	--ksf-white: #fff;
	color: var(--ksf-ink);
	font-family: inherit;
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 56px) 16px;
}

.ksf *, .ksf *::before, .ksf *::after { box-sizing: border-box; }
.ksf--compact { margin: 0; max-width: 760px; padding: 0; }
.ksf--compact .ksf__form { max-width: none; }
.ksf--compact .ksf__status:empty { display: none; }
.ksf--compact .ksf__status { margin-top: 12px; }
.ksf--compact .ksf__recommendation { margin-top: 20px; }
.ksf__intro { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.ksf__eyebrow, .ksf__result-kicker { color: var(--ksf-coral); font-size: 12px; font-weight: 800; letter-spacing: .12em; margin: 0 0 8px; text-transform: uppercase; }
.ksf__intro h2 { color: var(--ksf-ink); font-size: clamp(30px, 5vw, 52px); letter-spacing: -.035em; line-height: 1.06; margin: 0 0 16px; }
.ksf__intro > p:last-child { color: var(--ksf-muted); font-size: 17px; line-height: 1.65; margin: 0; }

.ksf__steps { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 0 auto 26px; max-width: 900px; }
.ksf__steps > div { align-items: center; background: var(--ksf-cream); border: 1px solid #f0e2d0; border-radius: 18px; display: grid; grid-template-columns: 42px 1fr; padding: 15px; }
.ksf__steps span { align-items: center; background: var(--ksf-yellow); border-radius: 50%; display: flex; font-weight: 900; grid-row: 1 / 3; height: 34px; justify-content: center; width: 34px; }
.ksf__steps strong { font-size: 15px; line-height: 1.25; }
.ksf__steps small { color: var(--ksf-muted); font-size: 12px; line-height: 1.35; }

.ksf__panel { background: var(--ksf-white); border: 1px solid var(--ksf-line); border-radius: 24px; box-shadow: 0 18px 55px rgba(50, 32, 61, .09); margin: 0 auto; max-width: 900px; overflow: hidden; }
.ksf__tabs { background: #f8f4f9; display: grid; grid-template-columns: 1fr 1fr; padding: 7px; }
.ksf__tab { appearance: none; background: transparent; border: 0; border-radius: 16px; color: var(--ksf-muted); cursor: pointer; font: inherit; font-size: 15px; font-weight: 800; min-height: 50px; padding: 12px; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.ksf__tab.is-active { background: var(--ksf-white); box-shadow: 0 4px 16px rgba(50, 32, 61, .09); color: var(--ksf-purple); }
.ksf__tab:focus-visible, .ksf__button:focus-visible, .ksf__product a:focus-visible { outline: 3px solid rgba(114, 69, 141, .28); outline-offset: 2px; }
.ksf__tab-panel { padding: clamp(24px, 5vw, 48px); }
.ksf__form { margin: 0 auto; max-width: 700px; }
.ksf__form label { display: block; font-size: clamp(19px, 2.5vw, 24px); font-weight: 800; margin: 0 0 14px; text-align: center; }
.ksf__field-row { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; }
.ksf__field-row > input, .ksf__number-wrap { background: var(--ksf-white); border: 2px solid var(--ksf-line); border-radius: 30px; min-height: 58px; transition: border-color .2s ease, box-shadow .2s ease; }
.ksf__field-row > input { color: var(--ksf-ink); font: inherit; font-size: 17px; padding: 0 18px; width: 100%; }
.ksf__number-wrap { align-items: center; display: flex; padding: 0 16px; }
.ksf__number-wrap input { appearance: textfield; background: transparent; border: 0; color: var(--ksf-ink); flex: 1; font: inherit; font-size: 22px; font-weight: 800; min-width: 0; outline: 0; }
.ksf__number-wrap span { color: var(--ksf-muted); font-weight: 700; }
.ksf__field-row > input:focus, .ksf__number-wrap:focus-within { border-color: var(--ksf-purple); box-shadow: 0 0 0 4px rgba(114, 69, 141, .1); outline: 0; }
.ksf__button { appearance: none; background: var(--ksf-purple); border: 0; border-radius: 30px; color: var(--ksf-white); cursor: pointer; font: inherit; font-size: 15px; font-weight: 800; min-height: 58px; padding: 0 24px; transition: background .2s ease, transform .2s ease; }
.ksf__button:hover { background: var(--ksf-purple-dark); transform: translateY(-1px); }
.ksf.is-loading .ksf__button { cursor: wait; opacity: .65; pointer-events: none; }
.ksf__help { color: var(--ksf-muted); font-size: 13px; margin: 12px 0 0; text-align: center; }
.ksf__status { color: var(--ksf-purple); font-weight: 700; margin: 22px auto 0; min-height: 1.4em; text-align: center; }
.ksf__results { scroll-margin-top: 40px; }

.ksf__recommendation { align-items: center; background: linear-gradient(135deg, #f6eef9, #fff9ee); border: 1px solid var(--ksf-line); border-radius: 22px; display: grid; gap: 24px; grid-template-columns: auto 1fr; margin: 28px 0; padding: clamp(22px, 4vw, 34px); }
.ksf__size-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ksf__size-badges span { align-items: center; background: var(--ksf-purple); border: 5px solid rgba(255, 255, 255, .7); border-radius: 50%; box-shadow: 0 8px 22px rgba(75, 41, 94, .18); color: var(--ksf-white); display: flex; font-size: clamp(22px, 4vw, 34px); font-weight: 900; height: 92px; justify-content: center; width: 92px; }
.ksf__recommendation h3, .ksf__products-head h3, .ksf__empty h3 { color: var(--ksf-ink); font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin: 0 0 8px; }
.ksf__recommendation p:last-child, .ksf__products-head p, .ksf__empty p { color: var(--ksf-muted); line-height: 1.6; margin: 0; }

.ksf__products-head { align-items: end; display: flex; gap: 20px; justify-content: space-between; margin: 36px 0 18px; }
.ksf__collection-link { color: var(--ksf-purple); font-weight: 800; text-decoration: none; white-space: nowrap; }
.ksf__collection-link:hover { color: var(--ksf-purple-dark); text-decoration: underline; }
.ksf__product-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ksf__product { background: var(--ksf-white); border: 1px solid var(--ksf-line); border-radius: 18px; box-shadow: 0 7px 24px rgba(50, 32, 61, .06); margin: 0; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.ksf__product:hover { box-shadow: 0 14px 34px rgba(50, 32, 61, .12); transform: translateY(-3px); }
.ksf__product-image { aspect-ratio: 1 / 1; background: #f4f2f2; display: block; overflow: hidden; position: relative; }
.ksf__product-image img { height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.ksf__product:hover .ksf__product-image img { transform: scale(1.025); }
.ksf__product-image span { background: var(--ksf-coral); border-radius: 999px; bottom: 10px; color: var(--ksf-white); font-size: 10px; font-weight: 800; left: 10px; letter-spacing: .06em; padding: 6px 9px; position: absolute; text-transform: uppercase; }
.ksf__product-body { padding: 16px; }
.ksf__product h4 { font-size: 15px; line-height: 1.4; margin: 0 0 7px; }
.ksf__product h4 a { color: var(--ksf-ink); text-decoration: none; }
.ksf__price { color: var(--ksf-purple); font-size: 16px; font-weight: 800; margin-bottom: 13px; }
.ksf__product-button { border: 1px solid var(--ksf-purple); border-radius: 10px; color: var(--ksf-purple); display: block; font-size: 13px; font-weight: 800; padding: 10px 12px; text-align: center; text-decoration: none; }
.ksf__product-button:hover { background: var(--ksf-purple); color: var(--ksf-white); }
.ksf__product-actions { display: grid; gap: 8px; }
.ksf__empty { background: var(--ksf-cream); border: 1px solid #f0e2d0; border-radius: 20px; margin: 28px 0; padding: clamp(24px, 5vw, 42px); text-align: center; }
.ksf__text-button { appearance: none; background: transparent; border: 0; color: var(--ksf-purple); cursor: pointer; font: inherit; font-weight: 800; margin-top: 14px; text-decoration: underline; }
.ksf__note { border-left: 4px solid var(--ksf-yellow); color: var(--ksf-muted); font-size: 13px; line-height: 1.6; margin: 34px auto 0; max-width: 900px; padding: 8px 0 8px 16px; }

@media (max-width: 900px) {
	.ksf__product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.ksf { padding-left: 12px; padding-right: 12px; }
	.ksf__steps { grid-template-columns: 1fr; }
	.ksf__tabs { grid-template-columns: 1fr; }
	.ksf__tab { min-height: 44px; }
	.ksf__tab-panel { padding: 24px 16px; }
	.ksf__field-row { grid-template-columns: 1fr; }
	.ksf__button { width: 100%; }
	.ksf--compact { padding: 0; width: 100%; }
	.ksf__recommendation { grid-template-columns: 1fr; text-align: center; }
	.ksf__size-badges { justify-content: center; }
	.ksf__products-head { align-items: flex-start; flex-direction: column; }
	.ksf__product-grid { gap: 12px; }
	.ksf__product-body { padding: 12px; }
	.ksf__product h4 { font-size: 13px; }
}

@media (max-width: 390px) {
	.ksf__product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.ksf *, .ksf *::before, .ksf *::after { scroll-behavior: auto !important; transition: none !important; }
}
