/*!
Theme Name: NaCEkS Bento
Theme URI: https://naceks.kz/
Author: NaCEkS
Author URI: https://naceks.kz/
Description: Дизайн НаЦЭкС v3 (2026-09): светлая «бумажная» палитра, один шрифт Golos Text, разделение блоков воздухом и фоном. Tailwind CDN, RU/KZ, Bitrix24, GA/GTM, мультисайт-новости.
Version: 3.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naceks-bento
Tags: business, custom-logo, custom-menu, post-thumbnails, sticky-post, translation-ready
*/

/* ============================================================
 * ТОКЕНЫ ДИЗАЙНА v3
 * Tailwind-цвета переопределены в functions.php (bgDark=бумага,
 * cardDark=белый, accent=чернила, white=чернила). Здесь — CSS-переменные
 * для собственных компонентов и переопределения старых bento-эффектов.
 * ============================================================ */
:root {
	--n-paper: #f4f1ea;
	--n-paper2: #eae5d9;
	--n-white: #ffffff;
	--n-ink: #101a2e;
	--n-ink2: #4a5364;
	--n-ink3: #7c8494;
	--n-line: #dcd6c8;
	--n-gold: #c39a2c;
	--n-blue: #1a64a8;
	--n-r: 4px;
	--tint: 16 26 46; /* старые компоненты с --tint: всегда чернила, без радуги */
}
html { scroll-behavior: smooth; }
body {
	background-color: var(--n-paper);
	color: var(--n-ink);
	font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
/* Любые инлайновые --tint из шаблонов и админки — гасим */
[style*="--tint"] { --tint: 16 26 46 !important; }

/* Старые визуальные эффекты Bento — выключены глобально */
.btn-glow, .btn-glow:hover { box-shadow: none !important; transform: none !important; }
.backdrop-blur-md, .backdrop-blur-sm { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.bg-clip-text, .text-transparent.bg-clip-text {
	background: none !important;
	-webkit-text-fill-color: var(--n-ink) !important;
	color: var(--n-ink) !important;
}
.shadow-2xl, .shadow-xl, .shadow-lg { box-shadow: 0 8px 24px rgba(16, 26, 46, 0.08) !important; }
.has-spotlight::after { display: none !important; }
.section-glow::before { display: none !important; }
.section-divider { display: none; }
/* Изображения внутри hero старых карточек: без затемнения */
.bento-card img.opacity-20 { opacity: 1 !important; }

/* ============================================================
 * Логотип
 * ============================================================ */
.nck-logo-square { width: 44px; height: 44px; border-radius: 0; overflow: hidden; }
@media (min-width: 768px) { .nck-logo-square { width: 46px; height: 46px; } }
.nck-logo-square img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* ============================================================
 * Переключатель языка KZ | RU — текстовый
 * ============================================================ */
.nck-lang-switch { gap: 2px; border: 0 !important; background: transparent !important; padding: 0 !important; }
.nck-lang-pill {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 36px; padding: 4px 8px; font-size: 13px; font-weight: 500;
	color: var(--n-ink2); border-radius: var(--n-r); text-decoration: none !important; transition: color .15s ease;
}
.nck-lang-pill:hover { color: var(--n-ink); }
.nck-lang-pill.is-active { color: var(--n-ink); font-weight: 700; background: transparent; box-shadow: none; }

/* ============================================================
 * PRIMARY NAV — dropdown
 * ============================================================ */
#primary-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
#primary-menu > li { position: relative; list-style: none; }
#primary-menu > li > a {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: var(--n-r);
	font-size: 14.5px; font-weight: 500; color: var(--n-ink); text-decoration: none; transition: color .15s ease; white-space: nowrap;
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-parent > a,
#primary-menu > li.current-menu-ancestor > a { color: var(--n-blue); }
#primary-menu > li.menu-item-has-children > a::after {
	content: ''; display: inline-block; width: 7px; height: 7px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px); margin-left: 4px; opacity: .6; transition: transform .2s ease;
}
#primary-menu > li.menu-item-has-children:hover > a::after { transform: rotate(45deg) translateY(0); opacity: 1; }
#primary-menu .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; max-width: 320px;
	background: var(--n-white); border: 1px solid var(--n-line); border-radius: var(--n-r); padding: 8px;
	list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
	box-shadow: 0 16px 40px -12px rgba(16, 26, 46, 0.18); z-index: 60; max-height: 70vh; overflow-y: auto;
}
#primary-menu > li:hover > .sub-menu,
#primary-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
#primary-menu > li:hover > .sub-menu::before,
#primary-menu > li:focus-within > .sub-menu::before { content: ''; position: absolute; top: -6px; left: 0; right: 0; height: 6px; }
#primary-menu .sub-menu li { list-style: none; }
#primary-menu .sub-menu a {
	display: block; padding: 9px 12px; border-radius: var(--n-r); color: var(--n-ink); font-size: 14px; font-weight: 500;
	text-decoration: none; transition: background .15s ease, color .15s ease; line-height: 1.35;
}
#primary-menu .sub-menu a:hover { background: var(--n-paper); color: var(--n-blue); }
#primary-menu .sub-menu .sub-menu { top: -8px; left: calc(100% + 6px); }
#primary-menu > li:last-child .sub-menu,
#primary-menu > li:nth-last-child(2) .sub-menu { left: auto; right: 0; }

/* Мобильное меню: подменю раскрыты */
#mobile-menu, #mobile-menu .sub-menu { list-style: none; padding: 0; margin: 0; }
#mobile-menu .sub-menu { padding-left: 12px; margin: 4px 0; border-left: 1px solid var(--n-line); }
#mobile-menu .sub-menu a { font-size: 13.5px; color: var(--n-ink2); padding: 8px 12px; }
#mobile-menu .sub-menu a:hover { color: var(--n-blue); }

/* ============================================================
 * Карточки (bento-card остаётся именем класса для старых шаблонов)
 * ============================================================ */
