/**
 * Karlinsky home page. Scoped under .kh; same tokens as the category page.
 */
.kh {
	--kh-bg: #FBF7F0;
	--kh-bg-alt: #F4EDE2;
	--kh-ink: #2A1C13;
	--kh-ink-soft: rgba(42, 28, 19, .72);
	--kh-ink-weak: rgba(42, 28, 19, .6);
	--kh-brown: #6E4227;
	--kh-gold: #B79741;
	--kh-gold-bright: #C9A84C;
	--kh-on-dark: #FBF7F0;
	--kh-on-dark-soft: rgba(251, 247, 240, .8);
	--kh-line: rgba(42, 28, 19, .12);
	--kh-line-strong: rgba(42, 28, 19, .22);
	--kh-serif: "DIDA", "Frank Ruhl Libre", "Noto Serif Hebrew", Georgia, serif;
	--kh-sans: "RAG", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--kh-max: 1320px;
	--kh-pad-x: clamp(16px, 3vw, 32px);
	--kh-pad-y: clamp(44px, 5vw, 72px);
	--kh-radius: 4px;

	background: var(--kh-bg);
	color: var(--kh-ink);
	font-family: var(--kh-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	direction: rtl;
}
.kh *, .kh *::before, .kh *::after { box-sizing: border-box; }
.kh h1, .kh h2, .kh h3, .kh p, .kh ul, .kh ol, .kh figure { margin: 0; }
.kh ul, .kh ol { padding: 0; list-style: none; }
.kh img { max-width: 100%; height: auto; display: block; }
.kh a { color: var(--kh-brown); text-decoration: none; transition: color .18s ease; }
.kh a:hover { color: var(--kh-ink); }
.kh :focus-visible { outline: 2px solid var(--kh-gold); outline-offset: 3px; }
.kh [id] { scroll-margin-top: 100px; }

.kh .kh-wrap { max-width: var(--kh-max); margin-inline: auto; padding-inline: var(--kh-pad-x); }
.kh .kh-wrap--narrow { max-width: 880px; }
.kh .kh-section { padding-block: var(--kh-pad-y); }
.kh .kh-section--alt { background: var(--kh-bg-alt); border-block: 1px solid rgba(42, 28, 19, .08); }
.kh .kh-section--line { border-top: 1px solid rgba(42, 28, 19, .08); }
.kh .kh-section--dark { background: var(--kh-ink); color: var(--kh-on-dark); }
.kh .kh-section--dark a { color: var(--kh-on-dark); }

/* Type */
.kh .kh-h1, .kh .kh-h2, .kh .kh-h3--serif, .kh .kh-tile__title, .kh .kh-aud__title, .kh .kh-steps__n { font-family: var(--kh-serif); font-weight: 500; line-height: 1.1; }
.kh .kh-h1 { font-size: clamp(40px, 4.6vw, 62px); color: var(--kh-on-dark); line-height: 1.06; text-wrap: balance; }
.kh .kh-h2 { font-size: clamp(28px, 3vw, 38px); text-wrap: balance; }
.kh .kh-h2--big { font-size: clamp(30px, 3.3vw, 42px); }
.kh .kh-h2--small { font-size: clamp(26px, 2.6vw, 32px); }
.kh .kh-h3 { font-family: var(--kh-sans); font-size: 19px; font-weight: 600; line-height: 1.3; }
.kh .kh-h3--serif { font-size: 24px; font-weight: 500; }
.kh .kh-eyebrow { color: var(--kh-gold-bright); font-size: 14px; letter-spacing: .08em; font-weight: 500; }
.kh .kh-eyebrow--brown { color: var(--kh-brown); }
.kh .kh-lead { color: var(--kh-ink-soft); font-size: 16px; max-width: 640px; text-wrap: pretty; }
.kh .kh-lead--narrow { max-width: 480px; }
.kh .kh-section--dark .kh-lead { color: var(--kh-on-dark-soft); font-size: 17px; max-width: 520px; }
.kh .kh-link { font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.kh .kh-ic { width: 1em; height: 1em; flex: 0 0 auto; }
.kh .kh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.kh .kh-head > div { display: flex; flex-direction: column; gap: 6px; }
.kh .kh-head > .kh-chips { flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; }
.kh .kh-head--tight { margin-bottom: 20px; }
.kh .kh-center { display: flex; justify-content: center; padding-top: 32px; }

/* Buttons & chips */
.kh .kh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; line-height: 1.2; text-align: center; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.kh .kh-btn .kh-ic { width: 18px; height: 18px; }
.kh .kh-btn--primary { background: var(--kh-brown); color: var(--kh-on-dark); }
.kh .kh-btn--primary:hover { background: var(--kh-ink); color: var(--kh-on-dark); }
.kh .kh-btn--ghost { background: transparent; color: var(--kh-ink); border-color: var(--kh-line-strong); }
.kh .kh-btn--ghost:hover { border-color: var(--kh-ink); color: var(--kh-ink); }
.kh .kh-btn--light, .kh .kh-section--dark .kh-btn--light, .kh .kh-section--dark .kh-btn--light:hover { background: var(--kh-on-dark); color: var(--kh-ink); }
.kh .kh-btn--light:hover { background: #fff; }
.kh .kh-btn--outline-light { background: transparent; color: var(--kh-on-dark); border-color: rgba(251, 247, 240, .4); }
.kh .kh-btn--outline-light:hover { border-color: var(--kh-on-dark); color: var(--kh-on-dark); }
.kh .kh-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.kh .kh-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--kh-line-strong); border-radius: 999px; background: #fff; color: var(--kh-ink); font-size: 15px; font-weight: 500; white-space: nowrap; line-height: 1; transition: border-color .18s ease; }
.kh .kh-chip:hover { border-color: var(--kh-brown); color: var(--kh-ink); }
.kh .kh-chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.kh .kh-hero { position: relative; min-height: 640px; background: var(--kh-ink); overflow: hidden; display: flex; }
.kh .kh-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.kh .kh-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (prefers-reduced-motion: reduce) { .kh .kh-hero__video { display: none; } }
.kh .kh-hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42, 28, 19, .94) 0%, rgba(42, 28, 19, .8) 40%, rgba(42, 28, 19, .12) 100%); }
.kh .kh-hero__in { position: relative; width: 100%; padding-block: 72px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.kh .kh-hero__text { display: flex; flex-direction: column; gap: 22px; max-width: 660px; }
.kh .kh-hero__logo { height: 120px; width: auto; align-self: flex-start; }
.kh .kh-hero__p { color: rgba(251, 247, 240, .86); font-size: 19px; line-height: 1.6; max-width: 560px; text-wrap: pretty; }
.kh .kh-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 6px; }
.kh .kh-hero__cta .kh-btn { min-width: 220px; }
.kh .kh-hero__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--kh-on-dark); font-size: 16px; font-weight: 500; }
.kh .kh-hero__phone .kh-ic { width: 18px; height: 18px; }
.kh .kh-trust { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 20px; border-top: 1px solid rgba(251, 247, 240, .22); color: var(--kh-on-dark); font-size: 15px; }
.kh .kh-trust li { display: flex; align-items: center; gap: 10px; }
.kh .kh-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--kh-gold-bright); flex: 0 0 auto; }

