/* Киа Хендай Клуб Сервис — основная таблица стилей
   Палитра: холодная бумага сервисной книжки, тёмно-синие чернила, штемпельная синь, янтарь «пора на ТО». */

@font-face { font-family: "Geologica"; src: url(../fonts/geologica-cyrillic-full-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Geologica"; src: url(../fonts/geologica-latin-full-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; 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+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; src: url(../fonts/onest-cyrillic-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; src: url(../fonts/onest-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; 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+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
	--paper: #e9edf1;
	--sheet: #f7f9fb;
	--white: #ffffff;
	--ink: #16233a;
	--ink-2: #2c3b55;
	--mute: #5a6880;
	--line: #c8d1dc;
	--line-2: #dde3ea;
	--stamp: #3a3fd4;
	--stamp-2: #2a2eb0;
	--stamp-soft: #e3e4fb;
	--amber: #f2a516;
	--amber-soft: #fff1d3;
	--ok: #1c7c54;
	--err: #b42318;

	--f-head: "Geologica", "Onest", system-ui, sans-serif;
	--f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1240px;
	--gut: clamp(16px, 4vw, 40px);
	--r-s: 8px;
	--r-m: 14px;
	--r-l: 22px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font: 400 17px/1.6 var(--f-body);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--stamp); color: #fff; }
.kh-vh, .kh-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kh-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.kh-skip:focus { left: 8px; }

.kh-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ——— Типографика ——— */
.kh-h1, .kh-h2, .kh-h3, .kh-logo-t b, .kh-svc-t, .kh-cell-km, .kh-model-cloud span, .kh-timeline b, .kh-steps-list b, .kh-post-t, .kh-case-t, .kh-404-km, .kh-book-t, .kh-modal-t, .kh-foot-name {
	font-family: var(--f-head);
	font-variation-settings: "SHRP" 55;
	letter-spacing: -0.015em;
}
.kh-h1 { font-size: clamp(38px, 6.2vw, 78px); line-height: 1.02; font-weight: 750; margin: 0 0 22px; text-wrap: balance; }
.kh-h1--page { font-size: clamp(34px, 5vw, 60px); margin-top: 8px; }
.kh-h1--art { font-size: clamp(30px, 4.4vw, 52px); max-width: 22ch; }
.kh-h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; font-weight: 700; margin: 0 0 14px; text-wrap: balance; }
.kh-h3 { font-size: 22px; line-height: 1.2; font-weight: 650; margin: 0 0 10px; }
.kh-lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.kh-note { color: var(--mute); font-size: 15px; max-width: 70ch; }
.kh-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--stamp); padding-bottom: 2px; transition: color .2s; }
.kh-link:hover { color: var(--stamp); }
.kh-split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.kh-split-w > span { display: inline-block; will-change: transform; }

/* ——— Кнопки ——— */
.kh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
	font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.kh-btn .kh-ico { width: 20px; height: 20px; }
.kh-btn:active { transform: scale(.97); }
.kh-btn--ink { background: var(--ink); color: #fff; }
.kh-btn--ink:hover { background: var(--stamp); }
.kh-btn--stamp { background: var(--stamp); color: #fff; }
.kh-btn--stamp:hover { background: var(--stamp-2); }
.kh-btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.kh-btn--line:hover { background: var(--ink); color: #fff; }
.kh-btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ——— Шапка ——— */
.kh-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.kh-head.is-scrolled { border-bottom-color: var(--line); }
.kh-head-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.kh-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; color: var(--ink); }
.kh-logo-mark { width: 38px; height: 38px; }
.kh-logo-t { display: flex; flex-direction: column; line-height: 1.05; }
.kh-logo-t b { font-size: 17px; font-weight: 750; }
.kh-logo-t span { font-size: 13px; color: var(--mute); font-weight: 500; }
.kh-nav { margin-left: auto; }
.kh-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.kh-nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; }
.kh-nav a:hover { background: var(--white); color: var(--ink); }
.kh-nav a[aria-current] { background: var(--ink); color: #fff; }
.kh-head-act { display: flex; align-items: center; gap: 14px; }
.kh-head-tel { font-weight: 650; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kh-burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--white); align-items: center; justify-content: center; cursor: pointer; }
.kh-burger .kh-ico { width: 22px; height: 22px; }
.kh-menu { border-top: 1px solid var(--line); background: var(--paper); padding: 8px var(--gut) 24px; }
.kh-menu ul { list-style: none; margin: 0; padding: 0; }
.kh-menu li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-2); font: 650 24px/1.2 var(--f-head); text-decoration: none; }
.kh-menu-tel { display: inline-block; margin-top: 20px; font-weight: 700; font-size: 22px; text-decoration: none; }
.kh-menu-addr { color: var(--mute); margin: 6px 0 0; }

