/* ============================================ ЕДИНЫЙ ФАЙЛ — grid + utilities + все страницы ============================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--graphite);
  background: var(--white);
  font-weight: 400;
  letter-spacing: .01em;
  padding-top: 76px;
  line-height: normal;
}
:root {
  --graphite: #1c1c1c;
  --black: #0a0a0a;
  --gray-line: #e2e2e2;
  --gray-soft: #f7f7f5;
  --gray-mid: #6b6b6b;
  --white: #ffffff;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--graphite); background: var(--white); font-weight: 400;
  letter-spacing: .01em; padding-top: 76px;
}
/* ===================== GRID / UTILITIES ===================== */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }

.row { display: flex; flex-wrap: wrap; margin-inline: -0.75rem; }
.row > * { padding-inline: 0.75rem; flex: 0 0 100%; max-width: 100%; width: 100%; }

.g-4 > * { margin-bottom: 1.5rem; }
.g-5 { margin-inline: -1.5rem; }
.g-5 > * { padding-inline: 1.5rem; margin-bottom: 3rem; }
.gy-4 > * { margin-bottom: 1.5rem; }

.col-6 { flex: 0 0 50%; max-width: 50%; }

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
}
@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-lg-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  .align-items-lg-center { align-items: center; }
}

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.my-4 { margin-block: 1.5rem; }
.py-3 { padding-block: 1rem; }
@media (min-width: 992px) {
  .ms-lg-3 { margin-left: 1rem; }
  .gap-lg-1 { gap: 0.25rem; }
  .mt-lg-0 { margin-top: 0 !important; }
  .py-lg-0 { padding-block: 0 !important; }
}
p {
  margin-top: 0;
  margin-bottom: 1rem;
}
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-white-50 { color: rgba(255, 255, 255, 0.5); }
.text-uppercase { text-transform: uppercase; }
.text-decoration-underline { text-decoration: underline; }
.small { font-size: 0.875em; }
.fs-5 { font-size: 1.15rem; }
.fw-semibold { font-weight: 600; }

.img-fluid { max-width: 100%; height: auto; display: block; }
.h5 { font-size: 1.25rem; }
.list-unstyled { list-style: none; padding-left: 0; margin: 0; }

.btn-outline-dark {
  display: inline-block; color: #000; border: 1px solid #000; background: transparent;
  padding: 8px 16px; border-radius: 2px; font-weight: 500; transition: 0.2s ease;
}
.btn-outline-dark:hover { background: #000; color: #fff; }

.navbar { display: flex; align-items: center; flex-wrap: wrap; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; width: 100%; }
.fixed-top { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; }
.navbar-nav { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }

.collapse { display: none; flex-basis: 100%; width: 100%; }
.collapse.show { display: block; }
.collapse.show ul.navbar-nav {
    background: #f7f7f6;
    padding: 5px 15px;
}
.collapse.show ul.navbar-nav li.nav-item {
    text-align: center;
    padding: 10px;
}
@media (min-width: 992px) {
  .navbar-expand-lg .collapse { display: flex !important; flex-basis: auto; width: auto; }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .d-lg-none { display: none !important; }
}

/* ===================== БАЗОВЫЕ СТИЛИ САЙТА ===================== */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; color: var(--black); }
a { color: inherit; text-decoration: none; }
.text-mid { color: var(--gray-mid); }
.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } body { padding-top: 66px; } }
.border-top-thin { border-top: 1px solid var(--gray-line); }
.divider { height: 1px; background: var(--gray-line); width: 100%; }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gray-mid); font-weight: 600; margin-bottom: 14px; }
.eyebrow--light { color: rgba(255, 255, 255, .75); }

