:root {
  /* Color — cool steel-neutral base, one functional accent (safety orange), no gradients */
  --paper: #f4f5f3;
  --paper-2: #e9eae6;
  --ink: #15171a;
  --steel: #61666d;
  --steel-light: #9a9fa5;
  --graphite: #191b1e;
  --graphite-2: #212327;
  --graphite-line: rgba(255,255,255,0.10);
  --paper-line: rgba(21,23,26,0.12);
  --accent: #ff5a1f;
  --accent-ink: #c8430f;
  --white: #ffffff;
  --radius-s: 4px;
  --radius-m: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--graphite);
  color: var(--paper);
  display: grid; place-items: center;
  gap: 16px;
  transition: opacity .4s ease, visibility .4s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 28px; height: 28px;
  border: 2px solid rgba(244,245,243,0.18);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.preloader span { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-light); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  color: white;
  transition: .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 64px;
  background: rgba(25, 27, 30, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--graphite-line);
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; line-height: 1; }
.logo-icon {
  width: 38px; height: 38px; border-radius: var(--radius-s);
  display: grid; place-items: center;
  background: var(--accent);
  color: #16130f; font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 13px;
}
.logo-text { font-size: 13px; letter-spacing: .01em; }
.logo-text small { display: block; font-weight: 400; color: rgba(255,255,255,.5); font-size: 11px; margin-top: 2px; }
.desktop-nav { display: flex; gap: 30px; color: rgba(255,255,255,.72); font-size: 14px; }
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover { color: white; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.phone-link { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: rgba(255,255,255,.78); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--graphite-line); border-radius: var(--radius-s); background: transparent; }
.menu-toggle span { display: block; width: 18px; height: 1px; background: white; margin: 5px auto; transition: .2s; }
.mobile-menu {
  position: fixed; z-index: 999; top: 76px; right: 14px; left: 14px;
  padding: 22px; border-radius: var(--radius-m);
  background: var(--graphite); color: white;
  display: none; flex-direction: column; gap: 18px;
  border: 1px solid var(--graphite-line);
  transform: translateY(-10px); opacity: 0; transition: .2s ease;
}
.mobile-menu.active { display: flex; transform: translateY(0); opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-s); padding: 13px 22px;
  font-weight: 600; font-size: 14px; border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 10px 16px; font-size: 13px; }
.btn-large { padding: 15px 24px; }
.btn-solid { background: var(--accent); color: #1a1006; }
.btn-solid:hover { background: #ff6c39; }
.btn-outline { color: white; border-color: rgba(255,255,255,.28); background: transparent; }
.btn-outline:hover { border-color: rgba(255,255,255,.55); }

/* ---------- Sections / type ---------- */
.section { padding: 100px 0; }
.section-dark { background: var(--graphite); color: white; position: relative; overflow: hidden; }
.section-muted { background: var(--paper-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent-ink); font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; font-size: 12px; margin-bottom: 18px;
}
.eyebrow.dark { color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Archivo', sans-serif; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; margin-bottom: 22px; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.06; margin-bottom: 20px; }
h3 { font-size: 19px; line-height: 1.2; margin-bottom: 10px; font-weight: 600; }
p { color: var(--steel); line-height: 1.65; }
.section-dark p { color: rgba(255,255,255,.62); }
.section-head { max-width: 700px; margin-bottom: 44px; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 132px 0 72px; }
.hero-bg {
  position: absolute; inset: 0;
  background: var(--graphite);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, black, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; }
.hero-lead { font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 40px; }
.hero-specs { display: flex; gap: 0; max-width: 560px; border-top: 1px solid var(--graphite-line); }
.hero-specs div { flex: 1; padding: 16px 18px 0; border-left: 1px solid var(--graphite-line); }
.hero-specs div:first-child { border-left: 0; padding-left: 0; }
.hero-specs strong { display: block; font-family: 'IBM Plex Mono', monospace; color: var(--accent); font-size: 20px; font-weight: 500; }
.hero-specs span { color: rgba(255,255,255,.5); font-size: 12.5px; }

.hero-diagram {
  position: relative; border: 1px solid var(--graphite-line); border-radius: var(--radius-m);
  background: var(--graphite-2);
  padding: 28px;
  min-height: 420px;
  display: flex; flex-direction: column;
}
.hero-diagram svg { width: 100%; height: auto; flex: 1; }
.hero-diagram .diagram-caption {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--graphite-line); margin-top: 18px; padding-top: 14px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: rgba(255,255,255,.45); letter-spacing: .03em;
}
.diagram-tick { stroke: rgba(255,255,255,.16); stroke-width: 1; }
.diagram-line { stroke: rgba(255,255,255,.4); stroke-width: 1.2; fill: none; }
.diagram-accent { stroke: var(--accent); fill: none; stroke-width: 1.4; }
.diagram-dot { fill: var(--accent); }
.diagram-label { font-family: 'IBM Plex Mono', monospace; font-size: 9px; fill: rgba(255,255,255,.55); letter-spacing: .04em; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--graphite-2); color: rgba(255,255,255,.62); border-top: 1px solid var(--graphite-line); border-bottom: 1px solid var(--graphite-line); }
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 20px 0; text-align: center; }
.trust-grid span { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .02em; }