@media (max-width: 1180px) { .kh-nav a { padding: 8px 9px; font-size: 14px; } .kh-head-tel { display: none; } }
@media (max-width: 960px) {
	.kh-nav { display: none; }
	.kh-head-act { margin-left: auto; }
	.kh-burger { display: inline-flex; }
}
@media (max-width: 520px) {
	.kh-head-act .kh-btn { display: none; }
	.kh-logo-t b { font-size: 16px; }
}

/* ——— Крошки ——— */
.kh-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--mute); }
.kh-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.kh-crumbs a { text-decoration: none; }
.kh-crumbs a:hover { color: var(--stamp); }

/* ——— Секции ——— */
.kh-sec { padding: clamp(64px, 9vw, 120px) 0; }
.kh-sec--tight { padding: clamp(40px, 6vw, 72px) 0; }
.kh-sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 36px; }
.kh-sec-head .kh-h2 { margin: 0; }
.kh-sec-sub { max-width: 46ch; color: var(--mute); margin: 0; }
.kh-more { margin: 36px 0 0; }
.kh-page { padding-top: 28px; padding-bottom: 72px; }
.kh-page--flush { padding-bottom: 0; }

/* ——— Первый экран ——— */
.kh-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); }
.kh-hero--page { padding-top: 28px; }
.kh-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.kh-hero-kicker { font-weight: 600; color: var(--stamp); margin: 0 0 18px; }
.kh-hero-lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; margin: 0 0 30px; }
.kh-hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 36px; }
.kh-hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.kh-hero-facts div { padding: 16px 24px 0 0; }
.kh-hero-facts div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.kh-hero-facts dt { font-size: 14px; color: var(--mute); }
.kh-hero-facts dd { margin: 2px 0 0; font: 700 20px/1.2 var(--f-head); white-space: nowrap; }
@media (max-width: 960px) {
	.kh-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.kh-hero-facts { grid-template-columns: 1fr 1fr; }
	.kh-hero-facts div, .kh-hero-facts div + div { border: 0; padding: 14px 16px 0 0; margin: 0; }
	.kh-hero-act .kh-btn { flex: 1 1 100%; }
}