.bento-card {
	background-color: var(--n-white);
	border: 1px solid var(--n-line);
	border-radius: 6px;
	position: relative;
	overflow: hidden;
	transition: border-color .15s ease;
}
.bento-card:hover { border-color: var(--n-ink); transform: none; box-shadow: none; }

/* Eyebrow — золотой надзаголовок без линии */
.eyebrow {
	display: inline-flex; align-items: center; gap: 0;
	font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--n-gold);
}
.eyebrow::before { display: none; }

/* Сетка услуг старых шаблонов (страницы услуг, sidebar) */
.bento-grid-services { display: grid; grid-template-columns: repeat(1, 1fr); gap: 20px; }
@media (min-width: 768px) {
	.bento-grid-services { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(180px, auto); }
	.bento-grid-services .bento-anchor { grid-column: span 2; grid-row: span 2; }
	.bento-grid-services .bento-wide { grid-column: span 2; }
	.bento-grid-services .bento-tall { grid-row: span 2; }
}
.bento-grid-services .bento-card { background: var(--n-paper); border-color: transparent; }
.bento-grid-services .bento-card:hover { border-color: var(--n-ink); background: var(--n-white); }
.anchor-highlights { list-style: none; padding: 0; margin: 0; }
.anchor-highlight { padding: 10px 12px; background: var(--n-white); border: 1px solid var(--n-line); border-radius: var(--n-r); }
.anchor-highlight-dot { flex-shrink: 0; width: 20px; height: 20px; border-radius: 4px; background: var(--n-paper2); color: var(--n-ink); display: inline-flex; align-items: center; justify-content: center; }
.bento-service-icon {
	width: 40px; height: 40px; border-radius: var(--n-r); background: var(--n-paper2); border: 1px solid transparent;
	display: inline-flex; align-items: center; justify-content: center; color: var(--n-ink); flex-shrink: 0;
}
.bento-grid-services .service-eyebrow { color: var(--n-gold); }
.bento-grid-services .service-cta { color: var(--n-blue); }
.bento-grid-services .service-title { color: var(--n-ink); transition: color .15s ease; }
.bento-grid-services .bento-card:hover .service-title { color: var(--n-blue); }
.bento-grid-services .service-stat {
	font-size: clamp(36px, 4.5vw, 52px); font-weight: 600; line-height: 1; letter-spacing: -0.03em;
	background: none; -webkit-text-fill-color: initial; color: var(--n-ink); font-variant-numeric: tabular-nums;
}
.bento-grid-services .service-chip, .service-chip {
	display: inline-flex; align-items: center; padding: 4px 9px; border-radius: var(--n-r);
	background: var(--n-white); border: 1px solid var(--n-line); color: var(--n-ink2); font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}

/* Stats (старые шаблоны) — без градиентов */
.stat-card { position: relative; padding: 24px 22px; background: var(--n-white); border: 1px solid var(--n-line); border-radius: 6px; overflow: hidden; }
.stat-card:hover { transform: none; border-color: var(--n-ink); }
.stat-card::after { display: none; }
.stat-number {
	font-size: clamp(40px, 5vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -0.03em;
	background: none; -webkit-text-fill-color: initial; color: var(--n-ink); font-variant-numeric: tabular-nums;
}
.stat-card .stat-divider { height: 2px; width: 32px; margin: 14px 0 10px; background: var(--n-gold); border-radius: 0; }
.stat-card .stat-label { color: var(--n-ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.stat-card .stat-sub { color: var(--n-ink2); font-size: 12.5px; margin-top: 4px; line-height: 1.4; }

/* Новости (старые карточки) */
.news-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.news-card .news-photo { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.news-card .news-photo img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-photo::after { display: none; }
.news-date-chip {
	position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 10px; background: var(--n-white); border: 1px solid var(--n-line); border-radius: var(--n-r);
	color: var(--n-ink2); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}

/* Контакты mini-cards */
.contact-mini { padding: 18px 20px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.contact-mini > .flex-1, .contact-mini > .min-w-0 { min-width: 0; overflow: hidden; }
.contact-mini .contact-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--n-ink3); margin-bottom: 4px; white-space: nowrap; }
.contact-mini .contact-value { color: var(--n-ink); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.contact-mini .contact-value.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-mini::after { display: none !important; }

/* ============================================================
 * КОМПОНЕНТЫ v3 (шапка, главная, лендинг, подвал) — префикс n3-
 * ============================================================ */
.n3-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .n3-wrap { padding: 0 20px; } }

.n3-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--n-gold); margin-bottom: 18px; }
.n3-h1 { font-size: clamp(32px, 4vw, 50px); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 24px; color: var(--n-ink); }
.n3-h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0; color: var(--n-ink); }
.n3-h3 { font-size: 20px; font-weight: 600; line-height: 1.2; margin: 0; color: var(--n-ink); }
.n3-lead { font-size: 19px; line-height: 1.55; color: var(--n-ink2); max-width: 560px; margin: 0 0 34px; }