/* ---------- Catalog (index list, not glossy cards) ---------- */
.catalog-list { border-top: 1px solid var(--paper-line); }
.equipment-row {
  display: grid; grid-template-columns: 70px 84px 1fr auto; gap: 26px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--paper-line);
}
.row-code { font-family: 'IBM Plex Mono', monospace; color: var(--accent-ink); font-size: 13px; padding-top: 4px; }
.row-thumb {
  width: 84px; height: 84px; border-radius: var(--radius-s); flex-shrink: 0;
  background: repeating-linear-gradient(45deg, rgba(21,23,26,.06) 0 6px, transparent 6px 12px), var(--paper-2);
  border: 1px solid var(--paper-line);
  position: relative;
}
.row-thumb span {
  position: absolute; bottom: 5px; right: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 8.5px; letter-spacing: .04em;
  color: var(--steel-light); text-transform: uppercase;
}
.row-body ul { margin: 12px 0 0; padding-left: 16px; color: var(--steel); font-size: 14px; line-height: 1.7; }
.row-cta { align-self: center; }
.card-link { color: var(--accent-ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.card-link:hover { color: var(--accent); }

/* ---------- Category blocks with real equipment items ---------- */
.expo-note {
  display: flex; align-items: center; gap: 16px; margin-bottom: 48px;
  padding: 14px; border: 1px solid var(--paper-line); border-radius: var(--radius-m); background: var(--paper-2);
}
.expo-note img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius-s); flex-shrink: 0; }
.expo-note p { margin: 0; font-size: 14px; color: var(--ink); }
.expo-note a { color: var(--accent-ink); font-weight: 600; white-space: nowrap; margin-left: auto; padding-left: 12px; }
.expo-note a:hover { color: var(--accent); }

.category-block { margin-bottom: 64px; }
.category-block:last-child { margin-bottom: 0; }
.category-head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--paper-line); padding-bottom: 16px; margin-bottom: 24px;
}
.category-head .row-code { padding-top: 0; font-size: 14px; }
.category-head h3 { margin-bottom: 0; font-size: 21px; }
.category-head p { flex-basis: 100%; margin-top: 6px; font-size: 14.5px; }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.item-card {
  border: 1px solid var(--paper-line); border-radius: var(--radius-m); overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column;
}
.item-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-card-body b { font-size: 14.5px; line-height: 1.3; }
.item-card-body span { font-size: 13px; color: var(--steel); line-height: 1.5; }
.item-video-link {
  margin-top: auto; padding-top: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--accent-ink); font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
}
.item-video-link:hover { color: var(--accent); }
.item-video-link::before { content: '▶'; font-size: 9px; }

.flagship-card { grid-template-columns: 1fr 1fr; display: grid; }
.flagship-card .item-thumb { aspect-ratio: auto; height: 100%; }
.flagship-card .item-card-body { padding: 22px; justify-content: center; }
.flagship-card .item-card-body b { font-size: 17px; }
.flagship-card .item-card-body span { font-size: 14px; }
@media (max-width: 640px) {
  .flagship-card { grid-template-columns: 1fr; }
  .flagship-card .item-thumb { aspect-ratio: 4/3; }
}

/* ---------- Split sections ---------- */
.split-grid, .service-grid, .request-grid, .contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { display: grid; gap: 1px; margin-top: 28px; background: var(--paper-line); border: 1px solid var(--paper-line); border-radius: var(--radius-m); overflow: hidden; }
.feature-list div { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--paper); }
.feature-list b { font-family: 'IBM Plex Mono', monospace; color: var(--accent-ink); font-weight: 500; }

.premium-panel { padding: 40px; border-radius: var(--radius-m); background: var(--graphite); color: white; border: 1px solid var(--graphite-line); }
.mini-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin-top: 26px; background: var(--graphite-line); border: 1px solid var(--graphite-line); border-radius: var(--radius-s); overflow: hidden; }
.mini-grid span { padding: 16px; background: var(--graphite-2); color: var(--paper); font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--graphite-line); border: 1px solid var(--graphite-line); border-radius: var(--radius-m); overflow: hidden; }
.timeline-item { padding: 26px; background: var(--graphite); }
.timeline-item span { font-family: 'IBM Plex Mono', monospace; color: var(--accent); font-size: 13px; display: block; margin-bottom: 20px; }

