/* =========================================================
   nk-content.css — слой группы «content»
   Контент: /news/, /sales/, /vypolnennye-proekty/, /services/, /brands/<бренд>/ — группа content
   Подключается в header.php после css/nk-base.css (прямой <link> с ?v=filemtime).
   Правила писать ТОЛЬКО здесь и только под скоупом body.nk-inner + своя обёртка страницы
   (например body.nk-inner .nk-content-...). Токены (--nk-*) и компоненты (.nk-btn, .nk-field,
   .nk-check, .nk-card, .nk-tile, .nk-panel ...) — из nk-base.css, не переопределять глобально.

   Все блоки группы — с префиксом .nk-c-* (обёртка страницы .nk-c):
    1. Общее: .nk-c, заголовок секции, сетки карточек .nk-c-grid, карточка записи .nk-c-card, пустое состояние
    2. Детальные: белая панель .nk-c-article, мета-строка .nk-c-meta, обложка, типографика .nk-c-prose, CTA .nk-c-cta
    3. Соц-кнопки .nk-c-soc, телефон
    4. /services/: .nk-c-steps / .nk-c-step, «Почему мы» .nk-c-why, карта .nk-c-map
    5. /sales/: .nk-c-sale
    6. /brands/: плитки логотипов .nk-c-brands, шапка бренда .nk-c-brand
    7. Проекты: галерея .nk-c-gallery (Swiper script.js), товары проекта .nk-c-goods
    8. Адаптив 1260 / 900 / 640
   ========================================================= */

/* ---------- 1. Общее ---------- */
body.nk-inner .nk-c { color: var(--nk-text); }
body.nk-inner .nk-c-sec { margin-top: 84px; }
body.nk-inner .nk-c-sec:first-child { margin-top: 0; }
.nk-c-head { margin-bottom: 40px; }
.nk-c-head .nk-sub { max-width: 820px; }

/* Сетки карточек (как «Наши направления» / «Этапы монтажа» главной) */
.nk-c-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.nk-c-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 29px 21px; }

/* Карточка записи (новость / проект): вся карточка — ссылка */
body.nk-inner a.nk-c-card,
body.nk-inner .nk-c-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 7px 7px 26px;
	border-radius: 34px;
	background: #fff;
	box-shadow: var(--nk-shadow-tile);
	color: var(--nk-text);
	text-decoration: none;
	transition: transform .25s, box-shadow .25s;
}
body.nk-inner a.nk-c-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(54, 82, 157, .13); }
.nk-c-card__img {
	position: relative;
	display: block;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	border-radius: 28px;
	background: var(--nk-card);
}
.nk-c-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.nk-c-card:hover .nk-c-card__img img { transform: scale(1.04); }
/* Нет картинки — голубая подложка со знаком логотипа */
.nk-c-card__img--empty { display: flex; align-items: center; justify-content: center; }
.nk-c-card__img--empty img { width: 42%; height: auto; opacity: .22; object-fit: contain; filter: grayscale(1) brightness(.4); }
.nk-c-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px 20px 0; }
body.nk-inner .nk-c-card__body > :first-child { margin-top: 0; }
/* нет даты/адреса (строки мета) — заголовок всё равно на уровне соседних карточек ряда: 18px строки мета + 12px отступ */
body.nk-inner .nk-c-card__body > .nk-c-card__title:first-child { margin-top: 30px; }
.nk-c-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; line-height: 18px; color: var(--nk-grey); }
.nk-c-card__pin { display: inline-flex; align-items: center; gap: 6px; color: var(--nk-navy); font-weight: 400; }
.nk-c-card__pin svg { width: 16px; height: 16px; flex: none; color: var(--nk-blue); }
body.nk-inner .nk-c-card__title {
	margin: 12px 0 0;
	font-size: 24px;
	line-height: 29px;
	font-weight: 700;
	color: var(--nk-text);
	text-wrap: balance;
	overflow-wrap: anywhere;
	transition: color .2s;
}
a.nk-c-card:hover .nk-c-card__title { color: var(--nk-navy); }
.nk-c-card__text {
	display: -webkit-box;
	margin: 10px 0 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	font-size: 18px;
	line-height: 24px;
	font-weight: 300;
	color: #6f7380;
}
.nk-c-card__more {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 22px;
	font-size: 17px;
	font-weight: 700;
	color: var(--nk-blue);
}
.nk-c-card__more .nk-sq-btn { width: 48px; height: 48px; border-radius: 15px; font-size: 22px; }
a.nk-c-card:hover .nk-c-card__more .nk-sq-btn { transform: rotate(45deg); box-shadow: none; }

/* Пустое состояние списка */
.nk-c-empty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 34px 40px;
	border-radius: 30px;
	background: var(--nk-card);
	color: var(--nk-text);
}
.nk-c-empty p { margin: 0; font-size: 22px; line-height: 27px; }
.nk-c-empty b { color: var(--nk-navy); }
.nk-c-pager { margin-top: 12px; }

