/* ==========================================================================
   Guilin Hongcheng (HCM) — Industrial B2B Portal Stylesheet v3.2
   Spacious architectural rhythm, elevated high-tech styling,
   prominent search console & responsive layout
   ========================================================================== */

/* ---------- Reset & Design Tokens ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg:             #ffffff;
  --bg-soft:        #f6f8fb;
  --bg-dark:        #090e17;
  --bg-dark-2:      #111a2e;
  --bg-dark-3:      #192642;

  --text:           #0f172a;
  --text-soft:      #475569;
  --text-mute:      #94a3b8;

  --brand:          #e01f26;
  --brand-2:        #b8151b;
  --brand-light:    #ff4d4f;
  --brand-glow:     rgba(224, 31, 38, 0.25);

  --blue:           #1552b0;
  --blue-2:         #0f3d85;
  --cyan:           #0284c7;

  --line:           #e2e8f0;
  --line-dark:      #22324e;

  --radius:         18px;
  --radius-sm:      12px;

  --container-max:  1340px;
  --gutter:         clamp(20px, 4vw, 44px);
  --section-py:     clamp(76px, 7.5vw, 118px);

  --shadow-sm:      0 2px 8px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:      0 10px 26px -4px rgba(15, 23, 42, 0.09), 0 3px 8px -1px rgba(15, 23, 42, 0.05);
  --shadow-lg:      0 24px 50px -12px rgba(15, 23, 42, 0.16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

button, input, select, textarea {
  font: inherit;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.25;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px -4px rgba(224, 31, 38, 0.45);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  box-shadow: 0 8px 22px -3px rgba(224, 31, 38, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(224, 31, 38, 0.04);
}

.btn--outline {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #f8fbff;
}

.btn--lg {
  padding: 15px 30px;
  font-size: 15.5px;
  border-radius: 13px;
}
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   ТОПБАР, ШАПКА И НАВИГАЦИОННОЕ МЕНЮ
   ========================================================================== */

/* Сервисная верхняя полоса */
.topbar {
  background: #060a12;
  color: #94a3b8;
  font-size: 12px;
  border-bottom: 1px solid #1a2538;
  line-height: 1.2;
  padding: 10px 0;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.topbar__badges {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}
.topbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  flex-shrink: 0;
}
.topbar__stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}
.topbar__stat::before {
  content: "•";
  color: #334155;
}
.topbar__contacts {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.topbar__link:hover {
  color: #ff8a8f;
}
.topbar__duty {
  color: #64748b;
  font-size: 11.5px;
  white-space: nowrap;
}

/* Липкая индустриальная шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.header__inner .brand {
  flex: 0 1 auto;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}

.brand__img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.brand--footer .brand__img {
  height: 42px;
}

/* Навигация десктоп */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  flex: 0 0 auto;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__parent,
.nav__link-direct {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  border-radius: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.nav__parent::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.nav__item:hover .nav__parent,
.nav__item:focus-within .nav__parent,
.nav__link-direct:hover,
.nav__link-direct.is-active,
.nav__parent.is-active {
  color: #e01f26;
  background: var(--bg-soft);
}

.nav__item:hover .nav__parent::after,
.nav__item:focus-within .nav__parent::after {
  transform: rotate(-135deg) translateY(-1px);
  border-color: #e01f26;
}

.nav__dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 380px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 22px 48px -12px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__dropdown-header {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 6px 12px 10px;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 4px;
}

.nav__dropdown a {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.14s ease;
  border-left: 2px solid transparent;
}

.nav__dropdown a strong {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.nav__dropdown a span {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin-top: 4px;
}

.nav__dropdown a:hover {
  background: var(--bg-soft);
  transform: translateX(3px);
}

.nav__dropdown a:hover strong {
  color: #e01f26;
}

.nav__dropdown-highlight {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-left: 3px solid #1552b0 !important;
  margin-top: 6px;
}
.nav__dropdown a.nav__dropdown-highlight strong {
  color: #1552b0;
}
.nav__dropdown a.nav__dropdown-highlight:hover strong {
  color: #0f3d85;
}

.nav__toggle {
  display: none;
  align-self: center;
  width: 44px;
  height: 44px;
  margin: 6px 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.nav__toggle::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.nav__item.is-open .nav__toggle::before {
  transform: rotate(-135deg);
}

/* Правый блок действий */
.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

/* Кнопка быстрого поиска в шапке */
.header__search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.header__search:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(224, 31, 38, 0.12);
}
.header__search-icon {
  flex-shrink: 0;
  color: var(--blue);
  transition: color 0.18s ease;
}
.header__search:hover .header__search-icon {
  color: var(--brand);
}
.header__search-text {
  line-height: 1;
}
.header__search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  line-height: 1;
}

.header__cta {
  flex-shrink: 0;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav__item:last-of-type .nav__dropdown {
  left: auto;
  right: 0;
}
.nav__item:last-of-type .nav__dropdown::before {
  left: auto;
  width: 100%;
}

@media (max-width: 1320px) {
  .container {
    padding: 0 24px;
  }
  .header__inner {
    height: 78px;
    gap: 16px;
  }
  .brand__img {
    height: 38px;
    max-width: 185px;
  }
  .nav {
    gap: 2px;
  }
  .nav__parent,
  .nav__link-direct {
    padding: 10px 9px;
    font-size: 15px;
  }
  .header__cta {
    padding: 10px 15px;
    font-size: 13.5px;
  }
  .topbar__duty {
    display: none;
  }
  .header__search-text,
  .header__search-kbd {
    display: none;
  }
  .header__search {
    padding: 9px;
    border-radius: 50%;
  }
}

@media (max-width: 1040px) {
  .topbar {
    display: none;
  }
  .header__inner {
    height: 72px;
  }
  .header__search {
    display: none;
  }
  .header__cta {
    display: none;
  }
  .burger {
    display: flex;
  }
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 2px solid #cbd5e1;
    padding: 16px 20px 32px;
    transform: translateY(-120%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    margin: 0;
  }
  .nav.is-open {
    transform: translateY(0);
  }
  .nav__item {
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid #f1f5f9;
  }
  .nav__link-direct:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
  }
  .nav__parent,
  .nav__link-direct {
    justify-content: space-between;
    padding: 15px 12px;
    font-size: 17px;
    border-radius: 0;
  }
  .nav__parent::after {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 8px 0 12px 16px;
    background: var(--bg-soft);
    margin: 0 0 12px;
    display: none;
    pointer-events: auto;
    min-width: 0;
  }
  .nav__dropdown::before {
    display: none;
  }
  .nav__item.is-open .nav__dropdown {
    display: flex;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 75% 20%, rgba(21, 82, 176, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(224, 31, 38, 0.05), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: clamp(68px, 7vw, 108px) 0 clamp(76px, 7.5vw, 116px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 82, 176, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 82, 176, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 80%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(44px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__content {
  min-width: 0;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px 6px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  font-size: 12.5px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero__title {
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 900;
  line-height: 1.15;
  margin: 12px 0 20px;
  letter-spacing: -0.025em;
  color: #0b1324;
}
.hero__title span {
  background: linear-gradient(135deg, #e01f26 0%, #ff474d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.72;
  max-width: 660px;
  margin-bottom: 26px;
}

/* Медиапанель Hero: пескоделательная машина без фона (прозрачный фон) */
.hero__media {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 30px 60px -20px rgba(11, 19, 36, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06) inset;
  transform: rotate(0.6deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero__media:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 36px 72px -20px rgba(11, 19, 36, 0.22);
}
.hero__img {
  display: block;
  width: 100%;
  height: auto;
}
.hero__caption {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0;
  padding: 34px 20px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #0b1324;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95) 70%);
}
.hero__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hero__badge--model {
  top: 16px;
  left: 16px;
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(224, 31, 38, 0.35);
}
.hero__badge--spec {
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(11, 19, 36, 0.2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hero__stats--strip {
  margin-top: clamp(40px, 4.5vw, 64px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hero__adv {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hero__adv:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.hero__adv strong {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero__adv span {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ---------- Typography & Section Utilities ---------- */
.section {
  padding: var(--section-py) 0;
}
.section--muted {
  background: var(--bg-soft);
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.section--dark {
  background: var(--bg-dark);
  color: #ffffff;
}
.section:not(.section--muted):not(.section--dark) + .section:not(.section--muted):not(.section--dark) {
  border-top: 1px solid var(--line);
}
.section--muted + .section--muted {
  border-top: 1px solid var(--line);
}
.section--dark h2,
.section--dark h3 {
  color: #ffffff;
}
.section__title--light {
  color: #ffffff !important;
}

.section__head {
  max-width: 840px;
  margin-bottom: clamp(42px, 4.5vw, 60px);
}
.section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  max-width: 100%;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow--light {
  color: #ff8a8f;
}
.section__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.section__subtitle {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 780px;
}
.subsection-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 52px 0 24px;
}

/* ---------- Breadcrumbs & Inner Page Headers ---------- */
.page-head {
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
  padding: clamp(56px, 6vw, 88px) 0 clamp(48px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--text-soft);
  font-weight: 600;
}
.breadcrumb a:hover {
  color: var(--brand);
}
.page-head__title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  margin-bottom: 18px;
}
.page-head__lead {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 820px;
  line-height: 1.72;
}

.ok-breadcrumbs-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.ok-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-mute);
}
.ok-breadcrumbs a {
  color: var(--text-soft);
  font-weight: 600;
}
.ok-breadcrumbs a:hover {
  color: var(--brand);
}
.ok-breadcrumbs strong {
  color: var(--text);
}

.ok-catalog-head {
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
  padding: clamp(52px, 5.5vw, 80px) 0 clamp(44px, 4.5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.ok-catalog-head__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}
.ok-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.ok-catalog-head h1 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 780px;
}
.ok-catalog-head p {
  font-size: 16.5px;
  color: var(--text-soft);
  max-width: 740px;
  line-height: 1.7;
}
.ok-showcase {
  position: relative;
}
.ok-showcase__head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------- Заметная поисковая консоль каталога ---------- */
.catalog-search-console {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.catalog-search-console:focus-within {
  border-color: var(--blue);
  box-shadow: 0 10px 28px -4px rgba(21, 82, 176, 0.12);
}
.catalog-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.catalog-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.catalog-search-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  user-select: none;
}
.catalog-search-badge kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #0f172a;
}
.catalog-search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}
.catalog-search-chips__title {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.search-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.search-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--blue);
  transform: translateY(-1px);
}
.search-chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(21, 82, 176, 0.25);
}

.catalog-search-bar .catalog-search-wrap {
  flex: 1;
  width: 100%;
}
.catalog-search-bar .catalog-search-wrap input {
  width: 100%;
  min-width: 0;
  font-size: 15px;
  padding: 13px 40px 13px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.catalog-search-bar .catalog-search-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(224, 31, 38, 0.12);
}

/* ---------- Catalog Tabs & Search Toolbar ---------- */
.catalog-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.group-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.group-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #f8fbff;
}
.group-tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(21, 82, 176, 0.24);
}
.group-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: #f1f5f9;
  color: var(--text-soft);
}
.group-tab.is-active .group-tab__count {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.catalog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.cat-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.cat-tab.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #ffffff;
}

.catalog-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.catalog-search-wrap input {
  padding: 11px 40px 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  min-width: 340px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.catalog-search-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(224, 31, 38, 0.12);
}
#catalogSearchInput::-webkit-search-cancel-button,
#catalogSearchInput::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.catalog-search-wrap button[hidden] {
  display: none;
}
.catalog-search-wrap button {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-mute);
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 14px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-mute);
  flex-wrap: wrap;
}
.catalog-count {
  font-weight: 600;
  color: var(--text-soft);
}
.catalog-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Products Grid & Machine Cards ---------- */
.ok-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.ok-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}
.ok-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.16);
  border-color: #94a3b8;
}
.ok-card__media {
  position: relative;
  height: 224px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}
.ok-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.ok-card:hover .ok-card__img {
  transform: scale(1.05);
}
.ok-card__placeholder {
  font-size: 26px;
  font-weight: 900;
  color: #cbd5e1;
}
.ok-card__status {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}
.ok-card__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.ok-card__code {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 5px 11px;
  border-radius: 7px;
  background: #ffffff;
  color: var(--blue-2);
  font-size: 11.5px;
  font-weight: 800;
  border: 1px solid #dbe2ea;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.ok-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ok-card__cat {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.ok-card__title {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
  cursor: pointer;
}
.ok-card__title:hover {
  color: var(--brand);
}
.ok-card__subtitle {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.62;
  margin-bottom: 20px;
  flex: 1;
}
.ok-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 15px 18px;
  background: var(--bg-soft);
  border-radius: 12px;
  border: 1px solid #eef2f6;
  margin: 0 0 20px;
}
.ok-card__specs dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.ok-card__specs dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.ok-card__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.ok-card__price-label {
  font-size: 12.5px;
  color: var(--text-mute);
  font-weight: 600;
}
.ok-card__price {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand);
}
.ok-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ok-btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  border: 1px solid var(--brand);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.ok-btn-main:hover {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  border-color: var(--brand-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(224, 31, 38, 0.4);
}
.ok-btn-main--lg {
  flex: 0 0 auto;
  padding: 15px 28px;
  font-size: 15px;
  border-radius: 13px;
}
.ok-btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.ok-btn-more:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #f8fbff;
}
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ---------- Spare Parts, Part No. & Data Tables ---------- */
.part-naming-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}
.part-naming-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.part-naming-item strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  margin-bottom: 8px;
}
.part-naming-item span {
  display: block;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}