.tall-placeholder { min-height: 480px; }
.service-media { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--paper-line); background: #0a0b0c; }
.service-media video { width: 100%; height: 100%; min-height: 460px; object-fit: cover; display: block; }
.service-media figcaption {
  margin: 0; padding: 12px 16px; background: var(--graphite);
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: rgba(255,255,255,.55); letter-spacing: .03em;
}
.image-placeholder {
  border-radius: var(--radius-m); background: repeating-linear-gradient(45deg, rgba(21,23,26,.055) 0 8px, transparent 8px 16px), var(--paper-2);
  border: 1px solid var(--paper-line);
  display: flex; align-items: flex-end; padding: 18px; position: relative;
}
.image-placeholder span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--steel); letter-spacing: .04em; text-transform: uppercase; }

.service-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin-top: 26px; background: var(--paper-line); border: 1px solid var(--paper-line); border-radius: var(--radius-m); overflow: hidden; }
.service-cards div { padding: 18px 20px; background: var(--paper); }
.service-cards b, .service-cards span { display: block; }
.service-cards b { font-size: 14.5px; }
.service-cards span { color: var(--steel); margin-top: 5px; font-size: 13.5px; }

/* ---------- Request ---------- */
.request-section { background: var(--paper); }
.contact-card { padding: 22px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--paper-line); display: grid; gap: 8px; max-width: 420px; margin-top: 26px; }
.contact-card a { font-family: 'IBM Plex Mono', monospace; font-size: 14px; }
.request-form { padding: 30px; border-radius: var(--radius-m); background: var(--graphite); color: white; border: 1px solid var(--graphite-line); display: grid; gap: 16px; }
.request-form label { display: grid; gap: 8px; font-weight: 500; font-size: 14px; }
.request-form input, .request-form select, .request-form textarea {
  width: 100%; border: 1px solid var(--graphite-line); border-radius: var(--radius-s);
  background: rgba(255,255,255,.04); color: white; padding: 13px 14px; font: inherit; outline: none;
  transition: border .2s ease;
}
.request-form select option { color: #111; }
.request-form input:focus, .request-form select:focus, .request-form textarea:focus { border-color: var(--accent); }
.form-note { margin: 0; font-size: 12.5px; }
code { background: rgba(255,90,31,.12); padding: 2px 6px; border-radius: 4px; color: var(--accent-ink); font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }

/* ---------- Contacts / footer ---------- */
.contacts { padding: 80px 0; }
.contact-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 54px; height: 54px; border-radius: var(--radius-m); display: grid; place-items: center;
  background: #25D366; color: white; font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px); }
.site-footer { background: var(--graphite); color: rgba(255,255,255,.6); padding: 30px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-grid p { margin: 4px 0 0; font-size: 13.5px; }
.footer-grid div:last-child { display: flex; gap: 20px; font-size: 13.5px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .loader-mark { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .desktop-nav, .phone-link, .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .split-grid, .service-grid, .request-grid, .contacts-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 112px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .equipment-row { grid-template-columns: 50px 64px 1fr; }
  .row-cta { grid-column: 2 / -1; margin-top: 4px; }
  .contact-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .site-header { height: 64px; padding: 0 14px; }
  .logo-text small { display: none; }
  .section { padding: 68px 0; }
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  .hero-actions, .contact-actions { flex-direction: column; align-items: stretch; }
  .hero-specs { flex-direction: column; }
  .hero-specs div { border-left: 0; border-top: 1px solid var(--graphite-line); padding: 14px 0 0; }
  .hero-specs div:first-child { border-top: 0; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
  .timeline, .service-cards, .mini-grid { grid-template-columns: 1fr; }
  .equipment-row { grid-template-columns: 40px 56px 1fr; gap: 14px; }
  .premium-panel, .request-form { padding: 22px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}


/* =========================================================================
   Дополнительные стили для многостраничного каталога
   ========================================================================= */

/* Хлебные крошки */
.breadcrumbs { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--steel); margin: 0 0 22px; letter-spacing: .02em; }
.breadcrumbs a { color: var(--accent-ink); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--steel-light); margin: 0 6px; }

/* Отступ под фиксированный хедер на внутренних страницах */
.page-main { padding-top: 96px; }

/* Плашка цены */
.price-tag {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: 'IBM Plex Mono', monospace; font-weight: 500;
  color: var(--accent-ink); font-size: 15px; margin: 4px 0 0;
}
.item-card-body .price-tag { font-size: 13.5px; }
.price-tag .cur { opacity: .7; font-size: 12px; }

/* Сетка категорий (каталог) */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.category-card {
  border: 1px solid var(--paper-line); border-radius: var(--radius-m); overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.category-card .cat-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.category-card .cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-card .cat-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.category-card .cat-count {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--steel-light);
  text-transform: uppercase; letter-spacing: .06em;
}
.category-card b { font-size: 16.5px; line-height: 1.25; }
.category-card span.cat-desc { font-size: 13.5px; color: var(--steel); line-height: 1.5; }

/* Карточка товара — фиксированная высота, описание обрезается по строкам */
.item-card { display: flex; flex-direction: column; height: 100%; }
.item-card .item-thumb { aspect-ratio: 4/3; }
.item-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-card-body b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em; line-height: 1.3;
}
.item-card-body > span:not(.price-tag) {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.8em; line-height: 1.4; font-size: 13px; color: var(--steel);
}
.item-card .item-card-price { margin-top: 2px; }
.item-card-body .cat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.cat-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--steel);
  border: 1px solid var(--paper-line); border-radius: 20px; padding: 2px 9px;
}