.n3-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--n-ink); color: #fff !important;
	padding: 14px 24px; font-weight: 600; font-size: 15px; border-radius: var(--n-r); border: 1px solid var(--n-ink); line-height: 1.2;
	text-decoration: none !important; transition: background .15s ease; cursor: pointer; white-space: nowrap;
}
.n3-btn:hover { background: #1c2a47; }
.n3-btn.is-light { background: var(--n-white); color: var(--n-ink) !important; border-color: var(--n-line); }
.n3-btn.is-light:hover { background: var(--n-paper2); }
.n3-btn.is-ghost { background: transparent; color: var(--n-ink) !important; border-color: var(--n-ink); }
.n3-btn.is-ghost:hover { background: var(--n-ink); color: #fff !important; }
.n3-btn.is-sm { padding: 11px 18px; font-size: 14px; }
.n3-more { font-weight: 600; color: var(--n-ink); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.n3-more::after { content: "→"; color: var(--n-gold); }
.n3-more:hover { color: var(--n-blue); text-decoration: none; }

/* Шапка */
.n3-top { font-size: 13.5px; color: var(--n-ink2); padding: 10px 0; }
.n3-top .n3-wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.n3-top a { color: var(--n-ink2); }
.n3-header { position: sticky; top: 0; z-index: 50; background: var(--n-paper); border-bottom: 1px solid var(--n-line); }
.n3-header .n3-wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.n3-brand { display: flex; align-items: center; gap: 14px; color: var(--n-ink) !important; font-weight: 600; font-size: 18px; white-space: nowrap; text-decoration: none !important; flex: none; }
.n3-brand small { display: block; font-weight: 400; font-size: 12px; color: var(--n-ink2); letter-spacing: .02em; }
/* Меню сжимается и при нехватке места переносится на вторую строку ВНУТРИ контейнера —
   кнопки справа никогда не выталкиваются за край экрана (длинные меню филиалов). */
.n3-nav { margin-left: auto; flex: 0 1 auto; min-width: 0; }
.n3-nav #primary-menu { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }
.n3-header .n3-wrap > .flex { flex: none; }
.n3-phone { font-weight: 600; color: var(--n-ink) !important; font-size: 15px; white-space: nowrap; text-decoration: none !important; }
.n3-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--n-r);
	border: 1px solid var(--n-line); background: transparent; color: var(--n-ink); cursor: pointer; transition: border-color .15s ease;
}
.n3-iconbtn:hover { border-color: var(--n-ink); }
.n3-search { border-top: 1px solid var(--n-line); padding: 14px 0; }
.n3-search form { display: flex; gap: 10px; }
.n3-search input { flex: 1; border: 1px solid #c9c3b4; background: var(--n-white); color: var(--n-ink); padding: 11px 14px; border-radius: var(--n-r); font: inherit; outline: none; }
.n3-search input:focus { border-color: var(--n-ink); }
/* Подпись под логотипом в шапке скрыта: полное название уже есть в верхней полосе,
   а место нужно длинным меню филиалов. В подвале подпись остаётся. */
.n3-header .n3-brand small { display: none; }
.n3-header .n3-wrap { gap: 18px; }
#primary-menu > li > a { padding: 8px 9px; font-size: 14px; }
@media (max-width: 1200px) { .n3-header .n3-wrap { gap: 14px; } #primary-menu > li > a { padding: 8px 7px; font-size: 13.5px; } .n3-region-btn { padding: 9px 10px; font-size: 13px; } }
@media (max-width: 1100px) { .n3-header .n3-btn.n3-cta { display: none; } }
@media (max-width: 767px) { .n3-top { display: none; } .n3-header .n3-wrap { height: 64px; } .n3-phone-text { display: none; } }

/* Региональный селектор (dropdown) */
.n3-region-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--n-line); border-radius: var(--n-r); font-size: 14px; font-weight: 500; color: var(--n-ink); background: transparent; cursor: pointer; white-space: nowrap; }
.n3-region-btn:hover { border-color: var(--n-ink); }
.n3-region-menu { position: absolute; right: 0; margin-top: 6px; width: 280px; background: var(--n-white); border: 1px solid var(--n-line); border-radius: var(--n-r); box-shadow: 0 16px 40px -12px rgba(16,26,46,.18); z-index: 60; padding: 8px; max-height: 60vh; overflow-y: auto; }
.n3-region-menu a { display: block; padding: 9px 12px; border-radius: var(--n-r); font-size: 14px; color: var(--n-ink); text-decoration: none; }
.n3-region-menu a:hover { background: var(--n-paper); color: var(--n-blue); }
.n3-region-menu hr { border: 0; border-top: 1px solid var(--n-line); margin: 6px 0; }

/* Мобильное меню */
.n3-mobile { position: fixed; inset: 0; z-index: 60; }
.n3-mobile .n3-mobile-bg { position: absolute; inset: 0; background: rgba(16,26,46,.4); }
.n3-mobile .n3-mobile-panel { position: absolute; right: 0; top: 0; height: 100%; width: 88%; max-width: 380px; background: var(--n-paper); border-left: 1px solid var(--n-line); display: flex; flex-direction: column; }
.n3-mobile .n3-mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--n-line); font-weight: 600; }
.n3-mobile nav { flex: 1; overflow-y: auto; padding: 10px 12px; }
.n3-mobile nav a { display: block; padding: 11px 12px; border-radius: var(--n-r); color: var(--n-ink); font-weight: 500; text-decoration: none; }
.n3-mobile nav a:hover { background: var(--n-white); }
.n3-mobile .n3-mobile-foot { border-top: 1px solid var(--n-line); padding: 14px 16px; display: grid; gap: 10px; }

/* Секции */
.n3-section { padding: 104px 0; }
.n3-section.is-white { background: var(--n-white); }
.n3-section.is-dark { background: var(--n-ink); color: var(--n-paper); }
.n3-section.is-dark .n3-h2, .n3-section.is-dark .n3-h3 { color: #fff; }
.n3-section.is-dark .n3-label { color: #e2bf5c; }
.n3-section.is-dark p { color: #b8c0cf; }
.n3-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.n3-head p { font-size: 18px; color: var(--n-ink2); margin: 0; max-width: 560px; line-height: 1.55; }
.n3-head .n3-aside { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
@media (max-width: 1000px) { .n3-section { padding: 72px 0; } .n3-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; } }

/* Первый экран */
.n3-hero { padding: 88px 0 96px; }
.n3-hero .n3-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.n3-hero .n3-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.n3-hero .n3-tel { margin-left: 6px; font-weight: 600; color: var(--n-ink) !important; text-decoration: none !important; }
.n3-hero .n3-tel small { display: block; font-weight: 400; color: var(--n-ink2); font-size: 13px; }
.n3-photo { margin: 0; }
.n3-photo .n3-pic { position: relative; margin-bottom: 28px; }
.n3-photo img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--n-r); position: relative; z-index: 1; }
.n3-photo .n3-pic::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; background: var(--n-ink); border-radius: var(--n-r); }
.n3-photo figcaption { font-size: 13px; color: var(--n-ink2); margin-top: 16px; }
@media (max-width: 1000px) { .n3-hero { padding: 56px 0 64px; } .n3-hero .n3-wrap { grid-template-columns: 1fr; gap: 32px; } .n3-photo .n3-pic::before { inset: 20px -20px -20px 20px; } }

