/**
 * ABT Business Solutions - Compact Enterprise Layout & Visual System
 * File: compact.css (loaded last to override default spacing with high specificity)
 *
 * Implements:
 * 1. Ultra-compact vertical rhythm (24-48px clamp desktop, 20-32px mobile)
 * 2. 100svh section containment on desktop without clipping
 * 3. 3x2 lifecycle grid on desktop, 2-col on tablet, 1-col on mobile
 * 4. Image placeholder (.img-ph) visual system with gradient navy and dynamic label hiding
 * 5. Tightened cards, grids, metrics, tabs, and footer spacing
 */

:root {
  --header-height: 74px;
  --section-pad-y: clamp(24px, 3.8vh, 44px);
  --section-pad-x: 6%;
  --heading-gap: clamp(6px, 1.2vh, 12px);
  --subheading-gap: clamp(10px, 1.8vh, 18px);
}

/* ==========================================================================
   1. IMAGE PLACEHOLDER SYSTEM (.img-ph)
   ========================================================================== */
.img-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #05142d 0%, #002b66 52%, #020a17 100%);
  border: 1px solid rgba(0, 180, 255, 0.25);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 50px rgba(0, 140, 255, 0.1);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-sizing: border-box;
}

.img-ph:hover {
  border-color: rgba(0, 220, 255, 0.5);
  box-shadow: 0 14px 38px rgba(0, 25, 65, 0.65), inset 0 0 70px rgba(0, 190, 255, 0.18);
  transform: translateY(-2px);
}

.img-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-ph:hover img {
  transform: scale(1.025);
}

.img-ph__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  max-width: 90%;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #d8e8ff;
  background: rgba(3, 16, 38, 0.82);
  border: 1px dashed rgba(0, 195, 255, 0.45);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.img-ph__label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
  flex-shrink: 0;
}

/* Hide label once image successfully loads and stays in DOM */
.img-ph:has(img) .img-ph__label {
  display: none !important;
}

/* Ratio Modifiers */
.img-ph.ratio-21-9,
.img-ph[data-ratio="21:9"] {
  aspect-ratio: 21 / 9;
}
.img-ph.ratio-16-9,
.img-ph[data-ratio="16:9"] {
  aspect-ratio: 16 / 9;
}
.img-ph.ratio-4-3,
.img-ph[data-ratio="4:3"] {
  aspect-ratio: 4 / 3;
}

/* ==========================================================================
   2. GLOBAL TIGHTENED SPACING & MARGIN REMOVAL
   ========================================================================== */
section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