/* ——— Сервисная книжка ——— */
.kh-book {
	position: relative; background: var(--sheet); border-radius: var(--r-l);
	padding: clamp(20px, 3vw, 32px);
	box-shadow: 0 1px 0 var(--white) inset, 0 30px 60px -30px rgba(22, 35, 58, .35), 0 0 0 1px var(--line-2);
	background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(58, 63, 212, .05) 31px 32px);
}
.kh-book::before { content: ""; position: absolute; left: 22px; top: -9px; width: 64px; height: 18px; border-radius: 4px; background: var(--amber); opacity: .9; transform: rotate(-3deg); }
.kh-book-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.kh-book-t { margin: 0; font-size: 22px; font-weight: 700; }
.kh-book-km { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mute); }
.kh-book-km-in { display: flex; align-items: baseline; gap: 6px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-s); padding: 6px 12px; }
.kh-book-km-in input { width: 7.5ch; border: 0; outline: 0; background: transparent; font: 700 24px/1 var(--f-head); color: var(--ink); font-variant-numeric: tabular-nums; padding: 0; }
.kh-book-km-in i { font-style: normal; font-weight: 600; color: var(--mute); }
.kh-book-km-in:focus-within { border-color: var(--stamp); box-shadow: 0 0 0 4px var(--stamp-soft); }
.kh-book-range { width: 100%; margin: 6px 0 18px; accent-color: var(--stamp); height: 28px; cursor: pointer; }
.kh-book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; margin: 0 0 20px; padding: 0; }
.kh-cell {
	position: relative; aspect-ratio: 1.15; border: 1.5px dashed var(--line); border-radius: var(--r-m);
	padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; background: var(--white);
	transition: border-color .3s, background .3s;
}
.kh-cell-km { font-size: clamp(20px, 2.2vw, 28px); font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.kh-cell-km small { font-size: .5em; font-weight: 600; color: var(--mute); }
.kh-cell-t { font-size: 12.5px; color: var(--mute); line-height: 1.2; }
.kh-stamp { position: absolute; inset: 0; display: grid; place-items: center; color: var(--stamp); opacity: 0; pointer-events: none; }
.kh-stamp svg { width: 70%; transform: rotate(-14deg); mix-blend-mode: multiply; }
.kh-cell.is-done { border-style: solid; border-color: var(--stamp-soft); }
.kh-cell.is-done .kh-stamp { opacity: .78; }
.kh-cell.is-done .kh-cell-km, .kh-cell.is-done .kh-cell-t { opacity: .45; }
.kh-cell.is-next { border: 2px solid var(--amber); background: var(--amber-soft); }
.kh-cell.is-next .kh-cell-t { color: var(--ink); font-weight: 600; }
.kh-cell.is-next::after { content: ""; position: absolute; right: 10px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(242, 165, 22, .6); animation: kh-pulse 1.8s infinite; }
@keyframes kh-pulse { 70% { box-shadow: 0 0 0 10px rgba(242, 165, 22, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 165, 22, 0); } }
.kh-book-next { border-top: 1.5px solid var(--line); padding-top: 18px; }
.kh-book-next-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; font-weight: 650; font-size: 18px; }
.kh-book-next-h b { font-family: var(--f-head); white-space: nowrap; }
.kh-book-list { margin: 0 0 12px; padding: 0; list-style: none; columns: 2; column-gap: 24px; font-size: 15px; }
.kh-book-list li { break-inside: avoid; padding: 3px 0 3px 18px; position: relative; color: var(--ink-2); }
.kh-book-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--stamp); }
.kh-book-hint { font-size: 13px; color: var(--mute); margin: 0 0 16px; }
@media (max-width: 560px) {
	.kh-book-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
	.kh-cell { padding: 7px 7px; aspect-ratio: .9; border-radius: 10px; }
	.kh-cell-t { font-size: 10.5px; }
	.kh-book-list { columns: 1; }
	.kh-book .kh-btn { width: 100%; }
}