/* Category tiles */
.kh .kh-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.kh .kh-tile { position: relative; grid-column: span 2; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: var(--kh-radius); background: var(--kh-ink); color: var(--kh-on-dark); }
.kh .kh-tile--big { grid-column: span 3; min-height: 400px; }
.kh .kh-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.kh .kh-tile:hover img { transform: scale(1.04); }
.kh .kh-tile:hover { color: var(--kh-on-dark); }
.kh .kh-tile__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 28, 19, 0) 40%, rgba(42, 28, 19, .9) 100%); }
.kh .kh-tile__text { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.kh .kh-tile__title { font-size: 34px; }
.kh .kh-tile:not(.kh-tile--big) .kh-tile__title { font-size: 28px; }
.kh .kh-tile:not(.kh-tile--big) .kh-tile__text { padding: 24px; }
.kh .kh-tile__sub { font-size: 15px; color: rgba(251, 247, 240, .82); }

/* Audiences */
.kh .kh-aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kh .kh-aud__card { display: flex; flex-direction: column; gap: 14px; color: var(--kh-ink); }
.kh .kh-aud__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--kh-radius); background: var(--kh-bg); }
.kh .kh-aud__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kh .kh-aud__card:hover img { transform: scale(1.04); }
.kh .kh-aud__body { display: flex; flex-direction: column; gap: 4px; }
.kh .kh-aud__title { font-size: 24px; }
.kh .kh-aud__p { font-size: 14px; color: var(--kh-ink-soft); }
.kh .kh-aud__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--kh-brown); margin-top: 4px; }
.kh .kh-other { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 28px; margin-top: 32px; background: var(--kh-bg); border-radius: var(--kh-radius); border: 1px solid rgba(42, 28, 19, .1); }
.kh .kh-other > div:first-child { display: flex; flex-direction: column; gap: 4px; flex: 1 1 420px; }
.kh .kh-other p { font-size: 15px; color: var(--kh-ink-soft); }
.kh .kh-other__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Steps */
.kh .kh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kh .kh-steps li { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--kh-bg-alt); border-radius: var(--kh-radius); border: 1px solid rgba(42, 28, 19, .08); }
.kh .kh-steps__n { font-size: 40px; line-height: 1; color: var(--kh-gold); }
.kh .kh-steps p { font-size: 15px; color: var(--kh-ink-soft); }

