/* Altoris redesign — подключается после styles.css, переопределяет переменные и отдельные блоки */

:root {
  /* Палитра: золото логотипа = действие, бронза = акцент/информация, графит и чёрный = структура */
  --yellow: #d7b45c;
  --yellow-hover: #c9a54c;
  --navy: #262626;
  --navy-soft: #3d3d3d;
  --accent: #7a5c14;
  --accent-hover: #5c440c;
  --accent-light: #f6edd2;
  --primary: #7a5c14;
  --color-primary: #7a5c14;
  --focus-ring: rgba(122, 92, 20, 0.5);
  --text-strong: var(--navy);
  --bg: #fafaf8;
  --bg-alt: #f3f2ee;
  --border: #e7e4dc;
  --border-strong: #cfcabd;
  --text-muted: #4b5563;
}

/* Кнопки */
.btn:focus-visible { box-shadow: 0 0 0 4px var(--focus-ring); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(215, 180, 92, 0.45); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Шапка */
.logo-icon { display: none; }
.logo-text { letter-spacing: -0.02em; }
.logo-text::after { content: "."; color: var(--accent); }

/* Hero */
.hero { min-height: auto; padding-top: 140px; padding-bottom: 72px; }
.hero h1 { font-size: 3.25rem; }
.hero-badge { background: var(--yellow); color: #1f1f1f; padding: 5px 12px; border-radius: var(--radius-sm); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }

.hero-benefits {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 32px;
  padding: 0;
  background: none;
  border-left: 0;
}
.benefit-item { font-size: 0.95rem; color: var(--text-muted); }
.benefit-item strong { color: var(--navy); }

.hero-actions { margin-bottom: 40px; }
.hero-stats { gap: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.stat-value { font-size: 2rem; color: var(--navy); letter-spacing: -0.02em; }

.hero-card { border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(31, 31, 31, 0.3); }
.card-header { background: var(--navy); border-bottom: 0; }
.card-title { color: rgba(255, 255, 255, 0.8); }
.card-dots span, .card-dots span:first-child, .card-dots span:nth-child(2), .card-dots span:last-child { background: rgba(255, 255, 255, 0.3); }

/* Иконки (SVG вместо эмодзи) */
.product-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
}
.product-icon svg { width: 26px; height: 26px; }

/* Карточки */
.product-card, .service-card { border-radius: var(--radius-md); }
.service-num { color: var(--border); }

/* CTA-блок */
.cta-section { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); }
.cta-section .btn-white { background: var(--yellow); color: #1f1f1f; }
.cta-section .btn-white:hover { background: var(--yellow-hover); color: #1f1f1f; }

/* Подвал */
.site-footer { background: var(--navy); }

/* Анимации */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .product-card:hover, .service-card:hover, .testimonial-card:hover, .btn-primary:hover { transform: none; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-benefits { justify-content: center; }
  .hero-stats { gap: 24px; }
}

/* Skip-link: полностью прячем вне фокуса (раньше торчала полоса 1.6px сверху) */
.skip-link { top: -100px; }
.skip-link:focus { top: 0; }

/* ===== Доступность (аудит WCAG 2.1 AA) ===== */

/* Контраст значков и текста */
.testimonial-rating { color: #a16207; }
.status-ok { color: #15803d; }
.footer-bottom p { color: rgba(255, 255, 255, 0.65); }

/* Поля формы: граница ≥3:1, плейсхолдер ≥4.5:1, фокус в цвете палитры */
.field input, .field textarea { border-color: #8a8379; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 3px var(--focus-ring); }

/* Ошибка отправки формы */
.form-error {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent-hover);
  font-size: 0.9rem;
}
.form-error[hidden] { display: none; }

/* Новости теперь <button>: сбрасываем стили кнопки */
button.news-item { width: 100%; font: inherit; text-align: left; cursor: pointer; }

/* Видимый фокус у элементов, которым он не был задан */
.news-item:focus-visible,
.slider-btn:focus-visible,
.modal-close:focus-visible,
.dock-link:focus-visible,
.dock-cta:focus-visible,
.faq-question:focus-visible,
.success-message:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ===== Контакт-док: заявка + мессенджеры вместо двух плавающих блоков ===== */
.contact-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 32px -8px rgba(31, 31, 31, 0.3);
}
.dock-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: transform var(--duration-fast) var(--ease-out);
}
.dock-link svg { width: 22px; height: 22px; }
.dock-link:hover { color: #fff; transform: scale(1.08); }
.dock-telegram { background: #0077b5; }
.dock-whatsapp { background: #15803d; }
.dock-cta {
  padding: 12px 22px;
  background: var(--yellow);
  color: #1f1f1f;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background var(--duration-fast);
}
.dock-cta:hover { background: var(--yellow-hover); color: #1f1f1f; }

/* ===== Услуги: нумерованный список в две колонки ===== */
.services-grid { grid-template-columns: repeat(2, 1fr); gap: 0 64px; max-width: 1000px; }
.service-card {
  background: none;
  border: 0;
  border-top: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 28px 0 28px 64px;
  overflow: visible;
}
.service-card:hover { transform: none; box-shadow: none; border-top-color: var(--accent); }
.service-num {
  top: 28px;
  left: 0;
  right: auto;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ===== Почему мы: лёгкие колонки вместо карточек ===== */
.why-us-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px 32px; }
.why-us-card {
  background: none;
  border: 0;
  border-left: 2px solid var(--border-strong);
  border-radius: 0;
  padding: 4px 0 4px 24px;
  text-align: left;
}
.why-us-card:hover { transform: none; box-shadow: none; border-left-color: var(--accent); }
.why-us-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
}
.why-us-icon svg { width: 26px; height: 26px; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-dock { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .dock-cta { flex: 1; text-align: center; }
  body { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .dock-link:hover { transform: none; }
}

/* ===== Правки по дизайн-критике ===== */

/* CTA в шапке: .main-nav a перекрашивал текст кнопки в серый */
.main-nav a.btn-primary { color: #1f1f1f; padding: 8px 18px; }
.main-nav a.btn-primary:hover { color: #1f1f1f; background: var(--yellow-hover); }

/* Продукты: 3+3 вместо 4+2 */
.products-grid { grid-template-columns: repeat(3, 1fr); }
.product-card p { font-size: 0.95rem; }
.product-link { padding: 10px 0; }
section#products { padding-top: 72px; }

/* Услуги: отступ под заголовком (margin: 0 auto его обнулял) и общая ширина контента */
.section-alt .section-header { margin-bottom: 60px; }
.section-alt .section-header,
.section-alt .products-grid,
.section-alt .services-grid { max-width: 1152px; }

/* Hero: карточка справа выровнена по верху контента */
.hero { align-items: start; }
.hero-visual { margin-top: 56px; }
.hero-card { max-width: 460px; }

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { margin-top: 0; }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px 28px; align-items: flex-start; }
  .stat-item { align-items: center; text-align: center; }
  .stat-value { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  .hero-stats { flex-wrap: nowrap; gap: 16px; }
  .stat-label { font-size: 0.75rem; }
}

/* ===== Нижние блоки: правки по визуальной проверке ===== */

/* Отзывы: обрезаем ленту по окну, а не по padding слайдера (иначе виден край следующей карточки) */
.testimonials-slider { overflow: visible; }
.testimonials-viewport { overflow: hidden; }

/* «О компании»: плитки с цифрами отделены от фона */
#about [style*="background: var(--bg-elevated)"] { border: 1px solid var(--border) !important; }

/* Форма: ровные интервалы между полями, заголовок с отступом */
.form-row { gap: 0 20px; }
.form-header h2 { margin-bottom: 12px; }
.contact-form .btn-primary { box-shadow: none; }

/* Подвал не прячется под доком контактов */
.site-footer { padding-bottom: 96px; }

@media (max-width: 768px) {
  .form-row { gap: 0; }
  .cta-content h2 { font-size: 1.75rem; }
  .contact-form { padding: 28px 20px; }
}

/* ===== Жёлтый акцент: кнопки, маркер, ссылки ===== */
.btn-primary { background: var(--yellow); color: #1f1f1f; }
.btn-primary:hover { background: var(--yellow-hover); color: #1f1f1f; }
.btn-primary:focus-visible { outline-color: var(--focus-ring); }

/* «1С» в заголовке на жёлтой плашке (текст тёмный: контраст 11.5:1).
   Запасной вариант: тонкое подчёркивание
   background: linear-gradient(transparent calc(100% - 0.16em), var(--yellow) calc(100% - 0.16em)); */
.text-accent {
  color: #1f1f1f;
  background: var(--yellow);
  padding: 0 0.14em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Ссылки «Заказать →»: бронзовые, с золотым подчёркиванием */
.product-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.product-link:hover { color: var(--accent-hover); text-decoration-color: var(--accent); }
.product-card:hover, .product-card:focus-within { border-color: var(--accent); }

/* Номера услуг: бронзовые с золотой чертой */
.service-num::after { content: ""; display: block; width: 22px; height: 3px; margin-top: 4px; background: var(--yellow); }

/* Фокус на тёмных блоках: тёмное кольцо там не видно */
.cta-section a:focus-visible,
.site-footer a:focus-visible,
.cta-section .btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: none; }

/* Ошибка формы: красный на светло-розовом (6:1), плюс текст ошибки */
.form-error { background: #fdecec; border-color: #c4161c; border-left: 4px solid #c4161c; color: #9f1117; }

/* ===== Графика hero: панель показателей и плавающие подсказки ===== */
.hero-visual { position: relative; }
.hero-card { max-width: 480px; }
.kpi-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.kpi-label { font-size: 0.72rem; color: var(--text-muted); }
.kpi-value { font-size: 1.25rem; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.kpi-delta { font-size: 0.75rem; font-weight: 600; color: #15803d; }

.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 72px; margin-bottom: 16px; padding: 0 2px; border-bottom: 1px solid var(--border); }
.mini-bars span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: var(--border-strong); transform-origin: bottom; animation: bar-grow 0.8s var(--ease-out) both; }
.mini-bars span:last-child { background: var(--yellow); }
.mini-bars span:nth-child(2) { animation-delay: 0.05s; } .mini-bars span:nth-child(3) { animation-delay: 0.1s; }
.mini-bars span:nth-child(4) { animation-delay: 0.15s; } .mini-bars span:nth-child(5) { animation-delay: 0.2s; }
.mini-bars span:nth-child(6) { animation-delay: 0.25s; } .mini-bars span:nth-child(7) { animation-delay: 0.3s; }
.mini-bars span:nth-child(8) { animation-delay: 0.35s; }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.hero-chip svg { width: 16px; height: 16px; padding: 3px; box-sizing: content-box; border-radius: 50%; background: var(--yellow); color: #1f1f1f; }
.hero-chip-1 { top: -32px; right: -14px; }
.hero-chip-2 { bottom: -18px; left: -14px; }

/* ===== Как мы работаем ===== */
.section.process { max-width: 100%; background: var(--navy); padding: 100px 24px; }
.process .section-header { max-width: 1152px; margin: 0 auto 64px; }
.process .section-header h2 { color: #fff; }
.process .section-sub { color: rgba(255, 255, 255, 0.78); }
.process-steps {
  list-style: none;
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.process-steps::before { content: ""; position: absolute; top: 22px; left: 10%; right: 10%; height: 2px; background: rgba(255, 255, 255, 0.22); }
.process-step { position: relative; text-align: center; }
.step-num {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #1f1f1f;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 0 6px var(--navy);
}
.step-icon { display: flex; justify-content: center; margin-bottom: 12px; color: rgba(255, 255, 255, 0.85); }
.step-icon svg { width: 28px; height: 28px; }
.process-step h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; line-height: 1.55; }

@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .process-steps::before { top: 23px; bottom: 23px; left: 22px; right: auto; width: 2px; height: auto; }
  .process-step { text-align: left; padding-left: 70px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mini-bars span { animation: none; }
}

/* ===== Логотип Altoris (чёрный фон + золото): тёмная шапка ===== */
.site-header { background: #141414; border-bottom: 1px solid #2a2a2a; backdrop-filter: none; }
.logo-img { display: block; height: 52px; width: auto; mix-blend-mode: lighten; }
.logo-img-footer { height: 52px; margin-bottom: 12px; }
.logo-text::after { content: none; }

.main-nav a { color: rgba(255, 255, 255, 0.85); }
.main-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.main-nav a:focus-visible { outline-color: var(--yellow); }
.mobile-menu-btn span { background: #fff; }
.mobile-menu-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

@media (max-width: 768px) {
  .main-nav { background: #141414; border-bottom: 1px solid #2a2a2a; }
  .logo-img { height: 42px; }
}

/* ===== Тёмный hero: продолжает чёрную шапку с логотипом ===== */
.hero {
  /* свечение угасает до края секции, чтобы не было шва */
  background: radial-gradient(400px 300px at 70% 42%, rgba(215, 180, 92, 0.20), transparent 70%), #141414;
  /* фон на всю ширину окна, обрезка по высоте секции */
  box-shadow: 0 0 0 100vmax #141414;
  clip-path: inset(0 -100vmax);
}
.hero h1 { color: #fff; }
.hero-sub { color: rgba(255, 255, 255, 0.8); }
.benefit-item { color: rgba(255, 255, 255, 0.78); }
.benefit-item strong { color: #fff; }
.hero-stats { border-top-color: rgba(255, 255, 255, 0.18); }
.stat-value { color: #fff; }
.stat-label { color: rgba(255, 255, 255, 0.72); }
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: #141414; border-color: #fff; }
.hero-card { box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7); }
.site-header { border-bottom-color: #141414; }

/* ===== Ритм страницы: компактнее вертикальные отступы ===== */
.section { padding-top: 76px; padding-bottom: 76px; }
.section.process { padding-top: 76px; padding-bottom: 76px; }
section#products { padding-top: 56px; }
.section-header { margin-bottom: 48px; }
.section-alt .section-header { margin-bottom: 48px; }
.process .section-header { margin-bottom: 52px; }
.cta-section { padding-top: 64px; padding-bottom: 64px; }

/* Кнопка «Оставить заявку» в шапке: зона нажатия 44 px */
.main-nav a.btn-primary { min-height: 44px; padding: 10px 20px; }

@media (max-width: 768px) {
  .section, .section.process { padding-top: 60px; padding-bottom: 60px; }
  .section-header, .section-alt .section-header { margin-bottom: 36px; }
}

/* Окно новости: ссылка на оригинал */
.modal-source { font-weight: 600; color: var(--accent); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.modal-source:hover { color: var(--accent-hover); }

/* =====================================================================
   Каталог прайс-листа: /products, /products/<раздел>, /product/<код>
   ===================================================================== */
body.page-catalog { background: var(--bg); }
.page-catalog [hidden] { display: none !important; }

/* --- Тёмная шапка страницы --- */
.page-hero {
  background: radial-gradient(420px 300px at 80% 50%, rgba(215, 180, 92, 0.18), transparent 70%), #141414;
  box-shadow: 0 0 0 100vmax #141414;
  clip-path: inset(0 -100vmax);
  padding: 124px 24px 72px;
}
.page-hero-inner { max-width: 1152px; margin: 0 auto; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }
.breadcrumb a:hover { color: #fff; text-decoration-color: var(--yellow); }
.page-hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 14px; }
.page-hero .hero-sub { color: rgba(255, 255, 255, 0.8); max-width: 680px; margin-bottom: 28px; }
.page-hero-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.page-hero .stat-value { color: #fff; }
.page-hero .stat-label { color: rgba(255, 255, 255, 0.72); }

/* --- Раскладка: фильтры слева, результаты справа --- */
.catalog { max-width: 1152px; margin: 0 auto; padding: 0 24px 72px; }
.catalog-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  grid-template-areas: "top top" "filters results";
  gap: 24px 28px;
  align-items: start;
}
.catalog-top {
  grid-area: top;
  position: relative;
  margin-top: -36px;
  padding: 16px;
  display: flex;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -24px rgba(20, 20, 20, 0.45);
}
.catalog-search { position: relative; flex: 1; }
.catalog-search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.catalog-search input {
  width: 100%; height: 52px; padding: 0 16px 0 44px;
  border: 1px solid #8a8379; border-radius: var(--radius-md);
  background: var(--bg); color: var(--text-strong); font: inherit; font-size: 1rem;
}
.catalog-search input::placeholder { color: var(--text-muted); opacity: 1; }
.catalog-search input:focus, .results-sort select:focus, .price-range input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.catalog-submit { height: 52px; padding: 0 28px; }
.filters-toggle { display: none; height: 52px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg-elevated); color: var(--text-strong); font: inherit; font-weight: 600; cursor: pointer; }
.filters-toggle .badge { display: inline-block; min-width: 22px; padding: 1px 6px; margin-left: 4px; border-radius: var(--radius-full); background: var(--yellow); color: #1f1f1f; font-size: 0.8rem; text-align: center; }
.filters-toggle:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* --- Фильтры --- */
.filters { grid-area: filters; position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow-y: auto; padding: 4px 4px 4px 0; }
.facet { margin: 0 0 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elevated); min-width: 0; }
.facet legend { padding: 0 6px; margin-left: -6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.opt { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; padding: 6px 0; cursor: pointer; font-size: 0.92rem; color: var(--text-strong); }
.opt input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: #7a5c14; }
.opt-label { flex: 1; line-height: 1.35; }
.opt-count { flex: none; font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.opt-extra { display: none; }
.facet.is-expanded .opt-extra { display: flex; }
.facet-more { margin-top: 6px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.facet-more:focus-visible, .opt input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.facet-note { font-size: 0.85rem; color: var(--text-muted); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range label { flex: 1; min-width: 0; }
.price-range input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #8a8379; border-radius: var(--radius-md); background: var(--bg); color: var(--text-strong); font: inherit; }
.price-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.preset { padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-full); font-size: 0.8rem; color: var(--text-strong); }
.preset:hover { background: var(--accent-light); border-color: var(--yellow); color: var(--text-strong); }
.preset.is-active { background: var(--yellow); border-color: var(--yellow); font-weight: 600; }
.preset:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.filters-actions { display: grid; gap: 10px; justify-items: start; }
html.js .filters-apply { display: none; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--accent); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { color: var(--accent-hover); }

/* --- Результаты --- */
.results { grid-area: results; min-width: 0; scroll-margin-top: 96px; }
.results[aria-busy="true"] { opacity: 0.55; transition: opacity 0.15s; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.results-count { font-size: 0.95rem; color: var(--text-muted); }
.results-count strong { color: var(--text-strong); }
.results-sort { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.results-sort select { height: 40px; padding: 0 12px; border: 1px solid #8a8379; border-radius: var(--radius-md); background: var(--bg-elevated); color: var(--text-strong); font: inherit; }
.active-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.active-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border-radius: var(--radius-full); background: var(--accent-light); border: 1px solid var(--yellow); font-size: 0.85rem; color: var(--text-strong); }
.active-chip:hover { background: var(--yellow); color: #1f1f1f; }
.active-chip:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.result-list { list-style: none; display: grid; gap: 10px; }
.result { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: start; padding: 16px 18px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.result:hover { border-color: #e0b800; box-shadow: var(--shadow-md); }
.result-name { font-size: 1rem; font-weight: 600; line-height: 1.4; margin: 0 0 6px; }
.result-name a { color: var(--text-strong); }
.result-name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.result-name a:focus-visible { outline: none; }
.result:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.result-name mark { background: var(--yellow); color: #1f1f1f; border-radius: 3px; padding: 0 2px; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.8rem; color: var(--text-muted); }
.result-meta .code { font-family: var(--font-mono); }
.tag { padding: 2px 8px; border-radius: var(--radius-full); background: var(--bg-alt); color: var(--text-strong); font-size: 0.75rem; font-weight: 500; }
.result-price { font-size: 1.1rem; font-weight: 700; color: var(--text-strong); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.page-link { min-width: 40px; min-height: 40px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg-elevated); color: var(--text-strong); font-size: 0.9rem; font-weight: 500; }
a.page-link:hover { background: var(--accent-light); border-color: var(--yellow); color: var(--text-strong); }
a.page-link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.page-link.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-gap { align-self: center; padding: 0 4px; color: var(--text-muted); }

.price-empty { padding: 40px 24px; text-align: center; background: var(--bg-elevated); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.price-empty h2 { font-size: 1.4rem; margin-bottom: 10px; }
.price-empty p { max-width: 520px; margin: 0 auto 20px; }

/* --- Ссылки на разделы --- */
.landing-links { max-width: 1152px; margin: 0 auto; padding: 0 24px 72px; }
.landing-links-inner h2 { font-size: 1.4rem; margin-bottom: 16px; }
.landing-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.landing-links a { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-full); color: var(--text-strong); font-weight: 500; }
.landing-links a:hover { background: var(--accent-light); border-color: var(--yellow); color: var(--text-strong); }

/* --- Страница позиции --- */
.page-hero-item { padding-bottom: 56px; }
.item-title { font-size: 2rem !important; line-height: 1.25; max-width: 900px; overflow-wrap: anywhere; }
.item-code { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.item-code span { font-family: var(--font-mono); color: #fff; }
.item-section { max-width: 1152px; margin: 0 auto; padding: 40px 24px 72px; }
.item-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.item-card, .item-cta { padding: 28px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.item-price-label { font-size: 0.85rem; color: var(--text-muted); }
.item-price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-strong); font-variant-numeric: tabular-nums; margin: 4px 0 8px; }
.item-price-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.item-facts { display: grid; gap: 0; border-top: 1px solid var(--border); }
.item-facts div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.item-facts dt { color: var(--text-muted); }
.item-facts dd { color: var(--text-strong); overflow-wrap: anywhere; }
.item-facts a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.item-cta { background: #141414; border-color: #141414; color: rgba(255, 255, 255, 0.85); }
.item-cta h2 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.item-cta p { color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; }
.item-cta .item-cta-note { margin: 16px 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); }
.item-cta strong { color: #fff; font-weight: 600; }
.item-more { margin-top: 40px; }
.item-more h2 { font-size: 1.4rem; margin-bottom: 16px; }
.mini-list { list-style: none; display: grid; gap: 8px; }
.mini-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); }
.mini-list li:hover { border-color: #e0b800; }
.mini-list a { display: grid; gap: 2px; color: var(--text-strong); }
.mini-name { font-weight: 500; font-size: 0.95rem; }
.mini-meta { font-size: 0.78rem; color: var(--text-muted); }
.mini-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-back { margin-top: 16px; }

/* --- Планшет и телефон --- */
@media (max-width: 960px) {
  .catalog-layout { grid-template-columns: 1fr; grid-template-areas: "top" "filters" "results"; }
  .filters-toggle { display: inline-flex; align-items: center; }
  .filters { display: none; position: static; max-height: none; overflow: visible; padding: 0; }
  .filters.is-open { display: block; }
  .item-layout { grid-template-columns: 1fr; }
  .item-facts div { grid-template-columns: 130px 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 100px 20px 64px; }
  .page-hero h1 { font-size: 2rem; }
  .item-title { font-size: 1.5rem !important; }
  .catalog { padding: 0 16px 56px; }
  .catalog-top { flex-wrap: wrap; padding: 14px; margin-top: -32px; }
  .catalog-search { flex: 1 1 100%; }
  .catalog-submit { flex: 1; }
  .result { grid-template-columns: 1fr; padding: 14px; }
  .result-price { text-align: left; font-size: 1.05rem; }
  .results-head { align-items: flex-start; flex-direction: column; }
  .results-sort { width: 100%; }
  .results-sort select { flex: 1; }
  .item-section { padding: 28px 16px 56px; }
  .item-card, .item-cta { padding: 20px; }
  .item-price { font-size: 2rem; }
  .item-facts div { grid-template-columns: 1fr; gap: 2px; }
  .mini-list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .results[aria-busy="true"] { transition: none; } }

/* Ссылка «Цены →» рядом с «Заказать →» в карточках продуктов на главной */
.product-card { gap: 0; }
.product-link-alt { margin-top: 0; padding-top: 0; font-weight: 500; text-decoration-color: var(--border-strong); }
.product-card .product-link + .product-link-alt { margin-top: -4px; }

/* =====================================================================
   Металлическое золото, дозированный акцент и характер заголовков
   ===================================================================== */
:root {
  --gold-grad: linear-gradient(180deg, #ecd493 0%, #d6b462 52%, #c29a45 100%);
  --gold-grad-hover: linear-gradient(180deg, #f2dc9f 0%, #dcbb6b 52%, #c9a24c 100%);
  --gold-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 18px -8px rgba(160, 120, 40, 0.6);
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Заголовки и ключевые элементы: геометрический Manrope, ближе к логотипу */
h1, h2, h3, .hero-badge, .btn, .stat-value, .dock-cta { font-family: var(--font-display); }

/* Главные кнопки: объёмное золото */
.btn-primary,
.dock-cta,
.main-nav a.btn-primary,
.cta-section .btn-white,
.contact-form .btn-primary,
.page-catalog .btn-primary {
  background: var(--gold-grad);
  color: #1f1f1f;
  box-shadow: var(--gold-shadow);
}
.btn-primary:hover,
.dock-cta:hover,
.main-nav a.btn-primary:hover,
.cta-section .btn-white:hover,
.contact-form .btn-primary:hover,
.page-catalog .btn-primary:hover {
  background: var(--gold-grad-hover);
  color: #1f1f1f;
  box-shadow: var(--gold-shadow);
}

/* Золото дозированно: графитовые плашки иконок с золотым значком */
.product-icon, .why-us-icon { background: #202020; color: #e0c273; }

/* Ссылки в карточках и номера услуг: графит + золотая линия */
.product-link { color: #1f1f1f; text-decoration-color: #d6b462; text-decoration-thickness: 3px; }
.product-link:hover { color: #000; text-decoration-color: #c29a45; }
.product-link-alt { text-decoration-color: var(--border-strong); }
.service-num { color: #1f1f1f; }
.service-num::after { background: #d6b462; }

/* Подписи над заголовками секций */
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a5c14;
}
.process .eyebrow { color: #d6b462; }