.spare-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.table-block {
  margin-bottom: 40px;
}
.table-block:last-child {
  margin-bottom: 0;
}
.table-block__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.table-block__note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 920px;
}
.table-block__scroll-hint {
  display: none;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 13px;
}
@media (max-width: 768px) {
  .table-block__scroll-hint { display: block; }
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.spec-table th,
.spec-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.spec-table tbody tr:last-child td {
  border-bottom: none;
}
.spec-table th {
  background: #f8fafc;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  white-space: nowrap;
}
.spec-table tbody tr:hover {
  background: #f8fbff;
}
.spec-table--prose td {
  white-space: normal;
  vertical-align: top;
  line-height: 1.6;
  min-width: 160px;
  max-width: 340px;
}
.spec-table--engineering {
  min-width: 1080px;
  table-layout: fixed;
}
.spec-table--engineering th,
.spec-table--engineering td {
  min-width: 0;
  max-width: none;
  overflow-wrap: anywhere;
}
.spec-table--engineering th {
  white-space: normal;
  line-height: 1.45;
}
.spec-table--engineering th:nth-child(1),
.spec-table--engineering td:nth-child(1) { width: 22%; }
.spec-table--engineering th:nth-child(2),
.spec-table--engineering td:nth-child(2) { width: 28%; }
.spec-table--engineering th:nth-child(3),
.spec-table--engineering td:nth-child(3) { width: 19%; }
.spec-table--engineering th:nth-child(4),
.spec-table--engineering td:nth-child(4) { width: 31%; }
.spec-table--engineering .part-code {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cell-nowrap {
  white-space: nowrap !important;
}
.compare-col-hcm {
  background: rgba(21, 82, 176, 0.05) !important;
  border-left: 2px solid rgba(21, 82, 176, 0.3);
  border-right: 2px solid rgba(21, 82, 176, 0.3);
}
thead th.compare-col-hcm {
  background: var(--blue) !important;
  color: #ffffff !important;
}

.part-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 5px 10px;
  white-space: nowrap;
}
.part-series-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
}
.part-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 400;
  line-height: 1.55;
}
.part-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid var(--blue);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.part-btn:hover {
  background: var(--blue);
  color: #ffffff;
}

/* ---------- Materials & Minerals Grid ---------- */
.materials-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.materials-search input {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 14px;
  min-width: 300px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.materials-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(224, 31, 38, 0.12);
}
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.mineral-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.mineral-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.mineral-card__media {
  position: relative;
  height: 208px;
  overflow: hidden;
  background: #f1f5f9;
}
.mineral-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.mineral-card:hover .mineral-card__media img {
  transform: scale(1.05);
}
.mineral-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
}
.mineral-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mineral-card__cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.mineral-card__title {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.mineral-card__desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.62;
  margin-bottom: 20px;
  flex: 1;
}
.mineral-card__specs {
  display: grid;
  gap: 9px;
  background: var(--bg-soft);
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 22px;
  font-size: 13px;
}
.mineral-card__specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.mineral-card__specs dt {
  color: var(--text-mute);
  font-weight: 600;
}
.mineral-card__specs dd {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}
.mineral-card__footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}
.mineral-card__mills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-mute);
}
.mineral-mills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mineral-mill-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 7px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.mineral-mill-tag:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.mineral-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: transparent;
  transition: all 0.15s ease;
  text-align: center;
}
.mineral-card__btn:hover {
  background: var(--brand);
  color: #fff;
}
.materials-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius);
  padding: 48px 52px;
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: #ffffff;
}
.materials-cta__content {
  min-width: 0;
}
.materials-cta h3 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}
.materials-cta p {
  color: #cbd5e1;
  font-size: 15.5px;
  max-width: 720px;
  line-height: 1.68;
}

/* ---------- Delivery Band (/catalog#delivery) ---------- */
.ok-delivery-band {
  position: relative;
}
.ok-delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.ok-delivery-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ok-delivery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.ok-delivery-card strong {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}
.ok-delivery-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ---------- Portal Showcase Cards (Index Page) ---------- */
.portal-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.portal-card {
  display: flex;
  flex-direction: column;
  padding: 34px 32px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  text-decoration: none;
  color: var(--text);
}
.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px -8px rgba(15, 23, 42, 0.14);
  border-color: var(--brand);
}
.portal-card__icon {
  font-size: 26px;
  margin-bottom: 12px;
  display: inline-block;
}
.portal-card__tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.portal-card h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}
.portal-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.65;
  flex: 1;
}
.portal-card__features {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}
.portal-card__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}
.portal-card__feature::before {
  content: "•";
  color: var(--brand);
  font-weight: 900;
}
.portal-card__go {
  margin-top: 24px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--blue);
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.portal-card:hover .portal-card__go {
  color: var(--brand);
  transform: translateX(4px);
}
.portal-card--accent {
  background: linear-gradient(135deg, #0e1726 0%, #16223a 100%);
  color: #ffffff;
  border-color: #253248;
}
.portal-card--accent h3 { color: #ffffff; }
.portal-card--accent p { color: #a9b4c7; }
.portal-card--accent .portal-card__feature { color: #cbd5e1; }
.portal-card--accent .portal-card__tag {
  background: rgba(224, 31, 38, 0.2);
  color: #ff8a8f;
}
.portal-card--accent .portal-card__go { color: #ff8a8f; }
.portal-card--accent:hover .portal-card__go { color: #ffffff; }

/* ---------- Photo Strips & Factory Stats ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.photo-strip--top {
  margin-top: 0;
}
.photo-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.photo-card img {
  width: 100%;
  height: 244px;
  object-fit: cover;
  transition: transform 0.35s ease;
  background: linear-gradient(135deg, #0e1726 0%, #16223a 100%);
}
.photo-card:hover img {
  transform: scale(1.04);
}
.photo-card figcaption {
  padding: 18px 22px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  flex: 1;
}

.photo-card img:not([src]),
.photo-card img[src=""] {
  visibility: hidden;
}
.photo-card--illustration img {
  object-fit: contain;
  background: #0e1726;
}
.photo-card--scheme img {
  object-fit: contain;
  padding: 12px;
  background: #ffffff;
}
img.is-fallback {
  background: #0e1726;
}
.photo-card:hover img.is-fallback {
  transform: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 36px;
}
.stat-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-tile strong {
  font-size: 30px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-tile span {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.45;
}

/* ---------- Baoshan Industrial Park ---------- */
.baoshan-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin: 0 0 40px;
}
.baoshan-metrics div {
  background: #16223a;
  border: 1px solid #253248;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.baoshan-metrics strong {
  font-size: 28px;
  font-weight: 900;
  color: #ff8a8f;
}
.baoshan-metrics span {
  font-size: 13.5px;
  color: #a9b4c7;
  line-height: 1.45;
}
.baoshan-desc {
  font-size: 16.5px;
  color: #c7d6ea;
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 960px;
}
.baoshan-desc:last-child {
  margin-bottom: 0;
}

/* ---------- About Page Elements ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.72;
  margin: 20px 0 30px;
}
.facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.facts-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  background: var(--bg-soft);
  border-radius: 12px;
  border: 1px solid #eef2f6;
  font-size: 14px;
  line-height: 1.5;
}
.facts-list li span:first-child {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.facts-list li span:last-child {
  color: var(--text-soft);
  text-align: right;
}
.advantages-grid {
  display: grid;
  gap: 20px;
}
.advantage-card {
  padding: 26px 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.advantage-card__metric {
  font-size: 13px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: 0.05em;
}
.advantage-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.advantage-card__text {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.62;
  margin: 0;
}
.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 38px;
  border-left: 2px solid #e2e8f0;
  display: grid;
  gap: 36px;
}
.timeline__item {
  position: relative;
  padding-left: 22px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(224, 31, 38, 0.15);
}
.timeline__body {
  min-width: 0;
}
.timeline__year {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
.timeline__title {
  font-size: 17.5px;
  font-weight: 800;
  margin: 0 0 8px;
}
.timeline__text {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.68;
  max-width: 820px;
  margin: 0;
}
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.cert-card {
  padding: 28px 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 3px solid var(--blue);
}
.cert-card__code {
  font-size: 19px;
  font-weight: 900;
  color: var(--blue-2);
}
.cert-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.net-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 52px;
}
.net-card {
  background: var(--bg-soft);
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
}
.net-card h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 8px;
}
.net-card p {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}
.sub-heading {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 24px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.partner-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.partner-badge:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}
.partner-badge strong {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
}
.partner-badge span {
  font-size: 11.5px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 5px;
}

/* ---------- Industries & Case Studies ---------- */
.industry-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.industry-card__num {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}
.industry-card__title {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

.ind-detail {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.ind-detail[open] {
  border-color: #cbd5e1;
}
.ind-detail__summary {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 32px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: #ffffff;
  transition: background 0.15s ease;
}
.ind-detail__summary::-webkit-details-marker {
  display: none;
}
.ind-detail__summary:hover {
  background: #f8fafc;
}
.ind-detail__index {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ind-detail[open] .ind-detail__index {
  background: var(--blue);
  color: #fff;
}
.ind-detail__heading {
  flex: 1;
}
.ind-detail__heading h3 {
  font-size: 18.5px;
  font-weight: 800;
  margin: 0;
}
.ind-detail__toggle {
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ind-detail__toggle::before,
.ind-detail__toggle::after {
  content: "";
  position: absolute;
  background: var(--brand);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.ind-detail__toggle::before {
  width: 14px;
  height: 2px;
}
.ind-detail__toggle::after {
  width: 2px;
  height: 14px;
}
.ind-detail[open] .ind-detail__toggle::after {
  transform: rotate(90deg);
}
.ind-detail__body {
  padding: 24px 32px 32px;
  border-top: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
}
.ind-detail__body h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.ind-detail__body p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 22px;
}
.ind-detail__body div > p:last-child {
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.filter-pill.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(224, 31, 38, 0.22);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.case-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.case-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0e1726 0%, #16223a 100%);
}
.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.case-card:hover .case-card__media img {
  transform: scale(1.04);
}
.case-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px 28px;
  flex: 1;
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.case-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.case-card__model {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: var(--blue);
  padding: 4px 10px;
  border-radius: 6px;
}
.case-card__region {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
}
.case-card__material {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}
.case-card__note {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.62;
}
.case-card__note:last-child {
  flex: 1;
}

/* ---------- Energy table block (HCH) ---------- */
.factory-gallery__head {
  margin-top: 60px;
  margin-bottom: 0;
}
.factory-gallery__head .section__title {
  font-size: 26px;
}
.hch-energy {
  margin-top: 64px;
}
.hch-energy .section__head {
  margin-bottom: 28px;
}

/* ---------- Service EPC & Manufacturing ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-card__num {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
}
.step-card__title {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.35;
}
.step-card__text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.62;
}

.spare-banner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}
.spare-banner__text {
  font-size: 16.5px;
  color: #c7d6ea;
  line-height: 1.72;
  margin-top: 18px;
}
.spare-banner__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #253248;
  box-shadow: var(--shadow-lg);
}
.spare-banner__photo img {
  width: 100%;
  height: 264px;
  object-fit: cover;
  background: linear-gradient(135deg, #0e1726 0%, #16223a 100%);
}
.spare-banner__photo figcaption {
  padding: 14px 18px;
  background: #16223a;
  color: #a9b4c7;
  font-size: 13px;
}
.spare-banner__photo img:not([src]),
.spare-banner__photo img[src=""] {
  visibility: hidden;
}
.spare-banner__photo--illustration img {
  object-fit: contain;
  background: #0e1726;
}

.manuf-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.manuf-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.manuf-card__tag {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 7px;
  background: #f1f5f9;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.manuf-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 13px;
}
.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #12b76a;
  font-weight: 900;
  font-size: 13.5px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 52px;
  align-items: center;
}
.support-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.support-metrics div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.support-metrics strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 6px;
}
.support-metrics span {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.45;
}

/* ---------- 14 Engineering Advantages & Smart Factory (/technology) ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.tech-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.tech-card__num {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.tech-card__title {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}
.tech-card__text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

.smart-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: start;
}
.smart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.smart-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.smart-card__num {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ff8a8f;
}
.smart-card p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.65;
}
.scheme-box {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.scheme-box img {
  width: 100%;
  height: auto;
  padding: 20px;
  background: #ffffff;
}
.scheme-box figcaption {
  padding: 16px 22px;
  background: var(--bg-dark-2);
  color: #a9b4c7;
  font-size: 13.5px;
  line-height: 1.55;
  border-top: 1px solid var(--line-dark);
}

/* ---------- Engineering, Drawings & Maintenance ---------- */
.drawing-showcase {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 0;
}
.drawing-panel {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #1e293b;
  border-radius: var(--radius);
  padding: 30px;
}
.drawing-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.drawing-panel__tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 5px;
  padding: 5px 10px;
}
.drawing-panel__title {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
}
.blueprint-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #0b1220;
  border: 1px solid rgba(96, 165, 250, 0.22);
}
.drawing-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.drawing-render-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
.drawing-render-card img {
  width: 100%;
  height: 224px;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 12px;
}
.drawing-render-card__caption {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.6;
}
.drawing-legend {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  flex: 1;
}
.drawing-legend h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
.drawing-legend ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 13px;
}
.drawing-legend li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}
.drawing-legend li span {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 0;
}
.manual-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: var(--shadow-sm);
}
.manual-card h3 {
  font-size: 18.5px;
  font-weight: 800;
  margin-bottom: 8px;
}
.manual-card__sub {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 22px;
  line-height: 1.55;
}
.manual-checklist,
.manual-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.manual-checklist li {
  position: relative;
  padding: 14px 18px 14px 46px;
  background: var(--bg-soft);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.manual-checklist li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.manual-steps li {
  padding: 14px 18px;
  background: var(--bg-soft);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
}

.maintenance-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 0;
}
.maint-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.maint-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.maint-card__code {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: var(--blue);
  border-radius: 5px;
  padding: 4px 10px;
}
.maint-card h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}
.maint-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Contacts & Forms ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1.08fr 1.32fr;
  gap: 60px;
  align-items: start;
}
.contacts-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 12px;
}
.contacts-list li {
  padding: 15px 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.contacts-list li span:first-child {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.contacts-list li span:last-child {
  text-align: right;
  color: var(--text-soft);
}
.contacts-list li a {
  color: var(--blue);
  font-weight: 600;
}
.contacts-list li a:hover {
  color: var(--brand);
}
.contact-note {
  margin-top: 28px;
  padding: 26px 28px;
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.contact-note strong {
  font-size: 14.5px;
  color: var(--brand-2);
  display: block;
  margin-bottom: 10px;
}
.contact-note ul {
  padding-left: 20px;
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  display: grid;
  gap: 9px;
  line-height: 1.6;
}

.form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.form__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 26px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}
.field span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-soft);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(224, 31, 38, 0.12);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form__status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}
.form__status.is-ok { color: #027a48; }
.form__status.is-err { color: #b42318; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, #0e1726 0%, #16223a 50%, #0f3d85 100%);
  color: #ffffff;
  padding: clamp(72px, 7vw, 96px) 0;
}
.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 44px;
}
.cta-band h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  color: #ffffff;
  margin-bottom: 12px;
}
.cta-band p {
  font-size: 16.5px;
  color: #b6c2d4;
  max-width: 680px;
  line-height: 1.65;
}
.cta-band__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-shrink: 0;
}