/* Факты в строку */
.n3-facts .n3-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--n-line); }
.n3-facts b { display: block; font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; color: var(--n-ink); }
.n3-facts b i { font-style: normal; color: var(--n-gold); }
.n3-facts span { color: var(--n-ink2); font-size: 15px; }
@media (max-width: 1000px) { .n3-facts .n3-wrap { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 640px) { .n3-facts .n3-wrap { grid-template-columns: 1fr; } }

/* Плитки услуг */
.n3-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.n3-tile {
	background: var(--n-paper); border-radius: var(--n-r); padding: 28px 28px 26px; color: var(--n-ink) !important; display: flex; flex-direction: column;
	min-height: 260px; border: 1px solid transparent; text-decoration: none !important; transition: border-color .15s ease, background .15s ease;
}
.n3-tile:hover { border-color: var(--n-ink); background: var(--n-white); }
.n3-tile .n3-h3 { margin-bottom: 12px; }
.n3-tile p { color: var(--n-ink2); font-size: 15px; margin: 0 0 20px; flex: 1; line-height: 1.55; }
.n3-tile .n3-docs { font-size: 13px; color: var(--n-ink2); padding-top: 14px; border-top: 1px solid var(--n-line); }
.n3-tile .n3-docs b { display: block; color: var(--n-ink); font-weight: 600; margin-bottom: 2px; }
.n3-tile.is-big { grid-column: span 2; background: var(--n-ink); color: #fff !important; border-color: var(--n-ink); }
.n3-tile.is-big .n3-h3 { font-size: 26px; color: #fff; }
.n3-tile.is-big p { color: #c4cbd8; font-size: 16px; }
.n3-tile.is-big .n3-docs { border-color: #34405a; color: #aeb6c6; }
.n3-tile.is-big .n3-docs b { color: #fff; }
.n3-tile.is-big:hover { background: #1c2a47; }
@media (max-width: 1000px) { .n3-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .n3-tiles { grid-template-columns: 1fr; } .n3-tile.is-big { grid-column: span 1; } .n3-tile { min-height: 0; } }

/* Линия времени */
.n3-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; padding-top: 34px; }
.n3-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--n-line); }
.n3-timeline > div { position: relative; }
.n3-timeline > div::before { content: ""; position: absolute; left: 0; top: -30px; width: 14px; height: 14px; border-radius: 50%; background: var(--n-gold); border: 3px solid var(--n-paper); }
.n3-section.is-white .n3-timeline > div::before { border-color: var(--n-white); }
.n3-timeline b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--n-ink3); display: block; margin-bottom: 10px; font-weight: 600; }
.n3-timeline .n3-h3 { margin-bottom: 8px; }
.n3-timeline p { color: var(--n-ink2); font-size: 15px; margin: 0; line-height: 1.55; }
@media (max-width: 1000px) { .n3-timeline { grid-template-columns: 1fr 1fr; gap: 40px 32px; } .n3-timeline::before { display: none; } }
@media (max-width: 640px) { .n3-timeline { grid-template-columns: 1fr; } }

/* Города на тёмном */
.n3-cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 40px; margin-top: 8px; }
.n3-cities a { color: #fff !important; padding: 12px 0; border-bottom: 1px solid #2b364e; display: flex; justify-content: space-between; font-size: 16px; text-decoration: none !important; }
.n3-cities a small { color: #8b95a9; font-size: 13px; }
.n3-cities a:hover { color: #e2bf5c !important; }
@media (max-width: 1000px) { .n3-cities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .n3-cities { grid-template-columns: 1fr; } }

/* Новости — три колонки текста */
.n3-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.n3-news article time { font-size: 13px; color: var(--n-ink3); display: block; margin-bottom: 14px; }
.n3-news article .n3-h3 { font-size: 19px; margin-bottom: 10px; }
.n3-news article .n3-h3 a { color: var(--n-ink); text-decoration: none; }
.n3-news article .n3-h3 a:hover { color: var(--n-blue); }
.n3-news article p { color: var(--n-ink2); font-size: 15px; margin: 0; line-height: 1.55; }
.n3-news article img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--n-r); margin-bottom: 16px; }
@media (max-width: 1000px) { .n3-news { grid-template-columns: 1fr; } }

/* Заявка */
.n3-request .n3-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.n3-request dl { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.n3-request dt { font-size: 13px; color: var(--n-ink3); margin-bottom: 4px; }
.n3-request dd { margin: 0; font-weight: 600; font-size: 17px; color: var(--n-ink); }
.n3-request dd a { color: inherit; text-decoration: none; }
@media (max-width: 1000px) { .n3-request .n3-wrap { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) { .n3-request dl { grid-template-columns: 1fr; } }

/* Форма (nck-lead-form сохраняет свои классы для JS) */
.n3-form { background: var(--n-white); border: 1px solid var(--n-line); border-radius: var(--n-r); padding: 32px; }
.n3-form .n3-h3 { font-size: 22px; margin-bottom: 6px; }
.n3-form .n3-sub { color: var(--n-ink2); font-size: 14px; margin: 0 0 12px; }
.n3-form label { display: block; font-size: 13px; font-weight: 500; color: var(--n-ink2); margin: 16px 0 6px; }
.n3-form input, .n3-form select {
	width: 100%; border: 1px solid #c9c3b4; background: var(--n-white); color: var(--n-ink); padding: 12px 14px;
	font: 15px 'Golos Text', 'Segoe UI', Arial, sans-serif; border-radius: var(--n-r); outline: none;
}
.n3-form input:focus, .n3-form select:focus { border-color: var(--n-ink); box-shadow: 0 0 0 2px rgba(16,26,46,.12); }
.n3-form .n3-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.n3-form .n3-btn { width: 100%; margin-top: 24px; }
.n3-form .n3-consent { font-size: 12.5px; color: var(--n-ink3); margin: 12px 0 0; line-height: 1.5; }
.n3-form .n3-consent a { color: var(--n-ink2); text-decoration: underline; }
.n3-form .nck-form-message { margin-top: 12px; border-radius: var(--n-r); padding: 10px 12px; font-size: 14px; }
@media (max-width: 640px) { .n3-form { padding: 22px; } .n3-form .n3-row { grid-template-columns: 1fr; } }

/* Подвал */
.n3-footer { background: var(--n-paper2); padding: 64px 0 28px; font-size: 14.5px; }
.n3-footer .n3-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
.n3-footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--n-ink3); margin: 0 0 16px; font-weight: 600; }
.n3-footer ul { list-style: none; margin: 0; padding: 0; }
.n3-footer li { margin-bottom: 9px; }
.n3-footer a { color: var(--n-ink); text-decoration: none; }
.n3-footer a:hover { color: var(--n-blue); }
.n3-footer .n3-about p { color: var(--n-ink2); margin: 14px 0 0; max-width: 380px; line-height: 1.55; }
.n3-footer .n3-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--n-line); display: flex; justify-content: space-between; gap: 20px; color: var(--n-ink3); font-size: 13px; flex-wrap: wrap; }
.n3-footer .n3-legal a { color: var(--n-ink3); }
.n3-footer .n3-legal ul { display: flex; gap: 16px; flex-wrap: wrap; }
.n3-footer .n3-legal li { margin: 0; }
@media (max-width: 1000px) { .n3-footer .n3-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .n3-footer .n3-cols { grid-template-columns: 1fr; } }