/* Пагинация */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--paper-line); border-radius: var(--radius-s);
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-ink); }
.pagination .current { background: var(--graphite); color: white; border-color: var(--graphite); }

/* Страница товара */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding: 40px 0 20px; }
.product-gallery-main { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--paper-line); background: var(--paper-2); aspect-ratio: 4/3; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.product-gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--paper-line); }
.product-info h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.product-meta-row { display: flex; gap: 28px; flex-wrap: wrap; margin: 18px 0 22px; padding: 18px 0; border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.product-meta-row div { display: flex; flex-direction: column; gap: 4px; }
.product-meta-row b { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--steel-light); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.product-meta-row span { font-size: 14.5px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--paper-2); border-radius: 20px; padding: 5px 13px; font-size: 13px; }

.product-body { padding: 10px 0 60px; display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.product-desc h2, .product-desc h3 { margin-top: 34px; }
.process-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.process-steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; color: var(--steel); }
.process-steps li::before {
  content: counter(step); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--graphite); color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.warranty-box { background: var(--paper-2); border-radius: var(--radius-m); padding: 20px 22px; margin-top: 30px; border-left: 3px solid var(--accent); }
.warranty-box p { margin: 0; font-size: 14px; white-space: pre-line; }

.product-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { border: 1px solid var(--paper-line); border-radius: var(--radius-m); padding: 22px; background: var(--paper); }
.sidebar-card h3 { font-size: 15px; }
.sidebar-card .btn { width: 100%; margin-top: 12px; }

.related-grid { margin-top: 20px; display: grid; gap: 14px; }
.related-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--paper-line); border-radius: var(--radius-s); }
.related-item img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-s); flex-shrink: 0; }
.related-item span { font-size: 13px; line-height: 1.3; }

.no-image-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, rgba(21,23,26,.055) 0 8px, transparent 8px 16px), var(--paper-2);
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--steel); text-transform: uppercase; letter-spacing: .04em;
}

/* ---------- Поиск на главной ---------- */
.search-block { max-width: 640px; margin: 0 auto 8px; position: relative; }
.search-input-wrap { position: relative; }
.search-input-wrap input {
  width: 100%; padding: 16px 20px 16px 48px; border-radius: var(--radius-m);
  border: 1px solid var(--graphite-line); background: rgba(255,255,255,.06); color: white;
  font: inherit; font-size: 15px; outline: none; transition: border .2s ease;
}
.search-input-wrap input::placeholder { color: rgba(255,255,255,.45); }
.search-input-wrap input:focus { border-color: var(--accent); background: rgba(255,255,255,.1); }
.search-input-wrap .search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; opacity: .5;
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: var(--paper); border: 1px solid var(--paper-line); border-radius: var(--radius-m);
  box-shadow: 0 20px 48px rgba(0,0,0,.28); max-height: 420px; overflow-y: auto; display: none;
}
.search-results.active { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--paper-line);
  text-align: left;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--paper-2); }
.search-result-item img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-s); flex-shrink: 0; background: var(--paper-2); }
.search-result-item .sr-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-result-item b { font-size: 13.5px; color: var(--ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-item span { font-size: 12px; color: var(--steel); }
.search-empty { padding: 18px 16px; font-size: 13.5px; color: var(--steel); }
.search-count { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: rgba(255,255,255,.5); margin-top: 10px; text-align: center; }

@media (max-width: 900px) {
  .product-hero, .product-body { grid-template-columns: 1fr; }
}
