/* ==========================================================================
   Kazakhmys Distribution — тема 2.0
   Фирменные цвета из логотипа: синий #2B5297, бирюзовый #0CB5DD, жёлтый #FFC731
   ========================================================================== */

:root {
	--ink: #0f1f3d;
	--ink-2: #1b2b4b;
	--text: #3b4659;
	--muted: #6b778c;
	--line: #e3e8f0;
	--soft: #f4f7fb;
	--soft-2: #eaf1f8;
	--blue: #2b5297;
	--blue-d: #1d3c75;
	--cyan: #0cb5dd;
	--cyan-d: #0797ba;
	--cyan-l: #e4f7fc;
	--yellow: #ffc731;
	--white: #fff;
	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--shadow: 0 1px 2px rgba(15, 31, 61, .05), 0 8px 24px rgba(15, 31, 61, .07);
	--shadow-lg: 0 20px 50px rgba(15, 31, 61, .14);
	--wrap: 1280px;
	--font: Onest, "Segoe UI", Roboto, Arial, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font: 400 16px/1.65 var(--font); color: var(--text); background: var(--white); overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.kmd-menu-open { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--cyan-d); }
:focus-visible { outline: 3px solid rgba(12, 181, 221, .5); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; margin: 1.5em 0 .6em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; color: inherit; }
.kmd-i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -.2em; }
.kmd-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.kmd-narrow { max-width: 880px; }
.kmd-skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.kmd-skip:focus { left: 12px; top: 12px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------- кнопки, ссылки, метки ---------- */
.kmd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .8em 1.4em; border: 0; border-radius: 999px;
	background: var(--cyan); color: #fff !important; font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1.2;
	box-shadow: 0 6px 18px rgba(12, 181, 221, .28);
	transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.kmd-btn:hover { background: var(--cyan-d); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(12, 181, 221, .35); }
.kmd-btn .kmd-i { transition: transform .2s var(--ease); }
.kmd-btn:hover .kmd-i { transform: translateX(2px); }
.kmd-btn--lg { padding: 1em 1.7em; font-size: 1rem; }
.kmd-btn--glass { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.kmd-btn--glass:hover { background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1.5px #fff; }
.kmd-btn--light { background: #fff; color: var(--ink) !important; box-shadow: none; }
.kmd-btn--light:hover { background: var(--yellow); }
.kmd-btn--ghost { background: transparent; color: var(--blue) !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.kmd-btn--ghost:hover { background: var(--blue); color: #fff !important; }
.kmd-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; color: var(--blue); white-space: nowrap; }
.kmd-link .kmd-i { transition: transform .2s var(--ease); }
.kmd-link:hover .kmd-i { transform: translateX(3px); }
.kmd-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--cyan-l); color: var(--cyan-d); font-size: .75rem; font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.kmd-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.kmd-eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.kmd-eyebrow--dark { color: var(--cyan-d); }

/* ---------- верхняя полоса ---------- */
.kmd-util { background: var(--ink); color: #b4c0d6; font-size: .82rem; }
.kmd-util__in { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.kmd-util__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; white-space: nowrap; }
.kmd-util__item .kmd-i { color: var(--cyan); width: 1em; height: 1em; }
a.kmd-util__item:hover { color: #fff; }
.kmd-util__sp { flex: 1; }
.kmd-langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); }
.kmd-langs a { padding: 2px 12px; border-radius: 999px; color: #b4c0d6; font-weight: 700; text-decoration: none; font-size: .8rem; }
.kmd-langs a.is-active { background: #fff; color: var(--ink); }
.kmd-langs a:hover:not(.is-active) { color: #fff; }

/* ---------- шапка ---------- */
.kmd-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.kmd-header.is-scrolled { box-shadow: 0 6px 24px rgba(15,31,61,.08); border-bottom-color: var(--line); }
body.admin-bar .kmd-header { top: 32px; }
.kmd-header__in { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.kmd-logo { flex: none; line-height: 0; }
.kmd-logo img { width: 156px; }
.kmd-nav { flex: 1; min-width: 0; }
.kmd-menu, .kmd-menu ul { list-style: none; margin: 0; padding: 0; }
.kmd-menu { display: flex; justify-content: center; gap: 2px; }
.kmd-menu > li { position: relative; }
.kmd-menu > li > a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.kmd-menu > li.menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); opacity: .6; transition: transform .2s; }
.kmd-menu > li:hover > a, .kmd-menu > li:focus-within > a { background: var(--soft); }
.kmd-menu > li.current-menu-item > a, .kmd-menu > li.current-menu-ancestor > a, .kmd-menu > li.current-page-ancestor > a { color: var(--cyan-d); background: var(--cyan-l); }
.kmd-menu .sub-menu {
	position: absolute; left: 50%; top: calc(100% + 10px); min-width: 280px; padding: 10px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.kmd-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.kmd-menu > li:hover > .sub-menu, .kmd-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.kmd-menu > li:hover > a::after { transform: rotate(-135deg); margin-top: 3px; }
.kmd-menu .sub-menu a { display: block; padding: 9px 14px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; line-height: 1.35; }
.kmd-menu .sub-menu a:hover, .kmd-menu .sub-menu .current-menu-item > a { background: var(--soft); color: var(--blue); }
.kmd-menu .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
.kmd-nav__mobile { display: none; }
.kmd-header__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.kmd-iconbtn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); display: inline-grid; place-items: center; transition: background .2s; }
.kmd-iconbtn:hover { background: var(--soft-2); }
.kmd-burger { display: none; gap: 4px; align-content: center; justify-items: center; }
.kmd-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.kmd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.kmd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kmd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.kmd-phones { position: relative; display: flex; align-items: center; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.kmd-phones__main { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.kmd-phones__ico { width: 36px; height: 36px; border-radius: 50%; background: var(--cyan); color: #fff; display: grid; place-items: center; }
.kmd-phones__txt b { display: block; font-size: .95rem; line-height: 1.1; }
.kmd-phones__txt small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.kmd-phones__more { border: 0; background: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.kmd-phones__more:hover { background: var(--soft); }
.kmd-phones.is-open .kmd-phones__more .kmd-i { transform: rotate(180deg); }
.kmd-phones__list { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); display: none; }
.kmd-phones.is-open .kmd-phones__list { display: block; }
.kmd-phones__list a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.kmd-phones__list a:hover { background: var(--soft); }
.kmd-phones__list span { display: block; font-size: .8rem; color: var(--muted); }
.kmd-searchbar { border-top: 1px solid var(--line); padding: 16px 0; }
.kmd-search { display: flex; gap: 8px; }
.kmd-search input { flex: 1; min-width: 0; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: var(--soft); transition: border-color .2s, box-shadow .2s, background .2s; }
.kmd-search input:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(12,181,221,.15); }
.kmd-search--inline { max-width: 560px; margin: 20px 0; }

/* ---------- главная: баннер ---------- */
.kmd-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink); }
.kmd-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(hero-bg.jpg) center / cover no-repeat; opacity: .28; filter: grayscale(.3); }
.kmd-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(60% 80% at 85% 30%, rgba(12,181,221,.35), transparent 60%),
	radial-gradient(40% 60% at 10% 100%, rgba(255,199,49,.12), transparent 60%),
	linear-gradient(100deg, rgba(15,31,61,.98) 0%, rgba(15,31,61,.9) 45%, rgba(29,60,117,.55) 100%); }
.kmd-hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 24px; min-height: 600px; padding-top: 72px; }
.kmd-hero__content { padding-bottom: 132px; align-self: center; }
.kmd-hero__title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 22px; }
.kmd-hero__text { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: #cbd6ea; max-width: 560px; margin: 0 0 34px; }
.kmd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kmd-hero__media { position: relative; align-self: end; display: flex; justify-content: center; }
.kmd-hero__ring { position: absolute; bottom: -60px; left: 50%; width: 520px; height: 520px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(12,181,221,.35), rgba(12,181,221,0) 65%); border: 1px solid rgba(255,255,255,.12); }
.kmd-hero__ring::after { content: ""; position: absolute; inset: 60px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.14); }
.kmd-hero__person { position: relative; width: 470px; max-width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }

/* ---------- главная: услуги потребителям ---------- */
.kmd-services { position: relative; z-index: 2; margin-top: -84px; }
.kmd-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kmd-service {
	position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 22px; min-height: 196px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
	color: var(--text); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.kmd-service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(12,181,221,.4); color: var(--text); }
.kmd-service__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cyan-l); color: var(--cyan-d); margin-bottom: 6px; transition: background .25s, color .25s; }
.kmd-service__ico .kmd-i { width: 26px; height: 26px; }
.kmd-service:hover .kmd-service__ico { background: var(--cyan); color: #fff; }
.kmd-service__title { font-weight: 800; color: var(--ink); font-size: 1.08rem; line-height: 1.3; }
.kmd-service__text { font-size: .88rem; color: var(--muted); line-height: 1.5; padding-right: 26px; }
.kmd-service__go { position: absolute; right: 20px; bottom: 20px; color: var(--cyan-d); transition: transform .25s var(--ease); }
.kmd-service:hover .kmd-service__go { transform: translateX(4px); }

/* ---------- секции ---------- */
.kmd-section { padding: 96px 0; }
.kmd-section--tight { padding: 40px 24px 80px; }
.kmd-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.kmd-section__head .kmd-eyebrow { margin-bottom: 8px; }
.kmd-h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin: 0; letter-spacing: -.02em; max-width: 760px; }

/* три предприятия */
.kmd-units__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kmd-unit { position: relative; display: flex; flex-direction: column; padding: 32px 30px 28px; border-radius: var(--r-lg); background: var(--soft); color: var(--text); text-decoration: none; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, background .25s; min-height: 280px; }
.kmd-unit::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(12,181,221,.18), transparent 70%); transition: transform .4s var(--ease); }
.kmd-unit--2::after { background: radial-gradient(circle, rgba(255,199,49,.25), transparent 70%); }
.kmd-unit--3::after { background: radial-gradient(circle, rgba(43,82,151,.2), transparent 70%); }
.kmd-unit:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-lg); color: var(--text); }
.kmd-unit:hover::after { transform: scale(1.3); }
.kmd-unit__ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--cyan); color: #fff; margin-bottom: 26px; box-shadow: 0 10px 24px rgba(12,181,221,.3); }
.kmd-unit--2 .kmd-unit__ico { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px rgba(255,199,49,.35); }
.kmd-unit--3 .kmd-unit__ico { background: var(--blue); box-shadow: 0 10px 24px rgba(43,82,151,.3); }
.kmd-unit__ico .kmd-i { width: 30px; height: 30px; }
.kmd-unit h3 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; }
.kmd-unit p { margin: 0 0 24px; color: var(--muted); font-size: .95rem; }
.kmd-unit__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); font-size: .92rem; }