/* Мобильная панель действий */
.n3-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--n-white); border-top: 1px solid var(--n-line); padding: 10px 14px; display: flex; gap: 10px; z-index: 40; }
.n3-mobile-bar .n3-btn { flex: 1; padding: 13px 10px; }
@media (min-width: 768px) { .n3-mobile-bar { display: none; } }

/* Лендинг */
.n3-price { width: 100%; border-collapse: collapse; background: var(--n-white); border-radius: var(--n-r); overflow: hidden; }
.n3-price th { text-align: left; font-size: 13px; font-weight: 600; color: var(--n-ink3); padding: 16px 20px 12px; border-bottom: 1px solid var(--n-line); }
.n3-price td { padding: 15px 20px; border-bottom: 1px solid var(--n-line); vertical-align: top; }
.n3-price tr:last-child td { border-bottom: 0; }
.n3-price td:first-child { font-weight: 600; width: 110px; color: var(--n-ink2); }
.n3-price td:last-child, .n3-price th:last-child { text-align: right; white-space: nowrap; }
.n3-price td:last-child { font-weight: 600; font-size: 17px; }
.n3-price tr.is-group td { background: var(--n-paper); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--n-ink2); padding: 10px 20px; }
.n3-note { font-size: 14px; color: var(--n-ink2); margin-top: 16px; }
.n3-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.n3-list { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.n3-list li { position: relative; padding: 16px 0 16px 52px; border-top: 1px solid var(--n-line); counter-increment: n; color: var(--n-ink2); font-size: 15.5px; line-height: 1.55; }
.n3-list li:first-child { border-top: 0; padding-top: 0; }
.n3-list li:first-child::before { top: 0; }
.n3-list li b { color: var(--n-ink); font-weight: 600; }
.n3-list li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-size: 13px; font-weight: 600; color: var(--n-gold); letter-spacing: .06em; }
.n3-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
.n3-faq > div { padding-top: 22px; border-top: 1px solid var(--n-line); }
.n3-faq .n3-h3 { font-size: 18px; margin-bottom: 8px; }
.n3-faq p { margin: 0; color: var(--n-ink2); font-size: 15.5px; line-height: 1.55; }
.n3-address { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.n3-address dl { margin: 0; }
.n3-address dt { font-size: 13px; color: var(--n-ink3); margin-top: 20px; }
.n3-address dt:first-child { margin-top: 0; }
.n3-address dd { margin: 4px 0 0; font-size: 17px; font-weight: 500; color: var(--n-ink); }
.n3-address dd.is-big { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.n3-map { aspect-ratio: 16/9; background: var(--n-paper2); border-radius: var(--n-r); overflow: hidden; position: relative; min-height: 320px; }
.n3-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.n3-map .n3-map-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--n-ink2); font-size: 14px; text-align: center; padding: 20px; }
@media (max-width: 1000px) { .n3-two, .n3-address { grid-template-columns: 1fr; gap: 32px; } .n3-faq { grid-template-columns: 1fr; } }

/* Утилиты видимости Tailwind должны побеждать display у наших компонентов */
.n3-btn.hidden, .n3-iconbtn.hidden, .n3-phone.hidden, .n3-brand.hidden { display: none; }
@media (min-width: 768px) { .n3-btn.md\:inline-flex, .n3-iconbtn.md\:inline-flex, .n3-phone.md\:inline-flex { display: inline-flex; } }
@media (min-width: 1024px) { .n3-iconbtn.lg\:hidden, .n3-btn.lg\:hidden { display: none; } }

/* Каналы связи (WhatsApp / Telegram / почта / Instagram) вместо телефонов */
.n3-btn svg { width: 16px; height: 16px; flex: none; }
.n3-iconbtn svg { width: 20px; height: 20px; }
.n3-channels-head { display: inline-flex; gap: 8px; }
.n3-chan { display: inline-flex; align-items: center; gap: 8px; color: var(--n-ink) !important; text-decoration: none !important; font-weight: 500; }
.n3-chan svg { width: 16px; height: 16px; color: var(--n-ink2); flex: none; }
.n3-chan:hover { color: var(--n-blue) !important; }
.n3-chan:hover svg { color: var(--n-blue); }
.n3-chan-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px !important; }
.n3-footer-channels .n3-chan { font-weight: 400; }
.n3-request dd .n3-chan { font-weight: 600; }
@media (max-width: 767px) { .n3-channels-head .n3-iconbtn:nth-child(2) { display: none; } }

