*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #3D5A80;
  --primary-l: #5B7EA5;
  --primary-d: #2C4460;
  --accent: #E07A4F;
  --accent-h: #C96A42;
  --bg: #FAFBFC;
  --bg-alt: #F0F4F8;
  --bg-card: #FFFFFF;
  --text: #293241;
  --text-s: #546378;
  --text-m: #8696A7;
  --border: #DAE2EA;
  --border-l: #EBF0F4;
  --trust-bg: #EDF3F8;
  --trust-b: #C8D8E8;
  --success: #2D7A4F;
  --radius: 8px;
  --radius-l: 12px;
  --font-h: 'PT Serif', Georgia, serif;
  --font-b: 'Source Sans 3', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', monospace;
  --max-w: 1140px;
}

body { font-family: var(--font-b); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Links */
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-d); }

/* ─── HEADER ─── */
.site-header { background: var(--primary); color: #fff; }
.header-top { max-width: var(--max-w); margin: 0 auto; padding: .75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { font-family: var(--font-h); font-size: 1.375rem; font-weight: 700; letter-spacing: .04em; color: #fff; text-decoration: none; }
.logo span { color: var(--accent); }
nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .875rem; font-weight: 500; margin-left: 1.75rem; transition: color .15s; }
nav a:hover { color: #fff; }
.header-phone { font-size: .9375rem; font-weight: 600; white-space: nowrap; letter-spacing: .02em; color: #fff; text-decoration: none; }
.header-sub { background: var(--primary-d); }
.header-sub-inner { max-width: var(--max-w); margin: 0 auto; padding: .4rem 1.5rem; display: flex; justify-content: space-between; font-size: .75rem; color: rgba(255,255,255,.5); letter-spacing: .02em; }

/* Burger (mobile) */
.burger { display: none; background: none; border: none; cursor: pointer; padding: .25rem; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; transition: all .2s; }

/* ─── TRUST BAR ─── */
.trust-bar { background: var(--trust-bg); border-bottom: 1px solid var(--trust-b); }
.trust-bar-inner { max-width: var(--max-w); margin: 0 auto; padding: .875rem 1.5rem; display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--primary); font-weight: 500; }
.trust-icon { width: 28px; height: 28px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-icon svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── SECTION ─── */
.section { padding: 3.5rem 1.5rem; }
.section-alt { background: var(--bg-alt); }
.container { max-width: var(--max-w); margin: 0 auto; }
.container-narrow { max-width: 720px; }
.section-title { font-family: var(--font-h); font-size: 1.625rem; font-weight: 700; color: var(--primary-d); margin-bottom: .375rem; }
.section-subtitle { color: var(--text-s); font-size: .9375rem; margin-bottom: 2rem; }

/* ─── HERO ─── */
.hero { position: relative; padding: 4.5rem 1.5rem 4rem; text-align: center; overflow: hidden; }
.hero-content { position: relative; z-index: 2; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0.1; }
.hero-icon { position: absolute; max-width: 120px; will-change: transform; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s; }
.hero-icon img { width: 100%; height: auto; opacity: 0.8; }
.hi-1 { top: 10%; left: 10%; width: 60px; }
.hi-2 { top: 50%; left: 5%; width: 80px; }
.hi-3 { top: 15%; right: 15%; width: 70px; }
.hi-4 { top: 55%; right: 8%; width: 90px; }
.hi-5 { bottom: -5%; left: 30%; width: 100px; }
.hi-6 { bottom: 10%; right: 35%; width: 70px; }
.hi-7 { top: 30%; left: 25%; width: 50px; opacity: 0.5; }
.hi-8 { top: 75%; left: 15%; width: 85px; }
.hi-9 { top: 25%; right: 30%; width: 65px; opacity: 0.6; }
.hi-10 { bottom: 15%; right: 15%; width: 75px; }
.hi-11 { top: 5%; left: 45%; width: 60px; }
.hi-12 { bottom: -10%; left: 55%; width: 90px; }

.hero h1 { font-family: var(--font-h); font-size: 2.25rem; font-weight: 700; color: var(--primary-d); line-height: 1.2; max-width: 680px; margin: 0 auto .75rem; }
.hero p { font-size: 1.125rem; color: var(--text-s); max-width: 560px; margin: 0 auto 2rem; line-height: 1.6; }
.hero-cta { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: #fff; font-weight: 600; padding: .875rem 2rem; border-radius: var(--radius); text-decoration: none; font-size: 1rem; transition: background .2s; }
.hero-cta:hover { background: var(--accent-h); }

/* ─── CATEGORIES GRID ─── */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.cat-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 1rem 0.5rem; text-align: center; cursor: pointer; transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.06); color: inherit; }
.cat-card-icon { width: 96px; height: 96px; margin: 0 auto 0.625rem; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-card-icon svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cat-card-icon img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cat-card h3 { font-family: var(--font-h); font-size: .9375rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.cat-card .cat-count { font-size: .75rem; color: var(--text-m); }

/* ─── CATEGORIES WITH SUBMENU ─── */
.cat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.cat-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; position: relative; transition: box-shadow .2s; }
.cat-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.cat-list .cat-card { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.25rem 1rem; text-align: left; background: transparent; border: none; border-radius: 0; text-decoration: none; color: inherit; }
.cat-list .cat-card-icon { width: 56px; height: 56px; margin: 0; background: var(--trust-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.cat-list .cat-card-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cat-list .cat-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cat-list .cat-card-info { flex: 1; }
.cat-list .cat-card-info h3 { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; color: var(--primary-d); margin-bottom: .25rem; transition: color .2s; }
.cat-list .cat-card:hover .cat-card-info h3 { color: var(--primary); }
.cat-list .cat-card .cat-count { font-size: .8125rem; color: var(--text-m); }

.cat-submenu { padding: 0 1.25rem 1.5rem; background: transparent; }
.cat-submenu-inner { display: flex; flex-direction: column; gap: .5rem; }
.cat-subitem { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); text-decoration: none; font-size: .875rem; transition: color .15s; }
.cat-subitem svg { stroke: var(--primary-l); flex-shrink: 0; }
.cat-subitem:hover { color: var(--primary); }
.cat-subitem-more { color: var(--primary-l); font-weight: 500; margin-top: .25rem; font-size: .8125rem; }
.cat-subitem-more:hover { color: var(--primary); }

/* Desktop */
@media (min-width: 769px) {
  .cat-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
}

/* Mobile */
@media (max-width: 768px) {
  .cat-list { grid-template-columns: 1fr; gap: 1rem; }
}

/* ─── FEATURES ─── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feat-card { padding: 1.5rem; }
.feat-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; color: var(--text); }
.feat-card p { font-size: .875rem; color: var(--text-s); line-height: 1.65; }
.feat-num { font-family: var(--font-h); font-size: 2rem; font-weight: 700; color: var(--primary-l); margin-bottom: .5rem; opacity: .6; }

/* ─── BREADCRUMBS ─── */
.breadcrumbs { max-width: var(--max-w); margin: 0 auto; padding: .75rem 1.5rem; font-size: .8125rem; color: var(--text-m); }
.breadcrumbs a { color: var(--primary-l); text-decoration: none; }
.breadcrumbs span.sep { margin: 0 .35rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0; padding: 0; margin: 0; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: '\2192'; margin: 0 .35rem; color: var(--text-m); }

/* ─── CATEGORY PAGE ─── */
.cat-header { padding: 2rem 1.5rem 1rem; }
.cat-header-inner { max-width: var(--max-w); margin: 0 auto; }
.cat-header h1 { font-family: var(--font-h); font-size: 1.875rem; font-weight: 700; color: var(--primary-d); margin-bottom: .25rem; }
.cat-header .cat-desc { color: var(--text-s); font-size: .9375rem; max-width: 640px; }

.subcats { display: flex; gap: .625rem; flex-wrap: wrap; margin-bottom: 2rem; }
.subcat-pill { padding: .375rem .875rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; font-size: .8125rem; color: var(--text-s); cursor: pointer; transition: all .15s; text-decoration: none; }
.subcat-pill:hover, .subcat-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.product-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; }
.product-row { display: grid; grid-template-columns: 64px 1fr 160px 160px; align-items: center; gap: 1.25rem; padding: .875rem 1.25rem; background: var(--bg-card); cursor: pointer; transition: background .1s; text-decoration: none; color: inherit; }
.product-row:nth-child(even):not(.header) { background: var(--bg-alt); }
.product-row:hover { background: var(--trust-bg); }
.product-row.header { background: var(--primary); color: #fff; font-weight: 600; font-size: .8125rem; cursor: default; letter-spacing: .02em; }
.product-row.header:hover { background: var(--primary); }
.product-thumb { width: 64px; height: 64px; background: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb img.thumb-placeholder { width: 60%; height: 60%; object-fit: contain; opacity: .6; }
.product-thumb svg { width: 32px; height: 32px; stroke: var(--text-m); fill: none; stroke-width: 1.5; }
.product-name { font-weight: 600; font-size: .9375rem; color: var(--text); }
.product-name small { display: block; font-weight: 400; font-size: .8125rem; color: var(--text-m); margin-top: .125rem; }
.product-gost { font-family: var(--font-m); font-size: .75rem; color: var(--text-s); }
.product-sku { font-family: var(--font-m); font-size: .8125rem; color: var(--text); }
.product-badge { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .625rem; background: #E6F4EC; color: var(--success); font-size: .75rem; font-weight: 600; border-radius: 999px; }

/* ─── PRODUCT PAGE ─── */
.product-page { padding: 1.5rem; }
.product-page-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.product-image { background: #fff; border-radius: var(--radius-l); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-l); }
.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-l); }
.product-image svg { width: 120px; height: 120px; stroke: var(--text-m); fill: none; stroke-width: 1; opacity: .4; }
.product-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.placeholder-icon { width: 40%; height: 40%; stroke: var(--text-m); fill: none; stroke-width: 1.5; opacity: .5; }
.product-info h1 { font-family: var(--font-h); font-size: 1.75rem; font-weight: 700; color: var(--primary-d); margin-bottom: .5rem; }
.product-article { font-family: var(--font-m); font-size: .8125rem; color: var(--text-m); margin-bottom: 1.5rem; }
.product-description { color: var(--text-s); font-size: .9375rem; line-height: 1.65; margin-bottom: 1.5rem; }
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.specs-table tr { border-bottom: 1px solid var(--border-l); }
.specs-table td { padding: .625rem 0; font-size: .9375rem; }
.specs-table td:first-child { color: var(--text-s); width: 45%; }
.specs-table td:last-child { font-weight: 500; }
.product-gost, .product-tu { font-family: var(--font-m); font-size: .875rem; }
.product-article, .product-range, .tech-data { font-family: var(--font-m); }
.poverka-badge { display: inline-flex; align-items: center; gap: .375rem; background: #E6F4EC; color: var(--success); font-size: .8125rem; font-weight: 600; padding: .375rem .75rem; border-radius: 999px; margin-bottom: 1.5rem; }
.poverka-badge svg { width: 14px; height: 14px; }
.btn-cta { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: #fff; font-family: var(--font-b); font-weight: 600; padding: 1rem 2.25rem; border: none; border-radius: var(--radius); font-size: 1.0625rem; cursor: pointer; transition: background .2s; text-decoration: none; }
.btn-cta:hover { background: var(--accent-h); }
.btn-cta-note { font-size: .8125rem; color: var(--text-m); margin-top: .625rem; }
.product-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.btn-secondary.added { background: var(--trust-bg); border-color: var(--trust-b); color: var(--success); pointer-events: none; }

/* Secondary button */
.btn-secondary { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--primary); font-family: var(--font-b); font-weight: 600; padding: .75rem 1.5rem; border: 1px solid var(--primary); border-radius: var(--radius); font-size: .9375rem; cursor: pointer; transition: all .2s; text-decoration: none; }
.btn-secondary:hover { background: var(--primary); color: #fff; }

/* Naznachenie / purpose */
.product-purpose { margin-bottom: 1.5rem; }
.product-purpose h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.product-purpose ul { list-style: none; padding: 0; }
.product-purpose li { font-size: .9375rem; color: var(--text-s); padding: .25rem 0; padding-left: 1rem; position: relative; }
.product-purpose li::before { content: '\2014'; position: absolute; left: 0; color: var(--text-m); }

/* Used in standards */
.used-standards { margin-bottom: 1.5rem; }
.used-standards h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.used-standards a { display: inline-block; margin-right: .75rem; margin-bottom: .375rem; font-family: var(--font-m); font-size: .8125rem; color: var(--primary); }

/* ─── VARIANTS TABLE ─── */
.variants-section { max-width: var(--max-w); margin: 2rem auto 0; padding: 0 1.5rem; }
.variants-section h2 { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; color: var(--primary-d); margin-bottom: 1rem; }
.variants-wrapper { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--border); }
.variants-table { width: 100%; border-collapse: collapse; }
.variants-table th { background: var(--primary); color: #fff; font-weight: 600; font-size: .8125rem; padding: .625rem 1rem; text-align: left; }
.variants-table td { padding: .625rem 1rem; font-size: .875rem; border-bottom: 1px solid var(--border-l); }
.variants-table tr:nth-child(even) { background: var(--bg-alt); }
.variants-table .mono { font-family: var(--font-m); font-size: .8125rem; }

/* Markdown-rendered tables: единое оформление в карточках товаров,
   блоге, глоссарии, ГОСТ-страницах, категориях каталога и прочих разделах */
.variants-section > table,
.article-content table,
.term-content table,
.gost-content table,
.page-content table,
.seo-text table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  margin: 1.25rem 0;
}
.variants-section table th,
.article-content table th,
.term-content table th,
.gost-content table th,
.page-content table th,
.seo-text table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: .8125rem;
  padding: .625rem 1rem;
  text-align: left;
}
.variants-section table td,
.article-content table td,
.term-content table td,
.gost-content table td,
.page-content table td,
.seo-text table td {
  padding: .625rem 1rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--border-l);
}
.variants-section table tr:nth-child(even),
.article-content table tr:nth-child(even),
.term-content table tr:nth-child(even),
.gost-content table tr:nth-child(even),
.page-content table tr:nth-child(even),
.seo-text table tr:nth-child(even) { background: var(--bg-alt); }
.variants-section table thead + tbody tr:first-child td,
.variants-section table tr:first-child td,
.article-content table tr:first-child td,
.term-content table tr:first-child td,
.gost-content table tr:first-child td,
.page-content table tr:first-child td,
.seo-text table tr:first-child td { border-top: none; }

/* Горизонтальный скролл для узких viewport'ов — таблицы иногда шире экрана */
@media (max-width: 640px) {
  .article-content,
  .term-content,
  .gost-content,
  .page-content,
  .seo-text,
  .variants-section { overflow-x: auto; }
}

/* ─── RELATED ─── */
.related-section { max-width: var(--max-w); margin: 3rem auto 0; padding: 0 1.5rem 3rem; }
.related-section h2 { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; color: var(--primary-d); margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.related-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 1rem; text-align: center; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.related-card-img { height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: .625rem; }
.related-card-img img { max-width: 64px; max-height: 64px; object-fit: contain; }
.related-card-img svg { width: 36px; height: 36px; stroke: var(--text-m); fill: none; stroke-width: 1.5; }
.related-card h4 { font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .125rem; }
.related-card p { font-size: .75rem; color: var(--text-m); }

/* ─── FAQ ─── */
.faq-section { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.faq-section h2 { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; color: var(--primary-d); margin-bottom: 1.25rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-q { font-weight: 600; font-size: .9375rem; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--text-m); transition: transform .2s; }
.faq-q.open::after { transform: rotate(45deg); }
.faq-a { font-size: .875rem; color: var(--text-s); line-height: 1.65; max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; }
.faq-a.open { max-height: 200px; padding-top: .75rem; }

/* ─── ORDER FORM ─── */
.order-form-section { padding: 2rem 2rem; }
.modal .order-form-section { padding: 2rem 2rem; max-width: none; }
.order-form-section h2 { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; color: var(--primary-d); margin-bottom: 1.25rem; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 1000; }
.modal.active { opacity: 1; pointer-events: auto; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 999; cursor: pointer; }
.modal-content { position: relative; z-index: 1001; background: var(--bg-card); border-radius: var(--radius-l); box-shadow: 0 20px 60px rgba(0,0,0,.3); max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 2rem; color: var(--text-m); cursor: pointer; padding: 0; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; z-index: 1002; }
.modal-close:hover { color: var(--text); }
.modal-trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border-l); }
.modal-trust-item { display: flex; align-items: flex-start; gap: .625rem; }
.modal-trust-icon { width: 32px; height: 32px; background: var(--bg-alt); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-trust-icon svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.modal-trust-label { font-size: .8125rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.modal-trust-text { font-size: .75rem; color: var(--text-m); line-height: 1.3; }
.order-form { max-width: 480px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; color: var(--text); margin-bottom: .375rem; }
.form-group input { width: 100%; padding: .625rem .75rem; font-family: var(--font-b); font-size: .9375rem; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.form-group input:focus { outline: none; border-color: var(--primary); }
.required { color: var(--accent); }
.dadata-result { font-size: .8125rem; color: var(--success); margin-top: .375rem; }
.form-disclaimer { font-size: .8125rem; color: var(--text-m); margin-top: .75rem; line-height: 1.5; }

/* ─── BLOG ─── */
.blog-article { padding: 2rem 1.5rem 3rem; }
.article-meta { margin-bottom: 2rem; }
.article-meta time { color: var(--text-m); }
.article-tags { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.tag { display: inline-block; padding: .2rem .625rem; background: var(--bg-alt); border-radius: 999px; font-size: .75rem; color: var(--text-s); }
.article-content { line-height: 1.7; }
.article-content h2 { font-family: var(--font-h); font-size: 1.375rem; font-weight: 700; color: var(--primary-d); margin: 2rem 0 .75rem; }
.article-content h3 { font-size: 1.0625rem; font-weight: 600; color: var(--text); margin: 1.5rem 0 .5rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-card { padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.blog-card h2 { font-family: var(--font-h); font-size: 1.125rem; font-weight: 700; margin-bottom: .25rem; }
.blog-card h2 a { color: var(--text); }
.blog-card h2 a:hover { color: var(--primary); }
.blog-placeholder { padding: 2rem 1.5rem; text-align: center; color: var(--text-s); background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius); }
.blog-placeholder p { font-size: .9375rem; margin: 0; }

/* ─── GLOSSARY ─── */
.glossary-list { display: flex; flex-direction: column; gap: 1rem; }
.glossary-item { padding: 1rem; border-bottom: 1px solid var(--border-l); }
.glossary-item h2 { font-family: var(--font-h); font-size: 1.0625rem; font-weight: 700; margin-bottom: .25rem; }
.glossary-item h2 a { color: var(--text); }
.term-definition { background: var(--bg-alt); padding: 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .9375rem; color: var(--text-s); line-height: 1.65; }

/* ─── GOST ─── */
.gost-list { display: flex; flex-direction: column; gap: 1rem; }
.gost-item { padding: 1rem; border-bottom: 1px solid var(--border-l); }
.gost-item h2 { font-family: var(--font-h); font-size: 1.0625rem; font-weight: 700; margin-bottom: .25rem; }
.gost-item h2 a { color: var(--text); }
.badge-status { display: inline-block; padding: .2rem .625rem; background: #E6F4EC; color: var(--success); font-size: .75rem; font-weight: 600; border-radius: 999px; }
.gost-products { margin-top: 2rem; }
.gost-products ul { list-style: none; padding: 0; }
.gost-products li { padding: .375rem 0; border-bottom: 1px solid var(--border-l); }

/* ─── SEO TEXT ─── */
.seo-text { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); color: var(--text-s); font-size: .9375rem; line-height: 1.7; }
.seo-text h2 { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; color: var(--primary-d); margin: 1.5rem 0 .75rem; }

/* ─── DEFAULT PAGES ─── */
.page-content { max-width: 720px; line-height: 1.7; }
.page-content h2 { font-family: var(--font-h); font-size: 1.375rem; font-weight: 700; color: var(--primary-d); margin: 2rem 0 .75rem; }
.page-content h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.page-content p { margin-bottom: 1rem; }

/* ─── FOOTER ─── */
.site-footer { background: var(--primary-d); color: rgba(255,255,255,.65); padding: 3rem 1.5rem 1.5rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 2.5rem; }
.footer-col h4 { color: #fff; font-size: .875rem; font-weight: 600; margin-bottom: .75rem; letter-spacing: .02em; }
.footer-col a { display: block; color: rgba(255,255,255,.5); text-decoration: none; font-size: .8125rem; margin-bottom: .375rem; transition: color .15s; }
.footer-col a:hover { color: rgba(255,255,255,.85); }
.footer-col p { font-size: .8125rem; line-height: 1.6; }
.footer-logo { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer-logo span { color: var(--accent); }
.footer-bottom { max-width: var(--max-w); margin: 2rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .75rem; color: rgba(255,255,255,.35); display: flex; justify-content: space-between; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .product-page-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .header-top { flex-wrap: wrap; }
  .header-top nav { display: none; }
  .header-top nav.nav-open { display: flex; flex-direction: column; width: 100%; gap: .5rem; padding-top: .5rem; }
  .header-top nav.nav-open a { margin-left: 0; padding: .5rem 0; }
  .burger { display: block; }
  .header-sub-inner { flex-direction: column; gap: .25rem; align-items: center; }
  .trust-bar-inner { gap: 1.5rem; justify-content: flex-start; }
  .hero h1 { font-size: 1.75rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 64px 1fr; gap: .75rem; }
  .product-row.header > div:nth-child(3),
  .product-row.header > div:nth-child(4),
  .product-row .product-gost,
  .product-row .product-sku { display: none; }
  .product-page-inner { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
}

/* ─── REVIEWS (homepage) ─── */
.reviews-section { background: var(--bg-alt); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-l);
  border-radius: var(--radius-l);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.review-card:hover { border-color: var(--primary-l); box-shadow: 0 4px 20px rgba(41, 50, 65, 0.06); }
.review-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.review-card__author {
  font-family: var(--font-h);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary-d);
  line-height: 1.3;
}
.review-card__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--accent);
  flex-shrink: 0;
}
.review-card__text {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.review-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-l);
  font-size: 0.8125rem;
  color: var(--text-m);
}
.review-card__badge {
  background: var(--trust-bg);
  color: var(--primary-d);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.review-card__date { font-family: var(--font-m); font-size: 0.75rem; }

@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { padding: 1.25rem; }
}

/* ─── RELATED CONTENT (blog / glossary / gost links on product pages) ─── */
.related-content {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .related-content { grid-template-columns: 1fr 1fr; }
  .related-content__block--full { grid-column: 1 / -1; }
}
.related-content__block {
  background: var(--bg-card);
  border: 1px solid var(--border-l);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.related-content__title {
  font-family: var(--font-h);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.875rem;
}
.related-content__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.625rem; }
.related-content__list--inline { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.related-content__link {
  display: block;
  padding: 0.625rem 0.875rem;
  background: var(--bg-alt);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.related-content__link:hover { background: var(--trust-bg); color: var(--primary); }
.related-content__link-title { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.related-content__link-desc { display: block; font-size: 0.8125rem; color: var(--text-s); margin-top: 0.25rem; line-height: 1.45; }

.related-content__chip {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--bg-alt);
  color: var(--primary);
  border: 1px solid var(--border-l);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.related-content__chip:hover { background: var(--trust-bg); border-color: var(--primary); color: var(--primary-d); }
.related-content__chip--gost { font-family: var(--font-m); font-size: 0.8125rem; }

/* ─── SEARCH ─── */

/* Модалка-обёртка вокруг PagefindUI */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 1rem;
}
.search-modal[hidden] { display: none; }
.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(41, 50, 65, .55);
  backdrop-filter: blur(2px);
}
.search-modal__panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 5rem);
  background: var(--bg-card);
  border-radius: var(--radius-l);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.search-modal__close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-s);
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}
.search-modal__close:hover { background: var(--bg-alt); color: var(--text); }
#search-ui {
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
}
html.search-open { overflow: hidden; }
@media (max-width: 640px) {
  .search-modal { padding: 0; }
  .search-modal__panel { max-width: none; max-height: 100vh; border-radius: 0; height: 100vh; }
  #search-ui { height: 100%; }
}

/* Кнопка-триггер в шапке */
.header-search {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-b);
  font-size: .875rem;
  transition: background .15s, border-color .15s;
}
.header-search:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }
.header-search__label { font-weight: 500; }
.header-search__hint {
  font-family: var(--font-m);
  font-size: .6875rem;
  padding: .1rem .35rem;
  background: rgba(255,255,255,.12);
  border-radius: 4px;
  color: rgba(255,255,255,.75);
}
@media (max-width: 768px) {
  .header-search__label,
  .header-search__hint { display: none; }
  .header-search { padding: .4rem; }
}

/* Цветные пилюли секций в результатах поиска */
.search-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  margin-right: 6px;
  vertical-align: middle;
  line-height: 1.4;
  white-space: nowrap;
}
.search-badge--katalog  { background: #2D7A4F; } /* зелёный — товар каталога */
.search-badge--category { background: #0E8E8E; } /* бирюзовый — страница категории */
.search-badge--blog     { background: var(--primary); } /* синий — блог */
.search-badge--glossary { background: #6D46B5; } /* фиолетовый — глоссарий */
.search-badge--gost     { background: #C96A42; } /* янтарный — ГОСТ */
.search-badge--other    { background: var(--text-m); }

/* Темизация Pagefind UI под палитру проекта */
:root {
  --pagefind-ui-scale: 0.9;
  --pagefind-ui-primary: var(--primary);
  --pagefind-ui-text: var(--text);
  --pagefind-ui-background: var(--bg-card);
  --pagefind-ui-border: var(--border-l);
  --pagefind-ui-tag: var(--bg-alt);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: var(--radius);
  --pagefind-ui-font: var(--font-b);
}

/* Инпут поиска — 16px чтобы iOS Safari не зумил */
.pagefind-ui__search-input {
  font-size: 16px !important;
  font-family: var(--font-b) !important;
  font-weight: 500 !important;
}
.pagefind-ui__search-input::placeholder { color: var(--text-m) !important; opacity: 1 !important; }

/* Плотность: ужимаем вертикальные отступы между результатами */
.pagefind-ui__result {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  gap: 16px !important;
}
.pagefind-ui__result-inner { margin-top: 0 !important; }
.pagefind-ui__result-title {
  font-family: var(--font-h) !important;
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}
.pagefind-ui__result-title .pagefind-ui__result-link {
  color: var(--text) !important;
  transition: color .15s;
}
.pagefind-ui__result-title .pagefind-ui__result-link:hover {
  color: var(--primary) !important;
  text-decoration: none !important;
}
.pagefind-ui__result-excerpt {
  font-size: 0.875rem !important;
  color: var(--text-s) !important;
  line-height: 1.5 !important;
  margin-top: 4px !important;
}
.pagefind-ui__result-thumb { max-width: 56px !important; margin-top: 4px !important; }

/* Подсветка совпадений: мягкое подчёркивание акцентным оранжевым вместо жёлтого фона */
.pagefind-ui__result mark {
  background: transparent !important;
  color: inherit !important;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

/* Заголовок-счётчик «N результатов» */
.pagefind-ui__message {
  font-family: var(--font-b) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--text-m) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 0 !important;
  height: auto !important;
}

/* Кнопка «Показать ещё» — под стиль .btn-secondary */
.pagefind-ui__button {
  font-family: var(--font-b) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  background: var(--bg-card) !important;
  color: var(--primary) !important;
  border: 1px solid var(--border) !important;
  transition: background .15s, border-color .15s;
}
.pagefind-ui__button:hover {
  background: var(--bg-alt) !important;
  border-color: var(--primary) !important;
}

/* Сепараторы между результатами — тоньше и светлее */
.pagefind-ui__result { border-top-color: var(--border-l) !important; }

/* Скрываем meta-чипы (artikuls, model, image и пр.) — служебные данные индекса,
   пользователю не нужны в выдаче. */
.pagefind-ui__result-tags { display: none !important; }

/* Скрываем левую панель фасетных фильтров — в подсказочном поиске она мешает.
   Вернём, когда будем делать отдельную страницу /search/?q=...
   ВАЖНО: hide'им только filter-panel, а НЕ drawer (drawer содержит и фильтры,
   и сами результаты — hide убрал бы выдачу целиком). */
.pagefind-ui__filter-panel { display: none !important; }

/* Badge внутри заголовка результата — чтобы вертикально выравнивался с текстом */
.pagefind-ui__result-title .search-badge {
  position: relative;
  top: -2px;
}

/* ─── ABOUT PAGE ─── */
.about-hero { text-align: center; padding-top: 2rem; padding-bottom: 1.5rem; }
.about-hero__top { margin-bottom: 1.75rem; }
.about-hero__title { font-family: var(--font-h); font-size: 1.875rem; font-weight: 700; color: var(--primary-d); margin-bottom: .5rem; }
.about-hero__lead { font-size: 1rem; color: var(--text-s); max-width: 580px; margin: 0 auto; line-height: 1.55; }
.about-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 640px; margin: 0 auto; }
.about-num { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 1.25rem .75rem; text-align: center; transition: transform .2s, box-shadow .2s; }
.about-num:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.about-num__value { display: block; font-family: var(--font-h); font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1.1; margin-bottom: .375rem; }
.about-num__label { font-size: .75rem; color: var(--text-s); line-height: 1.4; }

/* About story block */
.about-story-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 2.5rem; transition: box-shadow .2s; }
.about-story-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.about-story-card h2 { font-family: var(--font-h); font-size: 1.5rem; font-weight: 700; color: var(--primary-d); margin: 0 0 1.25rem; }
.about-story-card p { margin-bottom: 1.25rem; line-height: 1.75; color: var(--text); font-size: 1.0625rem; }
.about-story-card p:last-child { margin-bottom: 0; }
.about-story-card strong { color: var(--primary-d); }

/* About content cards (2 columns) */
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.about-cards--two { grid-template-columns: repeat(2, 1fr); }
.about-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 1.75rem 1.5rem; transition: box-shadow .2s; }
.about-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.about-card__icon { width: 40px; height: 40px; background: var(--trust-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.about-card__icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.about-card__title { font-family: var(--font-h); font-size: 1.125rem; font-weight: 700; color: var(--primary-d); margin-bottom: .75rem; }
.about-card p { font-size: .875rem; color: var(--text-s); line-height: 1.65; margin-bottom: .75rem; }
.about-card p:last-child { margin-bottom: 0; }
.about-card strong { color: var(--primary-d); }

/* Verification cards */
.verify-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.verify-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.verify-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); border-color: var(--primary-l); color: inherit; }
.verify-card__icon { width: 44px; height: 44px; background: var(--trust-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.verify-card:hover .verify-card__icon { background: var(--primary); }
.verify-card__icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.verify-card:hover .verify-card__icon svg { stroke: #fff; }
.verify-card__body { flex: 1; min-width: 0; }
.verify-card__name { font-family: var(--font-h); font-size: 1.0625rem; font-weight: 700; color: var(--primary-d); margin-bottom: .125rem; }
.verify-card__desc { font-size: .8125rem; color: var(--text-s); line-height: 1.45; }
.verify-card__arrow { font-size: 1.25rem; color: var(--text-m); flex-shrink: 0; transition: color .2s, transform .2s; }
.verify-card:hover .verify-card__arrow { color: var(--primary); transform: translateX(3px); }
.verify-inn-display { text-align: center; font-family: var(--font-m); font-size: .875rem; color: var(--text-s); padding: .75rem; background: var(--bg-alt); border-radius: var(--radius); border: 1px dashed var(--border); }

/* Requisites */
.about-requisites { max-width: 540px; }
.about-requisites .specs-table { margin-top: .5rem; }
.about-requisites .specs-table a { color: var(--primary); }

@media (max-width: 768px) {
  .about-numbers { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .about-num { padding: 1rem .5rem; }
  .about-num__value { font-size: 1.75rem; }
  .about-num__label { font-size: .6875rem; }
  .about-cards, .about-cards--two { grid-template-columns: 1fr; }
  .verify-grid { grid-template-columns: 1fr; }
  .about-hero__title { font-size: 1.5rem; }
}

/* Визуально скрытый элемент (для синонимов в индексе) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