/* ---------- Product page badges & tags ---------- */
.product-card__code {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--blue);
  padding: 4px 10px;
  border-radius: 6px;
}
.product-card__category {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  padding: 4px 0;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
a.tag:hover {
  border-color: var(--blue);
  color: var(--blue-2);
  background: #eff6ff;
}

/* ---------- Footer ---------- */
.footer {
  background: #0e1726;
  color: #a9b4c7;
  padding: 80px 0 36px;
  border-top: 1px solid #1e293b;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid #1e293b;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer__note {
  font-size: 14px;
  color: #8996ab;
  line-height: 1.7;
  max-width: 340px;
}
.footer__heading {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
}
.footer__links,
.footer__contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 13px;
  font-size: 14px;
}
.footer__links a {
  color: #a9b4c7;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}
.footer__links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}
.footer__contacts {
  gap: 15px;
}
.footer__contacts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #a9b4c7;
  line-height: 1.55;
}
.footer__contacts span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7a90;
}
.footer__contacts a {
  color: #ffffff;
  transition: color 0.15s ease;
}
.footer__contacts a:hover {
  color: #ff8a8f;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 13px;
  color: #6b7a90;
}

/* ---------- Responsive Layout ---------- */
@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero__stats--strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ok-grid,
  .portal-cards,
  .materials-grid,
  .cases-grid,
  .certs-grid,
  .manuf-columns,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .stats-grid,
  .baoshan-metrics,
  .steps-grid,
  .ok-delivery-grid,
  .maintenance-cards,
  .net-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .footer__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
  }
  .about-grid,
  .contacts-grid,
  .support-grid,
  .spare-banner,
  .drawing-showcase,
  .smart-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ok-catalog-head__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .hero__stats,
  .hero__stats--strip,
  .stats-grid,
  .baoshan-metrics,
  .steps-grid,
  .portal-cards,
  .materials-grid,
  .cases-grid,
  .certs-grid,
  .manuf-columns,
  .tech-grid,
  .smart-grid,
  .ok-grid,
  .ok-delivery-grid,
  .photo-strip,
  .net-grid,
  .maintenance-cards,
  .manual-grid,
  .part-naming-banner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section__head--row,
  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .catalog-search-wrap,
  .materials-search {
    width: 100%;
  }
  .catalog-search-wrap input,
  .materials-search input {
    width: 100%;
    min-width: 0;
  }
  .materials-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 26px;
    gap: 24px;
  }
  .form {
    padding: 28px 22px;
  }
  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ind-detail__summary {
    padding: 20px 22px;
  }
  .ind-detail__body {
    grid-template-columns: 1fr;
    padding: 20px 22px 26px;
    gap: 24px;
  }
  .catalog-search-bar {
    flex-wrap: wrap;
  }
  .catalog-search-badge {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand__img {
    height: 36px;
    max-width: 190px;
  }
  .brand--footer .brand__img {
    height: 34px;
  }
  .ok-card__body,
  .mineral-card__body,
  .portal-card,
  .case-card,
  .tech-card,
  .manuf-card,
  .manual-card {
    padding: 22px;
  }
}

/* ==========================================================================
   Compatibility & Additional Page Components
   ========================================================================== */

/* Available focus ring (accessibility) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Container of <details class="ind-detail"> on /industries */
.accordion {
  display: grid;
  gap: 18px;
}
.accordion .ind-detail {
  margin-bottom: 0;
}

/* R&D section rendered by loadResearch() on /technology */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.research-block {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.research-block h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.uni-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.uni-tag {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}
.patent-highlight {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid #eef2f6;
  border-radius: var(--radius-sm);
}
.patent-highlight strong {
  font-size: 26px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1.1;
}
.patent-highlight span {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Кнопки на тёмном фоне (CTA-полоса и section--dark) */
.cta-band .btn--ghost,
.section--dark .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta-band .btn--ghost:hover,
.section--dark .btn--ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .research-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Engineering reference cards ---------- */
.data-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.data-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.data-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}
.data-card__summary {
  margin-bottom: 16px;
  color: var(--text-soft);
  line-height: 1.65;
}
.data-card ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.62;
}
@media (max-width: 900px) {
  .data-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .data-card-grid { grid-template-columns: 1fr; }
  .data-card { padding: 22px; }
}

/* ---------- Страница отдельного продукта (/product) ---------- */
#productDetailContainer > .container.section {
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}
.product-page__loading {
  text-align: center;
}
.product-page__loading p {
  font-size: 18px;
  color: #64748b;
}
.product-page__hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.product-page__info {
  min-width: 0;
}
.product-page__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.product-page__title {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 16px;
}
.product-page__subtitle {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 28px;
}
.product-page__specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 0 0 32px;
}
.product-page__specs-grid dt {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 5px;
}
.product-page__specs-grid dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.product-page__quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.product-page__quick-btns .ok-btn-main,
.product-page__order .ok-btn-main {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.product-page__gallery {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.product-page__photo {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.product-page__block {
  margin-bottom: 60px;
}
.product-page__desc {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 920px;
}
.tag-list + .product-page__desc {
  margin-top: 20px;
}
.product-page__source {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}
.product-page__source a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-page__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -24px 0 48px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.product-page__nav a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.product-page__nav a:hover,
.product-page__nav a:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff5f5;
}
.product-page__block[id] {
  scroll-margin-top: 104px;
}
.product-applications {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-applications__item {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
}
.product-check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  max-width: 920px;
}
.product-check-list li {
  position: relative;
  padding: 14px 18px 14px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}
.product-check-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 14px;
  color: var(--blue);
  font-weight: 900;
}
.product-sources {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  max-width: 920px;
}
.product-sources__item {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
.product-sources__item a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-sources__item span {
  color: var(--text-soft);
}
.product-page__schematic {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.product-page__schematic img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  margin: 0 auto;
}
.product-page__order {
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius);
  padding: 48px 52px;
  margin-top: 72px;
  scroll-margin-top: 104px;
}
.product-page__order-head {
  margin-bottom: 30px;
}
.product-page__order-head h2 {
  font-size: 25px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.product-page__order-head p {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}
.product-page__error {
  text-align: center;
}
.product-page__error p {
  color: #64748b;
  margin: 18px 0 28px;
}

/* ---------- Схемы, сборочные чертежи и компоновки на странице продукта ---------- */
.product-schematics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 28px;
  margin-top: 20px;
}
.schematic-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.schematic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.schematic-card__media {
  position: relative;
  background: #0b1220;
  padding: 16px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-decoration: none;
}
.schematic-card__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #1e3a5f;
  background: rgba(15, 23, 42, 0.82);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.schematic-card__media:hover .schematic-card__zoom,
.schematic-card__media:focus-visible .schematic-card__zoom {
  opacity: 1;
}
.schematic-card__media img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
}
.schematic-card__body {
  padding: 22px 24px 26px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.schematic-card__title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}
.schematic-card__caption {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ---------- Ключевые инженерные узлы и конструктивные патенты ---------- */
.product-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.product-feature-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 24px 26px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.product-feature-card__num {
  font-size: 12px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 0.08em;
}
.product-feature-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}
.product-feature-card__text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ---------- Видео, методики испытаний и принцип работы ---------- */
.product-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.product-video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.product-video-card__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--bg-dark);
}
.product-video-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 24px 24px;
}
.product-video-card__title {
  font-size: 16px;
}
.product-video-card__link,
.product-faq-card__link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-methods {
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.product-methods__summary {
  cursor: pointer;
  font-weight: 800;
  line-height: 1.4;
}
.product-methods__list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}
.product-principles {
  display: grid;
  gap: 28px;
}
.product-principles__item {
  min-width: 0;
}
.product-principles__title {
  margin-bottom: 12px;
  font-size: 18px;
}
.product-principles__figure {
  max-width: 920px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.product-principles__figure img {
  width: 100%;
  height: auto;
}
.product-principles__caption {
  padding: 12px 16px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}
.product-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.product-faq-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.product-faq-card__title {
  font-size: 17px;
}
.product-faq-card__text {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}
.product-faq-card__link {
  margin-top: auto;
}

@media (max-width: 1024px) {
  .product-schematics-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .product-schematics-grid,
  .product-features-grid,
  .product-video-grid,
  .product-faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-methods {
    padding: 20px;
  }
  #productParameters .spec-table {
    width: max-content;
    min-width: 100%;
  }
  #productParameters .spec-table th,
  #productParameters .spec-table td {
    padding: 12px 14px;
  }
  #productParameters .spec-table th:first-child,
  #productParameters .spec-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 155px;
    max-width: 180px;
    width: 180px;
    white-space: normal;
    overflow-wrap: anywhere;
    background: #fff;
    box-shadow: 1px 0 0 var(--line);
  }
  #productParameters .spec-table th:first-child {
    z-index: 2;
    background: #f8fafc;
  }
  #productParameters .spec-table th:not(:first-child),
  #productParameters .spec-table td:not(:first-child) {
    min-width: 100px;
  }
  .schematic-card__body {
    padding: 18px 18px 22px;
  }
  .product-feature-card {
    padding: 20px 20px 22px;
  }
}

@media (max-width: 900px) {
  .product-page__hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-page__specs-grid {
    grid-template-columns: 1fr;
  }
  .product-page__order {
    padding: 30px 22px;
  }
}

/* ---------- Видеопрезентация завода на главной (Go into Hongcheng) ---------- */
.promo-video {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 9vw, 144px) 0;
  background:
    radial-gradient(circle at 82% 28%, rgba(21, 82, 176, 0.24), transparent 55%),
    var(--bg-dark);
}
.promo-video .section__head {
  margin-bottom: clamp(48px, 5vw, 72px);
}
.promo-video__subtitle {
  margin-top: 18px;
  font-size: 16.5px;
  color: #b8c7dc;
  line-height: 1.75;
  max-width: 780px;
}
.promo-video__badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 26px);
  margin-bottom: clamp(52px, 5.5vw, 76px);
}
.promo-video__badge {
  background: rgba(22, 34, 58, 0.88);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: clamp(22px, 2vw, 28px) clamp(22px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.promo-video__badge strong {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.promo-video__badge span {
  font-size: 13px;
  color: #9fb0c7;
  line-height: 1.45;
}
.promo-video__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}
.promo-video__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.promo-video__heading {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.32;
}
.promo-video__text {
  font-size: 15.5px;
  color: #c7d6ea;
  line-height: 1.72;
}
.promo-video__list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: #b8c7dc;
  line-height: 1.6;
}
.promo-video__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}
.promo-video__media {
  min-width: 0;
}
.promo-video__frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #2b3b55;
  background: #090e17;
  box-shadow: 0 24px 52px -12px rgba(0, 0, 0, 0.55);
}
.promo-video__player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #090e17;
}
.promo-video__fallback-link {
  color: #ff8a8f;
  text-decoration: underline;
}
.promo-video__hint {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #8fa0bb;
}

