/*
 * Architectural B2B premium layer for the OEM, residential-complex and
 * compliance entry pages. The visual language is deliberately restrained:
 * graphite surfaces for decisions, warm paper for reading, copper for action,
 * and thin technical rules for hierarchy. Existing page-specific CSS remains
 * the source of truth for content and breakpoints.
 */

.oem-page,
.zhilye-solution-page,
.certificates-depth-page {
  --b2b-ink: #0d1b24;
  --b2b-ink-soft: #183139;
  --b2b-accent: #c86b31;
  --b2b-accent-dark: #a95022;
  --b2b-teal: #2f756b;
  --b2b-paper: #f8f4ee;
  --b2b-surface: #fffdfa;
  --b2b-line: #ddd5cb;
  --b2b-muted: #627079;
  --b2b-shadow-card: 0 16px 34px rgba(13, 27, 36, .09), 0 2px 5px rgba(13, 27, 36, .04);
  --b2b-shadow-float: 0 26px 58px rgba(13, 27, 36, .16), 0 4px 10px rgba(13, 27, 36, .06);
}

.oem-page main,
.zhilye-solution-page main,
.certificates-depth-page main {
  background: var(--b2b-paper);
}

/* ── Hero proof rail ──────────────────────────────────────────────── */
.oem-page .page-hero .hero-content,
.zhilye-solution-page .page-hero .hero-content,
.certificates-depth-page .page-hero .hero-content {
  position: relative;
  z-index: 1;
}