/* цифры */
.kmd-figures { position: relative; overflow: hidden; background: var(--ink); color: #c7d2e6; isolation: isolate; }
.kmd-figures::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 90% 50%, rgba(12,181,221,.25), transparent 70%), radial-gradient(30% 50% at 0% 0%, rgba(43,82,151,.5), transparent 70%); }
.kmd-figures__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 280px; gap: 48px; align-items: end; padding-top: 88px; }
.kmd-figures__text { padding-bottom: 88px; align-self: center; }
.kmd-figures .kmd-h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 18px; }
.kmd-figures__lead { font-size: .98rem; }
.kmd-figures__lead p:last-child { margin-bottom: 0; }
.kmd-figures__list { list-style: none; margin: 0; padding: 0 0 88px; display: grid; gap: 14px; align-self: center; }
.kmd-figures__list li { padding: 20px 24px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(4px); }
.kmd-figures__list b { display: flex; align-items: baseline; gap: 8px; color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kmd-figures__list small { font-size: 1rem; font-weight: 700; color: var(--cyan); letter-spacing: 0; }
.kmd-figures__list li > span { display: block; margin-top: 8px; font-size: .9rem; color: #9fb0cc; }
.kmd-figures__person { align-self: end; width: 280px; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }

/* новости */
.kmd-news { background: var(--soft); }
.kmd-news__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.kmd-news__list { display: grid; gap: 4px; background: #fff; border-radius: var(--r-lg); padding: 10px; border: 1px solid var(--line); }
.kmd-row { display: flex; gap: 18px; padding: 16px 14px; border-radius: var(--r); transition: background .2s; }
.kmd-row + .kmd-row { border-top: 1px solid var(--line); }
.kmd-row:hover { background: var(--soft); }
.kmd-row__date { flex: none; width: 58px; text-align: center; color: var(--muted); font-size: .72rem; line-height: 1.2; text-transform: uppercase; font-weight: 600; }
.kmd-row__date b { display: block; font-size: 1.6rem; color: var(--ink); font-weight: 800; line-height: 1; margin-bottom: 2px; }
.kmd-row__title { margin: 6px 0 0; font-size: .98rem; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kmd-row__title a { color: var(--ink); text-decoration: none; }
.kmd-row__title a::after { content: ""; position: absolute; inset: 0; }
.kmd-row { position: relative; }
.kmd-row__title a:hover { color: var(--blue); }

/* карточки публикаций */
.kmd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kmd-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.kmd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.kmd-card__img { display: block; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.kmd-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.kmd-card:hover .kmd-card__img img { transform: scale(1.04); }
.kmd-card__ph { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, #e3f5fb, #eaf0fa); }
.kmd-card__ph svg { width: 56px; height: 56px; fill: #b6cae6; }
.kmd-card__body { padding: 20px 22px 24px; flex: 1; }
.kmd-card__meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; margin-bottom: 10px; font-weight: 500; }
.kmd-card__meta--head { margin: 14px 0 0; }
.kmd-card__title { font-size: 1.05rem; margin: 0; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kmd-card__title a { color: var(--ink); text-decoration: none; }
.kmd-card__title a::after { content: ""; position: absolute; inset: 0; }
.kmd-card__title a:hover { color: var(--blue); }
.kmd-card__excerpt { margin: 10px 0 0; color: var(--muted); font-size: .93rem; }
.kmd-card--lead .kmd-card__img { aspect-ratio: 16 / 9; }
.kmd-card--lead .kmd-card__title { font-size: 1.35rem; -webkit-line-clamp: 4; }
.kmd-card--lead .kmd-card__body { padding: 26px 28px 30px; }

/* призыв */
.kmd-cta { padding: 0 0 96px; background: var(--soft); }
.kmd-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 56px; border-radius: var(--r-lg); color: #e7f7fc; background: linear-gradient(110deg, var(--blue-d) 0%, var(--blue) 45%, var(--cyan-d) 100%); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; isolation: isolate; }
.kmd-cta__in::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); z-index: -1; box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03); }
.kmd-cta h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
.kmd-cta p { margin: 0; max-width: 520px; }
.kmd-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- внутренние страницы ---------- */
.kmd-pagehead { position: relative; overflow: hidden; background: var(--ink); color: #c7d2e6; padding: 44px 0 52px; isolation: isolate; }
.kmd-pagehead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 100% 0%, rgba(12,181,221,.3), transparent 60%), radial-gradient(40% 100% at 0% 100%, rgba(43,82,151,.45), transparent 60%); }
.kmd-pagehead__title { color: #fff; margin: 12px 0 0; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; max-width: 960px; }
.kmd-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; }
.kmd-crumbs li { color: #8fa1c2; }
.kmd-crumbs li:not(:last-child)::after { content: "›"; margin-left: 8px; color: #5f7397; }
.kmd-crumbs a { color: #b4c0d6; text-decoration: none; }
.kmd-crumbs a:hover { color: #fff; }
.kmd-layout { padding-top: 48px; padding-bottom: 96px; }
.kmd-layout--side { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; }
.kmd-layout__main { min-width: 0; }
.kmd-side { position: sticky; top: 104px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; background: #fff; box-shadow: var(--shadow); }
body.admin-bar .kmd-side { top: 136px; }
.kmd-side__root { display: block; padding: 12px 14px 10px; font-weight: 800; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); font-size: 1.02rem; }
.kmd-side__list, .kmd-side__list ul { list-style: none; margin: 0; padding: 0; }
.kmd-side__list ul { padding-left: 12px; margin: 2px 0 4px; border-left: 2px solid var(--line); margin-left: 14px; }
.kmd-side__list a { display: block; padding: 8px 14px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: .92rem; line-height: 1.35; font-weight: 500; }
.kmd-side__list a:hover, .kmd-side__root:hover { background: var(--soft); color: var(--blue); }
.kmd-side__list .current_page_item > a, .kmd-side__root.is-active { background: var(--cyan-l); color: var(--cyan-d); font-weight: 700; }
.kmd-side__list .current_page_ancestor > a { color: var(--blue); font-weight: 700; }

/* текст страниц */
.kmd-prose { font-size: 1.02rem; }
.kmd-prose > :first-child { margin-top: 0; }
.kmd-prose h2 { font-size: 1.6rem; font-weight: 800; }
.kmd-prose h3 { font-size: 1.3rem; }
.kmd-prose h4 { font-size: 1.1rem; }
.kmd-prose ul, .kmd-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.kmd-prose li { margin: .35em 0; }
.kmd-prose li::marker { color: var(--cyan-d); }
.kmd-prose img { border-radius: var(--r); }
.kmd-prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--cyan); background: var(--soft); border-radius: 0 var(--r) var(--r) 0; }
.kmd-prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .94rem; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kmd-prose th, .kmd-prose td { border-bottom: 1px solid var(--line); padding: 10px 14px; vertical-align: top; text-align: left; }
.kmd-prose tr:last-child td { border-bottom: 0; }
.kmd-prose th { background: var(--soft); color: var(--ink); font-weight: 700; }
.kmd-table { overflow-x: auto; margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }
.kmd-prose a.kmd-file { padding-left: 1.7em; position: relative; display: inline-block; font-weight: 600; }
.kmd-prose a.kmd-file::before { content: ""; position: absolute; left: 0; top: .1em; width: 1.2em; height: 1.4em; border-radius: 3px; background: #e8eef9 linear-gradient(225deg, #fff 22%, transparent 22%); border: 1px solid #c9d6ee; }
.kmd-prose a.kmd-file--pdf::before { background-color: #fde8e8; border-color: #f2b2ae; }
.kmd-prose a.kmd-file--xls::before, .kmd-prose a.kmd-file--xlsx::before, .kmd-prose a.kmd-file--csv::before { background-color: #e3f6ea; border-color: #b1e0c1; }
.kmd-prose a.kmd-file--ppt::before, .kmd-prose a.kmd-file--pptx::before { background-color: #fff0e3; border-color: #f5c6a0; }
.kmd-docs { list-style: none; padding: 0 !important; }
.kmd-single { padding: 40px 0 8px; }
.kmd-single__img { margin: 0 0 28px; }
.kmd-single__img img { width: 100%; border-radius: var(--r-lg); }
.kmd-single__back { padding-bottom: 80px; }

/* совместимость со старой вёрсткой Битрикса/Bootstrap */
.alert { padding: 16px 20px; border-radius: var(--r); margin: 0 0 1.2em; border: 1px solid; }
.alert-info { background: #eaf8fc; border-color: #c2e8f4; color: #164c62; }
.alert-success { background: #ebf8ef; border-color: #c4e6cd; }
.alert-warning { background: #fff7e3; border-color: #f6dea0; }
.img-responsive { max-width: 100%; height: auto; display: block; }
.text-center { text-align: center; }

/* подразделы */
.kmd-subpages { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 28px 0; }
.kmd-subpage { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-weight: 700; text-decoration: none; transition: .25s var(--ease); background: #fff; }
.kmd-subpage .kmd-i { color: var(--cyan-d); transition: transform .25s var(--ease); }
.kmd-subpage:hover { border-color: var(--cyan); box-shadow: var(--shadow); color: var(--blue); transform: translateY(-2px); }
.kmd-subpage:hover .kmd-i { transform: translateX(3px); }

/* руководство */
.kmd-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.kmd-person { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; transition: box-shadow .25s; }
.kmd-person:hover { box-shadow: var(--shadow-lg); }
.kmd-person__img { aspect-ratio: 5 / 6; background: var(--soft); }
.kmd-person__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; display: block; }
.kmd-person__ph { display: grid; place-items: center; height: 100%; font-size: 3rem; color: #b6cae6; font-weight: 800; }
.kmd-person__body { padding: 16px 18px 20px; }
.kmd-person__body h3 { font-size: 1.02rem; margin: 0 0 6px; }
.kmd-person__body p { font-size: .86rem; color: var(--muted); margin: 0 0 6px; line-height: 1.45; }
.kmd-person__body a { display: block; font-size: .88rem; }

/* контакты */
.kmd-contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; margin: 0 0 36px; }
.kmd-contacts__list { display: grid; gap: 12px; align-content: start; }
.kmd-contact { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.kmd-contact > .kmd-i { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--cyan-l); fill: var(--cyan-d); }
.kmd-contact span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.kmd-contact p { margin: 3px 0 0; color: var(--ink); }
.kmd-contact small { color: var(--muted); }
.kmd-map { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--soft); }
.kmd-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kmd-map__link { position: absolute; right: 12px; bottom: 12px; background: #fff; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); font-size: .86rem; font-weight: 700; text-decoration: none; }

/* форма */
.kmd-form { margin-top: 36px; padding: 32px; background: var(--soft); border-radius: var(--r-lg); border: 1px solid var(--line); }
.kmd-form__title { margin: 0 0 18px; font-size: 1.5rem; font-weight: 800; }
.kmd-form__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kmd-form label { display: block; margin-bottom: 14px; }
.kmd-form label span { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.kmd-form input, .kmd-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #d3dbe7; border-radius: var(--r-sm); font: inherit; background: #fff; transition: border-color .2s, box-shadow .2s; }
.kmd-form input:focus, .kmd-form textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 4px rgba(12,181,221,.15); }
.kmd-form__note { font-size: .82rem; color: var(--muted); }
.kmd-form__hp { position: absolute; left: -9999px; }
.kmd-alert { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 14px; font-weight: 700; }
.kmd-alert--ok { background: #e3f6ea; color: #1d6b3a; }
.kmd-alert--err { background: #fde8e8; color: #9b2c2c; }

/* лента, поиск, пагинация */
.kmd-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.kmd-filter a { padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #dbe4f3; text-decoration: none; font-weight: 700; font-size: .88rem; transition: .2s; }
.kmd-filter a.is-active, .kmd-filter a:hover { background: #fff; border-color: #fff; color: var(--ink); }
.kmd-results { list-style: none; padding: 0; margin: 0; }
.kmd-results li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.kmd-results a { font-weight: 800; font-size: 1.08rem; text-decoration: none; }
.kmd-results p { margin: 6px 0 0; color: var(--muted); }
.kmd-pager { margin-top: 44px; }
.kmd-pager .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.kmd-pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 700; }
.kmd-pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.kmd-404 { text-align: center; padding: 96px 24px; }
.kmd-404 .kmd-search--inline { margin: 28px auto; }
.kmd-404__code { font-size: 7rem; font-weight: 800; letter-spacing: -.04em; margin: 0; line-height: 1; background: linear-gradient(120deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* галерея лицензий */
.kmd-prose .wp-block-gallery, .kmd-prose .gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.kmd-prose .wp-block-gallery figure { margin: 0; width: auto !important; }
.kmd-prose .wp-block-gallery img { border: 1px solid var(--line); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--r) !important; transition: transform .3s var(--ease), box-shadow .3s; }
.kmd-prose .wp-block-gallery a:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kmd-prose .wp-block-gallery figcaption { font-size: .8rem; color: var(--muted); position: static !important; background: none !important; padding: 8px 2px 0 !important; text-align: left; }

/* ---------- подвал ---------- */
.kmd-footer { background: #0b1730; color: #95a4c0; font-size: .92rem; }
.kmd-footer a { color: #dfe7f5; text-decoration: none; }
.kmd-footer a:hover { color: var(--cyan); }
.kmd-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.kmd-footer__brand img { width: 170px; height: auto; margin-bottom: 18px; }
.kmd-footer__brand p { max-width: 320px; }
.kmd-footer__h { color: #fff; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin: 8px 0 20px; }
.kmd-footer__menu, .kmd-footer__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kmd-footer__contacts li { line-height: 1.35; }
.kmd-footer__contacts a { font-weight: 700; }
.kmd-footer__contacts small { display: block; color: #7d8dab; font-size: .8rem; }
.kmd-social { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.08); color: #fff !important; transition: background .2s; }
.kmd-social:hover { background: #1877f2; }
.kmd-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.kmd-footer__bin { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; font-size: .85rem; }
.kmd-dev { display: inline-flex; align-items: center; gap: 10px; color: #95a4c0 !important; }
.kmd-dev img { width: 28px; height: 28px; border-radius: 50%; }
.kmd-dev b { color: #fff; font-weight: 700; }
.kmd-dev:hover b { color: var(--cyan); }

/* прочее */
.kmd-totop { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: background .2s, transform .2s; }
.kmd-totop:hover { background: var(--cyan-d); transform: translateY(-2px); }
.kmd-totop[hidden] { display: none; }
.kmd-totop .kmd-i { width: 24px; height: 24px; }
.kmd-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,16,33,.92); display: grid; place-items: center; padding: 24px; }
.kmd-lightbox[hidden] { display: none; }
.kmd-lightbox img { max-height: 92vh; max-width: 96vw; border-radius: 8px; background: #fff; }
.kmd-lightbox button { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }

/* ---------- адаптив ---------- */
@media (max-width: 1680px) {
	.kmd-phones__txt, .kmd-phones__more { display: none; }
	.kmd-phones { padding: 0; border: 0; }
	.kmd-phones__ico { width: 44px; height: 44px; }
	.kmd-header__in { gap: 20px; }
}
@media (max-width: 1240px) {
	.kmd-menu > li > a { padding: 10px 9px; font-size: .88rem; }
	.kmd-figures__in { grid-template-columns: 1fr 1fr; }
	.kmd-figures__person { display: none; }
	.kmd-figures__list { padding-bottom: 88px; }
}
@media (max-width: 1100px) {
	.kmd-phones__txt, .kmd-phones__more { display: none; }
	.kmd-phones { padding: 3px; border: 0; }
	.kmd-services__grid { grid-template-columns: repeat(2, 1fr); }
	.kmd-units__grid { grid-template-columns: 1fr; }
	.kmd-unit { min-height: 0; }
	.kmd-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.kmd-hide-md { display: none !important; }
	.kmd-header__in { min-height: 68px; gap: 12px; }
	.kmd-logo img { width: 128px; }
	.kmd-burger { display: inline-grid; }
	.kmd-nav { position: fixed; inset: 108px 0 0 0; z-index: 59; background: #fff; overflow-y: auto; padding: 12px 20px 40px; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
	body.admin-bar .kmd-nav { top: 154px; }
	.kmd-nav.is-open { transform: none; visibility: visible; }
	.kmd-menu { flex-direction: column; gap: 0; }
	.kmd-menu > li > a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; background: none !important; }
	.kmd-menu > li.menu-item-has-children > a::after { display: none; }
	.kmd-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 6px 0 10px 12px; min-width: 0; }
	.kmd-menu .sub-menu::before { display: none; }
	.kmd-nav__mobile { display: grid; gap: 8px; margin-top: 20px; }
	.kmd-nav__phone { display: block; padding: 12px 16px; border-radius: var(--r); background: var(--soft); color: var(--ink); text-decoration: none; }
	.kmd-nav__phone span { display: block; font-size: .82rem; color: var(--muted); }
	.kmd-hero__in { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
	.kmd-hero__content { padding-bottom: 0; }
	.kmd-hero__media { margin-top: 8px; }
	.kmd-hero__person { width: 280px; }
	.kmd-hero__ring { width: 340px; height: 340px; bottom: -40px; }
	.kmd-services { margin-top: -40px; }
	.kmd-section { padding: 72px 0; }
	.kmd-section__head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
	.kmd-figures__in { grid-template-columns: 1fr; gap: 0; padding-top: 64px; }
	.kmd-figures__text { padding-bottom: 32px; }
	.kmd-figures__list { padding-bottom: 64px; }
	.kmd-news__grid { grid-template-columns: 1fr; }
	.kmd-cards { grid-template-columns: repeat(2, 1fr); }
	.kmd-cta__in { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
	.kmd-layout--side { grid-template-columns: 1fr; gap: 28px; }
	.kmd-side { position: static; box-shadow: none; }
	.kmd-layout__side { order: 2; }
	.kmd-contacts { grid-template-columns: 1fr; }
}
@media (max-width: 782px) { body.admin-bar .kmd-header { top: 46px; } }
@media (max-width: 640px) {
	body { font-size: 15px; }
	.kmd-wrap { padding: 0 16px; }
	.kmd-util__item:first-child { max-width: 58vw; overflow: hidden; text-overflow: ellipsis; }
	.kmd-services__grid { grid-template-columns: 1fr; gap: 10px; }
	.kmd-service { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 16px 44px 16px 16px; gap: 4px 14px; }
	.kmd-service__ico { margin: 0; width: 44px; height: 44px; }
	.kmd-service__title { flex: 1; font-size: 1rem; }
	.kmd-service__text { flex-basis: 100%; padding-right: 0; }
	.kmd-service__go { top: 50%; bottom: auto; transform: translateY(-50%); right: 16px; }
	.kmd-service:hover .kmd-service__go { transform: translate(4px, -50%); }
	.kmd-cards { grid-template-columns: 1fr; }
	.kmd-unit { padding: 26px 22px; }
	.kmd-form { padding: 22px; }
	.kmd-form__row { grid-template-columns: 1fr; gap: 0; }
	.kmd-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
	.kmd-footer__bin { flex-direction: column; justify-content: center; padding: 18px 0; }
	.kmd-cta { padding-bottom: 72px; }
	.kmd-row__date { width: 48px; }
	.kmd-map { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* шапка: запас места между логотипом, меню и кнопками на любых ширинах */
.kmd-logo { margin-right: 12px; }
.kmd-header__tools { margin-left: 12px; }
@media (max-width: 1440px) { .kmd-menu > li > a { padding: 10px 11px; font-size: .92rem; } }
@media (max-width: 1240px) { .kmd-logo img { width: 136px; } .kmd-header__in { gap: 12px; } .kmd-menu > li > a { padding: 9px 8px; font-size: .86rem; } }
@media (min-width: 961px) and (max-width: 1100px) { .kmd-menu > li > a { padding: 8px 6px; font-size: .82rem; } .kmd-menu > li.menu-item-has-children > a::after { display: none; } }

/* ---------- телефон в верхней полосе (v2.1): шапке больше места ---------- */
.kmd-util { position: relative; z-index: 70; }
.kmd-phones--util { padding: 0; border: 0; background: none; border-radius: 0; }
.kmd-phones--util .kmd-phones__main { gap: 8px; color: #fff; }
.kmd-phones--util .kmd-phones__ico { width: auto; height: auto; background: none; color: var(--cyan); }
.kmd-phones--util .kmd-phones__ico .kmd-i { width: 1em; height: 1em; }
.kmd-phones--util .kmd-phones__txt { display: flex !important; align-items: baseline; gap: 8px; }
.kmd-phones--util .kmd-phones__txt b { font-size: .88rem; color: #fff; }
.kmd-phones--util .kmd-phones__txt small { display: inline !important; color: #8fa1c2; font-size: .76rem; }
.kmd-phones--util .kmd-phones__more { display: grid !important; color: #b4c0d6; width: 24px; height: 24px; }
.kmd-phones--util .kmd-phones__more:hover { background: rgba(255,255,255,.1); }
.kmd-phones--util .kmd-phones__list { top: calc(100% + 10px); }
.kmd-iconbtn--call { background: var(--cyan); color: #fff; }
.kmd-iconbtn--call:hover { background: var(--cyan-d); color: #fff; }
.kmd-header__in { gap: 24px; }
.kmd-menu { justify-content: flex-end; }
.kmd-menu > li > a { padding: 10px 13px; font-size: .95rem; }
@media (min-width: 961px) { .kmd-iconbtn--call { display: none; } }
@media (max-width: 1240px) { .kmd-menu > li > a { padding: 9px 9px; font-size: .88rem; } .kmd-phones--util .kmd-phones__txt small { display: none !important; } }
@media (max-width: 1100px) { .kmd-menu > li > a { padding: 8px 7px; font-size: .84rem; } }
@media (max-width: 960px) { .kmd-phones--util { display: none; } }
.kmd-phones--util .kmd-phones__txt b { white-space: nowrap; }
@media (max-width: 1180px) { .kmd-util__item.kmd-hide-md { display: none; } }

/* ---------- плотнее низ страницы (v2.2) ---------- */
.kmd-news { padding-bottom: 72px; }
.kmd-cta { padding: 0 0 72px; }
.kmd-cta__in { padding: 36px 44px; }
.kmd-footer { font-size: .9rem; }
.kmd-footer__grid { grid-template-columns: 1.3fr .9fr 1.1fr 1.3fr; gap: 40px; padding-top: 52px; padding-bottom: 36px; }
.kmd-footer__brand img { width: 150px; margin-bottom: 14px; }
.kmd-footer__brand p { font-size: .88rem; line-height: 1.6; margin-bottom: 16px; }
.kmd-footer__h { margin: 4px 0 16px; font-size: .75rem; }
.kmd-footer__menu { gap: 8px; }
.kmd-footer__contacts { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.kmd-footer__contacts li:nth-last-child(-n+2) { grid-column: 1 / -1; }
.kmd-footer__contacts a { font-size: .92rem; }
.kmd-footer__bin { min-height: 56px; }
.kmd-social { width: 38px; height: 38px; }
@media (max-width: 1100px) { .kmd-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .kmd-footer__contacts { grid-template-columns: 1fr; } .kmd-cta__in { padding: 28px 22px; } }
:root { --wrap: 1400px; }
/* главная новость тянется на всю высоту ленты — без пустоты под ней */
.kmd-news__grid { align-items: stretch; }
.kmd-news__lead { display: flex; }
.kmd-card--lead { flex: 1; }
.kmd-card--lead .kmd-card__img { flex: 1 1 auto; aspect-ratio: auto; min-height: 280px; }
.kmd-card--lead .kmd-card__body { flex: 0 0 auto; }
@media (max-width: 960px) { .kmd-card--lead .kmd-card__img { aspect-ratio: 16 / 9; min-height: 0; } }
/* картинка главной новости без обрезки текста на обложке */
.kmd-card--lead .kmd-card__img { flex: 0 0 auto; aspect-ratio: 16 / 9; min-height: 0; }
.kmd-card--lead .kmd-card__body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
/* предприятия: две карточки */
.kmd-units__grid { grid-template-columns: repeat(2, 1fr); }
.kmd-unit { min-height: 240px; }
@media (max-width: 1100px) { .kmd-units__grid { grid-template-columns: 1fr; } }

/* v2.3: пометка языка у новостей без перевода */
.kmd-tag--lang { background: #eef1f6; color: var(--muted); font-weight: 600; margin-left: 6px; }

/* ===== v2.4: порядок на внутренних страницах ===== */
/* выравнивание по ширине давало «рваные» пробелы */
.kmd-prose p, .kmd-prose li, .report-card__text, .mission-text { text-align: left !important; }
.kmd-prose p { margin: 0 0 .9em; }
.kmd-prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.kmd-lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 20px !important; }
.kmd-h3, .kmd-prose h3.kmd-h3 { font-size: 1.25rem; font-weight: 800; margin: 36px 0 10px; }

/* ссылка на файл: бейдж с типом вместо пустого значка */
.kmd-prose a.kmd-file { padding-left: 0; display: inline; font-weight: 600; }
.kmd-prose a.kmd-file::before { content: attr(data-ext); position: static; display: inline-block; width: auto; height: auto; min-width: 2.6em; margin-right: .45em; padding: 1px 5px; border-radius: 4px; border: 0; background: #e8eef9; color: #3b5b9a; font-size: .66em; font-weight: 800; letter-spacing: .03em; line-height: 1.7; text-align: center; vertical-align: .15em; }
.kmd-prose a.kmd-file--pdf::before { background: #fde8e8; color: #c62828; }
.kmd-prose a.kmd-file--xls::before, .kmd-prose a.kmd-file--xlsx::before, .kmd-prose a.kmd-file--csv::before { background: #e3f6ea; color: #1b7a3d; }
.kmd-prose a.kmd-file--doc::before, .kmd-prose a.kmd-file--docx::before { background: #e3eefc; color: #1a56b0; }
.kmd-prose a.kmd-file--ppt::before, .kmd-prose a.kmd-file--pptx::before { background: #fff0e3; color: #c25e00; }
.kmd-prose a.kmd-file--rar::before, .kmd-prose a.kmd-file--zip::before { background: #f3e5f5; color: #7b1fa2; }
.kmd-prose a.kmd-file--jpg::before, .kmd-prose a.kmd-file--jpeg::before, .kmd-prose a.kmd-file--png::before { background: #e0f4f8; color: #00809b; }

/* бейджи карточек документов — недостающие типы */
.badge-docx, .badge-doc { background: #e3eefc; color: #1a56b0; }
.badge-xlsx, .badge-xls, .badge-csv { background: #e3f6ea; color: #1b7a3d; }
.badge-pptx { background: #fff0e3; color: #c25e00; }
.badge-zip { background: #f3e5f5; color: #7b1fa2; }
.badge-jpg, .badge-jpeg, .badge-png { background: #e0f4f8; color: #00809b; }
.reports-wrapper .report-card { text-decoration: none; }

/* объявления по тарифам — карточками */
.kmd-notice { position: relative; padding: 22px 24px 8px; margin: 0 0 16px; border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: var(--r); background: #fff; }
.kmd-notice p { margin: 0 0 .75em; }
.kmd-notice .kmd-notice__date { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; background: var(--cyan-l); color: var(--cyan-d); font-size: .85rem; }
.kmd-notice .kmd-notice__date b { font-weight: 700; }
.kmd-notice ol, .kmd-notice ul { margin-top: 0; }

/* «дата публикации» в списках закупок */
.kmd-prose .kmd-pubdate { margin: 18px 0 6px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .85rem; font-weight: 600; }
.kmd-prose a.kmd-doclink { font-weight: 700; }

/* длинные списки документов — воздух между пунктами */
.kmd-prose ol li, .kmd-prose ul li { margin-bottom: .45em; }

/* карточки подразделов — с описанием */
.kmd-subpage { align-items: flex-start; padding: 20px 22px; }
.kmd-subpage > span { display: flex; flex-direction: column; gap: 6px; }
.kmd-subpage b { font-weight: 700; line-height: 1.3; }
.kmd-subpage small { font-size: .85rem; font-weight: 500; color: var(--muted); line-height: 1.45; }
.kmd-subpage .kmd-i { margin-top: 2px; flex-shrink: 0; }
.reports-wrapper .report-name { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.3; }
.reports-wrapper .reports-grid > p, .reports-wrapper .reports-grid > br { display: none; }
.kmd-poster { margin: 24px 0; max-width: 720px; }
.kmd-poster img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kmd-prose a.kmd-file:has(img)::before, .kmd-poster a::before { display: none !important; }
.kmd-prose a.kmd-file:has(img) { display: block; }

/* ===== v2.5: документы, закупки, вакансии ===== */
.kmd-notice__files { display: flex; flex-wrap: wrap; gap: 8px; }
.kmd-notice .file-badge, .kmd-proc .file-badge { text-decoration: none; }

.kmd-proc { display: grid; gap: 14px; margin: 0 0 28px; }
.kmd-proc__item { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.kmd-proc__item.is-open { border-left: 4px solid var(--cyan); }
.kmd-proc__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 8px; font-size: .85rem; color: var(--muted); }
.kmd-proc__date { padding: 2px 10px; border-radius: 999px; background: var(--cyan-l); color: var(--cyan-d); font-weight: 700; }
.kmd-proc__num { font-weight: 700; color: var(--ink); }
.kmd-proc__item.is-open .kmd-proc__dl { color: #1b7a3d; font-weight: 600; }
.kmd-proc__title { margin: 0 0 6px !important; font-size: 1.05rem; }
.kmd-proc__text p { margin: 0 0 .5em; }
.kmd-proc .report-card__files { margin-top: 10px; }

.kmd-older { margin: 18px 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.kmd-older summary { cursor: pointer; font-weight: 700; }
.kmd-older ul { margin: 12px 0 0; padding-left: 18px; }
.kmd-older li { margin-bottom: 8px; }
.kmd-older .file-badge { margin-left: 6px; }

.kmd-vac { display: grid; gap: 12px; }
.kmd-vac__item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.kmd-vac__item[open] { box-shadow: var(--shadow); }
.kmd-vac__item summary { list-style: none; cursor: pointer; display: grid; gap: 4px; padding: 18px 48px 18px 22px; position: relative; }
.kmd-vac__item summary::-webkit-details-marker { display: none; }
.kmd-vac__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--cyan-l); color: var(--cyan-d); display: grid; place-items: center; font-weight: 700; }
.kmd-vac__item[open] summary::after { content: "–"; }
.kmd-vac__title { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.kmd-vac__meta { color: var(--muted); font-size: .9rem; }
.kmd-vac__dl { font-size: .85rem; color: var(--cyan-d); font-weight: 600; }
.kmd-vac__body { padding: 0 22px 18px; border-top: 1px solid var(--line); }
.kmd-vac__body h4 { margin: 16px 0 6px; font-size: 1rem; }
.kmd-vac__body ul { margin: 0; padding-left: 20px; }
.kmd-vac__contact { margin-top: 16px !important; padding: 12px 14px; border-radius: 8px; background: #f5f8fc; }
.kmd-vac-empty { padding: 26px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); text-align: center; }
/* v2.6 — ссылка на несохранившийся файл */
.kmd-nofile { color: var(--muted); }
.kmd-nofile::after { content: " · " attr(title); font-size: .85em; font-style: italic; opacity: .8; }
/* v2.7 — страница из разделов (О компании) */
.kmd-csec { scroll-margin-top: 110px; }
.kmd-csec + .kmd-csec { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.kmd-csec__title { margin: 0 0 20px !important; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.kmd-csec .company-page__title:first-child { margin-top: 0; }
.kmd-side--anchors .kmd-side__root.is-active, .kmd-side--anchors .kmd-side__list a.is-active { background: var(--cyan-l); color: var(--cyan-d); font-weight: 700; }
@media (max-width: 960px) {
	.kmd-layout--side .kmd-layout__side:has(.kmd-side--anchors) { order: 0; position: sticky; top: 64px; z-index: 20; }
	.kmd-side--anchors { display: flex; gap: 6px; overflow-x: auto; padding: 6px; border-radius: 999px; scrollbar-width: none; background: rgba(255,255,255,.95); }
	.kmd-side--anchors::-webkit-scrollbar { display: none; }
	.kmd-side--anchors .kmd-side__list { display: flex; gap: 6px; }
	.kmd-side--anchors a, .kmd-side--anchors .kmd-side__list a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: .88rem; }
	.kmd-side--anchors .kmd-side__root { font-weight: 700; }
}
.kmd-layout__side, .kmd-layout__main { min-width: 0; }
.kmd-csec .company-page__title { text-align: left; font-size: 1rem; font-weight: 500; color: var(--muted); margin: 0 0 14px; padding: 0; }
.kmd-csec .company-page__title::after { display: none; }
/* v2.8 — лицензии */
.kmd-prose .wp-block-gallery figcaption, .kmd-prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { color: var(--text) !important; text-shadow: none !important; font-weight: 500; }
.kmd-lics { display: grid; gap: 28px; }
.kmd-lic { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 24px 26px 28px; box-shadow: var(--shadow); }
.kmd-lic__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.kmd-prose .kmd-lic__title { margin: 0 !important; font-size: 1.15rem; line-height: 1.35; }
.kmd-lic__meta { flex: none; font-size: .82rem; font-weight: 600; color: var(--cyan-d); background: var(--cyan-l); padding: 4px 12px; border-radius: 999px; }
.kmd-lic__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.kmd-prose a.kmd-lic__sheet { display: block; text-decoration: none; color: var(--ink); }
.kmd-lic__sheet img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #f4f6f9; border: 1px solid #d5dce6; border-radius: var(--r); box-shadow: 0 2px 8px rgba(16,32,64,.08); transition: transform .3s var(--ease), box-shadow .3s; }
.kmd-lic__sheet:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kmd-lic__sheet span { display: block; margin-top: 10px; font-size: .88rem; font-weight: 600; text-align: center; }
.kmd-lightbox .kmd-lightbox__nav { right: auto; display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.kmd-lightbox .kmd-lightbox__nav:hover { background: rgba(255,255,255,.28); }
.kmd-lightbox .kmd-lightbox__prev { left: 20px; } .kmd-lightbox .kmd-lightbox__next { left: auto; right: 20px; }
.kmd-lightbox .kmd-lightbox__nav[hidden] { display: none; }
.kmd-lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; opacity: .85; }
@media (max-width: 600px) { .kmd-lic { padding: 18px 16px 20px; } .kmd-lic__head { flex-direction: column; gap: 8px; } .kmd-lic__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .kmd-lightbox .kmd-lightbox__nav { width: 42px; height: 42px; font-size: 28px; } .kmd-lightbox .kmd-lightbox__prev { left: 8px; } .kmd-lightbox .kmd-lightbox__next { right: 8px; } }
.kmd-side--anchors .kmd-side__page { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .kmd-side--anchors .kmd-side__page { margin: 0; padding: 0; border: 0; } }