.navbar-custom { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(6px); border-bottom: 1px solid var(--gray-line); padding: 18px 0; }
.navbar-brand-custom { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; color: var(--black); }
.navbar-brand-custom sup { font-size: .55em; }
.nav-link-custom { font-size: .92rem; font-weight: 500; color: var(--graphite); padding: 8px 18px !important; transition: color .2s ease; }
.nav-link-custom:hover { color: #000; }
.nav-link-custom.active { color: #000; font-weight: 600; }
#navMenu .btn-outline-dark { border-radius: 2px; font-size: .88rem; padding: 9px 22px; }
.menu-toggle { width: 32px; height: 24px; position: relative; cursor: pointer; background: none; border: none; padding: 0; }
.menu-toggle span { display: block; position: absolute; height: 2px; width: 100%; background: var(--black); border-radius: 2px; left: 0; transition: .25s ease-in-out; }
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }
.menu-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.btn-keller { background: #fff; color: #000; border-radius: 2px; padding: 15px 34px; font-weight: 600; font-size: .92rem; letter-spacing: .02em; border: 1px solid #fff; transition: .2s ease; display: inline-block; }
.btn-keller:hover { background: transparent; color: #fff; }
.btn-keller-outline { background: transparent; color: #000; border-radius: 2px; padding: 14px 32px; font-weight: 600; font-size: .92rem; border: 1px solid #000; transition: .2s ease; display: inline-block; }
.btn-keller-outline:hover { background: #000; color: #fff; }
.btn-keller-outline-white { background: transparent; color: #fff; border-radius: 2px; padding: 14px 32px; font-weight: 600; font-size: .92rem; border: 1px solid rgba(255, 255, 255, .6); transition: .2s ease; display: inline-block; }
.btn-keller-outline-white:hover { background: #fff; color: #000; border-color: #fff; }
.mt-5 {
  margin-top: 3rem !important;
}
.pt-3 {
  padding-top: 1rem !important;
}
.stat-num { font-size: 2.6rem; font-weight: 700; color: var(--black); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--gray-mid); margin-top: 6px; }
.feature-card { border-top: 2px solid var(--black); padding-top: 20px; height: 100%; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--gray-mid); font-size: .94rem; margin-bottom: 0; }

.product-card { border: 1px solid var(--gray-line); transition: .2s ease; height: 100%; }
.product-card:hover { border-color: #000; }
.product-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, #e8e8e6, #d3d3d0); position: relative; overflow: hidden; }
.product-thumb::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 60px); }
.product-thumb.dark { background: linear-gradient(135deg, #3a3a3a, #111); }
.product-thumb.dark::before { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 60px); }
.product-body { padding: 24px; }
.product-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product-body p { color: var(--gray-mid); font-size: .92rem; }
.product-link { font-size: .85rem; font-weight: 600; letter-spacing: .03em; border-bottom: 1px solid var(--black); padding-bottom: 2px; }

/* badge-flagship — было продублировано 3 раза идентично, оставлена одна версия */
.badge-flagship {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: #fff; color: #000; font-size: .72rem; font-weight: 700;
  letter-spacing: .05em; padding: 5px 12px; border-radius: 2px; text-transform: uppercase;
}
.badge-flagship-inline {
  display: inline-block; margin-left: 10px; font-size: .65rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; background: var(--black); color: #fff;
  padding: 3px 9px; border-radius: 2px; vertical-align: middle;
}

.adv-item { padding: 32px 7px; }
.adv-num { font-size: .85rem; color: var(--gray-mid); font-weight: 600; letter-spacing: .05em; }

.cta-section { background: var(--black); color: #fff; }
.cta-section .text-mid { color: rgba(255, 255, 255, .6); }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 1.1rem; font-weight: 500; color: #fff; }
.contact-link:last-child { border-bottom: 1px solid rgba(255, 255, 255, .15); }
.contact-link .icon-circle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.contact-link:hover { color: #c9c9c9; }

footer { background: var(--white); border-top: 1px solid var(--gray-line); padding: 48px 0 24px; }
footer a { color: var(--gray-mid); font-size: .9rem; }
footer a:hover { color: #000; }
.footer-brand { font-weight: 700; font-size: 1.1rem; color: var(--black); }

/* ===================== АККОРДЕОН ===================== */
.accordion-item { border: 1px solid var(--gray-line); border-bottom: none; }
.accordion-item:last-child { border-bottom: 1px solid var(--gray-line); }
.accordion-header { margin: 0; }
.accordion-button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 18px 20px; background: #fff; border: none; text-align: left;
  font-size: 1rem; font-weight: 600; color: #000; cursor: pointer; transition: background 0.2s ease;
}
.accordion-button:hover { background: #f7f7f5; }
.accordion-button::after {
  content: ""; width: 10px; height: 10px; border-right: 2px solid #000; border-bottom: 2px solid #000;
  transform: rotate(45deg); transition: transform 0.25s ease; flex-shrink: 0; margin-left: 12px;
}
.accordion-button.collapsed::after { transform: rotate(-45deg); }
.accordion-collapse { display: none; overflow: hidden; }
.accordion-collapse.show { display: block; }
.accordion-body { padding: 4px 20px 20px; }
.ngs-specs-accordion .table-responsive { margin: 0 -4px; }

/* --- Таблица характеристик (единая версия, с мобильной раскладкой) --- */
.table-responsive { overflow-x: auto; }
.spec-table-bs { width: 100%; border-collapse: collapse; margin-bottom: 0; font-size: .9rem; }
.spec-table-bs tbody tr { border-top: 1px solid var(--gray-line); }
.spec-table-bs tbody tr:first-child { border-top: none; }
.spec-table-bs td { padding: 12px 8px; vertical-align: top; border: none; }
.spec-table-bs td:first-child { color: var(--gray-mid); width: 55%; padding-left: 0; }
.spec-table-bs td:last-child { color: var(--black); font-weight: 500; text-align: right; padding-right: 0; }

@media (max-width: 576px) {
  .spec-table-bs td { display: block; width: 100% !important; padding: 4px 0; text-align: left !important; }
  .spec-table-bs td:first-child { font-size: .8rem; color: var(--gray-mid); padding-bottom: 2px; }
  .spec-table-bs td:last-child { padding-top: 0; padding-bottom: 12px; border-bottom: 1px solid var(--gray-line); }
  .spec-table-bs tbody tr { border-top: none; }
}

/* ===================== HERO / ГЛАВНАЯ ===================== */
.hero {
  min-height: 88vh; display: flex; align-items: flex-end; position: relative; overflow: hidden;
  margin-top: -76px; padding-top: 76px;
  background: #111 url('/assets/video/hero-poster.png') center center/cover no-repeat;
}
.hero-video-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-video {
  position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto;
  transform: translate(-50%, -50%); object-fit: cover; object-position: center center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .10) 0%, rgba(10, 10, 10, .62) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding-bottom: 72px; color: #fff; }
.hero-eyebrow { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: .85; margin-bottom: 18px; font-weight: 500; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.05; max-width: 920px; }
.hero p.lead-custom { color: rgba(255, 255, 255, .85); font-size: 1.15rem; max-width: 600px; font-weight: 400; margin-top: 22px; }
@media (max-width: 768px) { .hero-video-wrap { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-video-wrap { display: none; } }

.rep-strip { background: var(--black); color: #fff; padding: 16px 0; font-size: .9rem; letter-spacing: .03em; }
.rep-strip strong { font-weight: 600; }
.ngs6-section { background: var(--gray-soft); }

/* ngs6-visual/tag — было продублировано, оставлена одна версия */
.ngs6-visual { aspect-ratio: 4/4; background: linear-gradient(160deg, #2a2a2a 0%, #0a0a0a 100%); border-radius: 2px; position: relative; overflow: hidden; display: flex; align-items: flex-end; background-size: cover;}
.ngs6-visual::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 90px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 90px); }
.ngs6-tag { position: relative; z-index: 1; color: #fff; padding: 28px; font-size: 1.4rem; font-weight: 700; letter-spacing: .04em; }

/* Базовая карточка товара — используется на ГЛАВНОЙ (тизер 6 товаров) */
.product-photo-card {
  display: block; position: relative; aspect-ratio: 3/4; overflow: hidden;
  border-radius: 2px; color: #fff; background: #111;
}
.product-photo-card__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s ease; }
.product-photo-card:hover .product-photo-card__bg { transform: scale(1.04); }
.product-photo-card__gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .75) 100%); }
.product-photo-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.product-photo-card__body h3 { color: #fff; font-size: 1.15rem; margin-bottom: 10px; }
.product-photo-card__link { font-size: .85rem; font-weight: 600; letter-spacing: .03em; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.product-photo-card__link .arrow { transition: transform .2s ease; }
.product-photo-card:hover .product-photo-card__link .arrow { transform: translateX(4px); }

/* Модификатор для СЕТКИ КАТАЛОГА (страница «Продукты») — фиксированная высота + описание.
   ВАЖНО: в products.tpl нужно добавить класс product-photo-card--grid на каждый <a class="product-photo-card ..."> */
.product-photo-card--grid {
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: auto; height: 460px;
}
@media (max-width: 991px) { .product-photo-card--grid { height: 400px; } }
@media (max-width: 575px) { .product-photo-card--grid { height: 340px; } }
.product-photo-card--grid .product-photo-card__gradient { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .82) 100%); }
.product-photo-card--grid .product-photo-card__body { position: relative; padding: 24px; }
.product-photo-card--grid .product-photo-card__body h3 { font-size: 1.2rem; }
.product-photo-card__desc { color: rgba(255, 255, 255, .8); font-size: .88rem; line-height: 1.5; margin-bottom: 14px; max-width: 34ch; }

/* ===================== СТРАНИЦА «ПРОДУКТЫ» (каталог) ===================== */
/* Базовая шапка страницы — простая, с фоном и одним текстовым блоком */
.page-header {
  position: relative; padding: 170px 0 90px; background-size: cover; background-position: center; overflow: hidden;
}
.page-header__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .35) 0%, rgba(10, 10, 10, .75) 100%); z-index: 0; }
.page-header__content { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; color: #fff; }
.lead-custom-dark--light { color: rgba(255, 255, 255, .85) !important; }

.ngs-table-wrap { border: 1px solid var(--gray-line); border-radius: 2px; overflow: hidden; }
.ngs-table { margin-bottom: 0; }
.ngs-table thead th { background: var(--black); color: #fff; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; border: none; padding: 16px 20px; }
.ngs-table tbody td { padding: 18px 20px; border-color: var(--gray-line); font-size: .95rem; }
.ngs-class { font-weight: 700; font-size: 1.1rem; color: var(--black); }
.ngs-row-highlight { background: var(--gray-soft); }

.config-card { border: 1px solid var(--gray-line); height: 100%; }
.config-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #e8e8e6, #d3d3d0); background-size: cover; background-position: center; }
.config-thumb.dark { background: linear-gradient(135deg, #3a3a3a, #111); }

/* ===================== СТРАНИЦА ТОВАРА (карточка) ===================== */
/* Модификатор шапки для карточки товара — выше, с местом под breadcrumbs.
   ВАЖНО: в product.tpl нужно добавить класс page-header--product на <header class="page-header ..."> */
.page-header--product { padding: 0 0 290px; }
.page-header--product .page-header__content { padding-top: 160px; }

.breadcrumbs-bar { position: relative; z-index: 1; padding: 100px 0 20px; font-size: .85rem; }
.breadcrumbs-bar--on-image a { color: rgba(255, 255, 255, .75); }
.breadcrumbs-bar--on-image a:hover { color: #fff; }
.breadcrumbs-bar--on-image .sep { margin: 0 8px; color: rgba(255, 255, 255, .4); }
.breadcrumbs-bar--on-image .current { color: #fff; font-weight: 500; }

.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px;
  background: var(--gray-line); border: 1px solid var(--gray-line); margin: 40px 0;
}
.spec-item { background: #fff; padding: 24px; }
.spec-item .spec-num { font-size: 1.7rem; font-weight: 700; color: var(--black); line-height: 1.1; }
.spec-item .spec-label { font-size: .82rem; color: var(--gray-mid); margin-top: 6px; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 16px 0; border-top: 1px solid var(--gray-line); font-size: .95rem; color: var(--gray-mid); }
.feature-list li strong { color: var(--black); font-weight: 600; }

.page-header--plain { padding:170px 0 64px; background:var(--gray-soft); border-bottom:1px solid var(--gray-line); }
.page-header--plain h1 { font-size:clamp(2rem, 4vw, 3rem); margin-bottom:18px; color:var(--black); }
.lead-custom-dark { color:var(--gray-mid); font-size:1.15rem; max-width:720px; }

.ngs6-tag { position:relative; z-index:1; color:#fff; padding:28px; font-size:1.4rem; font-weight:700; letter-spacing:.04em; }
.contact-link--dark { color:var(--black); border-top-color:var(--gray-line); } 
.contact-link--dark:last-of-type { border-bottom-color:var(--gray-line); } 
.contact-link--dark:hover { color:var(--gray-mid); } 
.icon-circle--dark { border-color:var(--gray-line); color:var(--black); } 
.map-embed { width:100%; height:100%; min-height:420px; border-radius:2px; overflow:hidden; border:1px solid var(--gray-line); } 

.error-404 { padding:180px 0 120px; }
.error-404__code {
  font-size:clamp(5rem, 14vw, 9rem);
  font-weight:700;
  color:var(--gray-line);
  line-height:1;
  margin-bottom:8px;
}