@media (max-width: 1040px) {
  .promo-video__badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .promo-video__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .promo-video {
    padding: 64px 0;
  }
  .promo-video .section__head {
    margin-bottom: 36px;
  }
  .promo-video__badges {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
  }
  .promo-video__badge {
    padding: 20px 20px;
  }
  .promo-video__info {
    gap: 18px;
  }
}

/* ==========================================================================
   SemiTEq-inspired high-tech industrial effects
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand) 0%, #ff6b6b 40%, var(--blue) 80%, #60a5fa 100%);
  transition: width 0.08s ease-out;
  box-shadow: 0 0 10px rgba(224, 31, 38, 0.6);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal--visible {
  opacity: 1;
  transform: translate(0);
}
.reveal--left { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal--stagger.reveal--visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal--stagger.reveal--visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal--stagger.reveal--visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal--stagger.reveal--visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal--stagger.reveal--visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal--stagger.reveal--visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal--stagger.reveal--visible > *:nth-child(6) { transition-delay: 0.4s; }

.has-spotlight {
  position: relative;
  isolation: isolate;
  background-clip: padding-box;
}
.has-spotlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(224, 31, 38, 0.18), rgba(21, 82, 176, 0.12) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.has-spotlight:hover::before {
  opacity: 1;
}

.counter-animated {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: color 0.3s;
}
.counter-animating {
  color: var(--brand) !important;
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  border: 1px solid #334155;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}
.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-3px);
}
.back-to-top__circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.back-to-top__progress {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  transition: stroke-dashoffset 0.1s linear;
}
.back-to-top:hover .back-to-top__progress {
  stroke: #fff;
}

/* Кнопка «наверх» не должна прятаться под кнопкой виджета чата. */
body:has(.chat-widget-launcher) .back-to-top {
  right: 96px;
  bottom: 28px;
}

@media (max-width: 640px) {
  body:has(.chat-widget-launcher) .back-to-top {
    right: 80px;
    bottom: 17px;
  }
}
.back-to-top__arrow {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 440px;
  background: rgba(14, 23, 38, 0.96);
  backdrop-filter: blur(12px);
  color: #cbd5e1;
  border: 1px solid #253248;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner--visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.cookie-banner__inner,
.cookie-banner__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-banner__content {
  gap: 6px;
}
.cookie-banner__title {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
.cookie-banner__text {
  font-size: 12.5px;
  line-height: 1.55;
  color: #94a3b8;
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-banner__btn,
.cookie-banner__close {
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}
.cookie-banner__btn {
  background: var(--brand);
  color: #fff;
  border: 0;
}
.cookie-banner__close {
  padding-inline: 14px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid #334155;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pulse-dot__core,
.pulse-dot__ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}
.pulse-dot__ring {
  position: absolute;
  animation: pulseDotWave 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}
@keyframes pulseDotWave {
  to { transform: scale(3.2); opacity: 0; }
}

.semiteq-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(224, 31, 38, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.semiteq-num {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot__ring {
    animation: none;
  }
  .reveal,
  .reveal--stagger > * {
    transition: none;
  }
}
@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* ---------- Full-site QA fixes (narrow screens and slide archive) ---------- */
.table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.presentation-archive-link {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.archive-slide-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.archive-slide-picker select {
  width: min(100%, 520px);
  min-width: 0;
}

@media (max-width: 768px) {
  .about-grid > *,
  .contacts-grid > *,
  .section__head--row > div {
    min-width: 0;
  }

  .section__head--row > .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .facts-list li,
  .contacts-list li {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 12px;
  }

  .facts-list li span:first-child,
  .contacts-list li span:first-child {
    white-space: normal;
  }

  .facts-list li span:last-child,
  .contacts-list li span:last-child {
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .contacts-list li a {
    overflow-wrap: anywhere;
  }

  .support-grid > *,
  .support-metrics > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cta-band__btns {
    width: 100%;
    max-width: 100%;
    flex-shrink: 1;
  }

  .cta-band__btns .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  main {
    max-width: 100%;
    overflow-x: clip;
  }
}

/* ==========================================================================
   Presentation-derived blocks (slides 005, 026–028, 043–049, 054–059, 066, 075, 076)
   ========================================================================== */

/* ---------- Baoshan park: генплан и ключевые тезисы ---------- */
.baoshan-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}
.baoshan-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.baoshan-highlights li {
  color: #c7d6ea;
}
.baoshan-highlights li::before {
  color: #ff8a8f;
}
.baoshan-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #253248;
  background: #16223a;
  box-shadow: var(--shadow-lg);
}
.baoshan-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.baoshan-figure__caption {
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #a9b4c7;
}

/* ---------- Подзаголовок внутри секции ---------- */
.subsection-head {
  margin-top: 64px;
  margin-bottom: 30px;
  max-width: 880px;
}
.subsection-head .subsection-title {
  margin: 0;
}
.subsection-head .section__subtitle {
  margin-top: 14px;
}

/* ---------- Опытно-промышленный цех и аналитическая лаборатория ---------- */
.testing-workshop {
  display: grid;
  gap: 28px;
  min-width: 0;
}
.testing-workshop h4 {
  font-size: 18px;
  line-height: 1.4;
}
.testing-workshop .manuf-card h4 {
  margin-bottom: 18px;
}
.testing-workshop__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
.testing-workshop__metrics > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}
.testing-workshop__metrics dt {
  font-size: 13px;
  color: var(--text-soft);
}
.testing-workshop__metrics dd {
  order: -1;
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--blue);
}
.testing-workshop__overview {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
  gap: 32px;
}
.testing-workshop__intro {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.testing-workshop__intro p,
.testing-workshop .research-block p {
  color: var(--text-soft);
  font-size: 15px;
}
.testing-workshop__photo img {
  height: auto;
}
.testing-workshop__photo:hover img {
  transform: none;
}
.testing-workshop__note {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
}
.testing-workshop__materials {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}
.testing-workshop__materials summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.testing-workshop__materials[open] summary {
  margin-bottom: 20px;
}
.testing-workshop__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}
.testing-workshop__actions .btn {
  white-space: normal;
}
.testing-workshop-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.testing-workshop-link:hover {
  color: #ffffff;
}
.testing-workshop__materials summary:focus-visible,
.testing-workshop-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
@media (max-width: 1080px) {
  .testing-workshop__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .testing-workshop__overview {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .testing-workshop {
    gap: 22px;
  }
  .testing-workshop__metrics {
    gap: 12px;
  }
  .testing-workshop__metrics > div {
    padding: 18px 14px;
  }
  .testing-workshop__materials {
    padding: 22px;
  }
}
@media (max-width: 420px) {
  .testing-workshop__metrics {
    grid-template-columns: 1fr;
  }
}

/* ---------- Сравнение узлов HLM с аналогами (слайды 026–028, 038) ---------- */
.compare-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.compare-detail-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.compare-detail-card__tag {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare-detail-card__title {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}
.compare-detail-card__row {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid #eef2f7;
}
.compare-detail-card__row--hcm {
  background: rgba(21, 82, 176, 0.05);
  border-color: rgba(21, 82, 176, 0.25);
}
.compare-detail-card__label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.compare-detail-card__row--hcm .compare-detail-card__label {
  color: var(--blue);
}
.compare-detail-card__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* ---------- 10 патентов серии HC ---------- */
.patent-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.patent-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.patent-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.patent-card__num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--brand);
}
.patent-card__title {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}
.patent-card__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}
.patent-card__slide {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
}
.patent-card__slide:hover {
  text-decoration: underline;
}

/* ---------- Эволюция серии HCH (слайд 066) ---------- */
.evolution-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.evolution-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.evolution-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.evolution-step__index {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1.2;
}
.evolution-step__model {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.evolution-step__note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}
.evolution-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1220;
  box-shadow: var(--shadow-sm);
}
.evolution-figure img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}
.evolution-figure__caption {
  padding: 14px 18px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* ---------- Поставочные блоки OMYA и EPC (слайды 075, 076) ---------- */
.cases-extra {
  margin-top: 64px;
}
.cases-extra__lead {
  margin-bottom: 26px;
}
.epc-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.epc-feature__media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1220;
  box-shadow: var(--shadow-sm);
}
.epc-feature__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0b1220;
}
.epc-feature__caption {
  padding: 14px 18px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}
.epc-feature__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.epc-feature__title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}
.epc-feature__meta {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* ---------- Галерея узлов в карточке оборудования (/product) ----------
   Самодостаточный блок: только фото, компактная подпись и открытие в полный
   размер — без ссылок на архив презентации и pptx. */
.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.product-gallery-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.product-gallery-card__media {
  position: relative;
  display: block;
  background: #f1f5f9;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-gallery-card:hover .product-gallery-card__media img {
  transform: scale(1.05);
}
.product-gallery-card__media[href]::after {
  content: "↗";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(13, 24, 33, 0.72);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.product-gallery-card:hover .product-gallery-card__media[href]::after {
  opacity: 1;
}
.product-gallery-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 12px;
}
.product-gallery-card__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}
.product-gallery-card__title a {
  color: inherit;
  text-decoration: none;
}
.product-gallery-card__title a:hover {
  color: var(--hcm-red);
  text-decoration: underline;
}
.product-gallery-card__caption {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) {
  .product-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* ---------- Страница слайда (/slide/N) — контент из архива презентации ---------- */
.slide-page__loading,
.slide-page__empty {
  padding-block: 48px;
}
.slide-page__head {
  max-width: 860px;
}
.slide-page__title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin: 14px 0 10px;
}
.slide-page__content {
  max-width: 960px;
  margin-top: 26px;
}
.slide-page__paragraph {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 14px;
}
.slide-page__paragraph:last-child {
  margin-bottom: 0;
}
.slide-page__table-wrap {
  overflow-x: auto;
  margin: 22px 0;
}
.slide-page__table-wrap table {
  min-width: 560px;
}
.slide-page__media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.slide-page__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f8fafc;
}
.slide-page__figure img {
  width: 100%;
  height: auto;
  display: block;
}
.slide-page__video {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 26px auto;
  background: #090e17;
  border-radius: var(--radius-sm);
}
.slide-page__nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.slide-page__nav-link {
  max-width: 46%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .slide-page__nav {
    flex-direction: column;
    align-items: stretch;
  }
  .slide-page__media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .baoshan-layout,
  .evolution-split,
  .epc-feature {
    grid-template-columns: 1fr;
  }
  .compare-detail-grid,
  .patent-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Industrial redesign (вариант A) — слой обновления визуального стиля.
   Источник: пакет hcm-industrial-redesign (static/css/industrial-redesign.css).
   Правила перенесены сюда, чтобы каждый класс из HTML имел стиль именно в
   style.css (требование tests/test_spacing.py). Подключается после базовых
   правил — поэтому переопределяет токены, шапку, hero и карточки.
   Полный откат: удалить этот блок целиком.
   ========================================================================== */
:root {
  --bg: #f5f6f7;
  --bg-soft: #eef1f3;
  --bg-dark: #101820;
  --bg-dark-2: #17232d;
  --text: #17212b;
  --text-soft: #596674;
  --text-mute: #8b96a1;
  --brand: #d9272e;
  --brand-2: #a91d24;
  --brand-light: #f04b50;
  --line: #dce1e5;
  --line-dark: #34424e;
  --radius: 16px;
  --radius-sm: 10px;
  --container-max: 1380px;
  --gutter: clamp(18px, 3.4vw, 48px);
  --section-py: clamp(58px, 6.2vw, 96px);
  --shadow-sm: 0 3px 14px rgba(17, 29, 40, .055);
  --shadow-md: 0 16px 42px rgba(17, 29, 40, .10);
  --shadow-lg: 0 28px 70px rgba(17, 29, 40, .18);
  --font: Inter, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
}

html {
  scroll-padding-top: 112px;
}
body {
  background: #f7f8f9;
  color: var(--text);
  font-size: 15px;
}
::selection {
  color: #ffffff;
  background: var(--brand);
}
.container {
  max-width: var(--container-max);
}

/* ---------- Верхняя информационная строка и навигация ---------- */
.topbar {
  background: #101820;
  border-color: #26333e;
  padding: 9px 0;
}
.topbar__badge {
  color: #f4f6f7;
}
.topbar__stat {
  color: #aeb8c0;
}
.topbar__link {
  color: #d9e0e5;
}
.header {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: #e4e8eb;
  box-shadow: 0 8px 28px rgba(16, 24, 32, .055);
}
.header__inner {
  height: 82px;
  gap: clamp(12px, 1.8vw, 26px);
}
.brand__img {
  max-width: 226px;
  height: 46px;
}
.nav {
  gap: 2px;
}
.nav__parent,
.nav__link-direct {
  font-size: 14px;
  font-weight: 650;
  color: #35424d;
  padding: 10px 11px;
  border-radius: 8px;
}
.nav__item:hover .nav__parent,
.nav__item:focus-within .nav__parent,
.nav__link-direct:hover,
.nav__link-direct.is-active,
.nav__parent.is-active {
  color: var(--brand);
  background: #f7eeee;
}
.nav__dropdown {
  border: 1px solid #e0e5e8;
  border-radius: 4px 4px 13px 13px;
  box-shadow: var(--shadow-lg);
}
.nav__dropdown a:hover {
  background: #f7f8f9;
}
.header__search {
  padding: 10px 15px;
  border-color: #d5dce1;
  background: #f5f7f8;
  color: #263642;
  font-weight: 700;
}
.header__search-icon {
  color: var(--brand);
}
.header__search:hover {
  background: #fff5f5;
  border-color: var(--brand);
  color: var(--brand);
}
.btn {
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: .005em;
}
.btn--primary {
  background: var(--brand);
  box-shadow: 0 7px 18px rgba(217, 39, 46, .19);
}
.btn--primary:hover {
  background: var(--brand-2);
  box-shadow: 0 10px 22px rgba(217, 39, 46, .24);
}
.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff8f8;
}