/* Product cards */
.kh .kh-card[hidden] { display: none; }
.kh .kh-center .kh-btn { min-width: 260px; }
.kh .kh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.kh .kh-card__link { display: flex; flex-direction: column; gap: 14px; color: var(--kh-ink); }
.kh .kh-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--kh-bg-alt); border-radius: var(--kh-radius); }
.kh .kh-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kh .kh-card__link:hover .kh-card__img { transform: scale(1.04); }
.kh .kh-badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--kh-bg); color: var(--kh-ink); font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 3px; border: 1px solid rgba(42, 28, 19, .15); }
.kh .kh-card__body { display: flex; flex-direction: column; gap: 4px; }
.kh .kh-card__title { font-family: var(--kh-sans); font-size: 17px; font-weight: 600; line-height: 1.35; }
.kh .kh-card__sub { font-size: 14px; color: var(--kh-ink-weak); }
.kh .kh-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.kh .kh-card__price { font-size: 17px; font-weight: 600; white-space: nowrap; }
.kh .kh-sw { display: flex; align-items: center; gap: 5px; }
.kh .kh-sw__dot { width: 18px; height: 18px; border-radius: 50%; overflow: hidden; border: 1px solid var(--kh-line); display: inline-block; flex: 0 0 auto; }
.kh .kh-sw__dot img, .kh .kh-palette li img { width: 100%; height: 100%; object-fit: cover; scale: 1.5; }
.kh .kh-sw__more { font-size: 12px; color: var(--kh-ink-weak); margin-inline-start: 3px; }

/* Custom design */
.kh .kh-custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.kh .kh-custom__text { display: flex; flex-direction: column; gap: 20px; }
.kh .kh-custom__p { font-size: 17px; line-height: 1.7; color: rgba(42, 28, 19, .78); max-width: 520px; }
.kh .kh-custom__boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.kh .kh-box { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--kh-bg); border-radius: var(--kh-radius); border: 1px solid rgba(42, 28, 19, .08); }
.kh .kh-box .kh-h3 { font-size: 16px; }
.kh .kh-box p { font-size: 14px; color: var(--kh-ink-soft); }
.kh .kh-box .kh-link { font-size: 14px; margin-top: 4px; }
.kh .kh-custom__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--kh-radius); background: var(--kh-bg); }
.kh .kh-custom__media img { width: 100%; height: 100%; object-fit: cover; }
.kh .kh-custom__media figcaption { position: absolute; inset-inline-end: 16px; bottom: 16px; background: var(--kh-bg); color: var(--kh-ink); font-size: 13px; padding: 8px 12px; border-radius: 3px; border: 1px solid var(--kh-line); }

/* Projects */
.kh .kh-projects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--kh-line); border-bottom: 1px solid var(--kh-line); }
.kh .kh-projects li { padding: 24px 20px; border-inline-start: 1px solid var(--kh-line); font-size: 15px; line-height: 1.5; }
.kh .kh-projects li:first-child { padding-inline-start: 0; }
.kh .kh-projects li:last-child { border-inline-start: 0; padding-inline-end: 0; }