/* ---------- 2. Детальные: белая панель + текст ---------- */
body.nk-inner .nk-c-article { margin-top: 0; color: var(--nk-text); }
.nk-c-article__in { width: min(960px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 64px; }
.nk-c-article__in--wide { width: min(1200px, calc(100% - 40px)); }
.nk-c-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
body.nk-inner .nk-c-meta .nk-badge { height: 38px; padding: 0 18px; font-size: 15px; font-weight: 400; }
.nk-c-meta .nk-badge svg { width: 16px; height: 16px; margin-right: 8px; color: var(--nk-blue); }
body.nk-inner a.nk-c-back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 38px;
	padding: 0 18px 0 8px;
	border-radius: 999px;
	background: var(--nk-bg);
	color: var(--nk-navy);
	font-size: 15px;
	font-weight: 700;
	transition: background .2s, color .2s;
}
.nk-c-back i { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--nk-grad-sq); color: #fff; font-size: 15px; font-style: normal; }
body.nk-inner a.nk-c-back:hover { background: #e3f1fc; }
.nk-c-cover { display: block; width: auto; max-width: 100%; height: auto; margin: 30px auto 0; border-radius: 30px; }	/* не растягивать выше натурального размера (мыло на обложках 816 px) */
.nk-c-lead { margin-top: 30px; font-size: 22px; line-height: 32px; font-weight: 400; color: var(--nk-text); }
.nk-c-lead p { margin: 0; }

/* Типографика текста из визуального редактора (DETAIL_TEXT) */
body.nk-inner .nk-c-prose { margin-top: 26px; font-size: 19px; line-height: 30px; font-weight: 300; color: var(--nk-text); overflow-wrap: break-word; }
body.nk-inner .nk-c-prose > :first-child { margin-top: 0; }
body.nk-inner .nk-c-prose p { margin: 0 0 16px; }
body.nk-inner .nk-c-prose h2 { margin: 44px 0 14px; font-size: 32px; line-height: 38px; font-weight: 700; color: var(--nk-navy); }
body.nk-inner .nk-c-prose h3 { margin: 32px 0 10px; font-size: 25px; line-height: 31px; font-weight: 700; color: var(--nk-text); }
body.nk-inner .nk-c-prose h4 { margin: 24px 0 8px; font-size: 21px; line-height: 27px; font-weight: 700; color: var(--nk-text); }
body.nk-inner .nk-c-prose :is(h2, h3, h4):empty { display: none; }
body.nk-inner .nk-c-prose b, body.nk-inner .nk-c-prose strong { font-weight: 700; }
body.nk-inner .nk-c-prose a { color: var(--nk-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(75, 186, 249, .45); }
body.nk-inner .nk-c-prose a:hover { color: var(--nk-navy); }
body.nk-inner .nk-c-prose ul,
body.nk-inner .nk-c-prose ol { margin: 14px 0 18px; padding: 0; list-style: none; }
body.nk-inner .nk-c-prose li { position: relative; margin: 0 0 12px; padding-left: 30px; list-style: none; }
body.nk-inner .nk-c-prose ul > li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 11px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--nk-grad-sq);
	box-shadow: 0 0 0 4px #e3f1fc;
}
body.nk-inner .nk-c-prose ol { counter-reset: nk-ol; }
body.nk-inner .nk-c-prose ol > li { counter-increment: nk-ol; padding-left: 40px; }
body.nk-inner .nk-c-prose ol > li::before {
	content: counter(nk-ol);
	position: absolute;
	left: 0;
	top: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: var(--nk-grad-sq);
	color: #fff;
	font-size: 15px;
	line-height: 1;
	font-weight: 700;
}
body.nk-inner .nk-c-prose img { display: block; max-width: 100% !important; height: auto !important; margin: 26px auto; border-radius: 20px; }
body.nk-inner .nk-c-prose .image-bottom-news { margin: 10px 0; }
body.nk-inner .nk-c-prose table {
	width: 100%;
	margin: 22px 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 0 0 1px #e3eaf3;
	font-size: 17px;
	line-height: 23px;
}
body.nk-inner .nk-c-prose td,
body.nk-inner .nk-c-prose th { padding: 14px 20px; border: 0; border-bottom: 1px solid #e3eaf3; text-align: left; vertical-align: top; }
body.nk-inner .nk-c-prose tr:last-child td { border-bottom: 0; }
body.nk-inner .nk-c-prose tr:nth-child(even) td { background: #f7f9fc; }
/* шапка таблицы: один градиент на всю строку (фон строки), ячейки прозрачные — без «швов» по колонкам */
body.nk-inner .nk-c-prose tr:first-child { background: var(--nk-grad); }
body.nk-inner .nk-c-prose th,
body.nk-inner .nk-c-prose tr:first-child td { background: transparent; color: #fff; font-weight: 700; border-bottom: 0; }
body.nk-inner .nk-c-prose blockquote { margin: 22px 0; padding: 20px 26px; border-radius: 20px; background: var(--nk-card); }
/* Лишние <br> вокруг блоков (картинка, таблица, список, заголовок) вырезает PHP: include/nk_content.php → nk_c_prose().
   CSS-селекторы br + br не годятся: «+» не видит текстовые узлы между <br> и склеивал абзацы. */
/* Встроенные в текст цвета старого редактора (#2c4cba) — к фирменному navy */
body.nk-inner .nk-c-prose span[style*="color"] { color: var(--nk-navy) !important; }

/* CTA в конце статьи: «Остались вопросы?» + телефон + мессенджеры */
.nk-c-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
	margin-top: 44px;
	padding: 28px 32px;
	border-radius: 30px;
	background: var(--nk-card);
	color: var(--nk-text);
}
.nk-c-cta__title { margin: 0; font-size: 26px; line-height: 31px; font-weight: 400; }
.nk-c-cta__title b { color: var(--nk-navy); }
.nk-c-cta__sub { margin: 6px 0 0; font-size: 17px; line-height: 22px; color: #6f7380; }
.nk-c-cta__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

/* ---------- 3. Телефон и мессенджеры ---------- */
body.nk-inner a.nk-c-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--nk-navy); font-size: 24px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.nk-c-phone .nk-ui-i { color: var(--nk-blue); }
body.nk-inner a.nk-c-phone:hover { color: var(--nk-blue); }
.nk-c-soc { display: flex; align-items: center; gap: 10px; }
body.nk-inner .nk-c-soc a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--nk-grad-sq);
	transition: transform .2s, box-shadow .2s;
}
body.nk-inner .nk-c-soc a:hover { transform: scale(1.07); box-shadow: 0 8px 18px rgba(75, 186, 249, .4); }
.nk-c-soc img { width: auto; height: 20px; display: block; }