.b2b-hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 1080px;
  margin-top: clamp(30px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.b2b-hero-fact {
  position: relative;
  display: flex;
  min-height: 104px;
  padding: 18px 20px 17px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.b2b-hero-fact + .b2b-hero-fact {
  border-left: 1px solid rgba(255, 255, 255, .15);
}

.b2b-hero-fact::before {
  position: absolute;
  top: 0;
  left: 20px;
  width: 30px;
  height: 2px;
  background: var(--b2b-accent);
  content: '';
}

.b2b-hero-fact span {
  color: rgba(240, 247, 247, .66);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.b2b-hero-fact strong {
  color: #fff;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.22;
}

.b2b-hero-fact small {
  color: rgba(240, 247, 247, .66);
  font-size: .76rem;
  line-height: 1.42;
}

/* ── Evidence surfaces ───────────────────────────────────────────── */
.oem-page .oem-proof-strip,
.oem-page .oem-scope-section,
.oem-page .oem-delivery-section,
.zhilye-solution-page .procurement-facts,
.certificates-depth-page .compliance-inputs-section,
.certificates-depth-page .compliance-register-section,
.certificates-depth-page .compliance-process-section,
.certificates-depth-page .model-facts-reserved {
  position: relative;
  isolation: isolate;
}

.oem-page .oem-proof-strip,
.certificates-depth-page .compliance-inputs-section {
  border-top: 1px solid rgba(221, 213, 203, .9);
}

.oem-page .oem-delivery-section,
.certificates-depth-page .compliance-register-section,
.certificates-depth-page .model-facts-reserved {
  background: linear-gradient(145deg, #fffdfa 0%, #f8f3ec 72%, #edf3ef 100%);
  border-top: 1px solid rgba(221, 213, 203, .9);
  border-bottom: 1px solid rgba(221, 213, 203, .9);
}

.oem-page .oem-scope-section::after,
.zhilye-solution-page .procurement-facts::after,
.certificates-depth-page .compliance-register-section::after {
  position: absolute;
  right: 6vw;
  bottom: -86px;
  z-index: -1;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(200, 107, 49, .10);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(200, 107, 49, .035), 0 0 0 46px rgba(47, 117, 107, .025);
  content: '';
  pointer-events: none;
}

/* Cards read as controlled procurement evidence instead of generic tiles. */
.oem-page .oem-proof-strip .card-jbss,
.oem-page .oem-delivery-section .card-jbss,
.zhilye-solution-page section.section-pad:has(.card-jbss) .card-jbss,
.certificates-depth-page .compliance-models-section .card-jbss,
.certificates-depth-page .compliance-process-section .card-jbss {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--b2b-line);
  border-radius: 20px;
  background: linear-gradient(150deg, var(--b2b-surface) 0%, #fff 72%, #fbf4ec 100%);
  box-shadow: var(--b2b-shadow-card), inset 0 1px 0 rgba(255, 255, 255, .92);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.oem-page .oem-proof-strip .card-jbss::after,
.oem-page .oem-delivery-section .card-jbss::after,
.zhilye-solution-page section.section-pad:has(.card-jbss) .card-jbss::after,
.certificates-depth-page .compliance-models-section .card-jbss::after,
.certificates-depth-page .compliance-process-section .card-jbss::after {
  position: absolute;
  right: -54px;
  bottom: -82px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(200, 107, 49, .12);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.oem-page .oem-proof-strip .card-jbss:hover,
.oem-page .oem-delivery-section .card-jbss:hover,
.zhilye-solution-page section.section-pad:has(.card-jbss) .card-jbss:hover,
.certificates-depth-page .compliance-models-section .card-jbss:hover,
.certificates-depth-page .compliance-process-section .card-jbss:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 107, 49, .52);
  box-shadow: var(--b2b-shadow-float), inset 0 1px 0 rgba(255, 255, 255, .96);
}

.oem-page .oem-proof-strip .card-jbss h3,
.oem-page .oem-delivery-section .card-jbss h3,
.zhilye-solution-page section.section-pad:has(.card-jbss) .card-jbss h3,
.certificates-depth-page .compliance-models-section .card-jbss h3,
.certificates-depth-page .compliance-process-section .card-jbss h3 {
  position: relative;
  z-index: 1;
  color: var(--b2b-ink);
}

.oem-page .oem-proof-strip .card-jbss p,
.oem-page .oem-delivery-section .card-jbss p,
.zhilye-solution-page section.section-pad:has(.card-jbss) .card-jbss p,
.certificates-depth-page .compliance-models-section .card-jbss p,
.certificates-depth-page .compliance-process-section .card-jbss p {
  position: relative;
  z-index: 1;
}

/* Tables are raised once as a complete record; cells stay quiet. */
.oem-page .oem-scope-section .table-wrap,
.zhilye-solution-page .procurement-facts .table-wrap,
.zhilye-solution-page .architecture-media-placeholder,
.certificates-depth-page .compliance-inputs-section .table-responsive,
.certificates-depth-page .compliance-register-section .table-responsive {
  position: relative;
  border-color: var(--b2b-line);
  border-radius: 18px;
  box-shadow: var(--b2b-shadow-card);
}

.oem-page .oem-scope-section .table-wrap::before,
.zhilye-solution-page .procurement-facts .table-wrap::before,
.certificates-depth-page .compliance-inputs-section .table-responsive::before,
.certificates-depth-page .compliance-register-section .table-responsive::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--b2b-accent), rgba(200, 107, 49, .08));
  content: '';
  pointer-events: none;
}

.oem-page .oem-scope-section .compare-table thead th,
.zhilye-solution-page .procurement-facts .compare-table thead th,
.certificates-depth-page .compliance-register-section .spec-table thead th {
  background: linear-gradient(135deg, var(--b2b-ink), var(--b2b-ink-soft));
}

/* The reserved image slots stay obviously reserved, but no longer look like
   unfinished empty boxes: the drafting grid gives them the same language as
   a technical dossier while the dashed edge preserves their status. */
.oem-page .architecture-media-placeholder,
.zhilye-solution-page .architecture-media-placeholder,
.certificates-depth-page .architecture-media-placeholder {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  padding: 58px 28px 28px;
  background:
    linear-gradient(rgba(200, 107, 49, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 107, 49, .07) 1px, transparent 1px),
    linear-gradient(145deg, #fffaf4, #edf3ef);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: var(--b2b-shadow-card), inset 0 1px 0 rgba(255, 255, 255, .86);
}

.oem-page .architecture-media-placeholder::before,
.zhilye-solution-page .architecture-media-placeholder::before,
.certificates-depth-page .architecture-media-placeholder::before {
  position: absolute;
  top: 17px;
  left: 21px;
  padding: 5px 8px;
  border: 1px solid rgba(200, 107, 49, .28);
  border-radius: 999px;
  color: var(--b2b-accent-dark);
  background: rgba(255, 253, 249, .76);
  content: 'ВИЗУАЛЬНЫЙ СЛОТ';
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.oem-page .architecture-media-placeholder > div,
.zhilye-solution-page .architecture-media-placeholder > div,
.certificates-depth-page .architecture-media-placeholder > div {
  position: relative;
  z-index: 1;
}

/* Dynamic visual briefs and the model-facts rail inherit the same elevation. */
.oem-page .b2b-visual-brief,
.zhilye-solution-page .b2b-visual-brief,
.certificates-depth-page .model-facts-reserved {
  border-top: 1px solid rgba(221, 213, 203, .88);
  border-bottom: 1px solid rgba(221, 213, 203, .88);
}

.oem-page .b2b-visual-brief .visual-placeholder,
.zhilye-solution-page .b2b-visual-brief .visual-placeholder {
  border-radius: 22px;
  box-shadow: var(--b2b-shadow-float), inset 0 1px 0 rgba(255, 255, 255, .82);
}

.certificates-depth-page .model-facts-reserved .model-facts-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--b2b-line);
  border-left: 3px solid var(--b2b-accent);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--b2b-shadow-card);
}

