/* ==========================================================================
   НСК-ОЙЛ — редизайн (октябрь 2026)
   Подключается последним (после style.css и custom.css), поэтому
   переопределяет тему. Свои компоненты — с префиксом .nk-
   Шрифты: Unbounded (заголовки, классы вязкости) + Onest (текст).
   Цвета: синий логотипа, тёмно-синий, янтарный акцент.
   ========================================================================== */

:root {
	--nk-ink: #0E2238;          /* основной текст, тёмные полосы */
	--nk-band: #0E2238;         /* фон тёмных секций */
	--nk-band-2: #16304F;       /* блок внутри тёмной секции */
	--nk-blue: #135DA7;         /* цвет логотипа: кнопки, ссылки */
	--nk-blue-hover: #0E4A86;
	--nk-amber: #F2A900;        /* акцент: главная кнопка, бейджи */
	--nk-amber-hover: #FFBC1F;
	--nk-fog: #EEF2F6;          /* светлые подложки */
	--nk-fog-2: #DCE5EF;
	--nk-line: #D5DDE7;         /* границы */
	--nk-muted: #4F6075;        /* второстепенный текст */
	--nk-surface: #FFFFFF;      /* карточки */
	--nk-text: #0E2238;
	--nk-ok: #1E6B3A;
	--nk-ok-dot: #2E9E5B;
	--nk-low: #8A5A00;
	--nk-radius: 14px;
	--nk-font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
	--nk-display: "Unbounded", "Onest", system-ui, sans-serif;

	/* Bootstrap: шрифт и основные цвета темы */
	--bs-body-font-family: var(--nk-font);
	--bs-font-sans-serif: var(--nk-font);
	--bs-primary: #135DA7;
	--bs-primary-rgb: 19, 93, 167;
	--bs-info: #135DA7;
	--bs-info-rgb: 19, 93, 167;
	--bs-link-color: #135DA7;
	--bs-link-color-rgb: 19, 93, 167;
	--bs-link-hover-color: #0E2238;
	--bs-link-hover-color-rgb: 14, 34, 56;
}

[data-bs-theme=dark] {
	--nk-band: #08101c;
	--nk-band-2: #141e2e;
	--nk-blue: #3D86D6;
	--nk-blue-hover: #5A9BE0;
	--nk-fog: #141e2e;
	--nk-fog-2: #1a2639;
	--nk-line: #2a3a54;
	--nk-muted: #9AA7B8;
	--nk-surface: #0d1522;
	--nk-text: #DCE4EE;
	--nk-ok: #5CC98A;
	--nk-ok-dot: #3DB873;
	--nk-low: #F2C14E;
	--bs-primary: #3D86D6;
	--bs-primary-rgb: 61, 134, 214;
	--bs-info: #3D86D6;
	--bs-info-rgb: 61, 134, 214;
	--bs-link-color: #6FA6E4;
	--bs-link-color-rgb: 111, 166, 228;
	--bs-link-hover-color: #A9CBF0;
	--bs-link-hover-color-rgb: 169, 203, 240;
}

body { font-family: var(--nk-font); color: var(--nk-text); }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--nk-display); letter-spacing: -0.01em; font-weight: 600; }