/* ——— Услуги: прайс-строки ——— */
.kh-svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1.5px solid var(--ink); }
.kh-svc-list li { border-bottom: 1px solid var(--line); }
.kh-svc-row { display: grid; grid-template-columns: 44px 1fr auto 28px; grid-template-areas: "i t p g" "i x x g"; gap: 2px 14px; align-items: center; padding: 20px 4px; text-decoration: none; transition: background .25s; border-radius: var(--r-s); }
.kh-svc-ico { grid-area: i; width: 44px; height: 44px; border-radius: 12px; background: var(--white); display: grid; place-items: center; color: var(--stamp); transition: background .25s, color .25s; }
.kh-svc-ico .kh-ico { width: 24px; height: 24px; }
.kh-svc-t { grid-area: t; font-size: 21px; font-weight: 650; line-height: 1.2; }
.kh-svc-x { grid-area: x; color: var(--mute); font-size: 15px; line-height: 1.45; }
.kh-svc-p { grid-area: p; font-weight: 650; font-size: 15px; white-space: nowrap; }
.kh-svc-go { grid-area: g; color: var(--line); transition: color .25s, transform .3s var(--ease); }
.kh-svc-go .kh-ico { width: 22px; height: 22px; }
.kh-svc-row:hover .kh-svc-ico { background: var(--stamp); color: #fff; }
.kh-svc-row:hover .kh-svc-go { color: var(--stamp); transform: translateX(4px); }
.kh-svc-list--page { margin-top: 28px; }
@media (max-width: 860px) { .kh-svc-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
	.kh-svc-row { grid-template-columns: 40px 1fr 22px; grid-template-areas: "i t g" "i p g" "x x x"; }
	.kh-svc-p { color: var(--stamp); }
	.kh-svc-x { margin-top: 6px; }
}

/* ——— Модели: облако названий ——— */
.kh-models { background: var(--ink); color: #fff; overflow: hidden; }
.kh-models .kh-sec-sub { color: #a9b6cb; }
.kh-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-bottom: 28px; }
.kh-tabs button { border: 0; background: transparent; color: #cfd8e6; padding: 10px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.kh-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.kh-model-cloud { list-style: none; margin: 0; padding: 0 var(--gut); max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 6px 0; }
.kh-model-cloud li { transition: opacity .35s, filter .35s; }
.kh-model-cloud li.is-off { opacity: .14; filter: blur(1px); pointer-events: none; }
.kh-model-cloud a { display: flex; align-items: baseline; gap: 10px; text-decoration: none; padding: 4px 22px 4px 0; margin-right: 22px; border-right: 1px solid rgba(255, 255, 255, .14); }
.kh-model-cloud small { font-size: 13px; color: #8d9bb3; font-weight: 600; }
.kh-model-cloud span { font-size: clamp(30px, 4.6vw, 64px); font-weight: 700; line-height: 1.12; transition: color .25s; }
.kh-model-cloud em { font-style: normal; font-size: 13px; color: #8d9bb3; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.kh-model-cloud a:hover span, .kh-model-cloud a:focus-visible span { color: var(--amber); }
.kh-model-cloud a:hover em, .kh-model-cloud a:focus-visible em { opacity: 1; transform: none; }
@media (hover: none) { .kh-model-cloud em { opacity: 1; transform: none; } }

/* ——— Команда / таймлайн ——— */
.kh-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.kh-timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.kh-timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.kh-timeline::after { content: ""; position: absolute; left: 7px; top: 10px; width: 2px; height: var(--tl, 100%); background: var(--stamp); }
.kh-timeline li { position: relative; padding: 0 0 34px; }
.kh-timeline li::before { content: ""; position: absolute; left: -30px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--stamp); }
.kh-timeline li:last-child::before { background: var(--amber); border-color: var(--amber); }
.kh-timeline b { display: block; font-size: 28px; font-weight: 750; line-height: 1.1; }
.kh-timeline span { color: var(--ink-2); }
@media (max-width: 860px) { .kh-team-grid { grid-template-columns: 1fr; } }

/* ——— Шаги визита ——— */
.kh-steps { background: var(--white); }
.kh-steps-list { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.kh-steps-list li { counter-increment: s; padding: 0 24px 0 0; position: relative; }
.kh-steps-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.kh-steps-list li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); font: 700 17px/1 var(--f-head); margin-bottom: 18px; }
.kh-steps-list b { display: block; font-size: 22px; font-weight: 650; margin-bottom: 8px; }
.kh-steps-list span { color: var(--mute); font-size: 16px; }
@media (max-width: 860px) {
	.kh-steps-list { grid-template-columns: 1fr 1fr; gap: 32px 0; }
	.kh-steps-list li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
	.kh-steps-list { grid-template-columns: 1fr; }
	.kh-steps-list li, .kh-steps-list li + li { border: 0; padding: 0; }
}

/* ——— Работы ——— */
.kh-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kh-case { display: flex; flex-direction: column; text-decoration: none; background: var(--white); border-radius: var(--r-m); overflow: hidden; }
.kh-case-img { aspect-ratio: 4/5; overflow: hidden; background: var(--line-2); }
.kh-case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.kh-case:hover .kh-case-img img { transform: scale(1.04); }
.kh-case-t { font-size: 20px; font-weight: 650; padding: 18px 20px 4px; line-height: 1.25; }
.kh-case-x { color: var(--mute); padding: 0 20px; font-size: 15px; }
.kh-case-p { margin-top: auto; padding: 14px 20px 20px; font-weight: 700; color: var(--stamp); }
@media (max-width: 860px) { .kh-case-grid { grid-template-columns: 1fr; } .kh-case-img { aspect-ratio: 16/10; } }

/* ——— Статьи: карточки ——— */
.kh-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.kh-post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.kh-post { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.kh-post-img { aspect-ratio: 3/2; border-radius: var(--r-m); overflow: hidden; background: var(--line-2); margin-bottom: 6px; }
.kh-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.kh-post:hover .kh-post-img img { transform: scale(1.04); }
.kh-post-meta { font-size: 13px; color: var(--mute); }
.kh-post-t { font-size: 22px; line-height: 1.2; font-weight: 650; transition: color .2s; }
.kh-post:hover .kh-post-t { color: var(--stamp); }
.kh-post-x { color: var(--mute); font-size: 15.5px; }
.kh-post--big { grid-column: span 2; grid-row: span 2; }
.kh-post--big .kh-post-img { aspect-ratio: 16/10; }
.kh-post--big .kh-post-t { font-size: clamp(26px, 2.6vw, 34px); }
@media (max-width: 960px) { .kh-post-grid, .kh-post-grid--3 { grid-template-columns: 1fr 1fr; } .kh-post--big { grid-column: span 2; grid-row: auto; } }
@media (max-width: 600px) { .kh-post-grid, .kh-post-grid--3 { grid-template-columns: 1fr; } .kh-post--big { grid-column: auto; } }
.kh-pager { margin-top: 44px; display: flex; gap: 6px; flex-wrap: wrap; }
.kh-pager .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 600; }
.kh-pager .current { background: var(--ink); color: #fff; }

/* ——— Контакты ——— */
.kh-visit { background: var(--sheet); }
.kh-visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.kh-visit-addr { display: flex; gap: 12px; font-size: 21px; font-weight: 600; line-height: 1.35; margin: 0 0 18px; }
.kh-visit-addr .kh-ico { width: 26px; height: 26px; color: var(--stamp); flex-shrink: 0; margin-top: 2px; }
.kh-visit-addr small { font-size: 15px; color: var(--mute); font-weight: 500; }
.kh-hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; margin: 0 0 22px; }
.kh-hours dt { color: var(--mute); }
.kh-hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.kh-visit-act { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.kh-map { border-radius: var(--r-m); overflow: hidden; aspect-ratio: 16/10; background: var(--line-2); }
.kh-map iframe { width: 100%; height: 100%; border: 0; }
.kh-visit-form { background: var(--white); border-radius: var(--r-l); padding: clamp(22px, 3vw, 36px); align-self: start; position: sticky; top: 96px; }
@media (max-width: 900px) { .kh-visit-grid { grid-template-columns: 1fr; } .kh-visit-form { position: static; } }

/* ——— Форма ——— */
.kh-form { display: grid; gap: 14px; }
.kh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kh-field { display: grid; gap: 6px; font-size: 14px; color: var(--mute); font-weight: 500; }
.kh-field input, .kh-field textarea {
	width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--sheet);
	padding: 13px 14px; font: 500 17px/1.3 var(--f-body); color: var(--ink); resize: vertical;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.kh-field input:focus, .kh-field textarea:focus { outline: 0; border-color: var(--stamp); background: var(--white); box-shadow: 0 0 0 4px var(--stamp-soft); }
.kh-field input[aria-invalid="true"] { border-color: var(--err); }
.kh-form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.kh-form-note { margin: 0; font-size: 14px; color: var(--mute); flex: 1 1 200px; }
.kh-form-note a { font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.kh-form-status { margin: 0; font-weight: 600; min-height: 0; }
.kh-form-status.is-ok { color: var(--ok); }
.kh-form-status.is-err { color: var(--err); }
.kh-form.is-sent .kh-field, .kh-form.is-sent .kh-form-row, .kh-form.is-sent .kh-form-foot { display: none; }
.kh-form-done { display: flex; gap: 14px; align-items: center; }
.kh-form-done .kh-stamp-mini { width: 64px; height: 64px; color: var(--stamp); flex-shrink: 0; }
@media (max-width: 520px) { .kh-form-row { grid-template-columns: 1fr; } .kh-form-foot .kh-btn { width: 100%; } }

/* ——— Модальное окно и плавающая кнопка ——— */
.kh-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.kh-modal[hidden] { display: none; }
.kh-modal-bg { position: absolute; inset: 0; background: rgba(22, 35, 58, .55); backdrop-filter: blur(4px); }
.kh-modal-box { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--white); border-radius: var(--r-l); padding: clamp(22px, 4vw, 36px); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .4); }
.kh-modal-x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.kh-modal-x .kh-ico { width: 20px; height: 20px; }
.kh-modal-t { font-size: 28px; font-weight: 750; margin: 0 40px 8px 0; }
.kh-modal-s { color: var(--mute); margin: 0 0 20px; }
.kh-float {
	position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
	display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
	background: var(--stamp); color: #fff; border-radius: 999px; padding: 0 22px 0 18px; height: 56px; font-weight: 650; font-size: 16px;
	box-shadow: 0 14px 30px -10px rgba(58, 63, 212, .7);
	transform: translateY(140%); transition: transform .45s var(--ease), background .2s;
}
.kh-float .kh-ico { width: 22px; height: 22px; }
.kh-float.is-on { transform: none; }
.kh-float:hover { background: var(--stamp-2); }
@media (max-width: 520px) { .kh-float { left: 16px; right: 16px; justify-content: center; } }
html.kh-lock { overflow: hidden; }

/* ——— Страницы услуг и моделей ——— */
.kh-svc-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.kh-svc-hero-ico { width: 88px; height: 88px; border-radius: 24px; background: var(--white); color: var(--stamp); display: grid; place-items: center; margin-top: 10px; }
.kh-ico--big { width: 48px; height: 48px; }
.kh-svc-hero-price { display: inline-flex; gap: 10px; align-items: baseline; padding: 10px 16px; border-radius: var(--r-s); background: var(--amber-soft); margin: 0 0 26px; }
.kh-svc-hero-price span { color: var(--mute); font-size: 14px; }
.kh-svc-hero-price b { font: 700 20px/1.2 var(--f-head); }
@media (max-width: 640px) { .kh-svc-hero { grid-template-columns: 1fr; } .kh-svc-hero-ico { width: 64px; height: 64px; border-radius: 18px; margin: 0; } .kh-ico--big { width: 34px; height: 34px; } }

.kh-model-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.kh-model-brand { font-weight: 700; color: var(--stamp); margin: 0 0 12px; }
.kh-model-brand span { color: var(--mute); font-weight: 500; margin-left: 8px; }
.kh-model-fig { margin: 0; }
.kh-model-fig img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-l); }
.kh-model-fig figcaption, .kh-art-fig figcaption { font-size: 12.5px; color: var(--mute); margin-top: 8px; }
.kh-model-fig figcaption a, .kh-art-fig figcaption a { color: inherit; }
@media (max-width: 900px) { .kh-model-hero { grid-template-columns: 1fr; } }
.kh-h2--brand { margin-top: 40px; }
.kh-model-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.kh-model-cards a { display: grid; gap: 4px; text-decoration: none; background: var(--white); border-radius: var(--r-m); padding: 12px 12px 18px; height: 100%; transition: transform .3s var(--ease); }
.kh-model-cards a:hover { transform: translateY(-3px); }
.kh-mc-img { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--line-2); margin-bottom: 10px; }
.kh-mc-img img { width: 100%; height: 100%; object-fit: cover; }
.kh-mc-t { font: 700 24px/1.15 var(--f-head); padding: 0 6px; }
.kh-mc-g { color: var(--mute); font-size: 14px; padding: 0 6px; }