/* Remove excessive heading and label margins */
.section-label {
  margin-bottom: var(--heading-gap) !important;
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

.section-heading {
  font-size: clamp(26px, 3.2vw, 42px) !important;
  line-height: 1.15 !important;
  margin-bottom: var(--heading-gap) !important;
  letter-spacing: -0.025em;
}

.section-subheading {
  font-size: clamp(14px, 1.2vw, 16px) !important;
  line-height: 1.5 !important;
  margin-bottom: var(--subheading-gap) !important;
}

/* ==========================================================================
   3. HERO SECTION (100svh FIT ON DESKTOP)
   ========================================================================== */
.hero {
  padding-top: clamp(20px, 3.2vh, 38px) !important;
  padding-bottom: clamp(20px, 3.2vh, 38px) !important;
}

.hero-tier-1 {
  margin-bottom: clamp(10px, 1.5vh, 18px) !important;
  padding: 5px 14px !important;
  font-size: 12px !important;
}

.hero-tier-2 h1 {
  font-size: clamp(34px, 4.8vw, 68px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  margin-bottom: clamp(14px, 2vh, 22px) !important;
}

.hero-tier-3 {
  gap: clamp(24px, 4vw, 52px) !important;
  margin-top: 0 !important;
  align-items: center !important;
}

.hero-copy {
  gap: clamp(10px, 1.6vh, 16px) !important;
}

.hero-copy p {
  font-size: clamp(15px, 1.1vw, 17px) !important;
  line-height: 1.55 !important;
}

.hero-cta-group,
.hero-cta-wrapper {
  margin-top: clamp(6px, 1vh, 12px) !important;
  gap: 12px !important;
}

.hero-cta-group .btn-solid,
.hero-cta-group .btn-outline,
.hero-cta-wrapper .btn-solid,
.hero-cta-wrapper .btn-outline {
  padding: 10px 22px !important;
  font-size: 13.5px !important;
}

.hero-image-wrapper {
  border-radius: var(--radius-lg, 16px) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
}

.hero-image-wrapper img,
.hero-image-wrapper .img-ph {
  max-height: clamp(260px, 46vh, 440px) !important;
  width: 100%;
  object-fit: cover;
}

/* ==========================================================================
   4. METRICS STRIP / PROOF SECTION
   ========================================================================== */
.metrics-strip,
.proof-section {
  padding-top: 0 !important;
  padding-bottom: clamp(24px, 3.5vh, 40px) !important;
}

.metrics-strip,
.metrics-grid {
  gap: clamp(10px, 1.4vw, 18px) !important;
}

.metric-item {
  padding: clamp(16px, 2.2vh, 24px) clamp(14px, 1.6vw, 22px) !important;
  border-radius: var(--radius-md, 12px) !important;
}

.metric-num,
.metric-item h3 {
  font-size: clamp(28px, 3.4vw, 44px) !important;
  margin-bottom: 6px !important;
  line-height: 1 !important;
}

.metric-label,
.metric-item p {
  font-size: 12px !important;
  letter-spacing: 0.05em !important;
}

/* ==========================================================================
   5. PROMO SECTIONS (CAPABILITIES & PRODUCTS ON INDEX)
   ========================================================================== */
.promo-section {
  padding-top: var(--section-pad-y) !important;
  padding-bottom: var(--section-pad-y) !important;
}

.promo-grid {
  gap: clamp(28px, 4vw, 56px) !important;
}

.promo-content {
  gap: clamp(10px, 1.8vh, 18px) !important;
}

.promo-content p {
  font-size: clamp(14.5px, 1.1vw, 16.5px) !important;
  line-height: 1.55 !important;
}

.promo-image {
  border-radius: var(--radius-lg, 16px) !important;
}

.promo-image img,
.promo-image .img-ph {
  max-height: clamp(260px, 46vh, 420px) !important;
  width: 100%;
}

/* ==========================================================================
   6. LIFECYCLE PLATFORMS & DOMAIN CARDS (3x2 DESKTOP, 2-COL TAB, 1-COL MOB)
   ========================================================================== */
.platforms,
.content-section,
.section-container {
  padding-top: var(--section-pad-y) !important;
  padding-bottom: var(--section-pad-y) !important;
}

.platform-grid,
.grid-6 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: clamp(12px, 1.6vw, 20px) !important;
  margin-top: clamp(16px, 2.2vh, 28px) !important;
}

.platform-card,
.card {
  padding: clamp(18px, 2.2vh, 26px) clamp(16px, 1.8vw, 24px) !important;
  min-height: auto !important;
  border-radius: var(--radius-md, 14px) !important;
}

.platform-card-num,
.card-tag {
  font-size: 11px !important;
  margin-bottom: 8px !important;
}

.platform-card-title,
.card h4 {
  font-size: clamp(17px, 1.4vw, 20px) !important;
  margin-bottom: 6px !important;
  line-height: 1.25 !important;
}

.platform-card-desc,
.card p {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}

/* Section-level visual banner slot */
.section-visual-slot {
  margin: clamp(10px, 1.5vh, 18px) 0;
  width: 100%;
}

.section-visual-slot .img-ph {
  aspect-ratio: 24 / 7;
  max-height: clamp(130px, 20vh, 220px);
}

.card {
  padding: clamp(14px, 1.8vh, 20px) clamp(14px, 1.5vw, 20px) !important;
  min-height: auto !important;
  border-radius: var(--radius-md, 14px) !important;
}

.card h4 {
  font-size: clamp(16px, 1.3vw, 19px) !important;
  margin-bottom: 5px !important;
  line-height: 1.25 !important;
}

.card p {
  font-size: 13px !important;
  line-height: 1.42 !important;
}

/* Filter pills */
.tech-filters {
  gap: 8px !important;
  margin: clamp(12px, 1.8vh, 20px) 0 !important;
}

.filter-pill {
  padding: 7px 16px !important;
  font-size: 13px !important;
}

/* ==========================================================================
   7. CAPABILITIES TABS COMPACT & REUSABLE TAB SYSTEM
   ========================================================================== */
.capabilities {
  padding-top: var(--section-pad-y) !important;
  padding-bottom: var(--section-pad-y) !important;
}

[data-tabs] .tab-buttons,
.tab-buttons {
  display: flex !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  margin: clamp(12px, 1.8vh, 20px) 0 !important;
  padding: 5px !important;
  gap: 6px !important;
  background: var(--bg-dark-card) !important;
  border-radius: var(--radius-full) !important;
  border: 1px solid var(--border-hair) !important;
}

[data-tabs] .tab-buttons::-webkit-scrollbar,
.tab-buttons::-webkit-scrollbar {
  display: none !important;
}

[data-tabs] .tab-btn,
.tab-btn {
  padding: 8px 20px !important;
  font-size: 13.5px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

[data-tabs] .tab-panels-wrapper {
  position: relative;
  width: 100%;
}

[data-tabs] .tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  min-height: clamp(340px, 40vh, 420px);
}

[data-tabs] .tab-content.active,
[data-tabs] .tab-content:not([hidden]) {
  display: grid !important;
  opacity: 1 !important;
}

.tab-content {
  padding: clamp(20px, 2.8vh, 34px) !important;
  gap: clamp(24px, 3.5vw, 44px) !important;
  border-radius: var(--radius-lg, 16px) !important;
}

.tab-panel-text h3 {
  font-size: clamp(20px, 2vw, 28px) !important;
  margin-bottom: 8px !important;
}

.tab-panel-text p {
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  margin-bottom: 12px !important;
}

.tab-feature-list {
  gap: 8px !important;
  margin-top: 10px !important;
}

.tab-feature-list li {
  font-size: 13.5px !important;
  line-height: 1.4 !important;
}

.tab-content .img-ph,
.tab-content img {
  max-height: clamp(200px, 36vh, 320px) !important;
}

/* ==========================================================================
   8. CAREERS & CONTACT PAGES (TIGHTENED ONLY, NO FORCED 100svh)
   ========================================================================== */
.job-grid {
  gap: 16px !important;
  margin-top: 20px !important;
}

.job-card {
  padding: clamp(18px, 2.4vh, 28px) !important;
  border-radius: var(--radius-md, 14px) !important;
}

.job-tag {
  font-size: 11px !important;
  margin-bottom: 6px !important;
}

.job-title {
  font-size: clamp(18px, 1.6vw, 22px) !important;
  margin-bottom: 6px !important;
}

.job-desc {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.contact-section {
  padding-top: var(--section-pad-y) !important;
  padding-bottom: clamp(32px, 4.5vh, 52px) !important;
  gap: clamp(28px, 4vw, 56px) !important;
}

.contact-info h3 {
  font-size: clamp(22px, 2.2vw, 30px) !important;
  margin-bottom: 10px !important;
}

.contact-info p {
  font-size: 14.5px !important;
  line-height: 1.55 !important;
}

.contact-form {
  padding: clamp(24px, 3vh, 36px) !important;
  gap: 16px !important;
  border-radius: var(--radius-lg, 16px) !important;
}

.form-group label {
  font-size: 13px !important;
  margin-bottom: 6px !important;
}

.form-group input,
.form-group textarea {
  padding: 10px 14px !important;
  font-size: 15px !important;
}

/* ==========================================================================
   9. COMPACT FOOTER
   ========================================================================== */
footer {
  padding: clamp(36px, 4.8vh, 56px) 6% clamp(20px, 2.5vh, 28px) !important;
}

.footer-top {
  gap: clamp(20px, 2.4vw, 36px) !important;
  margin-bottom: clamp(24px, 3.2vh, 38px) !important;
}

.footer-col h5 {
  font-size: 11.5px !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 12px !important;
}

.footer-col a {
  font-size: 13px !important;
  line-height: 1.85 !important;
}

.footer-legal {
  padding-top: 18px !important;
  gap: 20px !important;
}

.footer-legal a {
  font-size: 12px !important;
}

.copyright {
  margin-top: 16px !important;
  font-size: 12px !important;
}

/* ==========================================================================
   10. DESKTOP VIEWPORT CONTAINMENT (100svh MINUS HEADER)
       Active only on desktop screens (>900px)
   ========================================================================== */
@media (min-width: 901px) {
  /* Hero fits in first screen */
  .hero {
    min-height: calc(100svh - var(--header-height));
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box;
  }

  /* Full-bleed major sections fit in one screen */
  .promo-section,
  .platforms,
  .capabilities {
    min-height: calc(100svh - var(--header-height));
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box;
  }

  /* Contact and Careers pages: tighten spacing only; do not force full-screen height */
  .contact-section,
  .section-container,
  main:has(.contact-section) .hero,
  main:has(.job-grid) .hero {
    min-height: auto !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure content grids don't overflow viewport */
  .hero-tier-3 .img-ph,
  .promo-image .img-ph {
    max-height: clamp(260px, 48vh, 440px);
  }
}

/* ==========================================================================
   11. TABLET BREAKPOINTS (900px - 601px)
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 601px) {
  .platform-grid,
  .grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ==========================================================================
   12. MOBILE BREAKPOINT (<900px & <600px)
       Natural flow - forced screen heights removed
   ========================================================================== */
@media (max-width: 900px) {
  .hero,
  .promo-section,
  .platforms,
  .capabilities {
    min-height: auto !important;
    height: auto !important;
    display: block !important;
  }

  .hero-tier-3 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .promo-grid,
  .promo-grid.reverse {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    direction: ltr !important;
  }

  .tab-content {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .contact-section {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 600px) {
  :root {
    --section-pad-y: clamp(20px, 3vh, 30px);
  }

  .platform-grid,
  .grid-6 {
    grid-template-columns: 1fr !important;
  }

  .metrics-strip,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }

  .footer-col:last-child {
    grid-column: span 2;
  }

  .img-ph {
    aspect-ratio: 16 / 10;
  }

  .section-visual-slot .img-ph {
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   BACK TO TOP FLOATING BUTTON (SITE-WIDE)
   ========================================================================== */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 95;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark-elevated, #1B1B20);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white, #ffffff);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

#backToTop svg {
  display: block;
  transition: transform 0.2s ease;
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#backToTop:hover {
  background: var(--accent-red, #D10A10);
  border-color: var(--accent-red, #D10A10);
  box-shadow: 0 6px 20px rgba(209, 10, 16, 0.4);
}

#backToTop:hover svg {
  transform: translateY(-2px);
}

#backToTop:focus-visible {
  outline: 2px solid var(--accent-red, #D10A10);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  #backToTop {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
  body:has(.cap-cta-bar) #backToTop,
  body:has(.mobile-cta-bar) #backToTop {
    bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #backToTop {
    transition: none !important;
  }
  #backToTop svg {
    transition: none !important;
  }
}

/* ==========================================================================
   11. ENRICHED FOOTER CONTACT DETAILS & LEGAL BRANDING
   ========================================================================== */
.footer-company-name {
  color: var(--white, #ffffff);
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  margin-bottom: 6px !important;
}
.footer-sub-brand {
  font-size: 12px;
  color: var(--text-sub, #A1A1AA);
  font-weight: 400;
}
.footer-address {
  font-size: 12.5px !important;
  color: var(--muted-gray, #71717A) !important;
  line-height: 1.55 !important;
  margin-bottom: 12px !important;
}
.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.footer-contact-links a {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  font-size: 13px !important;
  color: var(--text-sub, #A1A1AA) !important;
  line-height: 1.6 !important;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.footer-contact-links a:hover {
  color: var(--white, #ffffff) !important;
  transform: translateX(3px);
}
.footer-contact-links a svg {
  flex-shrink: 0;
  stroke: var(--accent-red, #D10A10);
}

/* ==========================================================================
   12. CORPORATE POLICY & LEGAL GOVERNANCE TEMPLATES
   ========================================================================== */
.policy-page-header {
  padding: clamp(36px, 5vh, 64px) 6% clamp(28px, 3.6vh, 44px);
  max-width: 1440px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-hair, rgba(255, 255, 255, 0.08));
}
.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(209, 10, 16, 0.12);
  border: 1px solid rgba(209, 10, 16, 0.3);
  color: #FF5A5F;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.policy-page-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  color: var(--text-main, #FAFAFA);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.18;
}
.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted-gray, #71717A);
  font-size: 13px;
  margin-bottom: 18px;
}
.policy-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.policy-meta strong {
  color: var(--text-sub, #A1A1AA);
}
.policy-lead {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-sub, #A1A1AA);
  line-height: 1.68;
  max-width: 980px;
}

.policy-layout-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(28px, 4vh, 48px) 6% clamp(56px, 7vh, 84px);
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.policy-sidebar {
  position: sticky;
  top: 92px;
  background: var(--bg-dark-card, #121214);
  border: 1px solid var(--border-hair, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 16px);
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.policy-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--white, #ffffff);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hair, rgba(255, 255, 255, 0.08));
}
.policy-toc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.policy-toc a {
  font-size: 13px;
  color: var(--muted-gray, #71717A);
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
}
.policy-toc a:hover,
.policy-toc a.active {
  color: var(--white, #ffffff);
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}
.policy-sidebar-crosslinks {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-hair, rgba(255, 255, 255, 0.08));
}
.policy-sidebar-crosslinks h6 {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-gray, #71717A);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.policy-sidebar-crosslinks a {
  display: block;
  font-size: 12.5px;
  color: var(--text-sub, #A1A1AA);
  margin-bottom: 8px;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.2s ease;
}
.policy-sidebar-crosslinks a:hover {
  color: var(--accent-red, #D10A10);
  transform: translateX(3px);
}

.policy-article {
  background: var(--bg-dark-card, #121214);
  border: 1px solid var(--border-hair, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-xl, 20px);
  padding: clamp(24px, 4vw, 48px);
  color: var(--text-sub, #A1A1AA);
  font-size: 15px;
  line-height: 1.72;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.policy-article h2 {
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  color: var(--white, #ffffff);
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.policy-article h2:first-of-type {
  margin-top: 0;
}
.policy-article h2 .section-num {
  color: var(--accent-red, #D10A10);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.policy-article h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main, #FAFAFA);
  margin-top: 24px;
  margin-bottom: 12px;
}
.policy-article p {
  margin-bottom: 16px;
}
.policy-article strong {
  color: var(--text-main, #FAFAFA);
}
.policy-article ul, .policy-article ol {
  margin-bottom: 20px;
  padding-left: 22px;
}
.policy-article li {
  margin-bottom: 8px;
  line-height: 1.62;
}
.policy-callout {
  background: rgba(0, 43, 102, 0.22);
  border-left: 3px solid var(--accent-red, #D10A10);
  border-radius: 0 var(--radius-md, 10px) var(--radius-md, 10px) 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14.5px;
  color: #E2E8F0;
  line-height: 1.65;
}
.policy-callout strong {
  color: var(--white, #ffffff);
}
.policy-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-hair, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 10px);
}
.policy-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}
.policy-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white, #ffffff);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-hair, rgba(255, 255, 255, 0.08));
  white-space: nowrap;
}
.policy-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-sub, #A1A1AA);
  vertical-align: top;
}
.policy-table tr:last-child td {
  border-bottom: none;
}
.policy-contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hair, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 10px);
  padding: 22px;
  margin: 24px 0;
}
.policy-contact-card h4 {
  font-size: 16px;
  color: var(--white, #ffffff);
  margin-bottom: 10px;
}
.policy-contact-card p {
  margin-bottom: 8px;
  font-size: 14px;
}
.policy-contact-card a {
  color: var(--accent-red, #D10A10);
  text-decoration: none;
}
.policy-contact-card a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .policy-layout-container {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
  .policy-sidebar {
    position: static;
    margin-bottom: 24px;
  }
}


/* ── Section 13: Bitrix24 CRM Form Wrapper ─────────────────────────── */
/*
 * .bitrix-form-wrapper
 * Container for the Bitrix24 inline CRM form loader (inline/225/px55d6).
 * Allows the Bitrix24 iframe to expand freely while fitting the site layout.
 */
.bitrix-form-wrapper {
  width: 100%;
  min-height: 420px;          /* reserves space while the iframe loads     */
  background: transparent;
  border-radius: 12px;
  overflow: visible;           /* Bitrix24 may overflow height on first load */
  position: relative;
}

/* Make Bitrix24-injected iframes responsive */
.bitrix-form-wrapper iframe,
.bitrix-form-wrapper > div {
  width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  border-radius: 12px !important;
}

/* Fade-in once loaded (Bitrix24 adds b24-wf-block class to its root div) */
.bitrix-form-wrapper .b24-wf-block {
  animation: bfWrapFadeIn 0.4s ease both;
}
@keyframes bfWrapFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* Loading skeleton shimmer while script bootstraps */
.bitrix-form-wrapper::before {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    rgba(209,10,16,0.12) 25%,
    rgba(209,10,16,0.35) 50%,
    rgba(209,10,16,0.12) 75%);
  background-size: 200% 100%;
  animation: bfShimmer 1.6s infinite;
  margin-bottom: 16px;
}
/* Hide shimmer once Bitrix loads */
.bitrix-form-wrapper.b24-loaded::before {
  display: none;
}
@keyframes bfShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive: full-width on mobile, constrained on desktop */
@media (max-width: 767px) {
  .bitrix-form-wrapper {
    min-height: 480px;         /* forms stack taller on mobile               */
    border-radius: 8px;
  }
}

/* ── Section 14: Technology Partners & Alliances ─────────────────────── */
.partners-section {
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.partners-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,43,102,0.06) 0%, rgba(209,10,16,0.04) 100%);
  pointer-events: none;
}
.partners-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Partner grid ── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 1100px) { .partner-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px)  { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px)  { .partner-grid { display: none; } } /* marquee takes over */

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 14px 16px;
  background: var(--bg-dark-card, #131316);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  cursor: default;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.partner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(209,10,16,0.12) 0%, transparent 70%);
  transition: opacity 0.3s;
  pointer-events: none;
}
.partner-card:hover::after  { opacity: 1; }
.partner-card:hover,
.partner-card:focus-within {
  border-color: rgba(209,10,16,0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.partner-logo {
  width: 80px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(161,161,170,0.7);   /* muted-gray at 70% */
  transition: color 0.25s;
}
.partner-logo svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.partner-card:hover .partner-logo { color: var(--text-main, #ffffff); }

.partner-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-gray, #A1A1AA);
  text-align: center;
  letter-spacing: 0.3px;
  transition: color 0.25s;
}
.partner-cat {
  font-size: 10px;
  font-weight: 500;
  color: rgba(161,161,170,0.55);
  text-align: center;
  letter-spacing: 0.2px;
}
.partner-card:hover .partner-name { color: var(--text-sub, #E4E4E7); }

/* ── Marquee strip (mobile only) ── */
.partner-marquee {
  display: none;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
@media (max-width: 540px) { .partner-marquee { display: block; } }

.partner-marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.partner-marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-gray, #A1A1AA);
  white-space: nowrap;
  padding: 10px 0;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .partner-marquee-track { animation: none; }
  .partner-card { transition: none; }
  .partner-card:hover { transform: none; }
}