/* Кнопки темы: красный → синий логотипа */
.btn-primary, .btn-info {
	--bs-btn-color: #fff; --bs-btn-bg: var(--nk-blue); --bs-btn-border-color: var(--nk-blue);
	--bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--nk-blue-hover); --bs-btn-hover-border-color: var(--nk-blue-hover);
	--bs-btn-active-color: #fff; --bs-btn-active-bg: var(--nk-blue-hover); --bs-btn-active-border-color: var(--nk-blue-hover);
	--bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--nk-blue); --bs-btn-disabled-border-color: var(--nk-blue);
	--bs-btn-focus-shadow-rgb: 19, 93, 167;
}
.btn-outline-primary, .btn-outline-info {
	--bs-btn-color: var(--nk-blue); --bs-btn-border-color: var(--nk-blue);
	--bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--nk-blue); --bs-btn-hover-border-color: var(--nk-blue);
	--bs-btn-active-color: #fff; --bs-btn-active-bg: var(--nk-blue); --bs-btn-active-border-color: var(--nk-blue);
}
.btn { font-weight: 600; border-radius: 10px; }
.bg-info { background-color: var(--nk-blue) !important; }
.text-info { color: var(--nk-blue) !important; }
.form-control:focus, .form-select:focus { border-color: var(--nk-blue); box-shadow: 0 0 0 .2rem rgba(19, 93, 167, .18); }
.form-control, .form-select { border-radius: 10px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .btn:focus-visible {
	outline: 3px solid var(--nk-amber);
	outline-offset: 2px;
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   Общие
   -------------------------------------------------------------------------- */
.nk-wrap { max-width: 1312px; margin: 0 auto; padding: 0 32px; width: 100%; }
.nk-display { font-family: var(--nk-display); letter-spacing: -0.01em; font-weight: 600; }
.nk-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 52px; padding: 0 26px; border-radius: 10px; border: 0;
	font-family: var(--nk-font); font-weight: 600; font-size: 16px; line-height: 1;
	white-space: nowrap; text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.nk-btn-amber { background: var(--nk-amber); color: #0E2238; }
.nk-btn-amber:hover { background: var(--nk-amber-hover); color: #0E2238; }
.nk-btn-blue { background: var(--nk-blue); color: #fff; }
.nk-btn-blue:hover { background: var(--nk-blue-hover); color: #fff; }
.nk-btn-ghost { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.nk-btn-ghost:hover { border-color: #fff; color: #fff; }
.nk-btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }

.nk-pill {
	display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
	background: var(--nk-fog); color: var(--nk-text); font-size: 14px; font-weight: 500; text-decoration: none;
}
.nk-pill:hover { background: var(--nk-fog-2); color: var(--nk-text); }

.nk-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.nk-section-head h2 { margin: 0; font-size: 34px; line-height: 1.15; }
.nk-section-head p { margin: 0; font-size: 17px; line-height: 1.55; max-width: 30em; }
.nk-more { font-weight: 600; font-size: 16px; color: var(--nk-blue); text-decoration: none; }
.nk-more:hover { color: var(--nk-text); }

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.nk-topbar { background: var(--nk-band); color: rgba(255, 255, 255, .82); font-size: 13px; }
.nk-topbar .nk-wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; }
.nk-topbar a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.nk-topbar a:hover { color: #fff; }
.nk-topbar .nk-phone { color: #fff; font-weight: 600; }
.nk-topbar-group { display: flex; gap: 28px; align-items: center; }

.nk-header { position: sticky; top: 0; z-index: 1030; background: var(--nk-surface); border-bottom: 1px solid var(--nk-line); }
.nk-header-row { display: flex; align-items: center; gap: 24px; height: 84px; }
.nk-logo { display: flex; flex: none; }
.nk-logo img { height: 36px; width: auto; }
.nk-header .logo-light, .nk-footer .logo-dark { display: none; }
[data-bs-theme=dark] .nk-header .logo-light { display: block; }
[data-bs-theme=dark] .nk-header .logo-dark { display: none; }
.nk-footer .logo-light { display: block; }

.nk-catalog-btn { height: 48px; padding: 0 20px; font-size: 15px; }
.nk-catalog-btn[aria-expanded=true] { background: var(--nk-ink); }
[data-bs-theme=dark] .nk-catalog-btn[aria-expanded=true] { background: var(--nk-band-2); }

.nk-search { flex: 1 1 auto; display: flex; height: 48px; border: 1.5px solid var(--nk-line); border-radius: 10px; overflow: hidden; min-width: 0; background: var(--nk-surface); margin: 0; }
.nk-search:focus-within { border-color: var(--nk-blue); }
.nk-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font: inherit; font-size: 15px; color: var(--nk-text); background: transparent; outline: none; }
.nk-search input::placeholder { color: var(--nk-muted); opacity: 1; }
.nk-search button { width: 56px; border: 0; background: var(--nk-fog); color: var(--nk-text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nk-search button:hover { background: var(--nk-fog-2); }

.nk-actions { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nk-action {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
	min-width: 60px; padding: 4px 6px; color: var(--nk-text); font-size: 12px; font-weight: 500;
	text-decoration: none; background: none; border: 0; line-height: 1.2;
}
.nk-action:hover { color: var(--nk-blue); }
.nk-action-label { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nk-badge {
	position: absolute; top: -2px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
	background: var(--nk-amber); color: #0E2238; font-size: 11px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
}
.nk-badge:empty, .nk-badge[data-count="0"] { display: none; }

.nk-nav { display: flex; gap: 28px; height: 46px; align-items: center; font-size: 15px; font-weight: 500; }
.nk-nav a { color: var(--nk-text); text-decoration: none; }
.nk-nav a:hover, .nk-nav a.active { color: var(--nk-blue); }
.nk-nav .nk-nav-secondary { color: var(--nk-muted); }
.nk-nav-spacer { flex: 1; }

/* Мега-меню каталога */
/* Меню на всю ширину контента шапки: позиционируем от .nk-header-row, а не от кнопки */
.nk-header-row { position: relative; }
.nk-catalog-dd { position: static; }
.nk-mega.dropdown-menu { position: absolute; top: calc(100% - 6px); left: 32px; right: 32px; width: auto; margin: 0 !important; padding: 28px; border-radius: 16px; border: 1px solid var(--nk-line); box-shadow: 0 24px 48px -20px rgba(14, 34, 56, .35); background: var(--nk-surface); z-index: 1040; }
.nk-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.nk-mega-cat { display: flex; flex-direction: column; gap: 10px; }
.nk-mega-cat > a:first-child { display: block; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--nk-line); }
.nk-mega-cat img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.nk-mega-cat strong { font-family: var(--nk-display); font-weight: 600; font-size: 17px; }
.nk-mega-cat strong a { color: var(--nk-text); text-decoration: none; }
.nk-mega-cat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nk-mega-cat ul a { color: var(--nk-muted); text-decoration: none; font-size: 15px; }
.nk-mega-cat ul a:hover, .nk-mega-cat strong a:hover { color: var(--nk-blue); }

/* Мобильная шапка */
.nk-mhead { padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.nk-mhead-row { display: flex; align-items: center; justify-content: space-between; }
.nk-mhead-row img { height: 30px; width: auto; }
.nk-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--nk-text); padding: 0; }
.nk-mhead .nk-search { height: 46px; }

/* Нижнее меню на телефоне */
.nk-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex;
	background: var(--nk-surface); border-top: 1px solid var(--nk-line);
	padding-bottom: env(safe-area-inset-bottom);
}
.nk-tab {
	position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
	padding: 8px 0 6px; font-size: 11px; font-weight: 500; color: var(--nk-muted); text-decoration: none;
	background: none; border: 0; min-height: 56px;
}
.nk-tab .nk-icon { width: 22px; height: 22px; }
.nk-tab.active, .nk-tab:hover { color: var(--nk-blue); }
.nk-tab .nk-badge { top: 4px; right: auto; left: 52%; min-width: 18px; height: 18px; font-size: 10px; }
@media (max-width: 991.98px) {
	body { padding-bottom: 64px; }
	.cookie-banner, [data-cookie-banner] { bottom: 72px !important; }
}

/* Заголовок внутренних страниц */
.nk-pagehead { background: var(--nk-fog); padding: 24px 0 28px; }
.nk-pagehead .breadcrumb { background: none; padding: 0; margin: 0 0 10px; font-size: 14px; border-radius: 0; }
.nk-pagehead .breadcrumb-item, .nk-pagehead .breadcrumb-item.active { color: var(--nk-muted); }
.nk-pagehead .breadcrumb-item a { color: var(--nk-blue); text-decoration: none; }
.nk-pagehead .breadcrumb-item + .breadcrumb-item::before { color: var(--nk-muted); content: "/"; }
.nk-pagehead h1 { margin: 0; font-size: 36px; line-height: 1.15; }
.nk-pagehead-slim { padding: 14px 0; }
.nk-pagehead-slim .breadcrumb { margin: 0; }

/* --------------------------------------------------------------------------
   Главная
   -------------------------------------------------------------------------- */
.nk-hero { background: var(--nk-band); color: #fff; padding: 72px 0 120px; }
.nk-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.nk-hero h1 { margin: 0; color: #fff; font-size: 50px; line-height: 1.08; }
.nk-hero-lead { margin: 28px 0; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .78); max-width: 34em; }
.nk-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.nk-quick { background: var(--nk-surface); color: var(--nk-text); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.nk-quick label { font-weight: 600; font-size: 18px; }
.nk-quick .nk-search { height: 54px; }
.nk-quick .nk-search button { width: auto; padding: 0 22px; background: var(--nk-blue); color: #fff; font-weight: 600; font-size: 16px; }
.nk-quick .nk-search button:hover { background: var(--nk-blue-hover); }
.nk-quick-hint { font-size: 14px; color: var(--nk-muted); }
.nk-pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* Баннер из админки наезжает на тёмный первый экран */
.nk-banner { margin-top: -72px; position: relative; }
.nk-banner .home-slider { margin-bottom: 0 !important; border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(14, 34, 56, .45); }

/* Категории */
.nk-cats-section { padding: 88px 0 96px; }
.nk-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nk-cat {
	position: relative; display: flex; flex-direction: column; min-height: 300px;
	padding: 28px 28px 24px; border: 1px solid var(--nk-line); border-radius: 16px; overflow: hidden;
	background: #fff; color: #0E2238; text-decoration: none;
	transition: border-color .15s ease;
}
.nk-cat:hover { border-color: var(--nk-blue); color: #0E2238; }
.nk-cat-wide { grid-column: span 2; min-height: 340px; }
.nk-cat img { position: absolute; right: -30%; bottom: 0; height: 62%; width: auto; pointer-events: none; }
.nk-cat-wide img { right: -4%; height: 88%; }
.nk-cat-title { position: relative; font-family: var(--nk-display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.nk-cat-wide .nk-cat-title { font-size: 30px; }
.nk-cat-text { position: relative; margin-top: 8px; font-size: 15px; line-height: 1.5; color: #4F6075; max-width: 13em; }
.nk-cat-wide .nk-cat-text { max-width: 22em; }
.nk-cat-subs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; max-width: 46%; }
.nk-cat-subs span { font-size: 14px; background: rgba(238, 242, 246, .92); padding: 7px 12px; border-radius: 8px; }
/* Картинки категорий на белом фоне — в тёмной теме карточка остаётся белой, это намеренно */

/* Подбор по вязкости */
.nk-grades-section { background: var(--nk-band); color: #fff; padding: 88px 0; }
.nk-grades-section h2 { color: #fff; max-width: 14em; }
.nk-grades-section .nk-section-head p { color: rgba(255, 255, 255, .75); }
.nk-grades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nk-grade {
	display: flex; align-items: center; justify-content: center; padding: 30px 8px; border-radius: 14px;
	font-family: var(--nk-display); font-weight: 600; font-size: 58px; line-height: 1; text-decoration: none;
	color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .75);
	border: 1px solid rgba(255, 255, 255, .12);
	transition: background-color .15s ease, color .15s ease;
}
.nk-grade:hover, .nk-grade:focus-visible {
	color: #0E2238; -webkit-text-stroke: 0; background: var(--nk-amber); border-color: var(--nk-amber);
}
@supports not (-webkit-text-stroke: 1px #fff) { .nk-grade { color: #fff; } }

/* Шаги */
.nk-steps-section { padding: 96px 0; }
.nk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.nk-steps li { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--nk-text); padding-top: 24px; }
.nk-step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--nk-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--nk-display); font-weight: 600; font-size: 16px; }
.nk-steps strong { font-size: 19px; }
.nk-steps span:last-child { font-size: 15px; line-height: 1.55; color: var(--nk-muted); }

/* Бренды */
.nk-brands-section { background: var(--nk-fog); padding: 80px 0; }
.nk-brands-section h2 { font-size: 28px; margin: 0 0 32px; }
.nk-brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--nk-line); border: 1px solid var(--nk-line); border-radius: 16px; overflow: hidden; }
.nk-brand { display: flex; align-items: center; justify-content: center; height: 112px; padding: 20px 28px; background: #fff; }
.nk-brand img { max-height: 52px; max-width: 100%; filter: grayscale(1); opacity: .75; transition: filter .15s ease, opacity .15s ease; }
.nk-brand:hover img, .nk-brand:focus-visible img { filter: none; opacity: 1; }

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */
.nk-footer { background: var(--nk-band); color: #fff; padding: 72px 0 0; margin-top: auto; }
.nk-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 15px; }
.nk-footer a:hover { color: #fff; }
.nk-subscribe { display: flex; justify-content: space-between; align-items: center; gap: 24px 32px; flex-wrap: wrap; padding: 32px; border-radius: 18px; background: var(--nk-band-2); margin-bottom: 56px; }
.nk-subscribe strong { font-family: var(--nk-display); font-weight: 600; font-size: 22px; display: block; margin-bottom: 6px; }
.nk-subscribe p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 15px; }
.nk-subscribe form { display: flex; gap: 10px; flex: 1 1 380px; max-width: 520px; margin: 0; }
.nk-subscribe input { flex: 1; min-width: 0; height: 52px; border-radius: 10px; border: 0; padding: 0 16px; font: inherit; font-size: 16px; color: #0E2238; background: #fff; }
.nk-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.nk-footer-col { display: flex; flex-direction: column; gap: 12px; }
.nk-footer-col > strong { font-size: 16px; margin-bottom: 4px; }
.nk-footer address { font-style: normal; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, .78); line-height: 1.5; margin: 16px 0 0; }
.nk-footer address .nk-footer-phone { color: #fff; font-size: 20px; font-weight: 600; }
.nk-footer-logo img { height: 36px; width: auto; }
.nk-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 56px; padding: 22px 0 28px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.nk-footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nk-footer-bottom a { font-size: 14px; }
.nk-footer .theme-switch { color: #fff; border-color: rgba(255, 255, 255, .35); border-radius: 8px; }
.nk-footer .theme-switch:hover { border-color: #fff; }

/* --------------------------------------------------------------------------
   Каталог: карточка товара
   -------------------------------------------------------------------------- */
.nk-card {
	position: relative; display: flex; flex-direction: column; height: 100%;
	border: 1px solid var(--nk-line); border-radius: var(--nk-radius); overflow: hidden; background: var(--nk-surface);
	transition: border-color .15s ease;
}
.nk-card:hover { border-color: var(--nk-blue); }
.nk-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; }
.nk-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }

/* Плитка без фото: вместо заглушки — вязкость крупно */
.nk-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 3; background: var(--nk-fog); color: var(--nk-text); text-decoration: none; padding: 12px; text-align: center; }
.nk-tile:hover { color: var(--nk-text); }
.nk-tile-grade { font-family: var(--nk-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.05; }
.nk-tile-grade.is-text { font-size: clamp(16px, 1.6vw, 21px); line-height: 1.2; }
.nk-tile-vol { font-size: 14px; font-weight: 600; color: var(--nk-muted); }
.nk-tile.is-gpn { background: #E6EEF8; }
.nk-tile.is-ge { background: #E9F1EC; }
.nk-tile.is-tam { background: #F4EEE2; }
.nk-tile.is-grass { background: #EAF3E4; }
[data-bs-theme=dark] .nk-tile.is-gpn { background: #142640; }
[data-bs-theme=dark] .nk-tile.is-ge { background: #13281f; }
[data-bs-theme=dark] .nk-tile.is-tam { background: #2a2416; }
[data-bs-theme=dark] .nk-tile.is-grass { background: #1a2a17; }

.nk-fav {
	position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--nk-surface); border: 1px solid var(--nk-line); color: var(--nk-text); cursor: pointer;
}
.nk-fav .nk-icon { width: 18px; height: 18px; }
.nk-fav:hover { border-color: var(--nk-blue); color: var(--nk-blue); }
/* favorites.js переключает btn-primary / btn-outline-primary */
.nk-fav.btn-primary { background: var(--nk-blue); border-color: var(--nk-blue); color: #fff; }
.nk-fav.btn-primary .nk-icon { fill: currentColor; }
.nk-fav.is-loading, .nk-add.is-loading { opacity: .6; pointer-events: none; }

.nk-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.nk-card-brand { font-size: 13px; font-weight: 600; color: var(--nk-blue); }
.nk-card-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--nk-text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nk-card-title:hover { color: var(--nk-blue); }
.nk-card-art { font-size: 13px; color: var(--nk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nk-card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.nk-price { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--nk-text); white-space: nowrap; }
.nk-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--nk-ok); }
.nk-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nk-ok-dot); flex: none; }
.nk-stock.is-low { color: var(--nk-low); }
.nk-stock.is-low::before { background: var(--nk-amber); }
.nk-stock.is-out { color: var(--nk-muted); }
.nk-stock.is-out::before { background: var(--nk-line); }

.nk-buy { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.nk-qty { display: flex; align-items: center; border: 1px solid var(--nk-line); border-radius: 8px; height: 44px; flex: none; }
.nk-qty button { width: 32px; height: 42px; border: 0; background: none; font: inherit; font-size: 18px; color: var(--nk-text); cursor: pointer; padding: 0; }
.nk-qty button:hover { color: var(--nk-blue); }
.nk-qty input { width: 34px; height: 42px; border: 0; padding: 0; text-align: center; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--nk-text); background: transparent; -moz-appearance: textfield; }
.nk-qty input::-webkit-outer-spin-button, .nk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nk-add {
	flex: 1 1 96px; height: 44px; border-radius: 8px; border: 0; padding: 0 12px;
	background: var(--nk-blue); color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
	transition: background-color .15s ease;
}
.nk-add:hover { background: var(--nk-blue-hover); color: #fff; }
.nk-add:disabled { background: var(--nk-fog-2); color: var(--nk-muted); cursor: not-allowed; }
/* cart.js на успехе ставит btn-success на 1,2 с */
.nk-add.btn-success { background: var(--nk-ok-dot); }
.nk-add-guest { background: transparent; border: 1px solid var(--nk-line); color: var(--nk-text); }
.nk-add-guest:hover { background: var(--nk-fog); color: var(--nk-text); }

/* Каталог: вид «список» */
.nk-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px 20px; align-items: center; padding: 14px 16px; border: 1px solid var(--nk-line); border-radius: 12px; background: var(--nk-surface); margin-bottom: 10px; }
.nk-row:hover { border-color: var(--nk-blue); }
.nk-row .nk-tile, .nk-row .nk-card-media { aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.nk-row .nk-tile-grade { font-size: 18px; }
.nk-row .nk-tile-grade.is-text { font-size: 12px; }
.nk-row .nk-tile-vol { font-size: 12px; }
.nk-row-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nk-row-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.nk-row .nk-buy { margin: 0; }
.nk-row .nk-fav { position: static; }

/* Каталог: раскладка страницы */
.nk-catalog { padding: 32px 0 80px; }
.nk-catalog-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.nk-filters { flex: 1 1 248px; max-width: 280px; }
.nk-catalog-main { flex: 999 1 560px; min-width: 0; }
.nk-fgroup { min-width: 0; padding: 0 0 18px; margin: 0 0 18px; border: 0; border-bottom: 1px solid var(--nk-line); }
.nk-fgroup:last-child { border-bottom: 0; margin-bottom: 0; }
.nk-fgroup-title {
	float: none; width: 100%; margin: 0 0 8px; padding: 0;
	color: var(--nk-text); font-family: var(--nk-font); font-size: 15px; font-weight: 600; line-height: 1.4;
}

/* Чекбоксы */
.nk-check { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 15px; line-height: 1.3; cursor: pointer; margin: 0; color: var(--nk-text); }
.nk-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--nk-blue); flex: none; cursor: pointer; }
.nk-check:hover span { color: var(--nk-blue); }
.nk-check input:checked + span { font-weight: 600; }

/* Плашки: вязкость, объём */
.nk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nk-chip { position: relative; margin: 0; cursor: pointer; }
.nk-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nk-chip span {
	display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px;
	border: 1px solid var(--nk-line); background: var(--nk-surface); color: var(--nk-text);
	font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
	transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.nk-chip:hover span { border-color: var(--nk-blue); color: var(--nk-blue); }
.nk-chip input:checked + span { background: var(--nk-ink); border-color: var(--nk-ink); color: #fff; }
[data-bs-theme=dark] .nk-chip input:checked + span { background: var(--nk-blue); border-color: var(--nk-blue); }
.nk-chip input:focus-visible + span { outline: 3px solid var(--nk-amber); outline-offset: 2px; }

/* «Ещё N» / «Свернуть» */
.nk-fmore { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 6px 0; border: 0; background: none; color: var(--nk-blue); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.nk-fmore:hover { color: var(--nk-text); }
.nk-fmore .nk-icon { width: 16px; height: 16px; transition: transform .15s ease; }
.nk-fmore[aria-expanded=true] .nk-icon { transform: rotate(180deg); }
.nk-fmore .nk-fmore-open, .nk-fmore[aria-expanded=true] .nk-fmore-closed { display: none; }
.nk-fmore[aria-expanded=true] .nk-fmore-open { display: inline; }

/* Выбранные фильтры над товарами */
.nk-selected { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; }
.nk-selected-chip {
	display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 12px; border-radius: 8px;
	background: var(--nk-fog); color: var(--nk-text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.nk-selected-chip .nk-icon { width: 16px; height: 16px; color: var(--nk-muted); }
.nk-selected-chip:hover { background: var(--nk-fog-2); color: var(--nk-text); }
.nk-selected-chip:hover .nk-icon { color: var(--nk-text); }
.nk-selected-reset { margin-left: 4px; font-size: 14px; font-weight: 600; color: var(--nk-blue); text-decoration: none; }
.nk-selected-reset:hover { color: var(--nk-text); }
.nk-filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--nk-amber); color: #0E2238; font-size: 12px; font-weight: 700; }

/* Кнопка «Показать товары» внизу панели фильтров на телефоне */
.nk-filters-foot { position: sticky; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bs-body-bg); border-top: 1px solid var(--nk-line); }
.nk-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.nk-view-switch { display: inline-flex; border: 1px solid var(--nk-line); border-radius: 10px; overflow: hidden; margin-left: auto; }
.nk-view-switch a { width: 44px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--nk-muted); }
.nk-view-switch a.active { background: var(--nk-ink); color: #fff; }
[data-bs-theme=dark] .nk-view-switch a.active { background: var(--nk-blue); }
.nk-filter-toggle { display: none; }

.nk-catalog .pagination { gap: 6px; margin: 32px 0 0; justify-content: center; flex-wrap: wrap; }
.nk-catalog .page-link, .nk-pager .page-link { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px !important; border: 1px solid var(--nk-line); color: var(--nk-text); font-weight: 600; background: var(--nk-surface); }
.nk-catalog .page-item.active .page-link, .nk-pager .page-item.active .page-link { background: var(--nk-ink); border-color: var(--nk-ink); color: #fff; }
.nk-catalog .page-item.disabled .page-link { color: var(--nk-muted); background: transparent; }

.nk-empty { padding: 48px 32px; border-radius: 16px; background: var(--nk-fog); text-align: center; }
.nk-empty h2 { font-size: 24px; margin: 0 0 10px; }
.nk-empty p { margin: 0; color: var(--nk-muted); }

/* --------------------------------------------------------------------------
   Карточка товара
   -------------------------------------------------------------------------- */
.nk-product { padding: 32px 0 72px; }
.nk-product-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }

.nk-product-media { position: sticky; top: 108px; }
.nk-product-photo { position: relative; display: block; aspect-ratio: 1; border: 1px solid var(--nk-line); border-radius: 18px; background: #fff; overflow: hidden; cursor: zoom-in; }
.nk-product-photo img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }
.nk-product-zoom { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--nk-fog); color: var(--nk-text); display: flex; align-items: center; justify-content: center; }
.nk-product-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.nk-product-thumbs a { width: 76px; height: 76px; border: 1px solid var(--nk-line); border-radius: 12px; background: #fff; overflow: hidden; display: block; }
.nk-product-thumbs a.active, .nk-product-thumbs a:hover { border-color: var(--nk-blue); box-shadow: 0 0 0 1px var(--nk-blue); }
.nk-product-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.nk-product-tile { aspect-ratio: 1; border-radius: 18px; gap: 12px; }
.nk-product-tile .nk-tile-grade { font-size: clamp(48px, 6vw, 88px); }
.nk-product-tile .nk-tile-grade.is-text { font-size: clamp(28px, 3vw, 40px); padding: 0 24px; }
.nk-product-tile .nk-tile-vol { font-size: 20px; }

.nk-product-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nk-product-brand { font-size: 15px; text-decoration: none; align-self: flex-start; }
.nk-product-brand:hover { color: var(--nk-text); }
.nk-product-title { margin: 0; font-size: 32px; line-height: 1.2; color: var(--nk-text); }
.nk-product-art { font-size: 15px; color: var(--nk-muted); }
.nk-product-art span { color: var(--nk-text); font-weight: 600; font-variant-numeric: tabular-nums; user-select: all; }

.nk-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 10px 0 0; background: var(--nk-line); border: 1px solid var(--nk-line); border-radius: 14px; overflow: hidden; }
.nk-specs > div { background: var(--nk-surface); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.nk-specs dt { font-size: 13px; font-weight: 500; color: var(--nk-muted); }
.nk-specs dd { margin: 0; font-size: 16px; font-weight: 600; }
.nk-specs dd a { color: var(--nk-text); text-decoration: none; border-bottom: 1px dashed var(--nk-line); }
.nk-specs dd a:hover { color: var(--nk-blue); border-color: var(--nk-blue); }
/* нечётное число ячеек — последняя на всю ширину */
.nk-specs > div:last-child:nth-child(odd) { grid-column: 1 / -1; }

.nk-buybox { margin-top: 10px; padding: 24px; border-radius: 18px; background: var(--nk-fog); display: flex; flex-direction: column; gap: 16px; }
.nk-offer { display: flex; flex-direction: column; gap: 6px; }
.nk-offer + .nk-offer { padding-top: 16px; border-top: 1px solid var(--nk-line); }
.nk-offer-head { display: flex; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; }
.nk-offer-price { font-size: 36px; line-height: 1.1; }
.nk-offer-meta { font-size: 13px; color: var(--nk-muted); }
.nk-offer .nk-buy { margin-top: 8px; max-width: 420px; }
.nk-offer .nk-qty { background: var(--nk-surface); height: 52px; }
.nk-offer .nk-qty button, .nk-offer .nk-qty input { height: 50px; }
.nk-offer .nk-qty button { width: 40px; }
.nk-offer .nk-add { height: 52px; font-size: 16px; border-radius: 10px; }
.nk-buybox-guest { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--nk-muted); }
.nk-buybox-out strong { font-family: var(--nk-display); font-weight: 600; font-size: 20px; }
.nk-buybox-out p, .nk-buybox-out ul { margin: 0; color: var(--nk-muted); font-size: 15px; }
.nk-buybox-out ul { padding-left: 18px; }

.nk-fav-wide {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px;
	border: 1px solid var(--nk-line); border-radius: 10px; background: var(--nk-surface); color: var(--nk-text);
	font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.nk-fav-wide .nk-icon { width: 18px; height: 18px; }
.nk-fav-wide:hover { border-color: var(--nk-blue); color: var(--nk-blue); }
.nk-fav-wide .nk-fav-on, .nk-fav-wide.btn-primary .nk-fav-off { display: none; }
.nk-fav-wide.btn-primary .nk-fav-on { display: inline; }
.nk-fav-wide.btn-primary { color: var(--nk-blue); border-color: var(--nk-blue); }
.nk-fav-wide.btn-primary .nk-icon { fill: currentColor; }

.nk-product-section { padding: 0 0 72px; }
.nk-product-h2 { margin: 0 0 20px; font-size: 26px; }
.nk-product-similar { background: var(--nk-fog); padding: 64px 0 72px; }
.nk-product-similar .nk-section-head { margin-bottom: 24px; }
.nk-product-similar .nk-product-h2 { margin: 0; }

.nk-volumes { display: flex; gap: 12px; flex-wrap: wrap; }
.nk-volume { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border: 1px solid var(--nk-line); border-radius: 14px; background: var(--nk-surface); text-decoration: none; color: var(--nk-text); min-width: 200px; }
.nk-volume:hover { border-color: var(--nk-blue); color: var(--nk-text); }
.nk-volume-pic { margin: -2px 0 -2px -8px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #fff; flex: none; display: flex; align-items: center; justify-content: center; aspect-ratio: auto; padding: 4px; }
.nk-volume-pic img { width: 100%; height: 100%; object-fit: contain; }
.nk-volume-pic .nk-tile-grade.is-text { font-size: 15px; }
.nk-volume-info { display: flex; flex-direction: column; gap: 2px; }
.nk-volume-info strong { font-size: 16px; }
.nk-volume-info span { font-size: 15px; color: var(--nk-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 991.98px) {
	.nk-product { padding: 20px 0 48px; }
	.nk-product-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.nk-product-media { position: static; max-width: 420px; width: 100%; margin: 0 auto; }
	.nk-product-tile { aspect-ratio: 16 / 10; }
	.nk-product-title { font-size: 24px; }
	.nk-offer-price { font-size: 30px; }
	.nk-buybox { padding: 18px; }
	.nk-product-similar { padding: 40px 0 48px; }
	.nk-volume { min-width: 0; flex: 1 1 140px; }
}
@media (max-width: 575.98px) {
	.nk-specs > div { padding: 10px 12px; }
	/* на карточке товара степпер нужен и на телефоне */
	.nk-offer .nk-qty { display: flex; }
}

/* --------------------------------------------------------------------------
   Личный кабинет
   -------------------------------------------------------------------------- */
.nk-acc { padding: 32px 0 80px; }
.nk-acc-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.nk-acc-side { flex: 1 1 260px; max-width: 290px; position: sticky; top: 108px; border: 1px solid var(--nk-line); border-radius: 16px; background: var(--nk-surface); overflow: hidden; }
.nk-acc-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.nk-acc-user { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--nk-line); }
.nk-acc-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--nk-band); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--nk-display); font-weight: 600; font-size: 15px; }
.nk-acc-user-info { display: flex; flex-direction: column; min-width: 0; }
.nk-acc-user-info strong { font-size: 15px; }
.nk-acc-user-info span { font-size: 13px; color: var(--nk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nk-acc-nav { display: flex; flex-direction: column; padding: 8px; }
.nk-acc-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--nk-text); font-size: 15px; font-weight: 500; text-decoration: none; }
.nk-acc-nav a:hover { background: var(--nk-fog); color: var(--nk-text); }
.nk-acc-nav a.active { background: var(--nk-band); color: #fff; }
.nk-acc-nav a .nk-icon { color: var(--nk-muted); }
.nk-acc-nav a.active .nk-icon { color: var(--nk-amber); }
.nk-acc-nav em { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--nk-fog); color: var(--nk-text); font-style: normal; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nk-acc-nav a.active em { background: rgba(255, 255, 255, .16); color: #fff; }
.nk-acc-logout { margin-top: 6px; border-top: 1px solid var(--nk-line); border-radius: 0 0 10px 10px !important; color: var(--nk-muted) !important; }

/* Панель — основной контейнер содержимого кабинета */
.nk-panel { border: 1px solid var(--nk-line); border-radius: 16px; background: var(--nk-surface); padding: 24px; }
.nk-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.nk-panel-title { margin: 0; font-family: var(--nk-display); font-weight: 600; font-size: 20px; line-height: 1.25; }
.nk-panel-sub { margin: 4px 0 0; color: var(--nk-muted); font-size: 15px; }
.nk-panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--nk-line); }
.nk-panel.is-current { border-color: var(--nk-blue); box-shadow: 0 0 0 1px var(--nk-blue); }

/* Сообщения */
.nk-note { padding: 14px 18px; border-radius: 12px; font-size: 15px; line-height: 1.5; background: var(--nk-fog); color: var(--nk-text); border-left: 4px solid var(--nk-blue); }
.nk-note a { font-weight: 600; }
.nk-note.is-ok { border-left-color: var(--nk-ok-dot); }
.nk-note.is-error { border-left-color: #D64545; }
.nk-note.is-warn { border-left-color: var(--nk-amber); }

/* Пустое состояние */
.nk-blank { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px; border-radius: 16px; background: var(--nk-fog); }
.nk-blank strong { font-family: var(--nk-display); font-weight: 600; font-size: 20px; }
.nk-blank p { margin: 0 0 6px; color: var(--nk-muted); font-size: 15px; max-width: 34em; }

/* Плитки-показатели на обзоре */
.nk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nk-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--nk-line); border-radius: 14px; background: var(--nk-surface); color: var(--nk-text); text-decoration: none; }
.nk-stat:hover { border-color: var(--nk-blue); color: var(--nk-text); }
.nk-stat b { font-family: var(--nk-display); font-weight: 600; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nk-stat span { font-size: 15px; font-weight: 600; }
.nk-stat small { font-size: 13px; color: var(--nk-muted); }

.nk-legal-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 16px; border-radius: 12px; background: var(--nk-fog); font-size: 15px; }
.nk-legal-line .nk-muted { color: var(--nk-muted); font-size: 14px; }
.nk-legal-line a:last-child { margin-left: auto; font-weight: 600; }

/* Статусы заказов: label из админки — имя цвета Bootstrap */
.nk-status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 600; background: var(--nk-fog); color: var(--nk-text); white-space: nowrap; }
.nk-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--nk-muted); }
.nk-status-success::before { background: var(--nk-ok-dot); }
.nk-status-warning::before { background: var(--nk-amber); }
.nk-status-danger::before { background: #D64545; }
.nk-status-info::before, .nk-status-primary::before { background: var(--nk-blue); }
.nk-status-dark::before { background: var(--nk-text); }

/* Заказ */
.nk-order { padding: 0; overflow: hidden; }
.nk-order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 18px 24px; border-bottom: 1px solid var(--nk-line); }
.nk-order-head strong { font-family: var(--nk-display); font-weight: 600; font-size: 18px; }
.nk-order-head time { margin-left: auto; color: var(--nk-muted); font-size: 14px; }
.nk-order-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 14px 24px; background: var(--nk-fog); font-size: 14px; color: var(--nk-muted); }
.nk-order-meta b { color: var(--nk-text); font-weight: 600; }
.nk-order-foot { display: flex; justify-content: flex-end; align-items: baseline; gap: 14px; padding: 16px 24px; border-top: 1px solid var(--nk-line); }
.nk-order-foot span { color: var(--nk-muted); font-size: 15px; }
.nk-order-foot b { font-size: 24px; font-variant-numeric: tabular-nums; }
.nk-order details summary { list-style: none; cursor: pointer; }

/* Строки товаров: корзина, оформление, заказ */
.nk-lines { list-style: none; margin: 0; padding: 0; }
.nk-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--nk-line); }
.nk-line:last-child { border-bottom: 0; }
.nk-line.is-off { opacity: .55; }
.nk-line-pic { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: block; background: #fff; border: 1px solid var(--nk-line); }
.nk-line-pic img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.nk-line-pic.nk-tile { border: 0; padding: 4px; aspect-ratio: auto; }
.nk-line-pic .nk-tile-grade { font-size: 12px; white-space: nowrap; }
.nk-line-pic .nk-tile-grade.is-text { font-size: 10px; }
.nk-line-pic .nk-tile-vol { font-size: 10px; }
.nk-line-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nk-line-info a.nk-line-name { color: var(--nk-text); font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none; }
.nk-line-info a.nk-line-name:hover { color: var(--nk-blue); }
.nk-line-info small { color: var(--nk-muted); font-size: 13px; }
.nk-line-info .nk-warn { color: #B03030; font-size: 13px; font-weight: 600; }
.nk-line-side { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.nk-line-price { display: flex; flex-direction: column; align-items: flex-end; min-width: 110px; }
.nk-line-price b { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nk-line-price small { color: var(--nk-muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nk-line .nk-qty { display: flex; background: var(--nk-surface); }
.nk-line .nk-qty input { width: 46px; }
.nk-remove { width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--nk-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nk-remove:hover { color: #B03030; border-color: var(--nk-line); background: var(--nk-surface); }
.nk-panel-flush { padding: 0; overflow: hidden; }
.nk-panel-flush > .nk-panel-head { padding: 20px 24px 0; }

.nk-total { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 14px 20px; padding: 20px 24px; border-top: 1px solid var(--nk-line); background: var(--nk-fog); }
.nk-total-sum { display: flex; flex-direction: column; align-items: flex-start; margin-right: auto; }
.nk-total-sum span { color: var(--nk-muted); font-size: 14px; }
.nk-total-sum b { font-family: var(--nk-display); font-weight: 600; font-size: 28px; font-variant-numeric: tabular-nums; }
.nk-total .nk-note { flex-basis: 100%; }

/* Варианты выбора (торговая точка, доставка, оплата) */
.nk-options { display: grid; gap: 8px; }
.nk-options.is-cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.nk-option { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--nk-line); border-radius: 12px; background: var(--nk-surface); cursor: pointer; margin: 0; }
.nk-option:hover { border-color: var(--nk-blue); }
.nk-option input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--nk-blue); flex: none; }
.nk-option:has(input:checked) { border-color: var(--nk-blue); box-shadow: 0 0 0 1px var(--nk-blue); background: var(--nk-fog); }
.nk-option b { display: block; font-weight: 600; font-size: 15px; }
.nk-option small { display: block; color: var(--nk-muted); font-size: 13px; margin-top: 2px; }
.nk-field-label { display: block; margin: 0 0 10px; font-weight: 600; font-size: 15px; }

/* Формы кабинета */
.nk-form .form-label, .nk-form .control-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--nk-text); }
.nk-form .form-control, .nk-form textarea { height: auto; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--nk-line); border-radius: 10px; background: var(--nk-surface); color: var(--nk-text); font-size: 15px; }
.nk-form .form-control:focus { border-color: var(--nk-blue); box-shadow: none; }
.nk-form .hint-block, .nk-form .form-text { color: var(--nk-muted); font-size: 13px; margin-top: 6px; }
.nk-form .invalid-feedback, .nk-form .help-block-error { color: #B03030; font-size: 13px; }
.nk-form .has-error .form-control, .nk-form .is-invalid { border-color: #D64545; }
.nk-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.nk-form-grid .mb-3 { margin-bottom: 0 !important; }

/* Контрагенты */
.nk-legal { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.nk-legal-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 18px; font-family: var(--nk-display); font-weight: 600; }
.nk-legal-name a { color: var(--nk-text); text-decoration: none; }
.nk-legal-name a:hover { color: var(--nk-blue); }
.nk-legal-full { margin: 4px 0 0; color: var(--nk-muted); font-size: 14px; }
.nk-legal-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 14px; color: var(--nk-muted); }
.nk-legal-meta b { color: var(--nk-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.nk-legal-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nk-legal-actions form { margin: 0; }
.nk-tag-current { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--nk-blue); color: #fff; font-family: var(--nk-font); font-size: 12px; font-weight: 700; }
.nk-btn-line { background: var(--nk-surface); border: 1px solid var(--nk-line); color: var(--nk-text); }
.nk-btn-line:hover { border-color: var(--nk-blue); color: var(--nk-blue); }
.nk-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--nk-line); border: 1px solid var(--nk-line); border-radius: 12px; overflow: hidden; }
.nk-dl > div { background: var(--nk-surface); padding: 12px 16px; }
.nk-dl dt { font-size: 13px; font-weight: 500; color: var(--nk-muted); }
.nk-dl dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.nk-dl > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.nk-points { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.nk-point { padding: 14px 16px; border: 1px solid var(--nk-line); border-radius: 12px; background: var(--nk-surface); }
.nk-point b { display: block; font-size: 15px; }
.nk-point small { display: block; margin-top: 2px; color: var(--nk-muted); font-size: 13px; }

.nk-acc .pagination { gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.nk-acc .page-link { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px !important; border: 1px solid var(--nk-line); color: var(--nk-text); font-weight: 600; background: var(--nk-surface); }
.nk-acc .page-item.active .page-link { background: var(--nk-ink); border-color: var(--nk-ink); color: #fff; }

/* Мини-корзина в шапке */
#modalMiniCart .offcanvas-title { font-family: var(--nk-display); font-weight: 600; font-size: 18px; }
.nk-mini .nk-line { grid-template-columns: 56px minmax(0, 1fr); padding: 12px 0; }
.nk-mini .nk-line-pic { width: 56px; height: 56px; }
.nk-mini .nk-line-side { grid-column: 2; justify-content: space-between; }
.nk-mini-foot { padding: 16px; border-top: 1px solid var(--nk-line); display: flex; flex-direction: column; gap: 12px; }
.nk-mini-foot div { display: flex; justify-content: space-between; align-items: baseline; }
.nk-mini-foot b { font-size: 20px; font-variant-numeric: tabular-nums; }

@media (max-width: 991.98px) {
	.nk-acc { padding: 16px 0 48px; }
	.nk-acc-grid { gap: 16px; }
	.nk-acc-side { position: static; max-width: none; flex-basis: 100%; min-width: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
	.nk-acc-user { display: none; }
	/* меню кабинета — горизонтальная лента вкладок */
	.nk-acc-nav { flex-direction: row; gap: 6px; padding: 0 16px 4px; margin: 0 -16px; overflow-x: auto; scrollbar-width: none; }
	.nk-acc-nav a { flex: none; min-height: 40px; border: 1px solid var(--nk-line); background: var(--nk-surface); font-size: 14px; gap: 8px; }
	.nk-acc-nav a.active { border-color: var(--nk-band); }
	.nk-acc-nav em { margin-left: 2px; }
	.nk-acc-logout { margin-top: 0; border-top: 1px solid var(--nk-line); border-radius: 10px !important; }
	.nk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nk-panel { padding: 18px; }
	.nk-panel-flush { padding: 0; }
	.nk-panel-flush > .nk-panel-head { padding: 18px 18px 0; }
	.nk-line { grid-template-columns: 56px minmax(0, 1fr); padding: 14px 18px; }
	.nk-line-pic { width: 56px; height: 56px; }
	.nk-line-side { grid-column: 1 / -1; justify-content: space-between; }
	.nk-line-price { align-items: flex-start; min-width: 0; }
	.nk-order-head, .nk-order-meta, .nk-order-foot, .nk-total { padding-left: 18px; padding-right: 18px; }
	.nk-order-head time { margin-left: 0; flex-basis: 100%; }
	.nk-form-grid, .nk-dl { grid-template-columns: minmax(0, 1fr); }
	.nk-dl > div:last-child:nth-child(odd) { grid-column: auto; }
	.nk-total-sum { align-items: flex-start; }
	.nk-total .nk-btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
	.nk-hero h1 { font-size: 42px; }
	.nk-grade { font-size: 44px; }
	.nk-mega-grid { gap: 16px; }
}
@media (max-width: 991.98px) {
	.nk-wrap { padding: 0 16px; }
	.nk-hero { padding: 32px 0 72px; }
	.nk-hero-grid, .nk-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.nk-hero h1 { font-size: 30px; line-height: 1.12; }
	.nk-hero-lead { font-size: 16px; margin: 18px 0; }
	.nk-hero-actions .nk-btn { flex: 1 1 100%; }
	.nk-banner { margin-top: -48px; }
	.nk-banner .home-slider { border-radius: 14px; }
	.nk-section-head h2 { font-size: 24px; }
	.nk-section-head { margin-bottom: 20px; }
	.nk-cats-section, .nk-steps-section { padding: 44px 0; }
	.nk-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.nk-cat, .nk-cat-wide { grid-column: auto; min-height: 168px; padding: 16px; }
	.nk-cat img, .nk-cat-wide img { right: -30%; height: 62%; }
	.nk-cat-title, .nk-cat-wide .nk-cat-title { font-size: 17px; }
	.nk-cat-text, .nk-cat-subs { display: none; }
	.nk-grades-section { padding: 40px 0; }
	.nk-grades { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.nk-grade { flex: none; height: 64px; padding: 0 20px; font-size: 24px; -webkit-text-stroke-width: 1.2px; }
	.nk-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.nk-steps li { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; border-top: 0; padding-top: 0; }
	.nk-steps .nk-step-n { width: 36px; height: 36px; font-size: 14px; }
	.nk-steps span:last-child { flex-basis: 100%; padding-left: 50px; font-size: 14px; }
	.nk-brands-section { padding: 40px 0; }
	.nk-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 12px; }
	.nk-brand { height: 72px; padding: 12px; }
	.nk-brand img { max-height: 32px; }
	.nk-footer { padding: 36px 0 0; }
	.nk-subscribe { padding: 20px; margin-bottom: 32px; }
	.nk-subscribe form { flex-direction: column; flex-basis: 100%; }
	.nk-subscribe input { flex: none; }
	/* поиск уже есть в шапке телефона */
	.nk-quick { display: none; }
	.nk-pagehead h1 { font-size: 26px; }
	/* фильтры уезжают в offcanvas Bootstrap */
	.nk-filters { max-width: none; }
	.nk-filter-toggle { display: inline-flex; }
	.nk-selected { order: 3; flex-basis: 100%; }
	.nk-filters.offcanvas-lg { display: flex; flex-direction: column; }
	.nk-filters .offcanvas-body { flex: 1; overflow-y: auto; }
	.nk-row { grid-template-columns: 72px minmax(0, 1fr); }
	.nk-row-side { grid-column: 1 / -1; justify-content: space-between; }
}
@media (max-width: 575.98px) {
	.nk-card-body { padding: 12px; }
	.nk-price { font-size: 18px; }
	.nk-qty { display: none; }
	.nk-add { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.nk-grade, .nk-cat, .nk-card, .nk-btn, .nk-add, .nk-brand img { transition: none; }
}