.kh-art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.kh-aside { background: var(--white); border-radius: var(--r-m); padding: 22px; }
.kh-aside--sticky { position: sticky; top: 96px; }
.kh-aside-h { font-weight: 700; margin: 0 0 10px; }
.kh-aside-list { list-style: none; margin: 0; padding: 0; }
.kh-aside-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.kh-aside-list a:hover { color: var(--stamp); }
.kh-aside-list span { color: var(--mute); font-size: 13px; text-align: right; }
@media (max-width: 960px) { .kh-art-grid { grid-template-columns: 1fr; } .kh-aside--sticky { position: static; } }

/* ——— Таблица цен ——— */
.kh-price { width: 100%; border-collapse: collapse; margin: 18px 0 14px; background: var(--white); border-radius: var(--r-m); overflow: hidden; font-size: 16px; }
.kh-price th, .kh-price td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.kh-price thead th { font-size: 13px; color: var(--mute); font-weight: 600; background: var(--sheet); }
.kh-price tbody th { font-weight: 650; }
.kh-price tbody th a { text-decoration: none; border-bottom: 1px solid var(--line); }
.kh-price td:last-child { white-space: nowrap; text-align: right; }
.kh-price tbody tr:last-child > * { border-bottom: 0; }
.kh-page .kh-h2 { margin-top: 48px; }
@media (max-width: 640px) {
	.kh-price thead { display: none; }
	.kh-price tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
	.kh-price th, .kh-price td { padding: 0; border: 0; }
	.kh-price td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--mute); font-size: 14.5px; margin-top: 4px; }
}