/* ---------- Главный экран ---------- */
.hero {
  isolation: isolate;
  padding: clamp(54px, 6.4vw, 92px) 0 clamp(48px, 5vw, 76px);
  background: linear-gradient(115deg, #f5f6f7 0%, #ffffff 52%, #edf0f2 100%);
  border-bottom: 1px solid #dfe4e7;
}
.hero::before {
  opacity: .55;
  background-image:
    linear-gradient(rgba(48, 65, 78, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 65, 78, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(110deg, transparent 0%, #000 58%, transparent 100%);
}
.hero__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(34px, 5vw, 78px);
}
.hero__content {
  max-width: 720px;
}
.hero__status {
  background: #ffffff;
  border: 1px solid #dce2e6;
  color: #485866;
  box-shadow: 0 5px 18px rgba(20, 34, 46, .045);
  font-size: 11px;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.hero__title {
  max-width: 760px;
  margin: 18px 0 20px;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 850;
  color: #17232d;
}
.hero__title span {
  background: none;
  color: var(--brand);
  -webkit-text-fill-color: currentColor;
}
.hero__lead {
  max-width: 640px;
  color: #5a6874;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
}
.hero__media {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 45%, #fff 0%, #e8ecef 66%, #dce2e6 100%);
  box-shadow: 0 28px 64px rgba(25, 39, 51, .13), 0 0 0 1px rgba(23, 35, 45, .04);
  transform: none;
}
.hero__media:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 76px rgba(25, 39, 51, .17);
}
.hero__img {
  width: 100%;
  max-height: 470px;
  object-fit: contain;
}
.hero__caption {
  color: #f4f6f7;
  background: linear-gradient(180deg, transparent, rgba(16, 24, 32, .88) 80%);
  padding: 48px 22px 18px;
}
.hero__badge--model {
  background: var(--brand);
}
.hero__badge--spec {
  color: #243441;
}
.hero__actions {
  gap: 10px;
}
.hero__actions .btn {
  min-height: 48px;
}
.hero__stats--strip {
  margin-top: clamp(36px, 4vw, 58px);
  gap: 12px;
}
.hero__adv {
  border: 1px solid #e0e5e8;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 5px 18px rgba(18, 31, 42, .035);
}
.hero__adv:hover {
  border-color: #e6b8ba;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.hero__adv strong {
  color: #1c2b36;
}
.hero__adv span {
  color: #77838d;
}

/* ---------- Ритм разделов, заголовки, карточки ---------- */
.section {
  padding: var(--section-py) 0;
}
.section--muted {
  background: #eef1f3;
}
.section--dark {
  background: linear-gradient(135deg, #111b24 0%, #1c2a35 100%);
  color: #dce3e8;
}
.section__head {
  margin-bottom: clamp(28px, 3vw, 42px);
}
.eyebrow {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section__title {
  color: #1a2731;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.13;
  letter-spacing: -.035em;
}
.section__subtitle {
  max-width: 760px;
  color: #687580;
  font-size: 15px;
  line-height: 1.75;
}
.section--dark .section__title,
.section--dark h2,
.section--dark h3 {
  color: #f5f7f8;
}
.section--dark .section__subtitle,
.section--dark p {
  color: #b4c0c9;
}
.ok-showcase {
  background: #f2f4f5;
}
.ok-showcase__head-actions {
  gap: 10px;
}
.ok-btn-main {
  border-radius: 8px;
}
.ok-grid,
.portal-cards,
.materials-grid,
.cases-grid,
.tech-grid {
  gap: 18px;
}
.ok-card,
.portal-card,
.case-card,
.tech-card,
.manuf-card,
.manual-card,
.mineral-card {
  border: 1px solid #dfe4e7;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(18, 31, 42, .045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ok-card:hover,
.portal-card:hover,
.case-card:hover,
.tech-card:hover,
.manuf-card:hover,
.manual-card:hover,
.mineral-card:hover {
  transform: translateY(-4px);
  border-color: #d9a9ab;
  box-shadow: 0 18px 38px rgba(18, 31, 42, .10);
}
.ok-card__body,
.portal-card {
  padding: 26px;
}
.portal-card {
  background: #ffffff;
}
.portal-card__icon {
  color: var(--brand);
}
.portal-card__go {
  color: var(--brand);
  font-weight: 800;
}

/* ---------- Поиск — функциональный акцент каталога ---------- */
.catalog-search-console {
  border: 1px solid #d8dfe4;
  border-radius: 14px;
  background: #ffffff;
  padding: clamp(18px, 2.3vw, 28px);
  box-shadow: 0 12px 34px rgba(18, 31, 42, .075);
}
.catalog-search-console:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(217, 39, 46, .08), 0 14px 36px rgba(18, 31, 42, .08);
}
.catalog-search-icon {
  color: var(--brand);
}
.catalog-search-bar .catalog-search-wrap input {
  min-height: 54px;
  border: 1px solid #d7dee3;
  border-radius: 9px;
  background: #f9fafb;
  padding: 14px 18px;
  font-size: 15px;
}
.catalog-search-bar .catalog-search-wrap input:focus {
  background: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(217, 39, 46, .10);
}
.search-chip {
  border-radius: 6px;
  background: #f3f5f6;
  border-color: #e0e5e8;
}
.search-chip:hover,
.search-chip.is-active {
  color: var(--brand);
  border-color: #e3b6b8;
  background: #fff2f2;
  box-shadow: none;
}
.group-tab {
  border-radius: 7px;
}
/* Групповой фильтр каталога стоит вплотную к чипам «Часто ищут», поэтому
   его активное состояние получает тот же красный акцент, что и .search-chip. */
.group-tab:hover {
  border-color: #e3b6b8;
  color: var(--brand);
  background: #fff2f2;
}
.group-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(217, 39, 46, .24);
}

/* ---------- Формы, таблицы, футер ---------- */
input,
select,
textarea {
  border-radius: 8px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(217, 39, 46, .09);
}
.form,
.contact-form,
.spec-table,
.table-scroll {
  border-radius: 12px;
}
.spec-table th {
  background: #eef1f3;
  color: #52616d;
}
.spec-table tbody tr:hover {
  background: #f8f1f1;
}
.footer {
  background: #111b24;
  color: #c2ccd3;
  border-top: 1px solid #293640;
}
.footer__heading {
  color: #f3f5f6;
}
.footer__links a,
.footer__contacts a {
  color: #b7c2ca;
}
.footer__links a:hover,
.footer__contacts a:hover {
  color: #ffffff;
}
.footer__bottom {
  border-top-color: #34424d;
  color: #8997a2;
}

/* ---------- Уважение к настройке уменьшенного движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1320px) {
  .header__inner {
    height: 76px;
  }
  .nav__parent,
  .nav__link-direct {
    padding: 9px 8px;
    font-size: 13px;
  }
}
@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero__content {
    max-width: 850px;
  }
  .hero__media {
    min-height: 300px;
  }
  .hero__img {
    max-height: 390px;
  }
}
@media (max-width: 768px) {
  .topbar__contacts {
    display: none;
  }
  .topbar__inner {
    justify-content: center;
  }
  .topbar__badges {
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 14px;
  }
  .header__inner {
    height: 68px;
  }
  .brand__img {
    height: 36px;
    max-width: 176px;
  }
  .header__actions {
    gap: 8px;
  }
  .header__search {
    padding: 9px 10px;
  }
  .header__search-kbd,
  .header__cta {
    display: none;
  }
  .hero {
    padding: 44px 0 48px;
  }
  .hero__title {
    font-size: clamp(34px, 8vw, 48px);
  }
  .hero__lead {
    font-size: 15px;
  }
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__media {
    min-height: 230px;
    padding: 14px;
  }
  .hero__stats--strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section {
    padding: 58px 0;
  }
  .section__title {
    font-size: clamp(26px, 7vw, 34px);
  }
  .catalog-search-console {
    padding: 16px;
  }
  .catalog-search-bar {
    gap: 10px;
  }
  .catalog-search-bar .catalog-search-wrap input {
    min-height: 50px;
    font-size: 14px;
  }
}
@media (max-width: 420px) {
  .topbar__stat {
    font-size: 10px;
  }
  .hero__status {
    align-items: flex-start;
    font-size: 10px;
  }
  .hero__stats--strip {
    gap: 8px;
  }
  .hero__adv {
    padding: 14px;
  }
  .hero__adv strong {
    font-size: 20px;
  }
}

/* ======================================================================
   HCM redesign v2 — полноценная визуальная система поверх исходной сетки
   ====================================================================== */
:root {
  --hcm-ink: #111a22;
  --hcm-ink-2: #1c2934;
  --hcm-steel: #64717d;
  --hcm-red: #d52b32;
  --hcm-red-dark: #ae1f27;
  --hcm-paper: #f4f6f7;
  --hcm-white: #fff;
  --hcm-stroke: #dfe4e8;
  --hcm-radius: 18px;
  --hcm-shadow: 0 18px 50px rgba(13, 27, 38, .10);
}
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--hcm-ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
.container { width: min(100% - 48px, 1320px); }
.topbar { background: var(--hcm-ink); border: 0; min-height: 38px; }
.topbar__inner { min-height: 38px; }
.topbar__badge, .topbar__link { color: #f3f5f6; }
.topbar__stat, .topbar__duty { color: #aeb9c2; }
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid #e6eaed; box-shadow: 0 6px 24px rgba(15,28,38,.045); }
.header__inner { min-height: 82px; }
.brand__img { max-width: 218px; }
.nav__parent, .nav__link-direct { color: #263541; font-weight: 650; }
.nav__parent:hover, .nav__link-direct:hover, .nav__parent.is-active { color: var(--hcm-red); }
.header__search { border: 1px solid #d9e0e5; background: #f5f7f8; border-radius: 9px; min-height: 42px; }
.header__cta, .btn--primary, .ok-btn-main { background: var(--hcm-red); border-color: var(--hcm-red); box-shadow: none; }
.header__cta:hover, .btn--primary:hover, .ok-btn-main:hover { background: var(--hcm-red-dark); border-color: var(--hcm-red-dark); }

/* Главный экран — контрастный инженерный разворот */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(58px, 7vw, 104px) 0 34px; color: #fff; background: radial-gradient(ellipse at 82% 30%, #34434f 0%, #202d37 38%, #111a22 78%); border: 0; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.11) 1px,transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(110deg, transparent, #000 55%, transparent); }
.hero::after { content: "HCM / ENGINEERING"; position: absolute; z-index: -1; right: 2.5%; bottom: 18%; color: rgba(255,255,255,.035); font-size: clamp(56px, 10vw, 150px); font-weight: 900; letter-spacing: -.07em; white-space: nowrap; }
.hero__grid { align-items: center; grid-template-columns: minmax(0,1.02fr) minmax(390px,.98fr); gap: clamp(32px,5vw,76px); }
.hero__content { max-width: 720px; }
.hero__status { display: inline-flex; max-width: 100%; color: #e4ebef; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); box-shadow: none; border-radius: 999px; padding: 9px 14px; font-size: 11px; letter-spacing: .045em; }
.hero .eyebrow { color: #f16a70; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero__title { color: #fff; max-width: 740px; margin: 24px 0 22px; font-size: clamp(40px,5.1vw,70px); line-height: 1.01; letter-spacing: -.055em; font-weight: 850; }
.hero__title span { color: #ff6269; background: none; -webkit-text-fill-color: currentColor; }
.hero__lead { max-width: 620px; color: #c4cdd3; font-size: clamp(15px,1.15vw,17px); line-height: 1.8; }
.hero__actions { margin-top: 30px; gap: 12px; }
.hero__actions .btn { min-height: 52px; padding-inline: 23px; border-radius: 8px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero__media { position: relative; min-height: 450px; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.65); border-radius: 20px; background: linear-gradient(145deg,#fff 0%,#e9eef1 100%); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.hero__img { display: block; width: 100%; max-height: 480px; object-fit: contain; padding: 24px; }
.hero__caption { color: #fff; font-size: 12px; line-height: 1.5; padding: 58px 22px 18px; background: linear-gradient(180deg,transparent,rgba(13,24,33,.88)); }
.hero__badge--model { top: 18px; left: 18px; background: var(--hcm-red); border-radius: 5px; }
.hero__badge--spec { top: 18px; right: 18px; color: #263541; background: #fff; border: 1px solid #e1e6e9; border-radius: 5px; }
.hero__stats--strip { position: relative; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); }
.hero__adv { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.13); border-radius: 10px; box-shadow: none; }
.hero__adv strong { color: #fff; }
.hero__adv span { color: #aebbc4; }
.hero__adv:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }

/* Ритм разделов и заголовки */
.section { padding-block: clamp(58px,7vw,96px); }
.section--muted { background: #f3f5f6; }
.section__head { margin-bottom: 34px; }
.eyebrow { color: var(--hcm-red); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section__title { color: var(--hcm-ink); font-size: clamp(30px,3.6vw,46px); font-weight: 820; letter-spacing: -.045em; line-height: 1.1; }
.section__subtitle { max-width: 760px; color: #66737d; font-size: 16px; line-height: 1.7; }
.section--dark { background: #141f28; }

/* Каталог: чистая сетка и визуальная иерархия */
.ok-showcase { background: #f3f5f6; }
.catalog-group-tabs { gap: 8px; border: 0; }
.group-tab { min-height: 42px; border: 1px solid #d9e0e4; border-radius: 7px; background: #fff; color: #42515c; padding: 9px 16px; font-weight: 700; }
.group-tab.is-active, .group-tab:hover { color: #fff; background: var(--hcm-ink); border-color: var(--hcm-ink); }
.catalog-search-console { margin: 22px 0; padding: 18px; border: 1px solid #dce2e6; border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(16,30,41,.07); }
.catalog-search-bar { min-height: 58px; border: 1px solid #d9e0e4; border-radius: 9px; background: #f7f9fa; padding: 0 15px; }
.catalog-search-console:focus-within { border-color: rgba(213,43,50,.45); box-shadow: 0 15px 36px rgba(16,30,41,.09); }
.catalog-search-bar .catalog-search-wrap input { min-height: 54px; font-size: 15px; }
.catalog-search-icon { color: var(--hcm-red); }
.search-chip { border-radius: 5px; background: #f4f6f7; border-color: #e1e6e9; color: #475661; }
.search-chip:hover { color: var(--hcm-red); border-color: #e7aeb1; background: #fff7f7; }
.catalog-meta { margin-block: 22px 16px; }
.ok-grid { gap: 20px; }
.ok-card { overflow: hidden; border: 1px solid #e0e5e8; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(14,28,38,.035); transition: transform .22s ease,box-shadow .22s ease,border-color .22s ease; }
.ok-card:hover { transform: translateY(-5px); border-color: #e2a5a8; box-shadow: 0 18px 38px rgba(14,28,38,.11); }
.ok-card__media { background: linear-gradient(145deg,#f8fafb,#edf1f3); }
.ok-card__img { padding: 14px; }
.ok-card__body { padding: 20px; }
.ok-card__title { color: #182630; font-size: 19px; letter-spacing: -.02em; }
.ok-card__cat, .ok-card__code { color: var(--hcm-red); font-weight: 800; letter-spacing: .06em; }
.ok-card__specs { border-top: 1px solid #edf0f2; padding-top: 12px; }
.ok-btn-main { border-radius: 7px; min-height: 42px; }

/* Общие внутренние страницы */
.ok-breadcrumbs-bar { background: #f5f7f8; border-bottom: 1px solid #e5e9ec; }
.ok-breadcrumbs { min-height: 46px; }
.ok-catalog-head { background: linear-gradient(115deg,#121d26,#263640); color: #fff; }
.ok-catalog-head h1, .ok-catalog-head__title { color: #fff; }
.ok-catalog-head p { color: #c2ccd2; }
.product-page__hero { border: 1px solid #e2e7ea; border-radius: 16px; box-shadow: var(--hcm-shadow); overflow: hidden; }
.product-page__title { color: #14212b; letter-spacing: -.04em; font-size: clamp(30px,4vw,46px); }
.product-page__specs-grid { border: 1px solid #e1e6e9; border-radius: 12px; overflow: hidden; }
.product-page__specs-grid > * { padding: 12px 16px; }
.product-page__gallery { gap: 14px; }
.about-grid, .contacts-grid { gap: 34px; }
.industry-card, .advantage-card, .service-card, .technology-card { border-radius: 12px; }
.footer { background: #101a23; }
.footer__heading { color: #fff; }
.footer__note, .footer__links a, .footer__contacts { color: #b3bec6; }
.footer__bottom { border-color: rgba(255,255,255,.13); }

@media (max-width: 1080px) {
  .container { width: min(100% - 36px, 1320px); }
  .hero__grid { grid-template-columns: minmax(0,1fr) minmax(300px,.85fr); gap: 28px; }
  .hero__media { min-height: 360px; }
  .nav__parent, .nav__link-direct { padding-inline: 8px; font-size: 13px; }
}
@media (max-width: 780px) {
  .container { width: min(100% - 32px, 1320px); }
  .topbar__stat, .topbar__duty { display: none; }
  .header__inner { min-height: 70px; }
  .brand__img { max-width: 176px; height: auto; }
  .hero { padding-top: 48px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(38px,9vw,58px); }
  .hero__media { min-height: 300px; }
  .hero__img { max-height: 340px; }
  .hero__stats--strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section { padding-block: 56px; }
  .section__head--row { align-items: flex-start; flex-direction: column; }
  .ok-showcase__head-actions { width: 100%; flex-wrap: wrap; }
  .catalog-group-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .group-tab { flex: 0 0 auto; }
  .catalog-search-console { padding: 12px; }
  .catalog-search-badge { display: none; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 28px, 1320px); }
  .topbar__contacts { gap: 10px; }
  .topbar__link { font-size: 11px; }
  .header__search-text, .header__search-kbd, .header__cta { display: none; }
  .header__search { width: 40px; height: 40px; min-height: 40px; justify-content: center; padding: 0; }
  .hero__status { font-size: 9px; line-height: 1.4; border-radius: 8px; }
  .hero__title { font-size: 39px; }
  .hero__lead { font-size: 14px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__media { min-height: 250px; border-radius: 13px; }
  .hero__img { max-height: 270px; padding: 14px; }
  .hero__caption { font-size: 10px; padding: 42px 14px 12px; }
  .hero__stats--strip { gap: 8px; }
  .hero__adv { padding: 13px; }
  .section__title { font-size: 30px; }
  .catalog-search-bar { padding-inline: 9px; }
  .catalog-search-bar .catalog-search-wrap input { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Explicit layout hooks for the catalog sidebar and four-column advantages grid. */
.catalog-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 28px; align-items: start; }
.catalog-sidebar { position: sticky; top: 108px; padding: 22px; border: 1px solid #e0e5e8; border-radius: 13px; background: #fff; }
.catalog-sidebar__head { margin-bottom: 18px; }
.catalog-filter-block { padding-top: 18px; margin-top: 18px; border-top: 1px solid #edf0f2; }
.catalog-filter-block__title { margin-bottom: 12px; color: #263541; font-size: 13px; font-weight: 800; }
.catalog-main { min-width: 0; }
.advantages-grid--4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .advantages-grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .advantages-grid--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Типографика: Inter (текст и кнопки) + Manrope (заголовки).
   Шрифты self-hosted, variable: static/fonts/*.woff2 (cyrillic + latin).
   ========================================================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-var-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/static/fonts/manrope-var-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/static/fonts/manrope-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --font-display: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  --font-button: "Inter", "Segoe UI", Arial, sans-serif;
}
body { font-family: var(--font); }
h1, h2, h3, h4,
.hero__title, .page-head__title, .section__title, .sub-heading,
.ok-catalog-head h1, .product-page__title, .ok-card__title,
.hero__adv strong,
.stat-tile strong, .baoshan-metrics strong, .support-metrics strong,
.patent-highlight strong, .stats-grid strong {
  font-family: var(--font-display);
  letter-spacing: .01em;
}
.btn, .ok-btn-main, .form button, .contact-form button {
  font-family: var(--font-button);
  font-weight: 600;
  letter-spacing: .02em;
}

/* HERO IMAGE V4 — machine is part of the composition, not a separate white card */
.hero__media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  margin: -10px -22px -8px 0;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 92%;
  height: 76%;
  top: 12%;
  left: 4%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.16) 0%, rgba(164,184,197,.075) 42%, transparent 72%);
  filter: blur(24px);
}
.hero__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 570px;
  padding: 0;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(0,0,0,.24));
}
.hero__caption {
  position: static;
  z-index: 2;
  padding: 0;
  margin: 0;
  max-width: 92%;
  color: rgba(235,242,246,.62);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  background: none;
  pointer-events: none;
}
/* Бейджи «Серия HLM» и «Вертикальный валковый помол» убраны с изображения */
@media (max-width: 1100px) {
  .hero__media { margin: 0; }
  .hero__img { max-height: 500px; }
}
@media (max-width: 760px) {
  .hero__media { width: min(100%, 540px); margin: 2px auto 0; }
  .hero__img { max-height: 420px; }
  .hero__caption { font-size: 10px; }
}

/* ==========================================================================
   Заголовок hero: тоньше (Inter), частично поверх изображения справа
   ========================================================================== */
.hero__title {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 620;
  letter-spacing: -.035em;
  text-shadow: 0 8px 28px rgba(8, 15, 22, 0.55);
}
@media (min-width: 901px) {
  .hero__title {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-right: -220px;
  }
}

/* ==========================================================================
   Каталог: единый язык рамок и фильтров
   Одна обводка var(--hcm-stroke), радиусы 12px (панели/карточки) и 8px
   (кнопки/поля/чипы); активный фильтр — тёмный, hover — акцентный красный.
   ========================================================================== */
.catalog-search-console {
  border-color: var(--hcm-stroke);
  border-radius: 12px;
}
.catalog-search-console:focus-within {
  border-color: var(--hcm-stroke);
  box-shadow: 0 12px 32px rgba(16, 30, 41, 0.07);
}
.catalog-search-bar {
  border: 1px solid var(--hcm-stroke);
  border-radius: 8px;
  background: #fff;
}
.catalog-search-bar:focus-within {
  border-color: var(--hcm-red);
  box-shadow: 0 0 0 3px rgba(213, 43, 50, 0.12);
}
.catalog-search-bar .catalog-search-wrap input {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding-left: 4px;
}
.catalog-search-badge {
  border-radius: 8px;
  border-color: var(--hcm-stroke);
}
.catalog-search-badge kbd {
  border-radius: 6px;
  border-color: var(--hcm-stroke);
}
.catalog-search-chips {
  border-top: 1px solid var(--hcm-stroke);
}
.search-chip {
  border-radius: 8px;
  border-color: var(--hcm-stroke);
  background: #fff;
}
.search-chip:hover {
  color: var(--hcm-red);
  border-color: #e7aeb1;
  background: #fff7f7;
}
.search-chip.is-active {
  background: var(--hcm-ink);
  border-color: var(--hcm-ink);
  color: #fff;
  box-shadow: none;
}

.group-tab {
  border-radius: 8px;
  border-color: var(--hcm-stroke);
}
.group-tab:hover {
  color: var(--hcm-red);
  border-color: #e7aeb1;
  background: #fff7f7;
}
.group-tab.is-active {
  background: var(--hcm-ink);
  border-color: var(--hcm-ink);
  color: #fff;
  box-shadow: none;
}
.group-tab__count {
  border-radius: 8px;
}
.cat-tab {
  border-radius: 8px;
  border-color: var(--hcm-stroke);
}
.cat-tab:hover {
  border-color: var(--hcm-red);
  color: var(--hcm-red);
}
.cat-tab.is-active {
  background: var(--hcm-ink);
  border-color: var(--hcm-ink);
  color: #fff;
}
.catalog-search-wrap input {
  border: 1px solid var(--hcm-stroke);
  border-radius: 8px;
}
.catalog-search-wrap input:focus {
  border-color: var(--hcm-red);
}

.catalog-sidebar {
  border-color: var(--hcm-stroke);
  border-radius: 12px;
}
.catalog-filter-block {
  border-top-color: var(--hcm-stroke);
}
.ok-card {
  border-color: var(--hcm-stroke);
  border-radius: 12px;
}
.ok-card:hover {
  border-color: #e2a5a8;
}
.ok-card__media {
  border-bottom-color: var(--hcm-stroke);
}
.ok-card__specs {
  border-top-color: var(--hcm-stroke);
}
.ok-card__status,
.ok-card__code {
  border-radius: 8px;
}
.ok-card__code {
  border-color: var(--hcm-stroke);
}
.data-card {
  border-color: var(--hcm-stroke);
  border-radius: 12px;
}

/* ==========================================================================
   Каталог: ровные фильтры, крупные карточки (2 в ряду), таблица ЗИП без
   горизонтальной прокрутки
   ========================================================================== */
/* Фильтры в сайдбаре — вертикальный стек на всю ширину, счётчик справа */
.catalog-group-tabs {
  flex-direction: column;
  align-items: stretch;
}
.group-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
}
.group-tab__count {
  flex-shrink: 0;
}

/* Карточки продукции: максимум 2 в ряду и крупнее */
@media (min-width: 769px) {
  .ok-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
.ok-card__media { height: 300px; }
.ok-card__body { padding: 26px; }
.ok-card__title { font-size: 21px; }
.ok-card__subtitle { font-size: 14.5px; }
/* Текст характеристик не выпадает за рамку карточки */
.ok-card__body,
.ok-card__specs { min-width: 0; }
.ok-card__specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px 20px;
}
.ok-card__specs dt,
.ok-card__specs dd { overflow-wrap: anywhere; }

/* Таблица ЗИП: 4 колонки, помещается целиком, без скролла */
.spare-table-frame {
  border: 1px solid var(--hcm-stroke);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.spare-parts-table {
  table-layout: fixed;
  width: 100%;
}
.spare-parts-table th,
.spare-parts-table td {
  white-space: normal;
  vertical-align: top;
  padding: 14px 16px;
}
.spare-parts-table th:nth-child(1), .spare-parts-table td:nth-child(1) { width: 20%; }
.spare-parts-table th:nth-child(2), .spare-parts-table td:nth-child(2) { width: 38%; }
.spare-parts-table th:nth-child(3), .spare-parts-table td:nth-child(3) { width: 28%; }
.spare-parts-table th:nth-child(4), .spare-parts-table td:nth-child(4) { width: 14%; }
.spare-parts-table .part-code,
.spare-parts-table .part-series-badge {
  display: inline-block;
  margin: 0 0 6px;
}
.part-name { display: block; }
.part-material {
  display: block;
  font-weight: 700;
  color: var(--hcm-ink);
  line-height: 1.5;
}
.part-props {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.5;
}
@media (max-width: 700px) {
  .spare-parts-table thead { display: none; }
  .spare-parts-table,
  .spare-parts-table tbody { display: block; width: 100%; }
  .spare-parts-table tr {
    display: grid;
    gap: 10px 14px;
    padding: 14px;
    border-bottom: 1px solid var(--hcm-stroke);
  }
  .spare-parts-table tr:last-child { border-bottom: 0; }
  .spare-parts-table td {
    display: block;
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
  }
  .spare-parts-table .part-code { white-space: normal; overflow-wrap: anywhere; }
}

/* Тизер каталога ЗИП на странице сервиса */
.spare-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--hcm-stroke);
  border-radius: 12px;
}
.spare-teaser p {
  margin: 0;
  max-width: 720px;
  color: var(--hcm-steel);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Карточки блока доставки на muted-фоне каталога */
.ok-delivery-card {
  background: #fff;
  border-color: var(--hcm-stroke);
  border-radius: 12px;
}

/* ==========================================================================
   Карточки каталога: изображение продукта помещается целиком
   ========================================================================== */
.ok-card__media {
  height: 420px;
}
.ok-card__img {
  object-fit: contain;
  padding: 26px;
}

/* ==========================================================================
   Шапка каталога: компактная и сбалансированная на больших экранах
   ========================================================================== */
.ok-catalog-head {
  padding: clamp(44px, 4.5vw, 60px) 0 clamp(36px, 3.5vw, 48px);
}
.ok-catalog-head__inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.ok-catalog-head__inner > div:first-child {
  min-width: 0;
}
.ok-catalog-head h1 {
  max-width: 820px;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.18;
}
.ok-catalog-head p {
  max-width: 760px;
}
.ok-showcase__head-actions {
  max-width: none;
  justify-content: flex-start;
}
/* Строки-акценты на главной: «завод № 1» и офис в Москве */
.hero__claims {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 18px;
}
.hero-claim {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c4cdd3;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}
.hero-claim--accent {
  padding: 6px 12px;
  color: #fff;
  font-weight: 800;
  background: var(--hcm-red);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Карточка продукта: убраны рамки в начале страницы
   ========================================================================== */
.product-page__hero {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.product-page__specs-grid {
  border: 0;
}
.product-page__gallery {
  border: 0;
}

/* ==========================================================================
   HOMEPAGE PREMIUM v5 — Montserrat, разгруженный hero, выезд офиса в Москве
   ========================================================================== */

/* Self-hosted Montserrat (variable) для заголовков */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/montserrat-var-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/montserrat-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD;
}

/* Self-hosted Unbounded (variable, expanded) — широкий дисплейный шрифт главного заголовка */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/static/fonts/unbounded-var-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/static/fonts/unbounded-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD;
}

:root {
  --font-display: "Montserrat", "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
}

/* Солидная типографика заголовков */
h1, h2, .section__title, .page-head__title, .ok-catalog-head h1,
.product-page__title, .hero__title {
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h3, h4, .ok-card__title, .sub-heading {
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------- Общие «дорогие» детали ---------- */
::selection { background: rgba(213, 43, 50, 0.2); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--hcm-red);
  outline-offset: 2px;
}

.header { box-shadow: 0 10px 30px rgba(15, 28, 38, 0.06); }
.nav__item:hover .nav__parent,
.nav__item:focus-within .nav__parent,
.nav__parent.is-active {
  background: #f4f6f8;
}
@media (min-width: 1081px) {
  .nav__parent, .nav__link-direct {
    font-size: 15px;
    padding-inline: 10px;
  }
}

/* ---------- Кнопки ---------- */
.btn--primary, .ok-btn-main, .header__cta {
  background: linear-gradient(135deg, #e8343b 0%, #bf1f26 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 26px -8px rgba(191, 31, 38, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn--primary:hover, .ok-btn-main:hover, .header__cta:hover {
  background: linear-gradient(135deg, #ef3d44 0%, #a91a21 100%);
  box-shadow: 0 16px 34px -8px rgba(191, 31, 38, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.ok-btn-main { transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
.btn--outline:hover { border-color: var(--hcm-red); color: var(--hcm-red); background: #fff6f6; }
.cta-band .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section__head { margin-bottom: 40px; }

/* ---------- Hero: разгруженный и сбалансированный ---------- */
.hero {
  background:
    radial-gradient(ellipse at 10% -12%, rgba(213, 43, 50, 0.32) 0%, rgba(213, 43, 50, 0) 46%),
    radial-gradient(ellipse at 88% 32%, #3a4d5c 0%, #202d37 42%, #0e161d 82%),
    #0e161d;
}
@media (min-width: 781px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(36px, 4.6vw, 80px);
  }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-shadow: 0 10px 30px rgba(8, 15, 22, 0.35);
}
@media (min-width: 901px) {
  .hero__title { margin-right: 0; max-width: 700px; }
}
.hero__status {
  color: #e6edf2;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.hero__claims { gap: 12px 16px; margin-bottom: 20px; }
.hero-claim--accent {
  background: linear-gradient(135deg, #e8343b, #bf1f26);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(150, 20, 25, 0.45);
}
.hero-claim--office {
  padding: 8px 16px 8px 12px;
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  animation: office-slide-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}
.hero-claim--office svg { color: #ff6269; flex-shrink: 0; }
@keyframes office-slide-in {
  from { opacity: 0; transform: translateX(84px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Второстепенный текст затемнён и приглушён */
.hero__lead {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(222, 230, 235, 0.52);
  font-size: 14px;
  line-height: 1.62;
  font-weight: 450;
  transition: color 0.35s ease;
}
.hero__lead:hover { color: rgba(228, 235, 239, 0.82); }

.hero__actions { margin-top: 28px; gap: 14px; }
.hero__actions .btn {
  min-height: 54px;
  padding-inline: 26px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.13); border-color: #fff; }

/* Плавное парение мельницы */
.hero__img { animation: hero-float 7s ease-in-out infinite; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero__caption { color: rgba(235, 242, 246, 0.78); }

/* Стеклянные карточки статистики */
.hero__stats--strip { gap: 16px; padding-top: 24px; }
.hero__adv {
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hero__adv:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
}
.hero__adv strong { font-size: 30px; font-weight: 800; color: #fff; }
.hero__adv span { color: #aebbc4; }

/* ---------- Карточки и иконки ---------- */
.ok-card { border-radius: 14px; }
.ok-card:hover {
  transform: translateY(-6px);
  border-color: #e2a5a8;
  box-shadow: 0 26px 50px -12px rgba(14, 28, 38, 0.16);
}
.ok-card__img { transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
.ok-card:hover .ok-card__img { transform: scale(1.03); }

.advantage-card, .industry-card, .portal-card, .service-card, .technology-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.advantage-card:hover, .industry-card:hover, .portal-card:hover,
.service-card:hover, .technology-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px -16px rgba(14, 28, 38, 0.18);
}

.portal-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 22px;
  background: linear-gradient(145deg, #ffffff, #eef2f4);
  border: 1px solid var(--hcm-stroke);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(15, 28, 38, 0.06);
  filter: grayscale(0.2);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.portal-card:hover .portal-card__icon { filter: grayscale(0); transform: scale(1.06); }

/* ---------- Финальный призыв ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #0d1620 0%, #1a2834 55%, #24323e 100%);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 82% 8%, rgba(213, 43, 50, 0.2), transparent 55%);
  pointer-events: none;
}

/* ---------- Подвал ---------- */
.footer__links a { transition: color 0.2s ease, padding-left 0.25s ease; }
.footer__links a:hover { color: #fff; padding-left: 4px; }
.footer__heading { letter-spacing: 0.04em; }

/* ---------- Заголовки каталога и якоря ---------- */
/* Шапка каталога — та же типографика, что у page-head на остальных страницах */
.ok-catalog-head h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
}
/* Цель якорного перехода не прячется под липкой шапкой */
:target {
  scroll-margin-top: 92px;
}

/* ---------- Таблицы: полностью видны без горизонтальной прокрутки ---------- */
.spec-table:not(.spec-table--prose):not(.spare-parts-table) {
  width: 100%;
  table-layout: fixed;
  font-size: 13px;
}
.spec-table:not(.spec-table--prose):not(.spare-parts-table) th,
.spec-table:not(.spec-table--prose):not(.spare-parts-table) td {
  padding: 12px 14px;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.spec-table:not(.spec-table--prose):not(.spare-parts-table) th {
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.spec-table:not(.spec-table--prose):not(.spare-parts-table) tbody tr:nth-child(even) {
  background: #f9fbfc;
}
@media (min-width: 769px) {
  .table-scroll { overflow-x: visible; }
}
.spec-table--engineering { min-width: 0; }
.spec-table--prose th { white-space: normal; }
.spec-table--prose th,
.spec-table--prose td { overflow-wrap: break-word; }
@media (max-width: 768px) {
  .spec-table--wide,
  .spec-table--engineering {
    min-width: 640px;
  }
  #productParameters .spec-table { table-layout: auto; }
}

/* ==========================================================================
   HERO UPGRADE v6.1 — двухстрочный заголовок поверх мельницы, шильдики по силуэту
   ========================================================================== */
.hero {
  --hero-mx: 76%;
  --hero-my: 36%;
  background:
    radial-gradient(620px circle at var(--hero-mx) var(--hero-my), rgba(213, 43, 50, 0.16), transparent 60%),
    radial-gradient(ellipse at 10% -8%, rgba(213, 43, 50, 0.28) 0%, transparent 48%),
    radial-gradient(ellipse at 86% 32%, #354958 0%, #1d2a34 45%, #0c131a 86%),
    #0c131a;
  padding: clamp(64px, 7vw, 104px) 0 clamp(48px, 5vw, 72px);
}
.hero::after {
  content: "HCM · 1982";
  right: 2%;
  bottom: 20%;
  color: rgba(255, 255, 255, 0.028);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.45;
  animation: hero-orb-drift 16s ease-in-out infinite alternate;
}
.hero__orb--red {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(224, 31, 38, 0.52), transparent 70%);
}
.hero__orb--steel {
  width: 540px;
  height: 540px;
  right: -60px;
  top: 40px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 72%);
  animation-delay: -7s;
}
@keyframes hero-orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(26px, 18px) scale(1.08); }
}

.hero .eyebrow {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #ff7a80;
  margin-bottom: 16px;
}
.hero__status {
  margin-bottom: 16px;
}

/* Заголовок: широкий дисплейный Unbounded — увеличен и облегчён (средняя насыщенность
   вместо жирной), занимает заметно больше места в развороте. На экранах шире 1080px
   заходит поверх левой части мельницы, акцент «под ключ» — спокойным красным.
   Размеры подобраны так, чтобы каждая строка не переносилась. */
.hero__title {
  font-family: "Unbounded", "Montserrat", "Manrope", sans-serif;
  font-weight: 500;
  font-size: clamp(40px, calc(3.4vw + 2px), 52px);
  line-height: 1.14;
  letter-spacing: -0.008em;
  text-wrap: auto;
  color: #ffffff;
  margin: 0 0 32px;
  text-shadow: 0 12px 34px rgba(7, 12, 18, 0.85), 0 2px 10px rgba(7, 12, 18, 0.72);
}
@media (min-width: 1081px) {
  .hero__title {
    position: relative;
    z-index: 6;
    max-width: 1060px;
    margin-right: -320px;
  }
}
.hero__title span {
  display: inline-block;
  color: #ff6269;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

/* Лид убран — приветственный блок стал короче, поэтому добавлено воздуха
   между заголовком, бейджами и кнопками */
.hero__claims {
  gap: 14px 18px;
  margin-bottom: 28px;
}
.hero__actions {
  margin-top: 34px;
}

/* Блик на главной кнопке и бейдже завода № 1 */
.hero__btn-shine,
.hero-claim--accent {
  position: relative;
  overflow: hidden;
}
.hero__btn-shine::after,
.hero-claim--accent::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s ease;
}
.hero__btn-shine:hover::after,
.hero-claim--accent:hover::after {
  left: 160%;
}

/* Машина и её шильдики — единый блок, шильдики привязаны к силуэту мельницы */
.hero__media {
  position: relative;
  z-index: 3;
}
.hero__imgwrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  animation: hero-float 7s ease-in-out infinite;
}
.hero__img {
  animation: none;
}
@media (min-width: 1101px) {
  .hero__img {
    max-height: 600px;
  }
}

/* Инженерный видоискатель (reticle) за силуэтом мельницы */
.hero__reticle {
  position: absolute;
  z-index: -1;
  width: min(92%, 460px);
  aspect-ratio: 1 / 1;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(176, 206, 232, 0.26);
  box-shadow:
    0 0 60px rgba(56, 189, 248, 0.08),
    inset 0 0 50px rgba(213, 43, 50, 0.08);
  animation: hero-reticle-spin 42s linear infinite;
  pointer-events: none;
}
.hero__reticle::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
@keyframes hero-reticle-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Выносные инженерные шильдики поверх мельницы */
.hero__callout {
  position: absolute;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(14, 22, 30, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.hero__callout:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 98, 105, 0.65);
  background: rgba(18, 28, 38, 0.9);
}
.hero__callout-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d54;
  box-shadow: 0 0 0 4px rgba(213, 43, 50, 0.24), 0 0 12px rgba(255, 77, 84, 0.8);
  flex-shrink: 0;
}
.hero__callout-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__callout-tag {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a9bac7;
  line-height: 1.2;
}
.hero__callout-val {
  font-family: "Manrope", "Montserrat", sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.hero__callout--top {
  top: 3%;
  right: -16px;
}
.hero__callout--mid {
  top: 50%;
  right: -16px;
}
.hero__callout--bottom {
  bottom: 15%;
  left: -16px;
}

/* Плавное появление элементов при открытии страницы */
.hero__status,
.hero .eyebrow,
.hero__title,
.hero__claims,
.hero__actions {
  animation: hero-fade-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__status { animation-delay: 0.04s; }
.hero .eyebrow { animation-delay: 0.1s; }
.hero__title { animation-delay: 0.16s; }
.hero__claims { animation-delay: 0.24s; }
.hero__actions { animation-delay: 0.32s; }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Выравнивание нижней полосы KPI в границах контейнера */
.hero__stats-wrap {
  position: relative;
  z-index: 4;
}
.hero__stats--strip {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero__adv {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero__adv strong {
  font-family: "Montserrat", "Manrope", sans-serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1080px) {
  .hero__title {
    margin-right: 0;
    max-width: 100%;
  }
  .hero__callout--top,
  .hero__callout--mid {
    right: -8px;
  }
  .hero__callout--bottom {
    left: -8px;
  }
}
/* Планшет: колонка текста сужается, поэтому заголовок снова заходит на картинку */
@media (min-width: 781px) and (max-width: 1080px) {
  .hero__title {
    margin-right: -200px;
    max-width: none;
    font-size: clamp(30px, calc(2.8vw + 9px), 42px);
  }
}
/* Узкий планшет 761–780px: одна колонка, размер чуть ниже базового минимума */
@media (min-width: 761px) and (max-width: 780px) {
  .hero__title {
    font-size: 38px;
  }
}
@media (max-width: 760px) {
  .hero__title {
    font-size: clamp(21px, 6.6vw, 34px);
  }
  .hero__reticle {
    width: min(86%, 320px);
    top: 34%;
  }
  .hero__callout {
    position: static;
    width: min(100%, 340px);
  }
  .hero__adv strong {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__orb,
  .hero__imgwrap,
  .hero__reticle,
  .hero__status,
  .hero .eyebrow,
  .hero__title,
  .hero__claims,
  .hero__actions {
    animation: none !important;
  }
}

/* ==========================================================================
   ОНЛАЙН-ЧАТ (страница /chat)
   ========================================================================== */

.chat-app {
  --chat-bg: #ffffff;
  --chat-bg-soft: #f6f8fb;
  --chat-line: #e2e8f0;
  --chat-text: #0f172a;
  --chat-text-soft: #64748b;
  --chat-opp-bg: #eef2f7;
  --chat-accent: var(--brand);

  position: relative;
  display: flex;
  overflow: hidden;
  height: clamp(540px, calc(100vh - 300px), 780px);
  min-height: 480px;
  background: var(--chat-bg);
  border: 1px solid var(--chat-line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.chat-app[data-theme="dark"] {
  --chat-bg: #0b1322;
  --chat-bg-soft: #111c30;
  --chat-line: #22324e;
  --chat-text: #e2e8f0;
  --chat-text-soft: #94a3b8;
  --chat-opp-bg: #1a2740;
  --chat-accent: #ff4d4f;
}

.chat-auth,
.chat-main {
  flex: 1 1 auto;
  min-width: 0;
}

.chat-auth[hidden],
.chat-main[hidden],
.chat-connection[hidden],
.chat-scroll-pill[hidden] {
  display: none;
}

/* -------- Экран авторизации -------- */

.chat-auth {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 28px;
  overflow-y: auto;
}

.chat-auth__inner {
  width: 100%;
  max-width: 430px;
  margin: auto 0;
}

.chat-auth__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px -6px rgba(224, 31, 38, 0.45);
}

.chat-auth__title {
  margin-bottom: 10px;
  font-size: 22px;
  text-align: center;
  color: var(--chat-text);
}

.chat-auth__lead {
  margin-bottom: 26px;
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
  color: var(--chat-text-soft);
}

.chat-auth__form {
  display: block;
}

.chat-app .field {
  margin-bottom: 18px;
}

.chat-app .field span {
  color: var(--chat-text-soft);
}

.chat-app .field input {
  background: var(--chat-bg-soft);
  border-color: var(--chat-line);
  color: var(--chat-text);
}

.chat-app .field input:focus {
  border-color: var(--chat-accent);
  box-shadow: 0 0 0 3px rgba(224, 31, 38, 0.12);
}

.chat-auth__submit {
  width: 100%;
  margin-top: 4px;
}

.chat-auth__status {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

.chat-auth__status.is-ok { color: #027a48; }

.chat-auth__status.is-err { color: #b42318; }

.chat-app[data-theme="dark"] .chat-auth__status.is-ok { color: #34d399; }

.chat-app[data-theme="dark"] .chat-auth__status.is-err { color: #f87171; }

.chat-auth__note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--chat-line);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--chat-text-soft);
}

/* -------- Экран переписки -------- */

.chat-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--chat-bg);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--chat-line);
  background: var(--chat-bg);
}

.chat-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(21, 82, 176, 0.45);
}

.chat-head__meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.chat-head__title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--chat-text);
}

.chat-head__subtitle {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--chat-text-soft);
  white-space: nowrap;
}

.chat-head__subtitle > span:last-child {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-head__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.chat-head__dot.is-online {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.chat-head__dot.is-offline {
  background: #f59e0b;
}

.chat-head__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.chat-head__user {
  max-width: 180px;
  padding: 6px 12px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--chat-text-soft);
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid var(--chat-line);
  border-radius: 999px;
}

.chat-head__user::before {
  content: "Вы: ";
  font-weight: 400;
}

.chat-theme-btn,
.chat-logout-btn {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--chat-line);
  border-radius: 10px;
  background: transparent;
  color: var(--chat-text-soft);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.chat-theme-btn:hover,
.chat-logout-btn:hover {
  border-color: var(--chat-accent);
  color: var(--chat-accent);
  background: rgba(224, 31, 38, 0.05);
}

.chat-theme-btn__moon { display: none; }

.chat-app[data-theme="dark"] .chat-theme-btn__sun { display: none; }

.chat-app[data-theme="dark"] .chat-theme-btn__moon { display: block; }

.chat-connection {
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid var(--chat-line);
}

.chat-connection.is-err {
  color: #b42318;
  background: rgba(239, 68, 68, 0.1);
}

.chat-app[data-theme="dark"] .chat-connection.is-err {
  color: #f87171;
  background: rgba(239, 68, 68, 0.16);
}

.chat-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--chat-line) transparent;
  background: var(--chat-bg-soft);
}

.chat-day {
  align-self: center;
  margin: 6px 0 4px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--chat-text-soft);
  background: var(--chat-bg);
  border: 1px solid var(--chat-line);
  border-radius: 999px;
}

.chat-msg {
  display: flex;
  width: 100%;
}

.chat-msg--user { justify-content: flex-end; }

.chat-msg--operator { justify-content: flex-start; }

.chat-msg__bubble {
  max-width: min(78%, 560px);
  padding: 10px 14px 8px;
  border-radius: 18px;
  word-break: break-word;
}

.chat-msg--user .chat-msg__bubble {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #ffffff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 20px -8px rgba(224, 31, 38, 0.55);
}

.chat-msg--operator .chat-msg__bubble {
  background: var(--chat-opp-bg);
  color: var(--chat-text);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.chat-msg--pending .chat-msg__bubble { opacity: 0.65; }

.chat-msg--failed .chat-msg__bubble {
  border: 1px solid #ef4444;
  box-shadow: none;
}

.chat-msg__name {
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--chat-accent);
}

.chat-msg--user .chat-msg__name { display: none; }

.chat-msg__text {
  font-size: 14.5px;
  line-height: 1.55;
}

.chat-msg__time {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.75;
}

.chat-msg--user .chat-msg__time { text-align: right; }

.chat-msg--failed .chat-msg__time { color: #ef4444; opacity: 1; }

.chat-app[data-theme="dark"] .chat-msg--failed .chat-msg__time { color: #f87171; }

.chat-empty {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: var(--chat-text-soft);
}

.chat-empty__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--chat-text);
}

.chat-empty__text {
  max-width: 380px;
  font-size: 13.5px;
  line-height: 1.6;
}

.chat-scroll-pill {
  position: absolute;
  right: 24px;
  bottom: 92px;
  left: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  margin: 0 auto;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border: none;
  border-radius: 999px;
  box-shadow: 0 10px 24px -6px rgba(224, 31, 38, 0.5);
  cursor: pointer;
}

.chat-composer {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--chat-line);
  background: var(--chat-bg);
}

.chat-composer__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.chat-composer__input {
  flex: 1 1 auto;
  min-height: 44px;
  max-height: 140px;
  padding: 11px 14px;
  resize: none;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--chat-text);
  background: var(--chat-bg-soft);
  border: 1px solid var(--chat-line);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-composer__input:focus {
  border-color: var(--chat-accent);
  box-shadow: 0 0 0 3px rgba(224, 31, 38, 0.12);
}

.chat-composer__input::placeholder { color: var(--chat-text-soft); }

.chat-composer__send {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 18px -6px rgba(224, 31, 38, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.chat-composer__send:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -5px rgba(224, 31, 38, 0.6);
}

.chat-composer__send:active { transform: translateY(0); }

.chat-composer__send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.chat-composer__hint {
  flex-shrink: 0;
  padding: 0 16px 10px;
  font-size: 11.5px;
  text-align: center;
  color: var(--chat-text-soft);
  background: var(--chat-bg);
}

@media (max-width: 720px) {
  .chat-app {
    height: calc(100dvh - 190px);
    min-height: 480px;
    border-radius: 18px;
  }

  .chat-msg__bubble { max-width: 88%; }

  .chat-head__user { display: none; }

  .chat-composer__hint { display: none; }

  .chat-auth { padding: 36px 20px; }
}

/* ==========================================================================
   ВИДЖЕТ ОНЛАЙН-ЧАТА (кнопка в правом нижнем углу на всех страницах)
   ========================================================================== */

.chat-widget-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border: none;
  border-radius: 50%;
  box-shadow: 0 12px 28px -8px rgba(224, 31, 38, 0.55);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chat-widget-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px rgba(224, 31, 38, 0.65);
}

.chat-widget-launcher:active { transform: translateY(0); }

.chat-widget-launcher::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(224, 31, 38, 0.45);
  border-radius: 50%;
  animation: chat-widget-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes chat-widget-pulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

.chat-widget-launcher.is-open::after { display: none; }

.chat-widget-launcher__icon--close { display: none; }

.chat-widget-launcher.is-open .chat-widget-launcher__icon--chat { display: none; }

.chat-widget-launcher.is-open .chat-widget-launcher__icon--close { display: block; }

.chat-widget-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand);
  background: #ffffff;
  border: 2px solid var(--brand);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.chat-widget-badge[hidden] { display: none; }

.chat-widget-panel {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 999;
  width: min(392px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 130px));
  min-height: min(480px, calc(100vh - 110px));
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.chat-widget-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.chat-widget-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 640px) {
  .chat-widget-launcher {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }

  .chat-widget-panel {
    top: 12px;
    right: 8px;
    bottom: 78px;
    left: 8px;
    width: auto;
    height: auto;
    min-height: 0;
    border-radius: 18px;
  }
}

/* ==========================================================================
   ЧАТ ВНУТРИ ВИДЖЕТА (/chat?widget=1): только карточка чата, без шапки сайта
   ========================================================================== */

.chat-embed .topbar,
.chat-embed .header,
.chat-embed .footer,
.chat-embed .page-head,
.chat-embed .scroll-progress,
.chat-embed .back-to-top,
.chat-embed .cookie-banner {
  display: none !important;
}

html.chat-embed,
html.chat-embed body,
body.chat-embed {
  height: 100%;
  overflow: hidden;
}

.chat-embed main {
  height: 100%;
}

.chat-embed .section {
  padding: 0;
  height: 100%;
}

.chat-embed .container {
  width: 100%;
  max-width: none;
  padding: 0;
  height: 100%;
}

.chat-embed .chat-app {
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.chat-embed .chat-auth {
  padding: 24px 20px;
}