/* Внутренние страницы: контейнер под sticky-шапку */
#nck-content { padding-top: 0 !important; }
#nck-content > .max-w-7xl { padding-top: 40px; }

/* Скрытие на мобиле */
@media (max-width: 768px) {
	.hide-on-mobile { display: none; }
}

/* Скрытие старого WP-content по умолчанию */
.entry-content > p:first-child:empty { display: none; }

/* WYSIWYG контент в bento-card (старые страницы со старым HTML) */
.nck-content-prose h1, .nck-content-prose h2, .nck-content-prose h3, .nck-content-prose h4 {
	color: #101a2e;
	font-weight: 700;
	margin-top: 1.6em;
	margin-bottom: 0.6em;
	line-height: 1.25;
}
.nck-content-prose h1 { font-size: 2rem; }
.nck-content-prose h2 { font-size: 1.6rem; }
.nck-content-prose h3 { font-size: 1.3rem; }
.nck-content-prose h4 { font-size: 1.1rem; }
.nck-content-prose p,
.nck-content-prose li,
.nck-content-prose td,
.nck-content-prose th {
	color: #4a5364;
	line-height: 1.7;
}
.nck-content-prose strong, .nck-content-prose b { color: #101a2e; }
.nck-content-prose a {
	color: #1a64a8;
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: color 0.2s;
}
.nck-content-prose a:hover { color: #144e84; }
.nck-content-prose ul,
.nck-content-prose ol {
	margin-left: 1.25em;
	margin-bottom: 1em;
}
.nck-content-prose ul { list-style: disc; }
.nck-content-prose ol { list-style: decimal; }
.nck-content-prose ul li::marker,
.nck-content-prose ol li::marker {
	color: #1a64a8;
}
.nck-content-prose blockquote {
	border-left: 3px solid #1a64a8;
	padding: 0.5em 1em;
	background: rgba(26,100,168,0.05);
	border-radius: 0 4px 4px 0;
	margin: 1em 0;
	color: #101a2e;
}
.nck-content-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid rgba(16,26,46,0.12);
	margin: 1em 0;
}
.nck-content-prose figure { margin: 1.5em 0; }
.nck-content-prose figure figcaption {
	color: #4a5364;
	font-size: 0.875rem;
	text-align: center;
	margin-top: 0.5em;
}
.nck-content-prose hr {
	border: 0;
	border-top: 1px solid rgba(16,26,46,0.12);
	margin: 2em 0;
}
.nck-content-prose table {
	width: 100%;
	border-collapse: collapse;
	border-radius: 4px;
	overflow: hidden;
	margin: 1em 0;
	border: 1px solid rgba(16,26,46,0.12);
}
.nck-content-prose th, .nck-content-prose td {
	padding: 0.75em 1em;
	text-align: left;
	border-bottom: 1px solid rgba(16,26,46,0.12);
	font-size: 0.95em;
}
.nck-content-prose th {
	background: rgba(26,100,168,0.06);
	color: #101a2e;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.8em;
}
.nck-content-prose tr:hover td {
	background: rgba(16,26,46,0.12);
}
.nck-content-prose iframe {
	width: 100%;
	max-width: 100%;
	border: 0;
	border-radius: 4px;
	margin: 1em 0;
}

/* Form messages */
.nck-form-message.is-success {
	background: rgba(26,100,168,0.1);
	border: 1px solid rgba(26,100,168,0.3);
	color: #1a64a8;
}
.nck-form-message.is-error {
	background: rgba(179,38,30,0.08);
	border: 1px solid rgba(179,38,30,0.35);
	color: #b3261e;
}

/* ============================================================
 * ПАГИНАЦИЯ (WordPress the_posts_pagination / paginate_links)
 * ============================================================ */
.page-numbers,
nav.pagination ul,
nav.pagination > ul {
	list-style: none !important;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}
.page-numbers li,
nav.pagination li {
	list-style: none !important;
}
.page-numbers li::marker,
nav.pagination li::marker { content: ''; }

/* Сами кнопки страниц */
.page-numbers a.page-numbers,
.page-numbers span.page-numbers,
nav.pagination a.page-numbers,
nav.pagination span.page-numbers,
a.page-numbers,
span.page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	background: #ffffff;
	border: 1px solid rgba(16,26,46,0.12);
	border-radius: 4px;
	color: #101a2e;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all .2s ease;
	justify-content: center;
}
a.page-numbers:hover {
	border-color: rgba(26,100,168,0.4);
	color: #1a64a8;
}
.page-numbers .current,
span.page-numbers.current {
	background: #101a2e;
	border-color: #101a2e;
	color: #101a2e;
}
.page-numbers .dots {
	background: transparent;
	border-color: transparent;
	color: #4a5364;
}
.page-numbers .prev,
.page-numbers .next {
	padding: 0 18px;
	font-weight: 700;
}

/* line-clamp helper (используется в карточках новостей) */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* WP-классы для постов */
.alignleft  { float: left;  margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: #4a5364; font-size: 0.875em; text-align: center; }

/* Quick contact из header-contact widget — старая разметка темы */
#quick-contact ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; }
#quick-contact a { color: #101a2e; }
#quick-contact a:hover { color: #1a64a8; }

/* Скрываем устаревшую разметку темы Best Business если ещё что-то осталось */
#tophead, #masthead, #site-navigation, #main-nav,
.site-branding, .right-head, .header-search-box,
#footer-widgets, #footer-navigation .copyright {
	/* эти контейнеры мы сами генерируем теперь */
}

/* ============================================================
 * СОВМЕСТИМОСТЬ С ПЛАГИНАМИ (SiteOrigin Page Builder,
 * Shortcodes Ultimate, стандартные WP-виджеты)
 *
 * Старые страницы (Сертификация, Метрология, Испытания и т.д.)
 * собраны в SiteOrigin Page Builder + содержат шорткоды [su_*].
 * Здесь — мягкие переопределения, чтобы они вписались
 * в тёмный Bento-фон без правки самого контента.
 * ============================================================ */