.kh-inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.kh-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.kh-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.kh-checks .kh-ico { width: 20px; height: 20px; color: var(--stamp); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 860px) { .kh-inc-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .kh-checks { grid-template-columns: 1fr; } }

/* ——— Статья ——— */
.kh-art-head { padding-top: 28px; }
.kh-art-meta { display: flex; gap: 16px; color: var(--mute); font-size: 14px; margin: 0 0 28px; }
.kh-art-fig { margin: 0 auto 40px; }
.kh-art-fig img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-l); }
.kh-art-cta { margin-top: 48px; padding: 28px; background: var(--white); border-radius: var(--r-l); border-left: 6px solid var(--stamp); }
.kh-art-cta p:not(.kh-h3) { color: var(--ink-2); }

/* ——— Текст статей и страниц (.kh-prose) и компоненты статей (.khp) ——— */
.kh-prose { max-width: 72ch; font-size: 18px; line-height: 1.68; }
.kh-prose--intro { margin-bottom: 18px; }
.kh-prose > :first-child { margin-top: 0; }
.kh-prose h2 { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--f-head); font-variation-settings: "SHRP" 55; letter-spacing: -0.015em; margin: 2.2em 0 .6em; scroll-margin-top: 96px; }
.kh-prose h3 { font: 650 22px/1.25 var(--f-head); margin: 1.8em 0 .5em; scroll-margin-top: 96px; }
.kh-prose p { margin: 0 0 1.05em; }
.kh-prose a { color: var(--stamp); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.kh-prose ul, .kh-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.kh-prose li { margin: .35em 0; }
.kh-prose li::marker { color: var(--stamp); font-weight: 700; }
.kh-prose img { border-radius: var(--r-m); }
.kh-prose figure { margin: 1.8em 0; }
.kh-prose figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
.kh-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--amber); font-size: 20px; font-weight: 500; color: var(--ink); }
.kh-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; background: var(--white); border-radius: var(--r-m); overflow: hidden; display: block; overflow-x: auto; }
.kh-prose th, .kh-prose td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.kh-prose thead th { background: var(--sheet); font-size: 13.5px; color: var(--mute); font-weight: 600; }
.kh-prose details { background: var(--white); border-radius: var(--r-m); padding: 0 20px; margin: 10px 0; }
.kh-prose summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 650; list-style: none; position: relative; }
.kh-prose summary::-webkit-details-marker { display: none; }
.kh-prose summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 400 26px/1 var(--f-head); color: var(--stamp); transition: transform .25s; }
.kh-prose details[open] summary::after { transform: rotate(45deg); }
.kh-prose details > *:not(summary) { margin-top: 0; padding-bottom: 6px; }