/* Help */
.kh .kh-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.kh .kh-help__text { display: flex; flex-direction: column; gap: 20px; }
.kh .kh-help__logo { height: 56px; width: auto; align-self: flex-start; opacity: .9; }
.kh .kh-help .kh-h2 { color: var(--kh-on-dark); font-size: clamp(28px, 3.2vw, 40px); }
.kh .kh-help__swatches { display: flex; flex-direction: column; gap: 16px; }
.kh .kh-palette { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.kh .kh-palette li > span { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid rgba(251, 247, 240, .18); }
.kh .kh-palette li img { display: block; }
.kh .kh-palette__note { font-size: 14px; color: rgba(251, 247, 240, .6); }

/* About */
.kh .kh-about { display: flex; flex-direction: column; gap: 16px; }
.kh .kh-about__logo { height: 80px; width: auto; align-self: flex-start; margin-bottom: 6px; }
.kh .kh-about p { font-size: 16px; line-height: 1.75; color: rgba(42, 28, 19, .8); }

/* Tablet */
@media (max-width: 1100px) {
	.kh .kh-aud, .kh .kh-steps, .kh .kh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kh .kh-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; gap: 0 24px; }
	.kh .kh-projects li, .kh .kh-projects li:first-child, .kh .kh-projects li:last-child { border: 0; border-bottom: 1px solid var(--kh-line); padding: 16px 0; }
}

/* Mobile */
@media (max-width: 899px) {
	.kh .kh-hero { min-height: 600px; align-items: flex-end; }
	.kh .kh-hero__img { object-position: 50% 30%; }
	.kh .kh-hero__scrim { background: linear-gradient(180deg, rgba(42, 28, 19, .2) 0%, rgba(42, 28, 19, .6) 45%, rgba(42, 28, 19, .96) 100%); }
	.kh .kh-hero__in { padding-block: 28px 24px; gap: 20px; }
	.kh .kh-hero__logo { height: 88px; }
	.kh .kh-h1 { font-size: 40px; }
	.kh .kh-hero__p { font-size: 16px; }
	.kh .kh-hero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
	.kh .kh-hero__cta .kh-btn { width: 100%; }
	.kh .kh-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 14px; }
	.kh .kh-head { margin-bottom: 20px; }
	.kh .kh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.kh .kh-tile, .kh .kh-tile--big { grid-column: span 1; min-height: 220px; }
	.kh .kh-tile--big:first-child { grid-column: span 2; min-height: 260px; }
	.kh .kh-tile__title, .kh .kh-tile:not(.kh-tile--big) .kh-tile__title { font-size: 24px; }
	.kh .kh-tile__text, .kh .kh-tile:not(.kh-tile--big) .kh-tile__text { padding: 16px; }
	.kh .kh-tile__sub { font-size: 13px; }
	.kh .kh-aud { gap: 20px 12px; }
	.kh .kh-aud__title { font-size: 20px; }
	.kh .kh-other { padding: 18px; }
	.kh .kh-steps { grid-template-columns: 1fr; gap: 12px; }
	.kh .kh-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 4px; padding: 18px; }
	.kh .kh-steps__n { grid-row: 1 / 3; font-size: 30px; }
	.kh .kh-grid { gap: 24px 12px; }
	.kh .kh-card__link { gap: 10px; }
	.kh .kh-card__title { font-size: 15px; }
	.kh .kh-card__sub { font-size: 13px; }
	.kh .kh-card__price { font-size: 15px; }
	.kh .kh-custom { grid-template-columns: 1fr; gap: 28px; }
	.kh .kh-custom__media { order: -1; aspect-ratio: 4 / 3; }
	.kh .kh-custom__boxes { grid-template-columns: 1fr; }
	.kh .kh-help { grid-template-columns: 1fr; gap: 28px; }
	.kh .kh-palette { gap: 6px; }
	.kh .kh-btns { flex-direction: column; }
	.kh .kh-btns .kh-btn { width: 100%; }
	.kh .kh-center .kh-btn { width: 100%; }
	.kh .kh-about__logo { height: 64px; }
}

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