/* CTA: a single dark anchor closes the procurement path. */
.oem-page .cta-section,
.zhilye-solution-page .cta-section,
.certificates-depth-page .compliance-cta-section .cta-section {
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: var(--b2b-shadow-float), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* Use one restrained entrance cue; the page remains calm after the first
   paint and reduced-motion users receive no animation. */
@keyframes b2b-rail-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .b2b-hero-facts { animation: b2b-rail-in .62s cubic-bezier(.2, .75, .25, 1) .1s both; }
}

@media (max-width: 991.98px) {
  .b2b-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b2b-hero-fact:nth-child(odd) { border-left: 0; }
  .b2b-hero-fact:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .15); }
  .b2b-hero-fact:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .15); }
}

@media (max-width: 767.98px) {
  .b2b-hero-facts {
    margin-top: 28px;
    border-radius: 16px;
  }

  .b2b-hero-fact {
    min-height: 96px;
    padding: 15px 16px;
  }

  .b2b-hero-fact::before { left: 16px; }
  .b2b-hero-fact span { font-size: .61rem; }
  .b2b-hero-fact strong { font-size: 1rem; }
  .b2b-hero-fact small { font-size: .71rem; }

  .oem-page .architecture-media-placeholder,
  .zhilye-solution-page .architecture-media-placeholder,
  .certificates-depth-page .architecture-media-placeholder {
    min-height: 210px;
    padding: 54px 20px 22px;
  }

  .oem-page .architecture-media-placeholder::before,
  .zhilye-solution-page .architecture-media-placeholder::before,
  .certificates-depth-page .architecture-media-placeholder::before { left: 17px; }

  .oem-page .oem-proof-strip .card-jbss:hover,
  .oem-page .oem-delivery-section .card-jbss:hover,
  .zhilye-solution-page section.section-pad:has(.card-jbss) .card-jbss:hover,
  .certificates-depth-page .compliance-models-section .card-jbss:hover,
  .certificates-depth-page .compliance-process-section .card-jbss:hover {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .b2b-hero-facts { grid-template-columns: 1fr; }
  .b2b-hero-fact,
  .b2b-hero-fact:nth-child(even),
  .b2b-hero-fact:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, .15);
    border-left: 0;
  }
  .b2b-hero-fact:first-child { border-top: 0; }
}