.khp .lead { font-size: 21px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.khp .sum { background: var(--white); border-radius: var(--r-m); padding: 20px 24px; margin: 1.6em 0; }
.khp .sum > b { display: block; font-family: var(--f-head); font-size: 18px; margin-bottom: 6px; }
.khp .sum ul { margin: 0; }
.khp .toc { border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 1.6em 0 2em; }
.khp .toc b { display: block; font-size: 14px; color: var(--mute); font-weight: 600; margin-bottom: 6px; }
.khp .toc ol { margin: 0; columns: 2; column-gap: 28px; font-size: 16px; }
.khp .toc a { text-decoration: none; color: var(--ink); }
.khp .toc a:hover { color: var(--stamp); }
.khp .kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1.6em 0; }
.khp .kpi div { background: var(--white); border-radius: var(--r-m); padding: 16px 18px; }
.khp .kpi b { display: block; font: 750 28px/1.1 var(--f-head); color: var(--stamp); margin-bottom: 4px; }
.khp .kpi span { font-size: 14.5px; color: var(--mute); line-height: 1.4; display: block; }
.khp .note { border-radius: var(--r-m); padding: 18px 22px; margin: 1.6em 0; font-size: 17px; }
.khp .note b:first-child { display: block; margin-bottom: 4px; }
.khp .note.tip { background: var(--stamp-soft); }
.khp .note.warn { background: var(--amber-soft); }
.khp .note p:last-child { margin-bottom: 0; }
.khp .km { list-style: none; padding: 0; margin: 1.6em 0; border-left: 2px solid var(--line); }
.khp .km li { position: relative; padding: 4px 0 16px 26px; margin: 0; }
.khp .km li::before { content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--stamp); }
.khp .km li > b { display: block; font-family: var(--f-head); font-size: 18px; }
.khp .chk { list-style: none; padding: 0; counter-reset: c; }
.khp .chk li { counter-increment: c; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--line); position: relative; margin: 0; }
.khp .chk li::before { content: counter(c); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 14px/1 var(--f-head); }
.khp .src { font-size: 14px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2.4em; }
@media (max-width: 600px) { .khp .toc ol { columns: 1; } .kh-prose { font-size: 17px; } }

