﻿/* РС ЕБС — правки вёрстки v3 (руководитель: после замечаний владельца) */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: #15202b;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #B5302A;
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(21,32,43,0.18);
  border-radius: 10px;
  background: #fff;
  align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink, #15202b); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink, #15202b);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.mobile-nav {
  display: none; position: fixed; inset: 72px 0 auto 0; background: #EFEDE4;
  border-bottom: 1px solid rgba(21,32,43,0.12); padding: 16px 24px 24px; z-index: 90;
  max-height: calc(100dvh - 72px); overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 0; border-bottom: 1px solid rgba(21,32,43,0.1);
  color: var(--ink, #15202b); font-weight: 600; text-decoration: none;
}
@media (max-width: 900px) { .nav-toggle { display: inline-flex; } }

/* --- v3: плотность --- */
.hero { padding: 28px 0 22px !important; }
.trust-bar { padding: 14px 0 !important; background: var(--bg, #EFEDE4) !important; }
.law-section, .arch-section, .resp-section, .issues-section,
.pricing-section, .approaches-section, .compat-section, .terminal-section,
.cases-section, .faq-section, .docs-section, .contact-section,
#applications, .ebs-bridge {
  padding-top: 36px !important;
  padding-bottom: 36px !important;
}
.section-head { margin-bottom: 14px !important; }
.section-head .eyebrow { margin-bottom: 4px !important; }
.section-head h2 { margin-bottom: 6px !important; padding-bottom: 8px !important; }
.section-head .lead, .section-head p.lead { margin-top: 6px !important; margin-bottom: 0 !important; }

.hero-copy { max-width: 36rem; }
.hero h1 { margin: 8px 0 10px !important; line-height: 1.12 !important; }
.hero-sub { margin: 0 0 14px !important; max-width: 34rem; }
.hero-actions { gap: 10px !important; margin-bottom: 0 !important; }
.bmarq { padding: 6px 0 !important; }

/* Факты героя — 4 в ряд */
.hero-facts,
.hero-facts-wide {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  margin-top: 18px !important;
}
@media (max-width: 900px) {
  .hero-facts, .hero-facts-wide { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.hero-facts .hero-fact,
.hero-facts-wide .hero-fact {
  border: 1px solid rgba(21,32,43,.12) !important;
  box-shadow: none !important;
  padding: 8px 10px !important;
  background: transparent !important;
}
.hero-facts .num, .hero-facts-wide .num { font-weight: 650 !important; }
.hero-facts .lbl, .hero-facts-wide .lbl {
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 12px !important;
  color: #4A4A4A !important;
}

.hero .btn-outline-light {
  color: var(--ink, #15202b) !important;
  border-color: rgba(21, 32, 43, 0.35) !important;
  background: rgba(255,255,255,0.45) !important;
}

/* --- v3: меньше жирности (перебивает Style B) --- */
h1, h2 { font-weight: 650 !important; }
h3, h4 { font-weight: 600 !important; }
.eyebrow { font-weight: 600 !important; letter-spacing: .1em !important; }
.btn, .btn-primary, .btn-outline, .btn-outline-light,
.app-cta {
  font-weight: 600 !important;
  letter-spacing: .02em !important;
}
.ti-num, .num, .flap, .ts-val { font-weight: 650 !important; }
.ti-lbl { font-weight: 500 !important; }
.app-card ul li, .app-card li { font-weight: 500 !important; }
.bmarq .run { font-weight: 600 !important; font-size: 14px !important; }
.oldstamp { font-weight: 700 !important; border-width: 3px !important; }
.scenario-card.primary::after { font-weight: 650 !important; }

/* --- v3: спокойнее рамки и тени --- */
.app-card, .law-card, .price-card, .resp-card, .scenario-card, .doc-item,
.compat-cell, .case-cell, .trust-item, .terminal-spec, .contact-info-item, .arch-leg-item {
  border-width: 1px !important;
  border-color: rgba(21,32,43,.12) !important;
  box-shadow: none !important;
}
.app-card:hover, .law-card:hover, .price-card:hover, .resp-card:hover,
.scenario-card:hover, .doc-item:hover, .compat-cell:hover, .terminal-spec:hover {
  transform: none !important;
  box-shadow: none !important;
}
.case-cell:hover, .hero-fact:hover, .trust-item:hover,
.contact-info-item:hover, .arch-leg-item:hover {
  transform: none !important;
  box-shadow: none !important;
}
.scenario-card.primary {
  border-width: 1px !important;
  border-color: rgba(181,48,42,.28) !important;
  box-shadow: none !important;
}
.resp-card.us, .appr-card.us {
  border-left-width: 3px !important;
  box-shadow: none !important;
}
.btn-primary:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Убрать «коробки» у сеток сценариев / приложений */
.apps-grid, .scenarios-grid, .scenario-grid, .app-grid,
.law-grid, .price-grid, .resp-grid {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.trust-item {
  border: none !important;
  border-right: 1px solid rgba(21,32,43,.1) !important;
  background: transparent !important;
}
.trust-item:last-child { border-right: none !important; }
.trust-bar { border-bottom: none !important; }
.bmarq {
  border-top: 1px solid rgba(21,32,43,.12) !important;
  border-bottom: 1px solid rgba(21,32,43,.12) !important;
  background: transparent !important;
}
.btn, .btn-primary, .btn-outline, .btn-outline-light {
  text-transform: none !important;
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
}
.app-cta { text-transform: none !important; font-weight: 600 !important; }
.section-head h2::after {
  width: 40px !important;
  border-top-width: 1.5px !important;
}

.price-block {
  border: none !important;
  border-top: 1px solid rgba(21,32,43,.1) !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
}
.price-block .pb-content strong { font-weight: 600 !important; }
.faq-item {
  border: none !important;
  border-bottom: 1px solid rgba(21,32,43,.1) !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.faq-item::before { display: none !important; }
.app-card { min-height: 0 !important; }

.trust-item .ti-lbl {
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  max-width: 560px; margin: 0 auto; background: #15202b; color: #fff;
  padding: 16px 18px; border-radius: 14px; display: none; gap: 12px; align-items: flex-start;
}
.cookie-banner.open { display: flex; }
.cookie-banner p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.85); }
.cookie-banner a { color: #E7B0AC; }
.cookie-banner button {
  flex-shrink: 0; border: none; background: #B5302A; color: #fff;
  font-weight: 600; font-size: 13px; padding: 10px 14px; border-radius: 10px; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.hero-title-line1 {
  white-space: nowrap;
  display: inline-block;
}