/* --- SiteOrigin Page Builder: контейнеры строк/панелей --- */
.panel-grid,
.panel-grid-cell,
.panel-row-style,
.so-panel {
	background: transparent !important;
}
.panel-grid { margin-bottom: 1.5rem !important; }
.so-panel { margin-bottom: 1.25rem !important; }
.panel-row-style[style*="background"] { background: transparent !important; }

/* SiteOrigin виджет "Редактор" — текст */
.nck-content-prose .so-widget-sow-editor,
.nck-content-prose .siteorigin-widget-tinymce {
	color: #4a5364;
}
.nck-content-prose .so-widget-sow-editor a,
.nck-content-prose .siteorigin-widget-tinymce a { color: #1a64a8; }

/* SiteOrigin "Заголовок" */
.nck-content-prose .sow-headline,
.nck-content-prose h1.sow-headline,
.nck-content-prose h2.sow-headline,
.nck-content-prose h3.sow-headline {
	color: #101a2e !important;
}

/* SiteOrigin "Кнопка" — переводим в наш стиль */
.nck-content-prose .ow-button-base a,
.nck-content-prose a.sow-button {
	background: #101a2e !important;
	color: #101a2e !important;
	border-radius: 4px !important;
	padding: 12px 20px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	transition: all .3s ease !important;
}
.nck-content-prose .ow-button-base a:hover,
.nck-content-prose a.sow-button:hover {
	background: #144e84 !important;
}

/* --- Shortcodes Ultimate: [su_spoiler] (аккордеоны) — ГЛОБАЛЬНО, не зависит от .nck-content-prose --- */
.su-spoiler {
	background: #ffffff !important;
	border: 1px solid rgba(16,26,46,0.12) !important;
	border-radius: 6px !important;
	margin-bottom: 12px !important;
	overflow: hidden;
	transition: border-color .3s ease;
	color: #101a2e !important;
	box-shadow: none !important;
}
.su-spoiler:hover {
	border-color: rgba(26,100,168,0.25) !important;
}
.su-spoiler-title {
	background: transparent !important;
	color: #101a2e !important;
	font-weight: 600 !important;
	padding: 16px 20px !important;
	border-bottom: 0 !important;
	border: 0 !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 12px;
}
.su-spoiler-title:hover { background: rgba(26,100,168,0.04) !important; }
.su-spoiler-icon {
	color: #1a64a8 !important;
}
.su-spoiler-icon::before {
	color: #1a64a8 !important;
}
.su-spoiler-content {
	background: rgba(244,241,234,0.4) !important;
	color: #4a5364 !important;
	padding: 18px 20px !important;
	border: 0 !important;
	border-top: 1px solid rgba(16,26,46,0.12) !important;
}
.su-spoiler-content a { color: #1a64a8 !important; }
.su-spoiler-content strong { color: #101a2e !important; }
.su-spoiler-content em,
.su-spoiler-content i:not([class]) {
	color: #101a2e !important;
	font-style: normal !important;
	font-weight: 600;
}
.su-spoiler-content ul,
.su-spoiler-content ol {
	margin: 0.5em 0 0.5em 1.25em;
}

/* Вложенные su_spoiler в su_spoiler-content — компактнее и темнее */
.su-spoiler-content .su-spoiler {
	background: rgba(16,26,46,0.12) !important;
	margin-bottom: 8px !important;
}
.su-spoiler-content .su-spoiler-title {
	padding: 12px 16px !important;
	font-size: 14px;
}
.su-spoiler-content .su-spoiler-content {
	background: rgba(244,241,234,0.5) !important;
	padding: 14px 16px !important;
}

/* FontAwesome / иконки папок в su_spoiler title — accent цвет, без рамок */
.su-spoiler-title i,
.su-spoiler-title .fa,
.su-spoiler-title .fas,
.su-spoiler-title .far,
.su-spoiler-title .fal,
.su-spoiler-title .fab,
.su-spoiler-title svg {
	color: #1a64a8 !important;
	margin-right: 4px;
}

/* [su_list] */
.nck-content-prose .su-list ul,
.nck-content-prose ul.su-list {
	list-style: none !important;
	padding-left: 0 !important;
}
.nck-content-prose .su-list li,
.nck-content-prose ul.su-list li {
	position: relative;
	padding-left: 1.75em !important;
	margin-bottom: 0.5em;
	color: #4a5364;
}
.nck-content-prose .su-list i,
.nck-content-prose .su-list .fa,
.nck-content-prose .su-list .sui {
	position: absolute;
	left: 0;
	top: 4px;
	color: #1a64a8 !important;
}

/* [su_button] */
.nck-content-prose a.su-button {
	background: #101a2e !important;
	color: #101a2e !important;
	border-radius: 4px !important;
	padding: 12px 20px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	border: 0 !important;
	transition: all .3s ease !important;
}
.nck-content-prose a.su-button:hover {
	background: #144e84 !important;
}
.nck-content-prose a.su-button .su-button-text { color: #101a2e !important; }

/* [su_box] */
.nck-content-prose .su-box {
	background: #ffffff !important;
	border: 1px solid rgba(16,26,46,0.12) !important;
	border-radius: 6px !important;
	margin: 1em 0 !important;
	box-shadow: none !important;
}
.nck-content-prose .su-box-title {
	background: transparent !important;
	color: #101a2e !important;
	border-bottom: 1px solid rgba(16,26,46,0.12) !important;
}
.nck-content-prose .su-box-content { color: #4a5364 !important; }

/* [su_note] */
.nck-content-prose .su-note {
	background: rgba(26,100,168,0.06) !important;
	border-color: rgba(26,100,168,0.25) !important;
	border-radius: 4px !important;
}
.nck-content-prose .su-note-inner { color: #101a2e !important; }

/* [su_quote] */
.nck-content-prose .su-quote {
	background: rgba(26,100,168,0.05);
	border-left: 3px solid #1a64a8 !important;
	border-radius: 0 4px 4px 0;
	padding: 0.5em 1em;
	color: #101a2e;
}

/* [su_tabs] / [su_tab] */
.nck-content-prose .su-tabs {
	background: transparent !important;
	border: 0 !important;
}
.nck-content-prose .su-tabs-nav {
	background: #ffffff !important;
	border-radius: 4px 12px 0 0;
	border-bottom: 1px solid rgba(16,26,46,0.12) !important;
}
.nck-content-prose .su-tabs-nav span {
	color: #4a5364 !important;
	border: 0 !important;
	border-bottom: 2px solid transparent !important;
	background: transparent !important;
}
.nck-content-prose .su-tabs-nav span.su-tabs-current {
	color: #1a64a8 !important;
	border-bottom-color: #1a64a8 !important;
	background: transparent !important;
}
.nck-content-prose .su-tabs-pane {
	background: #ffffff !important;
	border: 1px solid rgba(16,26,46,0.12) !important;
	border-top: 0 !important;
	border-radius: 0 0 4px 4px;
	color: #4a5364 !important;
}

/* [su_divider] */
.nck-content-prose .su-divider {
	border-color: rgba(16,26,46,0.12) !important;
}

/* [su_heading] */
.nck-content-prose .su-heading,
.nck-content-prose .su-heading .su-heading-inner {
	color: #101a2e !important;
	border-color: rgba(16,26,46,0.12) !important;
}

/* --- Стандартный WP-виджет "Поиск" --- */
.widget_search input[type="search"],
.widget_search input.search-field {
	background: #f4f1ea !important;
	border: 1px solid rgba(16,26,46,0.12) !important;
	color: #101a2e !important;
	border-radius: 4px !important;
	padding: 10px 14px !important;
}
.widget_search button,
.widget_search input[type="submit"] {
	background: #101a2e !important;
	color: #101a2e !important;
	border-radius: 4px !important;
	font-weight: 700 !important;
	border: 0 !important;
}

/* --- Курсив/em в контенте: города не должны выглядеть как "выключенные" --- */
.nck-content-prose em,
.nck-content-prose i:not([class]),
.su-spoiler-content em,
.su-spoiler-content i:not([class]) {
	color: #101a2e !important;
	font-style: normal !important;
	font-weight: 600;
}
/* Слова в круглых скобках (Астана) (Усть-Каменогорск) — outline-chip */
.nck-content-prose em,
.su-spoiler-content em {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 6px;
	background: rgba(26,100,168,0.08);
	border: 1px solid rgba(26,100,168,0.22);
	color: #1a64a8 !important;
	font-weight: 700 !important;
	font-size: 0.85em;
	margin: 0 1px;
	white-space: nowrap;
}

/* --- Legacy widget «список услуг» с FontAwesome-иконками и "+" --- */
/* Полностью скрываем widget_nav_menu и widget_pages внутри основного контента
   страниц услуг (это дубликат нашего сайдбара). */
.nck-content-prose .widget_nav_menu,
.nck-content-prose .widget_pages,
.nck-content-prose .so-widget-sow-icon,
.panel-grid .widget_nav_menu,
.panel-grid .widget_pages {
	display: none !important;
}

/* Скрываем все "+" sub-menu toggles (это устаревший accordion) */
.widget .sub-menu-toggle,
.widget .menu-item-has-children > .toggle,
.widget .menu-item-has-children > button.toggled,
aside .sub-menu-toggle,
aside .menu-item-has-children > .toggle,
.nck-content-prose .menu-toggle,
.nck-content-prose .sub-menu-toggle,
.nck-content-prose [class*="menu-item-has-children"] > [class*="toggle"] {
	display: none !important;
}

/* Иконки в legacy widget_nav_menu — accent + аккуратные */
.widget_nav_menu .menu-item i,
.widget_nav_menu .menu-item .fa,
.widget_nav_menu .menu-item .fas,
.widget_nav_menu .menu-item .far,
.widget_nav_menu .menu-item img.menu-image {
	color: #1a64a8 !important;
	margin-right: 8px;
	font-size: 14px;
	width: 18px;
	text-align: center;
	display: inline-block;
	vertical-align: middle;
	filter: none !important;
}

/* Сам список услуг — компактные карточки */
.widget_nav_menu ul.menu,
.widget_nav_menu .menu {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.widget_nav_menu .menu-item {
	border-bottom: 0 !important;
	padding: 0 !important;
}
.widget_nav_menu .menu-item > a {
	display: flex !important;
	align-items: center;
	padding: 10px 14px !important;
	border-radius: 4px;
	background: #f4f1ea;
	border: 1px solid rgba(16,26,46,0.12);
	color: #101a2e !important;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none !important;
	transition: all .2s ease;
}
.widget_nav_menu .menu-item > a:hover {
	background: rgba(26,100,168,0.06);
	border-color: rgba(26,100,168,0.25);
	color: #1a64a8 !important;
}
/* Скрываем sub-menu в виджете */
.widget_nav_menu .sub-menu { display: none !important; }

/* --- Виджет "Свежие записи" / "Recent posts" --- */
.widget_recent_entries ul,
.widget_categories ul,
.widget_archive ul,
.widget_meta ul,
.widget_pages ul,
.widget_nav_menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.widget_recent_entries li,
.widget_categories li,
.widget_archive li,
.widget_meta li,
.widget_pages li,
.widget_nav_menu li {
	padding: 8px 0;
	border-bottom: 1px solid rgba(16,26,46,0.12);
}
.widget_recent_entries li:last-child,
.widget_categories li:last-child,
.widget_archive li:last-child { border-bottom: 0; }
.widget_recent_entries a,
.widget_categories a,
.widget_archive a,
.widget_meta a,
.widget_pages a,
.widget_nav_menu a {
	color: #101a2e;
	text-decoration: none;
	transition: color .2s ease;
}
.widget_recent_entries a:hover,
.widget_categories a:hover,
.widget_archive a:hover { color: #1a64a8; }

/* --- Popup Maker — лёгкие фиксы тёмной темы (не обязательно) --- */
.pum-theme-default-theme .pum-container {
	background: #ffffff !important;
	color: #101a2e !important;
	border-radius: 6px !important;
	border: 1px solid rgba(16,26,46,0.12) !important;
}