/* ——— Подвал ——— */
.kh-foot { background: var(--ink); color: #cfd8e6; padding: 72px 0 28px; font-size: 15.5px; }
.kh-foot a { color: #fff; text-decoration: none; }
.kh-foot a:hover { color: var(--amber); }
.kh-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.kh-foot-name { font-size: 22px; font-weight: 750; color: #fff; margin: 0 0 10px; }
.kh-foot-h { color: #8d9bb3; font-size: 13.5px; margin: 0 0 8px; }
.kh-foot p { margin: 0 0 10px; }
.kh-foot-tel { font-weight: 700; font-size: 20px; }
.kh-foot .kh-hours dt { color: #8d9bb3; }
.kh-foot .kh-hours dd { color: #fff; }
.kh-foot-links { display: grid; gap: 14px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.kh-foot-links nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.kh-foot-links a { color: #a9b6cb; font-size: 14.5px; }
.kh-foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; font-size: 13px; color: #8d9bb3; }
.kh-foot-bottom a { color: #a9b6cb; margin-left: 14px; }
@media (max-width: 900px) { .kh-foot-grid { grid-template-columns: 1fr 1fr; } .kh-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .kh-foot-grid { grid-template-columns: 1fr; } .kh-foot { padding-bottom: 100px; } }

/* ——— 404 ——— */
.kh-404 { padding-top: 60px; padding-bottom: 120px; }
.kh-404-km { font-size: clamp(90px, 18vw, 220px); font-weight: 800; line-height: .9; margin: 0 0 12px; color: var(--stamp); font-variant-numeric: tabular-nums; }
.kh-404-km small { font-size: .25em; color: var(--mute); }

/* Пока GSAP не стартовал — элементы анимации видимы (без JS и при reduced motion) */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.khp .km .km-r { display: inline-block; font-size: 13px; color: var(--stamp); background: var(--stamp-soft); border-radius: 999px; padding: 2px 10px; margin: 4px 0 2px; }
.khp .km p { margin: 6px 0 0; }

/* Название сервиса в первом экране (1.0.5) */
.kh-h1--brand { margin-bottom: 26px; }
.kh-brand-name { display: block; white-space: nowrap; font-size: clamp(40px, 5.6vw, 80px); line-height: .94; font-weight: 790; letter-spacing: -0.025em; }
.kh-brand-name > span, .kh-brand-name > em { display: block; }
.kh-brand-name > em { font-style: normal; color: var(--stamp); }
.kh-brand-sub { display: block; margin-top: 18px; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; font-weight: 650; letter-spacing: -0.01em; color: var(--ink-2); }

/* Галерея офиса (1.0.7) */
.kh-office { background: var(--ink); color: #fff; }
.kh-office .kh-sec-sub { color: #a9b6cb; }
.kh-office-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 10px; }
.kh-office-i { display: block; overflow: hidden; border-radius: var(--r-m); background: #22304a; }
.kh-office-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.kh-office-i:hover img { transform: scale(1.04); }
.kh-office-i.is-tall { grid-row: span 2; }
.kh-office-i.is-hero { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .kh-office-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 520px) { .kh-office-grid { grid-auto-rows: 130px; gap: 6px; } }
.kh-lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(10, 16, 28, .92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.kh-lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r-m); }
