/* Страницы домов (код вместо Elementor). Все селекторы внутри .khs.
   Повторяет прежние страницы: размеры шрифтов, цвета, порядок и положение блоков сняты с них при ширине 1440 px.
   Отличия: контент по сетке сайта (1170 px, как шапка и подвал), телефон без обрезки, лента миниатюр и просмотр фото. */

.khs {
	--khs-red: #ED3237;      /* красная полоса, площадь в заголовке */
	--khs-red-2: #DE0222;    /* заголовки ПРЕФАБ, комплектация МАФ */
	--khs-olive: #9E7A4B;    /* заголовки полосы МАФ */
	--khs-band: #E6E7E8;     /* серые полосы под шапкой */
	--khs-band-line: #B8B8B8;
	--khs-line: #848283;     /* линии под параметрами и ассортиментом */
	--khs-ink: #171717;
	--khs-ink-2: #111111;
	--khs-icon: #666666;

	display: block;
	/* Шрифт с сайта (assets/fonts, без сдвигов при загрузке); через --site-font его берут и правила «Дополнительных стилей» */
	--site-font: 'Krov Plex', 'Krov Plex Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-family: var(--site-font);
	font-size: 16px;
	line-height: 1.4;
	color: var(--khs-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
/* Сброс для блоков страницы. Двойной .khs.khs - вес (0,2,0), сильнее правил темы Hello Elementor для button и a */
.khs *, .khs *::before, .khs *::after { box-sizing: border-box; }
.khs ::selection { background: var(--khs-red); color: #fff; }
.khs.khs :where(ul, li, dl, dd) { list-style: none; margin: 0; padding: 0; }
.khs.khs :where(p, h1, h2, h3) { margin: 0; }
.khs.khs :where(img) { display: block; max-width: 100%; height: auto; }
.khs.khs :where(a) { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.khs.khs :where(button) {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.khs.khs :where(button):focus:not(:focus-visible) { outline: none; }
.khs a:focus-visible, .khs button:focus-visible { outline: 2px solid var(--khs-red); outline-offset: 2px; }

.khs .khs-wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ---------- Шапка: заголовок слева вверху, как на прежних страницах ---------- */
.khs .khs-hero { position: relative; overflow: hidden; padding: 50px 0 114px; background: #3a3a3a; color: #fff; isolation: isolate; }
.khs .khs-hero__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.khs .khs-hero__h { max-width: 884px; font-size: 48px; line-height: 1; font-weight: 700; color: #fff; text-transform: none; }
.khs .khs-hero__sub { max-width: 884px; margin-top: 20px; font-size: 24px; line-height: 1.2; color: #fff; }

/* ---------- Серая полоса преимуществ ---------- */
.khs .khs-intro { padding: 40px 0; background: var(--khs-band); color: var(--khs-ink-2); }
.khs .khs-intro__grid { display: grid; grid-template-columns: 31% minmax(0, 1fr); gap: 20px; align-items: start; }
.khs .khs-intro__h { margin-bottom: 16px; font-size: 66px; line-height: 1; font-weight: 700; color: var(--khs-ink-2); text-transform: capitalize; }
.khs .khs-intro__text { font-size: 18px; line-height: 1.2; }
/* Преимущества идут колонками сверху вниз */
.khs .khs-feat { display: grid; grid-template-rows: repeat(var(--rows, 3), auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 20px; }
.khs .khs-feat__item { display: flex; align-items: center; gap: 20px; min-height: 90px; padding: 5px 0; }
.khs .khs-feat__ic { flex: 0 0 57px; }
.khs .khs-feat__ic img { width: 57px; height: 57px; object-fit: contain; }
.khs .khs-feat__body { min-width: 0; }
.khs .khs-feat__t { font-size: 16px; line-height: 1.2; font-weight: 700; color: var(--khs-red-2); text-transform: uppercase; }
.khs .khs-feat__d { font-size: 15px; line-height: 1.15; }
.khs .khs-feat__list li { position: relative; padding-left: 19px; font-size: 14px; line-height: 1.15; }
.khs .khs-feat__list li + li { margin-top: 16px; }
.khs .khs-feat__list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; background: var(--khs-red-2); }

/* ПРЕФАБ: текст слева без заголовка, справа 2 колонки с красными заголовками и списками */
.khs--prefab .khs-intro__grid { grid-template-columns: 28% minmax(0, 1fr); }
.khs--prefab .khs-feat { row-gap: 20px; }
.khs--prefab .khs-feat__item { align-items: flex-start; min-height: 0; padding: 10px 0 0; }
.khs--prefab .khs-feat__ic { flex-basis: 58px; display: flex; justify-content: center; }
.khs--prefab .khs-feat__ic img { width: 40px; height: 40px; }
.khs--prefab .khs-feat__t + .khs-feat__list,
.khs--prefab .khs-feat__t + .khs-feat__d { margin-top: 16px; }

/* МАФ: оливковый заголовок слева, справа 3 колонки: иконка в рамке, заголовок, мелкий текст */
.khs--maf .khs-intro__grid { grid-template-columns: 19% minmax(0, 1fr); }
.khs--maf .khs-intro__h { margin-bottom: 0; font-size: 32px; line-height: 1.1; font-weight: 400; color: var(--khs-olive); text-transform: none; }
.khs--maf .khs-intro__h + .khs-intro__text { margin-top: 60px; }
.khs--maf .khs-intro__text { line-height: 1.1; }
.khs--maf .khs-feat { row-gap: 40px; column-gap: 10px; }
.khs--maf .khs-feat__item { align-items: flex-start; gap: 10px; min-height: 0; padding: 0; }
.khs--maf .khs-feat__ic { flex-basis: 96px; }
.khs--maf .khs-feat__ic img { width: 96px; height: 96px; }
.khs--maf .khs-feat__t { font-size: 15px; line-height: 1; font-weight: 400; color: var(--khs-olive); }
.khs--maf .khs-feat__t + .khs-feat__d { margin-top: 14px; }
.khs--maf .khs-feat__d { font-size: 11px; line-height: 1.2; color: var(--khs-ink); }

/* ---------- Доп. полоса (сращённая доска) ---------- */
.khs .khs-extra { padding: 21px 0 20px; border-top: 1px solid var(--khs-band-line); background: var(--khs-band); color: var(--khs-ink-2); }
.khs .khs-extra__grid { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 30px; align-items: center; }
.khs .khs-extra__lead { position: relative; min-height: 110px; }
.khs .khs-extra__h { position: relative; z-index: 1; max-width: 240px; font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--khs-ink-2); text-transform: none; }
.khs .khs-extra__img { position: absolute; right: 0; top: 30px; width: 113px; height: 110px; object-fit: contain; }
.khs .khs-extra__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.khs .khs-extra__list li { display: flex; align-items: center; gap: 10px; }
.khs .khs-extra__ic { flex: 0 0 76px; }
.khs .khs-extra__ic img { width: 76px; height: 76px; object-fit: contain; }
.khs .khs-extra__list p { font-size: 15px; line-height: 1.15; }

/* ---------- Дом: текст и параметры | фото; под ним красная полоса ---------- */
.khs .khs-item { padding: 35px 0 55px; scroll-margin-top: 100px; }
.khs .khs-item:first-child { padding-top: 55px; }
.khs .khs-list--maf .khs-item { padding-top: 10px; }
.khs .khs-list--maf .khs-item:first-child { padding-top: 55px; }
.khs .khs-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; }
/* Колонка фото тянется на высоту текста: большое фото растёт (до квадрата), лента миниатюр - под ним */
.khs .khs-card__media { display: flex; flex-direction: column; container-type: inline-size; }
.khs .khs-card--rev .khs-card__media { order: -1; }
.khs .khs-card__h { font-size: 48px; line-height: 1.125; font-weight: 500; color: var(--khs-ink); text-transform: uppercase; }
.khs .khs-card__area { color: var(--khs-red); white-space: nowrap; text-transform: none; }
.khs .khs-card__area sup { font-size: .6em; line-height: 0; vertical-align: .75em; }
.khs .khs-card__desc { margin-top: 40px; font-size: 20px; line-height: 1.2; }
.khs .khs-card__desc p + p { margin-top: 24px; }
.khs .khs-card__desc ul { margin-top: 8px; }
.khs .khs-card__desc li { position: relative; padding-left: 18px; }
.khs .khs-card__desc li::before { content: ''; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; background: var(--khs-red-2); }

/* Параметры: подпись слева, иконка и число справа, линия снизу */
.khs .khs-params { margin-top: 44px; }
/* Одна сетка на все строки: колонка значений - не уже 20% и не уже самого длинного значения («8,64×11,64»), иконки строк стоят ровно друг под другом */
.khs .khs-params { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20%, max-content); align-items: end; }
.khs .khs-params__row { display: contents; }
.khs .khs-params dt,
.khs .khs-params dd { padding-bottom: 5px; border-bottom: 1px solid var(--khs-line); }
.khs .khs-params__row + .khs-params__row > * { margin-top: 20px; }
.khs .khs-params dt { padding-right: 16px; font-size: 22px; line-height: 1.1; }
.khs .khs-params dd { display: flex; align-items: center; gap: 8px; font-size: 22px; line-height: 1.1; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.khs .khs-params__ic { display: inline-flex; flex: 0 0 20px; width: 20px; height: 20px; align-items: center; justify-content: center; }
.khs .khs-params__ic img { width: 20px; height: 20px; object-fit: contain; }
.khs .khs-params__ic svg { width: 20px; height: 20px; fill: none; stroke: var(--khs-icon); stroke-width: 1.5; stroke-linecap: round; }

/* Фото: карусель + лента миниатюр по 4 */
.khs .khs-gal { display: flex; flex: 1 1 auto; flex-direction: column; }
/* Высоту карточки задаёт текст: фото занимает остаток колонки, но не ниже 16:9 и не выше квадрата */
.khs .khs-gal__main { position: relative; flex: 1 1 0; min-height: 56cqw; max-height: var(--khs-max, none); overflow: hidden; background: var(--khs-band); }
.khs .khs-gal__track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.khs .khs-gal__track::-webkit-scrollbar { display: none; }
.khs .khs-gal__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.khs .khs-gal__open { display: block; width: 100%; height: 100%; overflow: hidden; cursor: zoom-in; }
.khs .khs-gal--multi .khs-gal__open { cursor: grab; }
.khs .khs-gal__open img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.khs .khs-gal__track.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.khs .khs-gal__track.is-drag .khs-gal__open { cursor: grabbing; }
/* Стрелки на фото - при наведении мышью; на телефоне листают пальцем */
.khs .khs-gal__arrow { position: absolute; top: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: #fff; color: var(--khs-ink); opacity: 0; transition: opacity .2s ease, background-color .15s ease, color .15s ease; }
.khs .khs-gal__arrow--prev { left: 16px; }
.khs .khs-gal__arrow--next { right: 16px; }
.khs .khs-gal__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.khs .khs-gal__arrow:focus-visible { opacity: 1; }
.khs .khs-gal__arrow:disabled { visibility: hidden; }
/* Номер фото и значок «во весь экран» */
.khs .khs-gal__count { position: absolute; left: 16px; bottom: 16px; z-index: 1; padding: 5px 10px; border-radius: 6px; background: rgba(23, 23, 23, .62); color: #fff; font-size: 14px; line-height: 1.2; font-variant-numeric: tabular-nums; pointer-events: none; }
.khs .khs-gal__zoom { position: absolute; right: 16px; bottom: 16px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; background: rgba(23, 23, 23, .62); color: #fff; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.khs .khs-gal__zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.khs .khs-gal__strip { position: relative; flex: none; margin-top: 31px; }
.khs .khs-gal__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.khs .khs-gal__thumbs::-webkit-scrollbar { display: none; }
.khs .khs-gal__thumbs.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.khs .khs-gal__thumbs li { scroll-snap-align: start; }
/* Если рядом длинный текст и место под фото остаётся - миниатюры в несколько рядов (включает скрипт) */
.khs .khs-gal--rows .khs-gal__thumbs { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
.khs .khs-gal__thumb { position: relative; display: block; width: 100%; aspect-ratio: 150 / 172; overflow: hidden; background: var(--khs-band); }
.khs .khs-gal__thumb img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.khs .khs-gal__thumb::after { content: ''; position: absolute; inset: 0; border: 3px solid transparent; transition: border-color .15s ease; }
.khs .khs-gal__thumb.is-active::after { border-color: var(--khs-red); }
.khs .khs-gal__nav { position: absolute; top: 50%; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: #fff; color: var(--khs-ink); transition: background-color .15s ease, color .15s ease; }
.khs .khs-gal__nav[hidden] { display: none; }
.khs .khs-gal__nav--prev { left: 8px; }
.khs .khs-gal__nav--next { right: 8px; }
.khs .khs-gal__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Красная полоса: буклет слева, WhatsApp по центру, цена справа */
/* Полоса - ровно по ширине карточки дома (текст + фото) */
.khs .khs-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; margin-top: 55px; padding: 20px 60px; border-radius: 20px; background: var(--khs-red); color: #fff; }
.khs .khs-bar__a { font-size: 32px; line-height: 1; font-weight: 700; color: #fff; }
/* Ссылки в полосе: при наведении - тёмная подложка; поля компенсированы, текст стоит на месте */
.khs a.khs-bar__a { margin: -12px -20px; padding: 12px 20px; border-radius: 12px; transition: background-color .15s ease; }
.khs a.khs-bar__a:active { background: rgba(23, 23, 23, .26); }
.khs .khs-bar__a--pdf { justify-self: start; }
.khs .khs-bar__a--wa { justify-self: center; white-space: nowrap; }
.khs .khs-bar__a--price { justify-self: end; text-align: right; }
.khs .khs-bar a:focus-visible { outline-color: #fff; outline-offset: 0; }

/* ---------- МАФ: комплектация в 2 колонки, текст, ассортимент с линиями ---------- */
.khs .khs-list--maf .khs-card__desc { margin-top: 16px; }
.khs .khs-kit { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 24px; margin-top: 16px; font-size: 20px; line-height: 1.1; }
.khs .khs-kit__std li { position: relative; padding: 0 0 2px 18px; }
.khs .khs-kit__std li::before { content: ''; position: absolute; left: 0; top: .32em; width: 8px; height: 8px; background: var(--khs-red-2); }
.khs .khs-kit__h { font-weight: 700; color: var(--khs-red-2); }
.khs .khs-kit__comfort .khs-kit__h { font-weight: 600; }
.khs .khs-card__note { margin-top: 20px; font-size: 20px; line-height: 1.2; }
.khs .khs-card__note p + p { margin-top: 24px; }
.khs .khs-assort__h { margin-top: 26px; font-size: 20px; line-height: 1; font-weight: 400; color: var(--khs-ink); }
.khs .khs-assort { margin-top: 16px; }
.khs .khs-assort li { padding-bottom: 5px; border-bottom: 1px solid var(--khs-line); font-size: 20px; line-height: 1.1; }
.khs .khs-assort li + li { margin-top: 10px; }

/* Наведение - только там, где есть мышь (на телефоне не залипает) */
@media (hover: hover) {
	.khs a.khs-bar__a:hover { background: rgba(23, 23, 23, .16); }
	.khs .khs-gal__main:hover .khs-gal__arrow,
	.khs .khs-gal__main:hover .khs-gal__zoom { opacity: 1; }
	.khs .khs-gal__arrow:hover,
	.khs .khs-gal__nav:hover { background: var(--khs-red); color: #fff; }
	.khs .khs-gal__thumb:hover img { transform: scale(1.06); }
	.khs .khs-gal__thumb:not(.is-active):hover::after { border-color: rgba(237, 50, 55, .45); }
	.khs .khs-gal__thumbs.is-drag .khs-gal__thumb img { transform: none; }
}

/* Просмотр фото */
.khs .khs-lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 14, .94); color: #fff; }
.khs .khs-lb[open] { display: flex; align-items: center; justify-content: center; }
.khs .khs-lb::backdrop { background: rgba(12, 12, 14, .94); }
.khs .khs-lb__img { max-width: calc(100vw - 160px); max-height: calc(100dvh - 120px); object-fit: contain; }
.khs .khs-lb__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .15s ease; }
.khs .khs-lb__btn:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .24); }
.khs .khs-lb__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.khs .khs-lb__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.khs .khs-lb__next { right: 24px; top: 50%; transform: translateY(-50%); }
.khs .khs-lb__close { right: 24px; top: 24px; }
.khs .khs-lb__count { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-size: 14px; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.khs .khs-lb[data-single] .khs-lb__prev,
.khs .khs-lb[data-single] .khs-lb__next,
.khs .khs-lb[data-single] .khs-lb__count { display: none; }

/* ---------- Планшет и ноутбук ---------- */
@media (max-width: 1199px) {
	.khs .khs-hero__h { font-size: 42px; }
	.khs .khs-intro__grid,
	.khs--prefab .khs-intro__grid,
	.khs--maf .khs-intro__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.khs--maf .khs-intro__h + .khs-intro__text { margin-top: 16px; }
	.khs--maf .khs-feat { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
	.khs .khs-extra__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.khs .khs-extra__lead { display: flex; align-items: center; justify-content: space-between; min-height: 0; }
	.khs .khs-extra__img { position: static; width: 90px; height: 88px; }
	.khs .khs-card { gap: 30px; }
	.khs .khs-card__h { font-size: 36px; }
	.khs .khs-card__desc,
	.khs .khs-kit,
	.khs .khs-card__note,
	.khs .khs-assort__h,
	.khs .khs-assort li { font-size: 18px; }
	.khs .khs-params dt,
	.khs .khs-params dd { font-size: 18px; }
	.khs .khs-bar { padding: 18px 30px; }
	.khs .khs-bar__a { font-size: 24px; }
}

/* ---------- Телефон: всё в одну колонку, текст дома перед фото ---------- */
@media (max-width: 767px) {
	.khs .khs-wrap { padding: 0 16px; }
	.khs .khs-hero { padding: 36px 0 56px; }
	.khs .khs-hero__h { font-size: 30px; line-height: 1.1; }
	.khs .khs-hero__sub { margin-top: 14px; font-size: 18px; }
	.khs .khs-intro { padding: 32px 0; }
	.khs .khs-intro__h { font-size: 44px; }
	.khs--maf .khs-intro__h { font-size: 28px; }
	.khs .khs-intro__text { font-size: 17px; }
	.khs .khs-feat,
	.khs--maf .khs-feat { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
	.khs .khs-feat__item { min-height: 0; }
	.khs--maf .khs-feat__ic { flex-basis: 80px; }
	.khs--maf .khs-feat__ic img { width: 80px; height: 80px; }
	.khs--maf .khs-feat__d { font-size: 13px; }
	.khs .khs-extra { padding: 24px 0; }
	.khs .khs-extra__h { font-size: 21px; }
	.khs .khs-extra__img { width: 70px; height: 68px; }
	.khs .khs-extra__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.khs .khs-extra__ic,
	.khs .khs-extra__ic img { flex-basis: 60px; width: 60px; height: 60px; }
	.khs .khs-item,
	.khs .khs-list--maf .khs-item { padding: 40px 0; }
	.khs .khs-item:first-child,
	.khs .khs-list--maf .khs-item:first-child { padding-top: 40px; }
	.khs .khs-card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.khs .khs-card--rev .khs-card__media { order: 0; }
	.khs .khs-card__h { font-size: 30px; }
	.khs .khs-card__desc { margin-top: 20px; }
	.khs .khs-card__desc,
	.khs .khs-kit,
	.khs .khs-card__note,
	.khs .khs-assort__h,
	.khs .khs-assort li { font-size: 17px; }
	.khs .khs-params { margin-top: 28px; }
	.khs .khs-params__row + .khs-params__row > * { margin-top: 14px; }
	.khs .khs-params dt,
	.khs .khs-params dd { font-size: 17px; }
	.khs .khs-kit { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.khs .khs-gal,
	.khs .khs-gal__main { flex: none; }
	.khs .khs-gal__main { aspect-ratio: var(--khs-ar, 4 / 3); min-height: 0; max-height: none; }
	.khs .khs-gal__strip { margin-top: 10px; }
	.khs .khs-gal__count { left: 10px; bottom: 10px; font-size: 13px; }
	.khs .khs-gal__thumbs { grid-auto-columns: calc((100% - 18px) / 4); gap: 6px; }
	.khs .khs-bar { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 28px 0 0; padding: 6px 20px; border-radius: 16px; text-align: center; }
	.khs .khs-bar__a,
	.khs a.khs-bar__a { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 0; border-radius: 0; font-size: 21px; }
	.khs .khs-bar__a--pdf,
	.khs .khs-bar__a--wa,
	.khs .khs-bar__a--price { justify-self: stretch; text-align: center; }
	.khs .khs-bar__a:empty { display: none; }
	.khs .khs-bar__a + .khs-bar__a { border-top: 1px solid rgba(255, 255, 255, .35); }
	.khs .khs-bar__a:empty + .khs-bar__a { border-top: 0; }
	.khs .khs-lb__img { max-width: 100vw; max-height: calc(100dvh - 140px); }
	.khs .khs-lb__prev,
	.khs .khs-lb__next { top: auto; bottom: 16px; transform: none; }
	.khs .khs-lb__prev { left: 16px; }
	.khs .khs-lb__next { right: 16px; }
	.khs .khs-lb__close { top: 16px; right: 16px; }
	.khs .khs-lb__count { bottom: 30px; }
}

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