/* ---------- 4. /services/ ---------- */
.nk-c-srv .nk-srv { margin-top: 40px; }
.nk-c-steps { display: flex; flex-direction: column; gap: 28px; }
.nk-c-step {
	display: grid;
	/* колонка фото ≈ 532px на сетке 1200 — фото этапов (532×340) показываются почти 1:1, без растяжения */
	grid-template-columns: minmax(0, 532fr) minmax(0, 596fr);
	gap: 0 48px;
	align-items: stretch;
	padding: 12px;
	border-radius: 40px;
	background: #fff;
	box-shadow: var(--nk-shadow-tile);
	color: var(--nk-text);
}
.nk-c-step:nth-child(even) { grid-template-columns: minmax(0, 596fr) minmax(0, 532fr); }
.nk-c-step:nth-child(even) .nk-c-step__media { order: 2; }
/* фото не тянется на высоту текста: пропорция исходника (532×340), по центру колонки — без апскейла и без обрезки надписей */
.nk-c-step__media { position: relative; align-self: center; aspect-ratio: 532 / 340; overflow: hidden; border-radius: 30px; background: var(--nk-card); }
.nk-c-step__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nk-c-step__body { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 36px 34px 0; }
.nk-c-step:nth-child(even) .nk-c-step__body { padding: 32px 0 34px 36px; }
.nk-c-step__top { display: flex; align-items: center; gap: 14px; }
.nk-c-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: var(--nk-grad-sq);
	color: #fff;
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -.02em;
}
body.nk-inner .nk-c-step__title { margin: 20px 0 0; font-size: 36px; line-height: 42px; font-weight: 700; color: var(--nk-text); text-wrap: balance; }
body.nk-inner .nk-c-step__text { margin-top: 14px; font-size: 20px; line-height: 28px; font-weight: 300; color: var(--nk-text); }
body.nk-inner .nk-c-step__text p { margin: 0 0 12px; }
body.nk-inner .nk-c-step__text p:last-child { margin-bottom: 0; }
body.nk-inner .nk-c-step__text b { color: var(--nk-navy); }
.nk-c-step__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 4px 0 16px; }
.nk-c-step .nk-btn { margin-top: 22px; }
.nk-c-step__list { margin: 16px 0 0; padding: 0; list-style: none; }
body.nk-inner .nk-c-step__list li { position: relative; margin: 0 0 12px; padding-left: 40px; font-size: 20px; line-height: 27px; list-style: none; }
.nk-c-step__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 27px;
	height: 27px;
	border-radius: 9px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat, var(--nk-grad-sq);
}
/* «Важно!» — плашка navy */
.nk-c-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	width: 100%;
	margin-top: 22px;
	padding: 18px 20px;
	border-radius: 24px;
	background: var(--nk-card-dark);
	color: #fff;
}
.nk-c-note__label { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--nk-navy); font-size: 15px; font-weight: 700; }
.nk-c-note p { flex: 1 1 220px; margin: 0; font-size: 18px; line-height: 24px; color: #fff; }
.nk-c-note .nk-c-soc a { width: 42px; height: 42px; background: rgba(255, 255, 255, .16); }
.nk-c-note .nk-c-soc a:hover { background: var(--nk-grad-sq); }
.nk-c-note .nk-c-soc img { height: 18px; }

/* «Почему именно мы?» */
.nk-c-why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
body.nk-inner .nk-c-why .nk-card:hover { transform: none; box-shadow: none; }
.nk-c-why__team {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 0 48px;
	align-items: stretch;
	padding: 12px 12px 12px 44px;
}
.nk-c-why__team .nk-c-why__txt { padding: 34px 0; }
.nk-c-why__team img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; border-radius: 24px; }
body.nk-inner .nk-c-why h3 { margin: 18px 0 0; font-size: 30px; line-height: 36px; font-weight: 700; color: inherit; }
.nk-c-why .nk-card--dark h3 { color: #fff; }
body.nk-inner .nk-c-why p { margin: 14px 0 0; font-size: 19px; line-height: 27px; font-weight: 300; }
.nk-c-why .nk-card--dark p { color: rgba(255, 255, 255, .9); }
.nk-c-why .nk-card { padding: 36px 40px; }
body.nk-inner .nk-c-why .nk-c-why__team { padding: 12px 12px 12px 44px; }
.nk-c-why__ic { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--nk-blue); }
.nk-c-why__ic svg { width: 38px; height: 38px; }
.nk-c-why__call { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(54, 82, 157, .15); }
.nk-c-why__call p { flex: 1 0 100%; margin: 0 !important; font-size: 16px !important; color: #6f7380; }
.nk-c-why__tools { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.nk-c-tool { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 24px; background: #fff; }
.nk-c-tool__img { display: flex; align-items: center; justify-content: center; height: 128px; border-radius: 18px; background: var(--nk-bg); }
.nk-c-tool__img img { max-width: 80%; max-height: 110px; width: auto; height: auto; }
body.nk-inner .nk-c-tool p { margin: 0; font-size: 15px; line-height: 20px; color: var(--nk-text); }
body.nk-inner .nk-c-tool b { color: var(--nk-navy); }

/* Карта */
.nk-c-map__frame { margin-top: 36px; overflow: hidden; border-radius: 30px; background: #e6e8ec; box-shadow: var(--nk-shadow-tile); }
.nk-c-map__frame .nk-map, .nk-c-map__frame iframe { display: block; width: 100%; height: 440px; border: 0; }

/* ---------- 5. /sales/ ---------- */
.nk-c-sale .nk-c-card__img { aspect-ratio: 816 / 391; }
.nk-c-sale .nk-c-card__img img { object-fit: cover; }
body.nk-inner .nk-c-card .nk-c-card__badge { position: absolute; top: 18px; right: 18px; height: 36px; box-shadow: 0 6px 14px rgba(20, 38, 100, .18); }
/* Баннер акции: в картинке нарисовано пустое «облачко» (≈ left 8%, top 60%, 34%×29%) — в него выводим DESCRIPTION_IMG.
   Кегль в cqw (от ширины баннера), чтобы текст помещался в облачко на любой ширине. */
.nk-c-sale__banner { position: relative; container-type: inline-size; overflow: hidden; }
.nk-c-sale__banner > img { display: block; width: 100%; height: auto; }
/* детальная акции: исходники баннеров 816×391 — не шире 612 px (≤1.5× растяжения на Retina, раньше тянулся до 960) */
.nk-c-sale-detail .nk-c-sale__banner { max-width: 612px; margin-inline: auto; }
.nk-c-sale__cap {
	position: absolute;
	left: 8.2%;
	top: 60.6%;
	width: 33.6%;
	height: 28.4%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 clamp(4px, 2.2cqw, 40px);
	text-align: center;
	/* на телефоне 2.75cqw давало ~9.5px — не мельче 11px (поле облачка чуть уже, текст помещается) */
	font-size: clamp(11px, 2.75cqw, 22px);
	line-height: 1.18;
	font-weight: 700;
	color: var(--nk-navy);
	text-wrap: balance;
}
/* очень узкий баннер (телефоны ≤360): плотнее строки, чтобы 4 строки подписи помещались в облачко */
@container (max-width: 330px) {
	.nk-c-sale__cap { padding: 0 2px; font-size: 10.5px; line-height: 1.04; letter-spacing: -.01em; }
}
.nk-c-sale-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 34px; }

/* ---------- 6. /brands/ ---------- */
.nk-c-brands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
body.nk-inner a.nk-c-brandtile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-width: 0;
	height: 150px;
	padding: 20px 14px 16px;
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--nk-shadow-tile);
	color: var(--nk-grey);
	text-align: center;
	transition: transform .25s, box-shadow .25s;
}
body.nk-inner a.nk-c-brandtile:hover { transform: translateY(-3px); box-shadow: var(--nk-shadow-tile-h); }
.nk-c-brandtile__logo { display: flex; flex: 1; align-items: center; justify-content: center; width: 100%; min-height: 0; }
/* Логотипы как в ленте брендов главной: серый силуэт → родной цвет при наведении */
.nk-c-brandtile__logo img { display: block; width: auto; height: 34px; max-width: 150px; object-fit: contain; filter: brightness(0); opacity: .5; transition: filter .25s, opacity .25s; }
.nk-c-brandtile__logo img[src*="/lg."], .nk-c-brandtile__logo img[src*="royal-clima"] { filter: grayscale(1) brightness(.6) contrast(8); }
.nk-c-brandtile:hover .nk-c-brandtile__logo img { filter: none; opacity: 1; }
.nk-c-brandtile--inv .nk-c-brandtile__logo img { filter: invert(1) brightness(0); }
.nk-c-brandtile--inv:hover .nk-c-brandtile__logo img { filter: invert(1); }
.nk-c-brandtile__logo img[src*="funai"] { height: 42px; }
.nk-c-brandtile__logo img[src*="midea"] { height: 38px; }
.nk-c-brandtile__logo img[src*="tosot"] { height: 30px; }
.nk-c-brandtile__logo img[src*="fujitsu"] { height: 50px; } /* буквы — ~46% высоты файла (сверху знак ∞) */
.nk-c-brandtile__logo img[src*="bosch"] { height: 27px; }
/* zanussi.png — логотип на жёлтой плашке: серый силуэт, плашка растворяется (multiply), при наведении — родной вид */
.nk-c-brandtile__logo img[src*="zanussi"] { height: 40px; filter: grayscale(1) brightness(1.25) contrast(2.4); mix-blend-mode: multiply; }
.nk-c-brandtile:hover .nk-c-brandtile__logo img[src*="zanussi"] { mix-blend-mode: normal; }
.nk-c-brandtile__logo img[src*="/upload/"] { height: 56px; filter: grayscale(1); opacity: .7; }
.nk-c-brandtile__word { font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: .02em; color: #9a9a9a; text-transform: uppercase; transition: color .25s; }
.nk-c-brandtile:hover .nk-c-brandtile__word { color: var(--nk-navy); }
.nk-c-brandtile__name { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 18px; font-weight: 400; color: var(--nk-grey); transition: color .2s; }
.nk-c-brandtile__name svg { width: 14px; height: 14px; color: var(--nk-blue); transition: transform .25s; }
.nk-c-brandtile:hover .nk-c-brandtile__name { color: var(--nk-navy); }
.nk-c-brandtile:hover .nk-c-brandtile__name svg { transform: rotate(45deg); }

/* Шапка бренда: плитка-логотип + текст + кнопка */
.nk-c-brand {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 0 44px;
	align-items: center;
	padding: 12px 44px 12px 12px;
	border-radius: 40px;
	background: #fff;
	box-shadow: var(--nk-shadow-tile);
	color: var(--nk-text);
}
.nk-c-brand__logo { display: flex; align-items: center; justify-content: center; height: 200px; border-radius: 30px; background: var(--nk-card); }
.nk-c-brand__logo img { display: block; width: auto; height: 54px; max-width: 220px; object-fit: contain; }
.nk-c-brand__logo img[src*="/upload/"] { height: 110px; }
.nk-c-brand__logo--inv img { filter: invert(1); }
.nk-c-brand__logo .nk-c-brandtile__word { font-size: 34px; color: var(--nk-navy); }
.nk-c-brand__body { padding: 26px 0; }
.nk-c-brand__body .nk-sub { margin-top: 12px; }
.nk-c-brand__text { margin-top: 14px; font-size: 19px; line-height: 27px; font-weight: 300; }
.nk-c-brand__acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.nk-c-brand__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
/* «Официальный дилер» под шапкой бренда (20.10.2026; includes/dealer.php): превью сертификата + текст + кнопка PDF */
.nk-c-dealer { display: flex; align-items: center; gap: 36px; margin-top: 24px; padding: 20px 44px 20px 20px; border-radius: 40px; background: #fff; box-shadow: var(--nk-shadow-tile); color: var(--nk-text); }
.nk-c-dealer__pic { flex: 0 0 160px; display: block; border-radius: 14px; overflow: hidden; outline: 1px solid #e3e6ee; outline-offset: -1px; transition: box-shadow .2s; }
.nk-c-dealer__pic:hover { box-shadow: var(--nk-shadow-tile-h); }
.nk-c-dealer__pic img { display: block; width: 160px; height: auto; }
.nk-c-dealer__body { min-width: 0; }
.nk-c-dealer__text { margin: 12px 0 0; max-width: 860px; font-size: 17px; line-height: 25px; font-weight: 300; }
.nk-c-dealer__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.nk-c-dealer__num { font-size: 14px; color: var(--nk-grey); }
/* Сетку товаров бренда (catalog.section .default) оформляет группа catalog — здесь только отступ секции */
.nk-c-brand-goods { margin-top: 64px; }
/* Бренд без активных товаров в каталоге: карточка «под заказ» вместо пустой сетки */
.nk-c-brand-goods--empty { margin-top: 40px; }
.nk-c-brand-empty__acts { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }
.nk-c-brand-empty__acts .nk-btn > span { white-space: nowrap; }
.nk-c-brand-empty__short { display: none; }
/* /brands/: группа брендов без товаров на сайте — ниже основной сетки, плитки приглушены */
.nk-c-brands-order { margin-top: 56px; }
.nk-c-brands-order__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 22px; }
body.nk-inner .nk-c-brands-order__title { margin: 0; font-size: 26px; line-height: 32px; font-weight: 600; color: var(--nk-navy); }
.nk-c-brands-order__text { margin: 0; max-width: 720px; font-size: 16px; line-height: 22px; color: var(--nk-grey); }
body.nk-inner a.nk-c-brandtile--order { height: 124px; background: rgba(255, 255, 255, .6); box-shadow: none; outline: 1px solid #e3e6ee; outline-offset: -1px; }
body.nk-inner a.nk-c-brandtile--order:hover { background: #fff; box-shadow: var(--nk-shadow-tile-h); }
.nk-c-brandtile--order .nk-c-brandtile__logo img { opacity: .35; }

/* ---------- 7. Проекты ---------- */
.nk-c-gallery { position: relative; margin-top: 30px; }
body.nk-inner .nk-c-gallery .swiper-container-banner {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: var(--nk-gal-ar, 16 / 9);
	max-width: none;
	max-height: 640px;
	margin: 0;
	overflow: hidden;
	border-radius: 30px;
	background: var(--nk-bg);
}
body.nk-inner .nk-c-gallery .swiper-container-banner .swiper-wrapper { height: 100%; }
body.nk-inner .nk-c-gallery .swiper-container-banner .swiper-slide { position: relative; height: 100%; overflow: hidden; }
/* размытая копия фото под ним — вместо пустых полей, когда пропорции фото и окна не совпадают */
body.nk-inner .nk-c-gallery .swiper-container-banner .swiper-slide::before {
	content: '';
	position: absolute;
	inset: -30px;
	background: var(--nk-slide-bg) center / cover no-repeat;
	filter: blur(24px) saturate(1.1);
	opacity: .55;
}
body.nk-inner .nk-c-gallery .swiper-container-banner img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; cursor: zoom-in; }
.nk-c-gallery__stage { position: relative; }
.nk-c-gallery__nav { position: absolute; left: 18px; right: 18px; top: 50%; z-index: 3; display: flex; justify-content: space-between; pointer-events: none; transform: translateY(-50%); }
body.nk-inner .nk-c-gallery__nav .nk-arrow { pointer-events: auto; box-shadow: 0 6px 16px rgba(20, 38, 100, .18); background: rgba(255, 255, 255, .8); color: var(--nk-navy); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
body.nk-inner .nk-c-gallery__nav .nk-arrow:hover { background: var(--nk-grad-sq); color: #fff; }
.nk-c-gallery__nav .nk-arrow.swiper-button-disabled { opacity: .4; pointer-events: none; }
.nk-c-gallery__count { position: absolute; right: 18px; bottom: 18px; z-index: 3; height: 34px; padding: 0 14px; display: flex; align-items: center; border-radius: 999px; background: rgba(28, 38, 66, .55); color: #fff; font-size: 14px; font-weight: 700; pointer-events: none; }
body.nk-inner .nk-c-gallery .swiper-container-thumbs { width: 100%; max-width: none; height: auto; margin: 12px 0 0; overflow: hidden; }
body.nk-inner .nk-c-gallery .swiper-container-thumbs .swiper-slide-thumb-active { transform: none; }
body.nk-inner .nk-c-gallery .swiper-container-thumbs .swiper-slide-thumb-active .thumb-slide-image { border: 0; }
body.nk-inner .nk-c-gallery .swiper-container-thumbs .swiper-slide { height: 96px; overflow: hidden; border-radius: 16px; opacity: .55; cursor: pointer; transition: opacity .2s; }
body.nk-inner .nk-c-gallery .swiper-container-thumbs .swiper-slide-thumb-active { opacity: 1; box-shadow: inset 0 0 0 3px var(--nk-blue); }
body.nk-inner .nk-c-gallery .swiper-container-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
body.nk-inner .nk-c-gallery .swiper-container-thumbs .swiper-slide-thumb-active img { padding: 3px; border-radius: 16px; }

/* Товары проекта (catalog.top → catalog.item item-vypolnennye-proekty); карточку оформляет группа catalog */
.nk-c-goods .products-list { margin-top: 0; }

/* ---------- 8. Адаптив ---------- */
@media (max-width: 1260px) {
	.nk-c-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nk-c-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body.nk-inner .nk-c-card__title { font-size: 21px; line-height: 26px; }
	.nk-c-card__text { font-size: 17px; line-height: 23px; }
	body.nk-inner .nk-c-step__title { font-size: 30px; line-height: 36px; }
	body.nk-inner .nk-c-step__text, body.nk-inner .nk-c-step__list li { font-size: 18px; line-height: 25px; }
	.nk-c-step { gap: 0 36px; }
	.nk-c-step__body { padding: 26px 26px 28px 0; }
	.nk-c-step:nth-child(even) .nk-c-step__body { padding: 26px 0 28px 26px; }
	.nk-c-why__team { grid-template-columns: minmax(0, 1fr) 340px; }
	body.nk-inner .nk-c-why h3 { font-size: 26px; line-height: 31px; }
	body.nk-inner .nk-c-why p { font-size: 17px; line-height: 24px; }
	.nk-c-why__tools { grid-template-columns: 1fr; }
	.nk-c-prose, body.nk-inner .nk-c-prose { font-size: 18px; line-height: 28px; }
	body.nk-inner .nk-c-prose h2 { font-size: 28px; line-height: 34px; }
}

@media (max-width: 900px) {
	/* как на главной (.nk-steps / .nk-dirs): на планшете две колонки, в одну — только на ≤640 */
	.nk-c-grid, .nk-c-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
	body.nk-inner a.nk-c-card, body.nk-inner .nk-c-card { padding: 6px 6px 20px; border-radius: 28px; }
	.nk-c-card__img { border-radius: 23px; }
	.nk-c-card__body { padding: 16px 12px 0; }
	body.nk-inner .nk-c-card__title { margin-top: 8px; font-size: 19px; line-height: 24px; }
	body.nk-inner .nk-c-card__body > .nk-c-card__title:first-child { margin-top: 26px; }
	.nk-c-card__text { font-size: 16px; line-height: 21px; }
	.nk-c-card__meta { font-size: 13px; }
	.nk-c-card__more { padding-top: 16px; font-size: 15px; }
	.nk-c-card__more .nk-sq-btn { width: 42px; height: 42px; border-radius: 13px; font-size: 19px; }
	body.nk-inner .nk-c-card .nk-c-card__badge { top: 12px; right: 12px; }
	/* галерея проекта: широкие фото (до 4:1) давали окно ~160px, стрелки наезжали на счётчик — окно 16:10, фото заполняет его (целиком — в Fancybox) */
	body.nk-inner .nk-c-gallery .swiper-container-banner { aspect-ratio: 16 / 10; }
	body.nk-inner .nk-c-gallery .swiper-container-banner img { object-fit: cover; }
	.nk-c-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	/* этапы на планшете остаются в две колонки: фото в одну колонку растягивалось бы до ×1.3–1.6 */
	.nk-c-step { gap: 0 24px; border-radius: 32px; }
	.nk-c-step__media { border-radius: 24px; }
	.nk-c-step__body { padding: 20px 16px 20px 0; }
	.nk-c-step:nth-child(even) .nk-c-step__body { padding: 20px 0 20px 16px; }
	.nk-c-step__num { width: 52px; height: 52px; border-radius: 16px; font-size: 27px; }
	body.nk-inner .nk-c-step__title { margin-top: 16px; font-size: 25px; line-height: 30px; }
	body.nk-inner .nk-c-step__text, body.nk-inner .nk-c-step__list li { font-size: 16px; line-height: 22px; }
	body.nk-inner .nk-c-step__list li { padding-left: 34px; }
	.nk-c-step__list li::before { width: 24px; height: 24px; border-radius: 8px; }
	.nk-c-why__grid { grid-template-columns: minmax(0, 1fr); }
	/* фото (532×338) не растягиваем на всю ширину планшета — остаётся справа от текста в своей пропорции */
	body.nk-inner .nk-c-why .nk-c-why__team { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 0 24px; padding: 12px 12px 12px 28px; }
	.nk-c-why__team .nk-c-why__txt { padding: 20px 0; }
	.nk-c-why__team img { align-self: center; min-height: 0; aspect-ratio: 532 / 338; height: auto; }
	.nk-c-why__tools { grid-template-columns: 1fr 1fr; }
	.nk-c-brand { grid-template-columns: minmax(0, 1fr); padding: 12px; }
	.nk-c-brand__logo { height: 150px; }
	.nk-c-brand__body { padding: 20px 14px 16px; }
	.nk-c-empty { flex-direction: column; align-items: flex-start; }
	.nk-c-cta { padding: 24px; }
}

@media (max-width: 640px) {
	body.nk-inner .nk-c-sec { margin-top: 60px; }
	.nk-c-head { margin-bottom: 26px; }
	.nk-c-srv .nk-srv { margin-top: 26px; }
	.nk-c-grid, .nk-c-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	/* одна колонка — выравнивать заголовок по соседям не нужно */
	body.nk-inner .nk-c-card__body > .nk-c-card__title:first-child { margin-top: 0; }
	.nk-c-empty { padding: 24px 20px; border-radius: 24px; }
	.nk-c-empty p { font-size: 17px; line-height: 22px; }
	.nk-c-empty .nk-btn { width: 100%; }

	.nk-c-article__in { width: calc(100% - 32px); padding: 28px 0 32px; }
	body.nk-inner .nk-c-meta .nk-badge, body.nk-inner a.nk-c-back { height: 34px; font-size: 13px; }
	.nk-c-cover { margin-top: 20px; border-radius: 20px; }
	.nk-c-lead { margin-top: 20px; font-size: 18px; line-height: 26px; }
	body.nk-inner .nk-c-prose { font-size: 16px; line-height: 25px; }
	body.nk-inner .nk-c-prose h2 { margin: 30px 0 10px; font-size: 23px; line-height: 28px; }
	body.nk-inner .nk-c-prose h3 { font-size: 20px; line-height: 25px; }
	body.nk-inner .nk-c-prose img { margin: 18px auto; border-radius: 16px; }
	body.nk-inner .nk-c-prose li { padding-left: 24px; }
	body.nk-inner .nk-c-prose ul > li::before { top: 8px; left: 2px; width: 8px; height: 8px; }
	/* таблица прокручивается сама, страница — нет */
	body.nk-inner .nk-c-prose table { display: block; overflow-x: auto; font-size: 14px; line-height: 19px; border-radius: 16px; -webkit-overflow-scrolling: touch; }
	/* tbody растягивается на всю ширину, если помещается; иначе таблица прокручивается */
	body.nk-inner .nk-c-prose table > tbody { display: table; width: 100%; }
	body.nk-inner .nk-c-prose td, body.nk-inner .nk-c-prose th { padding: 10px 10px; hyphens: auto; }
	.nk-c-cta { margin-top: 30px; padding: 22px 18px; border-radius: 24px; }
	.nk-c-cta__title { font-size: 21px; line-height: 26px; }
	.nk-c-cta__sub { font-size: 15px; }
	body.nk-inner a.nk-c-phone { font-size: 20px; }
	body.nk-inner .nk-c-soc a { width: 44px; height: 44px; }

	.nk-c-steps { gap: 16px; }
	.nk-c-step, .nk-c-step:nth-child(even) { grid-template-columns: minmax(0, 1fr); padding: 6px; border-radius: 28px; }
	.nk-c-step:nth-child(even) .nk-c-step__media { order: 0; }
	.nk-c-step__media { align-self: stretch; border-radius: 23px; }
	.nk-c-step__body, .nk-c-step:nth-child(even) .nk-c-step__body { padding: 18px 12px 14px; }
	.nk-c-step__num { width: 48px; height: 48px; border-radius: 15px; font-size: 24px; }
	body.nk-inner .nk-c-step__title { margin-top: 14px; font-size: 24px; line-height: 29px; }
	body.nk-inner .nk-c-step__text, body.nk-inner .nk-c-step__list li { font-size: 16px; line-height: 22px; }
	body.nk-inner .nk-c-step__list li { padding-left: 34px; }
	.nk-c-step__list li::before { width: 24px; height: 24px; border-radius: 8px; }
	.nk-c-step .nk-btn { width: 100%; }
	.nk-c-note { padding: 16px; border-radius: 20px; }
	.nk-c-note p { font-size: 15px; line-height: 20px; }

	.nk-c-why__grid { gap: 14px; margin-top: 26px; }
	.nk-c-why .nk-card { padding: 24px 18px; border-radius: 24px; }
	body.nk-inner .nk-c-why .nk-c-why__team { grid-template-columns: minmax(0, 1fr); padding: 6px; }
	.nk-c-why__team .nk-c-why__txt { padding: 16px 12px 14px; order: 2; }
	.nk-c-why__team img { border-radius: 20px; }
	body.nk-inner .nk-c-why h3 { margin-top: 14px; font-size: 22px; line-height: 27px; }
	body.nk-inner .nk-c-why p { font-size: 16px; line-height: 22px; }
	.nk-c-why__ic { width: 56px; height: 56px; }
	.nk-c-why__ic svg { width: 30px; height: 30px; }
	.nk-c-why__tools { grid-template-columns: 1fr; }
	.nk-c-map__frame { margin-top: 24px; border-radius: 24px; }
	.nk-c-map__frame .nk-map, .nk-c-map__frame iframe { height: 340px; }

	.nk-c-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	body.nk-inner a.nk-c-brandtile { height: 116px; padding: 14px 8px 12px; border-radius: 20px; gap: 10px; }
	.nk-c-brandtile__logo img { height: 26px; max-width: 120px; }
	.nk-c-brandtile__logo img[src*="funai"] { height: 32px; }
	.nk-c-brandtile__logo img[src*="midea"] { height: 29px; }
	.nk-c-brandtile__logo img[src*="tosot"] { height: 23px; }
	.nk-c-brandtile__logo img[src*="fujitsu"] { height: 38px; }
	.nk-c-brandtile__logo img[src*="bosch"] { height: 21px; }
	.nk-c-brandtile__logo img[src*="zanussi"] { height: 31px; }
	.nk-c-brandtile__word { font-size: 19px; }
	.nk-c-brandtile__name { font-size: 13px; }
	.nk-c-brand { border-radius: 28px; padding: 6px; }
	.nk-c-brand__logo { height: 120px; border-radius: 23px; }
	.nk-c-brand__logo img { height: 40px; }
	.nk-c-brand__body { padding: 16px 12px 12px; }
	.nk-c-brand__text { font-size: 16px; line-height: 22px; }
	.nk-c-brand__acts .nk-btn { width: 100%; }
	/* превью и заголовок в ряд, текст и кнопка — на всю ширину (иначе текст зажат узкой колонкой) */
	.nk-c-dealer { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 0 14px; margin-top: 16px; padding: 14px 16px 16px; border-radius: 28px; }
	.nk-c-dealer__body { display: contents; }
	.nk-c-dealer__pic { border-radius: 8px; }
	.nk-c-dealer__pic img { width: 72px; }
	body.nk-inner .nk-c-dealer .nk-h2 { font-size: 22px; line-height: 27px; }
	.nk-c-dealer__text, .nk-c-dealer__acts { grid-column: 1 / -1; }
	.nk-c-dealer__text { margin-top: 12px; font-size: 15px; line-height: 21px; }
	.nk-c-dealer__acts { margin-top: 14px; }
	.nk-c-dealer__acts .nk-btn { width: 100%; }
	.nk-c-brand-goods { margin-top: 44px; }
	.nk-c-brand-goods--empty { margin-top: 24px; }
	.nk-c-brand-empty__acts { width: 100%; flex-direction: column; gap: 10px; }
	/* обе кнопки во всю ширину и одной высоты: надпись в одну строку, кегль чуть меньше */
	.nk-c-brand-empty__acts .nk-btn { width: 100%; padding-left: 20px; font-size: 16px; }
	.nk-c-brands-order { margin-top: 40px; }
	.nk-c-brands-order__head { margin-bottom: 16px; }
	body.nk-inner .nk-c-brands-order__title { font-size: 22px; line-height: 27px; }
	.nk-c-brands-order__text { font-size: 15px; line-height: 20px; }
	body.nk-inner a.nk-c-brandtile--order { height: 100px; }

	.nk-c-gallery { margin-top: 20px; }
	body.nk-inner .nk-c-gallery .swiper-container-banner { border-radius: 20px; }
	.nk-c-gallery__nav { left: 10px; right: 10px; }
	body.nk-inner .nk-c-gallery .swiper-container-thumbs .swiper-slide { height: 58px; border-radius: 12px; }
	body.nk-inner .nk-c-gallery .swiper-container-thumbs img { border-radius: 12px; }
	.nk-c-sale-actions .nk-btn { width: 100%; }
}

/* Проект: панель широкая (галерея 1200), текст — в читаемой колонке */
.nk-c-article__in--wide .nk-c-prose { max-width: 960px; }
body.nk-inner .nk-c-note .nk-c-soc a { color: #fff; }
.nk-c-note .nk-c-soc .nk-ui-i { width: 19px; height: 19px; }
.nk-c-why .nk-c-why__call .nk-c-phone { font-size: 22px; }

/* Иконки карточек «Гарантия» / «Лучшее оборудование» — векторные иконки макета главной (adv-*.svg), как в «Почему клиенты выбирают нас» */
body.nk-inner .nk-c-why__ic--img { overflow: hidden; }
body.nk-inner .nk-c-why__ic--img img { width: 100%; height: 100%; display: block; }

/* ---------- 9. Новости: кейсы из Telegram (scripts/import_tg_cases.php) ----------
   Список: 3 колонки, фото 4:3 (фото из Telegram ~600×800 — не растягиваются: плитка ≤ 372 px).
   Видео-кейсы (свойство TG_VIDEO_COUNT, помощники — include/nk_content.php): ролики и кадры из них на сайт не выводим.
   Без фото поста — фирменная плашка .nk-c-card__img--video (CSS, без картинки, в размер фото-обложки: 4:3 в /news/,
   2:1 в «Ранее в новостях»), с фото — фото и значок .nk-c-card__vbadge. Вертикальные обложки (.nk-c-card__img--reel) —
   чёткой «вертикалкой» на размытом фоне: в 4:3 или 2:1 от них осталась бы узкая полоса.
   Детальная: галерея .nk-c-shots (Fancybox, a[data-fancybox="news-<id>"]), блок «Видео с объекта» .nk-c-vblock,
   плашка .nk-c-tg в тексте. */
body.nk-inner .nk-c-news .nk-c-card__img { aspect-ratio: 4 / 3; }
body.nk-inner .nk-c-card__img--reel { display: flex; align-items: center; justify-content: center; background: #1c2642; }
body.nk-inner a.nk-c-card .nk-c-card__img--reel img.nk-c-card__blur,
body.nk-inner a.nk-c-card:hover .nk-c-card__img--reel img.nk-c-card__blur {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	filter: blur(16px) saturate(1.15) brightness(.7); transform: scale(1.25);
}
.nk-c-card__reel { position: relative; z-index: 1; height: 86%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
body.nk-inner .nk-c-card__reel img { width: 100%; height: 100%; object-fit: cover; }
/* Видео-кейс без фото: фирменная плашка вместо обложки — тёмно-синий тон «тёмной карточки» + голубое свечение, play, подпись.
   container-type: size — у низкой плашки (2:1 на телефоне, ~170 px) play и подпись встают в ряд и мельче. */
body.nk-inner .nk-c-card__img--video {
	display: flex; align-items: center; justify-content: center;
	container-type: size;
	background:
		radial-gradient(70% 95% at 90% 6%, rgba(75, 186, 249, .8) 0%, rgba(75, 186, 249, 0) 62%),
		radial-gradient(60% 80% at 4% 100%, rgba(158, 233, 255, .22) 0%, rgba(158, 233, 255, 0) 60%),
		linear-gradient(160deg, #3f67bd 0%, #36529d 100%);
	color: #fff;
}
.nk-c-vcover__deco { position: absolute; right: -5%; bottom: -16%; width: 44%; aspect-ratio: 32 / 28; color: #fff; opacity: .09; transform: rotate(-10deg); pointer-events: none; }
.nk-c-vcover__plane { display: block; width: 100%; height: 100%; }
.nk-c-vcover { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 0 16px; text-align: center; }
.nk-c-vcover__play {
	position: relative; flex: none; width: 70px; height: 70px; border-radius: 50%; background: #fff;
	box-shadow: 0 0 0 10px rgba(255, 255, 255, .16), 0 0 0 21px rgba(255, 255, 255, .07), 0 12px 26px rgba(16, 30, 84, .4);
	transition: transform .25s;
}
.nk-c-vcover__play::after {
	content: ""; position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -7px;
	border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--nk-navy);
}
a.nk-c-card:hover .nk-c-vcover__play { transform: scale(1.08); }
.nk-c-vcover__cap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nk-c-vcover__cap b { font-size: 22px; line-height: 26px; font-weight: 700; }
.nk-c-vcover__cap span {
	display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
	border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 14px; line-height: 1; font-weight: 400; white-space: nowrap;
}
.nk-c-tgi { flex: none; width: 16px; height: 14px; }
/* светлый вариант — тон «светлой карточки» (--nk-card), play — голубой градиент, текст — navy */
body.nk-inner .nk-c-card__img--video-light {
	background:
		radial-gradient(70% 95% at 90% 6%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 60%),
		radial-gradient(65% 85% at 0% 100%, rgba(75, 186, 249, .28) 0%, rgba(75, 186, 249, 0) 62%),
		linear-gradient(180deg, #ecf2f8 0%, #d9e9f7 100%);
	color: var(--nk-navy);
}
.nk-c-card__img--video-light .nk-c-vcover__deco { color: var(--nk-navy); opacity: .06; }
body.nk-inner .nk-c-card__img--video-light .nk-c-vcover__play {
	background: var(--nk-grad-sq);
	box-shadow: 0 0 0 10px rgba(75, 186, 249, .16), 0 0 0 21px rgba(75, 186, 249, .08), 0 12px 26px rgba(54, 82, 157, .28);
}
.nk-c-card__img--video-light .nk-c-vcover__play::after { border-left-color: #fff; }
.nk-c-card__img--video-light .nk-c-vcover__cap span { background: #fff; box-shadow: 0 4px 12px rgba(54, 82, 157, .1); }
.nk-c-card__img--video-light .nk-c-tgi { color: var(--nk-blue); }
@container (max-height: 215px) {
	.nk-c-vcover { flex-direction: row; gap: 26px; text-align: left; }
	.nk-c-vcover__play { width: 54px; height: 54px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .16), 0 0 0 16px rgba(255, 255, 255, .07), 0 10px 20px rgba(16, 30, 84, .4); }
	.nk-c-vcover__play::after { margin: -9px 0 0 -5px; border-width: 9px 0 9px 15px; }
	body.nk-inner .nk-c-card__img--video-light .nk-c-vcover__play { box-shadow: 0 0 0 8px rgba(75, 186, 249, .16), 0 0 0 16px rgba(75, 186, 249, .08), 0 10px 20px rgba(54, 82, 157, .28); }
	.nk-c-vcover__cap { align-items: flex-start; gap: 6px; }
	.nk-c-vcover__cap b { font-size: 19px; line-height: 23px; }
	.nk-c-vcover__cap span { height: 28px; padding: 0 12px; font-size: 13px; }
}
/* Видео-кейс с фото: значок «N видео» на обложке */
.nk-c-card__vbadge {
	position: absolute; left: 14px; bottom: 14px; z-index: 2;
	display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 5px;
	border-radius: 999px; background: var(--nk-navy); color: #fff; box-shadow: 0 6px 14px rgba(20, 38, 100, .28);
	font-size: 13px; font-weight: 700; line-height: 1;
}
.nk-c-card__vbadge i { position: relative; flex: none; width: 23px; height: 23px; border-radius: 50%; background: var(--nk-grad-sq); }
.nk-c-card__vbadge i::after {
	content: ""; position: absolute; left: 50%; top: 50%; margin: -5px 0 0 -3px;
	border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff;
}

/* Галерея кейса */
.nk-c-shots { display: grid; gap: 12px; margin-top: 30px; }
.nk-c-shots--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nk-c-shots--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nk-c-shots--c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nk-c-shots--c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.nk-inner a.nk-c-shots__item {
	position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
	border-radius: 20px; background: var(--nk-card); cursor: zoom-in;
}
.nk-c-shots__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
a.nk-c-shots__item:hover img { transform: scale(1.04); }
body.nk-inner a.nk-c-shots__item--hidden { display: none; }
.nk-c-shots__more {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(28, 38, 66, .55); color: #fff; font-size: 34px; font-weight: 700;
}
/* одно фото — в собственном размере (не шире оригинала), по центру */
.nk-c-shots--c1 { display: flex; justify-content: center; }
body.nk-inner .nk-c-shots--c1 a.nk-c-shots__item { aspect-ratio: auto; max-width: 100%; }
/* --nk-shot-w/--nk-shot-h — натуральный размер / 1.333 (ставит news.detail), чтобы на Retina растяжение было не больше 1.5× */
.nk-c-shots--c1 .nk-c-shots__item img { width: auto; max-width: min(100%, var(--nk-shot-w, 100%)); height: auto; max-height: min(600px, var(--nk-shot-h, 600px)); }

/* Детальная: блок «Видео с объекта» (nk_c_video_block) — число видео и кнопка на пост в Telegram.
   Фон — тёмно-синий тон «тёмной карточки» с голубым свечением (белый текст читается: контраст ≥ 5.5). */
body.nk-inner .nk-c-vblock {
	position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 30px;
	margin-top: 30px; padding: 30px 36px 30px 40px; overflow: hidden; border-radius: 30px;
	background:
		radial-gradient(55% 130% at 100% 0%, rgba(75, 186, 249, .75) 0%, rgba(75, 186, 249, 0) 62%),
		linear-gradient(160deg, #3f67bd 0%, #36529d 100%);
	color: #fff;
}
body.nk-inner a.nk-c-vblock__play {
	position: relative; display: block; width: 84px; height: 84px; margin: 12px; border-radius: 50%; background: #fff;
	box-shadow: 0 0 0 11px rgba(255, 255, 255, .16), 0 0 0 23px rgba(255, 255, 255, .07), 0 12px 26px rgba(16, 30, 84, .4);
	transition: transform .25s;
}
.nk-c-vblock__play i::after {
	content: ""; position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -8px;
	border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent var(--nk-navy);
}
body.nk-inner a.nk-c-vblock__play:hover { transform: scale(1.06); }
body.nk-inner .nk-c-vblock__title { margin: 0; font-size: 30px; line-height: 36px; font-weight: 700; color: #fff; }
body.nk-inner .nk-c-vblock__sub { margin: 8px 0 0; font-size: 18px; line-height: 26px; font-weight: 300; color: rgba(255, 255, 255, .9); }
.nk-c-vblock__nb { white-space: nowrap; } /* «Telegram-канала» не рвётся на дефисе */
.nk-c-vblock__acts { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
body.nk-inner a.nk-c-vblock__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px;
	border-radius: 999px; background: #fff; color: var(--nk-navy); text-decoration: none;
	font-size: 17px; line-height: 1.2; font-weight: 700; white-space: nowrap; transition: box-shadow .2s, transform .2s;
}
body.nk-inner a.nk-c-vblock__btn .nk-c-tgi { width: 20px; height: 18px; color: var(--nk-blue); }
body.nk-inner a.nk-c-vblock__btn:hover { color: var(--nk-navy); box-shadow: 0 8px 22px rgba(16, 30, 84, .35); transform: translateY(-2px); }

/* Текст кейса: этапы и плашка «Смотреть в Telegram» */
body.nk-inner .nk-c-prose h2.nk-c-tg-stage { margin-top: 40px; padding-top: 28px; border-top: 1px solid #e3eaf3; font-size: 24px; line-height: 30px; color: var(--nk-blue); }
body.nk-inner .nk-c-prose h2.nk-c-tg-stage:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
body.nk-inner .nk-c-prose .nk-c-tg {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
	margin-top: 36px; padding: 24px 28px; border-radius: 24px; background: var(--nk-card);
}
body.nk-inner .nk-c-prose .nk-c-tg p { margin: 0; }
body.nk-inner .nk-c-prose .nk-c-tg__note { flex: 1 1 300px; font-size: 18px; line-height: 26px; font-weight: 400; }
body.nk-inner .nk-c-prose .nk-c-tg__links { display: flex; flex-wrap: wrap; gap: 10px; }
body.nk-inner .nk-c-prose a.nk-c-tg__btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px;
	border-radius: 999px; background: var(--nk-grad); color: #fff; text-decoration: none;
	font-size: 17px; line-height: 1.2; font-weight: 700; white-space: nowrap; transition: box-shadow .2s;
}
body.nk-inner .nk-c-prose a.nk-c-tg__btn::before {
	content: ""; flex: none; width: 20px; height: 18px;
	background: url(/local/templates/nclimate_home/images/l/soc-tg.svg) center / contain no-repeat;
}
body.nk-inner .nk-c-prose a.nk-c-tg__btn:hover { color: #fff; box-shadow: 0 8px 20px rgba(75, 186, 249, .45); }

@media (max-width: 900px) {
	.nk-c-shots--c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.nk-inner .nk-c-vblock { grid-template-columns: auto minmax(0, 1fr); padding: 26px 28px; }
	.nk-c-vblock__acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
	body.nk-inner .nk-c-vblock__title { font-size: 24px; line-height: 29px; }
	body.nk-inner .nk-c-vblock__sub { font-size: 16px; line-height: 23px; }
}
@media (max-width: 640px) {
	.nk-c-card__vbadge { left: 10px; bottom: 10px; }
	.nk-c-shots { gap: 8px; margin-top: 20px; }
	.nk-c-shots--c2, .nk-c-shots--c3, .nk-c-shots--c4, .nk-c-shots--c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.nk-inner a.nk-c-shots__item { border-radius: 16px; }
	/* нечётное число плиток — первая во всю ширину, без «дыры» в конце */
	body.nk-inner .nk-c-shots--odd:not(.nk-c-shots--c1) a.nk-c-shots__item:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
	.nk-c-shots__more { font-size: 26px; }
	.nk-c-shots--c1 .nk-c-shots__item img { max-height: min(480px, var(--nk-shot-h, 480px)); }
	body.nk-inner .nk-c-vblock { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; margin-top: 20px; padding: 28px 18px 22px; border-radius: 24px; text-align: center; }
	body.nk-inner a.nk-c-vblock__play { width: 66px; height: 66px; margin: 16px 0 6px; }
	.nk-c-vblock__play i::after { margin: -11px 0 0 -6px; border-width: 11px 0 11px 19px; }
	body.nk-inner .nk-c-vblock__title { font-size: 22px; line-height: 27px; }
	body.nk-inner .nk-c-vblock__sub { font-size: 15px; line-height: 21px; }
	.nk-c-vblock__acts { width: 100%; flex-direction: column; }
	body.nk-inner a.nk-c-vblock__btn { width: 100%; min-height: 50px; padding: 10px 18px; font-size: 16px; white-space: normal; text-align: center; }
	.nk-c-vcover__cap b { font-size: 20px; line-height: 24px; }
	body.nk-inner .nk-c-prose h2.nk-c-tg-stage { font-size: 20px; line-height: 25px; }
	body.nk-inner .nk-c-prose .nk-c-tg { padding: 18px 16px; border-radius: 20px; }
	body.nk-inner .nk-c-prose .nk-c-tg__note { flex-basis: 100%; font-size: 16px; line-height: 22px; }
	body.nk-inner .nk-c-prose .nk-c-tg__links { width: 100%; }
	body.nk-inner .nk-c-prose a.nk-c-tg__btn { width: 100%; justify-content: center; padding: 10px 18px; font-size: 15px; white-space: normal; text-align: center; }
}
body.nk-inner :is(.nk-c-shots, .nk-c-vblock) + .nk-c-prose { margin-top: 40px; }
@media (max-width: 640px) { body.nk-inner :is(.nk-c-shots, .nk-c-vblock) + .nk-c-prose { margin-top: 28px; } }
/* Узкие телефоны: подписи кнопок «Смотреть видео в Telegram» / «… — часть 1» — в одну строку.
   ≤380 — шрифт 15 и поля поуже; ≤350 (320–350) — без значка-самолётика (про Telegram говорят подпись и текст блока).
   Если текст всё же не влезет (крупный шрифт в системе), он переносится целыми кусками — неразрывные пробелы в nk_c_video_block(). */
@media (max-width: 380px) {
	body.nk-inner .nk-c-vblock { padding-left: 14px; padding-right: 14px; }
	body.nk-inner a.nk-c-vblock__btn { gap: 8px; padding: 10px 14px; font-size: 15px; }
}
@media (max-width: 350px) {
	body.nk-inner a.nk-c-vblock__btn { padding: 10px 12px; }
	body.nk-inner a.nk-c-vblock__btn .nk-c-tgi { display: none; }
}

/* Пустое состояние бренда на узких телефонах: «Подобрать с менеджером» не помещается в одну строку — короткая надпись */
@media (max-width: 400px) {
	.nk-c-brand-empty__full { display: none; }
	.nk-c-brand-empty__short { display: inline; }
}

/* ---------- Страница бренда (Л12, 14.10.2026): плитки «Мульти-сплит-системы <бренд> на N комнат» — nk_kits_brand_block_html ---------- */
body.nk-inner .nk-c-brand-kits { margin: 48px 0 0; }
body.nk-inner .nk-c-brand-kits__lead { margin: 0 0 20px; max-width: 760px; color: var(--nk-text); font-size: 16px; line-height: 1.55; }
body.nk-inner .nk-kits-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body.nk-inner .nk-kits-tile {
	display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 16px; background: var(--nk-bg);
	color: var(--nk-navy); text-decoration: none; transition: box-shadow .2s, transform .2s;
}
body.nk-inner .nk-kits-tile:hover, body.nk-inner .nk-kits-tile:focus-visible { box-shadow: var(--nk-shadow-tile); transform: translateY(-2px); }
body.nk-inner .nk-kits-tile__rooms { font-size: 18px; font-weight: 700; line-height: 1.25; }
body.nk-inner .nk-kits-tile__count { color: var(--nk-grey); font-size: 14px; }
body.nk-inner .nk-kits-tile__price { margin-top: 6px; color: var(--nk-blue); font-size: 16px; font-weight: 500; }
@media (max-width: 900px) { body.nk-inner .nk-kits-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { body.nk-inner .nk-c-brand-kits { margin-top: 32px; } body.nk-inner .nk-kits-tiles { gap: 10px; } body.nk-inner .nk-kits-tile { padding: 14px 16px; border-radius: 12px; } body.nk-inner .nk-kits-tile__rooms { font-size: 16px; } }
