/* ============================================================
   Mass-EXPERT — Coriolis Mass Flowmeters
   Industrial KIPiA Product Website
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0B3D6B;
  --primary-dark: #072649;
  --primary-light: #1a5276;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-light: #FEF3C7;
  --success: #10B981;
  --danger: #EF4444;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --white: #FFFFFF;
  --bg-body: #FFFFFF;
  --bg-section: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-body: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-size-base: 16px;
  --line-height-base: 1.65;
}

/* --- Dark theme (best practices: muted, low contrast, easy on eyes) --- */
html.theme-dark {
  --primary: #60A5FA;
  --primary-dark: #1E3A5F;
  --primary-light: #93C5FD;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-light: #1E293B;
  --success: #34D399;
  --danger: #F87171;
  --bg-body: #0F172A;
  --bg-section: #151b2b;
  --bg-card: #1a2236;
  --text-body: #cbd5e1;
  --text-muted: #6b7280;
  --text-heading: #e2e8f0;
  --border-color: #2a2f3e;
  /* gray scale — only for text/accents, NOT for structural backgrounds */
  --gray-50: #151b2b;
  --gray-100: #1a2236;
  --gray-200: #2a2f3e;
  --gray-300: #3a3f4e;
  --gray-400: #6b7280;
  --gray-500: #9ca3af;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  --white: #0F172A;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.5);
}
/* Dark theme: structural overrides — these elements must stay dark */
html.theme-dark .footer { background: #0F172A !important; }
html.theme-dark .footer-links a { color: rgba(255,255,255,0.5) !important; }
html.theme-dark .footer-links a:hover { color: var(--accent-hover) !important; }
html.theme-dark .footer-bottom { border-top-color: rgba(255,255,255,0.08) !important; }
html.theme-dark thead { background: #0B3D6B !important; }
html.theme-dark th { color: var(--text-heading) !important; }
html.theme-dark .navbar { background: rgba(7, 38, 73, 0.99) !important; border-bottom-color: rgba(255,255,255,0.08) !important; }
html.theme-dark.scrolled .navbar,
html.theme-dark .navbar.scrolled { background: rgba(7, 38, 73, 0.99) !important; }
html.theme-dark .navbar-brand .brand-icon { background: #F59E0B !important; color: #0F172A !important; }
html.theme-dark .btn-primary { background: #F59E0B !important; color: #0F172A !important; border-color: #F59E0B !important; }
html.theme-dark .btn-primary:hover { background: #D97706 !important; }
html.theme-dark .btn-outline { color: rgba(255,255,255,0.85) !important; }
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark h6 { color: var(--text-heading) !important; }
html.theme-dark .hero { background: linear-gradient(135deg, #072649, #0a1628) !important; }
html.theme-dark .section-blue { background: linear-gradient(135deg, #072649, #0a1628) !important; }
html.theme-dark .section-dark { background: #0F172A !important; }
html.theme-dark .section-dark h2 { color: var(--text-heading) !important; }
html.theme-dark .hero-stat-value { color: #F59E0B !important; }

/* Dark theme: info/highlight boxes on detail pages (page <style> blocks use hardcoded light colors) */
html.theme-dark .highlight-box,
html.theme-dark .food-highlight {
  background: linear-gradient(135deg, #1a2236, #151b2b) !important;
  border: 1px solid #2a2f3e !important;
  border-left: 4px solid var(--accent) !important;
}
html.theme-dark .highlight-box.particle-free {
  background: linear-gradient(135deg, #251a3d, #1b1430) !important;
  border: 1px solid #3a2a5f !important;
  border-left: 4px solid #a78bfa !important;
}
html.theme-dark .highlight-box h3,
html.theme-dark .food-highlight h3 { color: var(--gray-700) !important; }
html.theme-dark .highlight-box p,
html.theme-dark .food-highlight p { color: var(--gray-600) !important; }
html.theme-dark .highlight-box.particle-free h3,
html.theme-dark .highlight-box.particle-free p { color: #ddd6fe !important; }
html.theme-dark .micro-notice {
  background: linear-gradient(135deg, #132a4d, #0e1e36) !important;
  border: 1px solid #1d3a5f !important;
  border-left: 4px solid #38BDF8 !important;
}
html.theme-dark .micro-notice h3 { color: #bae6fd !important; }
html.theme-dark .micro-notice p { color: #93c5fd !important; }

/* --- Accessibility / Visually Impaired mode (full WCAG) --- */
html.theme-accessibility,
html.theme-accessibility body {
  font-size: 20px !important;
  line-height: 1.8 !important;
  letter-spacing: 0.05em;
  word-spacing: 0.1em;
}
html.theme-accessibility {
  /* High contrast: black bg + white text */
  --bg-body: #000000;
  --bg-section: #000000;
  --bg-card: #000000;
  --text-body: #FFFFFF;
  --text-muted: #CCCCCC;
  --border-color: #FFFFFF;
  --gray-50: #000000;
  --gray-100: #000000;
  --gray-200: #000000;
  --gray-300: #333333;
  --gray-400: #FFFFFF;
  --gray-500: #FFFFFF;
  --gray-600: #FFFFFF;
  --gray-700: #FFFFFF;
  --gray-800: #FFFFFF;
  --gray-900: #FFFFFF;
  --white: #000000;
  --accent: #000000;
  --accent-hover: #333333;
}
html.theme-accessibility * {
  transition: none !important;
  animation: none !important;
  text-shadow: none !important;
}
html.theme-accessibility body {
  background: #000000 !important;
  color: #FFFFFF !important;
}
html.theme-accessibility h1,
html.theme-accessibility h2,
html.theme-accessibility h3,
html.theme-accessibility h4,
html.theme-accessibility h5,
html.theme-accessibility h6,
html.theme-accessibility p,
html.theme-accessibility li,
html.theme-accessibility td,
html.theme-accessibility th,
html.theme-accessibility .app-name,
html.theme-accessibility .hero-desc,
html.theme-accessibility .hero-stat-label,
html.theme-accessibility .hero-stat-value,
html.theme-accessibility .contact-row {
  color: #FFFFFF !important;
}
html.theme-accessibility a,
html.theme-accessibility .navbar-brand {
  color: #FFFFFF !important;
  text-decoration: underline !important;
}
html.theme-accessibility a:hover {
  background: #FFFFFF !important;
  color: #000000 !important;
}
html.theme-accessibility .navbar {
  background: #000000 !important;
  border-bottom: 2px solid #FFFFFF !important;
}
html.theme-accessibility .navbar-links a {
  color: #FFFFFF !important;
}
html.theme-accessibility .navbar-links a:hover,
html.theme-accessibility .navbar-links a.active {
  background: #FFFFFF !important;
  color: #000000 !important;
}
html.theme-accessibility .btn-primary {
  background: #FFFFFF !important;
  color: #000000 !important;
  border: 2px solid #FFFFFF !important;
}
html.theme-accessibility .btn-outline {
  border: 2px solid #FFFFFF !important;
  color: #FFFFFF !important;
}
html.theme-accessibility .btn-outline-dark {
  border: 2px solid #FFFFFF !important;
  color: #FFFFFF !important;
}
html.theme-accessibility .section-gray,
html.theme-accessibility .section-blue,
html.theme-accessibility .section-dark {
  background: #000000 !important;
}
html.theme-accessibility .adv-card,
html.theme-accessibility .app-card,
html.theme-accessibility .transmitter-card,
html.theme-accessibility .cert-card,
html.theme-accessibility .about-highlight,
html.theme-accessibility details.expandable,
html.theme-accessibility .table-wrap {
  background: #000000 !important;
  border: 2px solid #FFFFFF !important;
}
html.theme-accessibility .hero {
  background: #000000 !important;
}
html.theme-accessibility .hero::before { display: none !important; }
html.theme-accessibility .hero-badge,
html.theme-accessibility .section-badge {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
}
html.theme-accessibility thead { background: #0B3D6B !important; }
html.theme-accessibility th { color: #FFFFFF !important; }
html.theme-accessibility td { border-bottom: 1px solid #FFFFFF !important; color: #FFFFFF !important; }
html.theme-accessibility .footer {
  background: #000000 !important;
  border-top: 2px solid #FFFFFF !important;
}
html.theme-accessibility .footer-links a { color: #FFFFFF !important; }
html.theme-accessibility .footer-bottom { border-top-color: #FFFFFF !important; }
html.theme-accessibility .principle-step .step-number {
  background: #FFFFFF !important;
  color: #000000 !important;
}
html.theme-accessibility .param-card {
  background: #000000 !important;
  border: 2px solid #FFFFFF !important;
}
html.theme-accessibility .product-tab {
  background: #000000 !important;
  border: 2px solid #FFFFFF !important;
  color: #FFFFFF !important;
}
html.theme-accessibility .product-tab.active {
  background: #FFFFFF !important;
  color: #000000 !important;
}
html.theme-accessibility .client-tag {
  background: #000000 !important;
  border: 2px solid #FFFFFF !important;
  color: #FFFFFF !important;
}
html.theme-accessibility .theme-btn { color: #FFFFFF !important; }
html.theme-accessibility .navbar-toggle { color: #FFFFFF !important; }
html.theme-dark .navbar-toggle { color: var(--accent) !important; }
html.theme-accessibility .navbar-brand .brand-icon {
  background: #FFFFFF !important;
  color: #000000 !important;
  width: 100px !important;
}
@media (max-width: 768px) {
  html.theme-accessibility .navbar-links a { font-size: 1rem !important; padding: 0.5rem 1rem !important; }
  html.theme-accessibility .navbar-links { justify-content: flex-start; padding: 1rem; gap: 0; }
}
html.theme-accessibility img {
  opacity: 0.85;
  filter: none !important;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-body);
  background: var(--bg-body);
  width: 100%;
}

img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
a:focus { outline: none !important; }
a:active { outline: none !important; }
a:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px !important; border-radius: 2px !important; }
button:focus { outline: none !important; }
button:active { outline: none !important; }
button:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px !important; border-radius: 2px !important; }
* { -webkit-tap-highlight-color: transparent !important; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { margin-bottom: 1rem; }
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--gray-900);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--gray-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-1px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 61, 107, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(7, 38, 73, 0.99);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.15rem;
  height: 78px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
}
.navbar-brand:hover { color: var(--accent); }
.navbar-brand .brand-icon {
  width: 70px;
  height: 55px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.875rem;
  color: var(--gray-900);
  line-height: 1.2;
  text-align: center;
  padding: 6px;
  flex-shrink: 0;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.navbar-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.4rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 1;
  transition: all var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.theme-toggles {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.theme-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9375rem;
  transition: all var(--transition);
  line-height: 1;
}
.theme-btn:hover {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.navbar-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.theme-toggles-mobile {
  display: none;
}
.theme-toggles-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.3rem;
  padding-left: 0.4rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* hero: контент поднят на 50px вверх; низ hero (и бегунок под ним) остаются на месте (2026-08-27) */
.hero-grid { margin-top: -50px; margin-bottom: 50px; }
.hero-content h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}
.hero-content .hero-subtitle {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.hero-content .hero-label {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.75rem;
  background: rgba(255,255,255,0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.hero-content .hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  margin: 1.5rem 0 2rem;
  max-width: 540px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-device-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  backdrop-filter: blur(8px);
}
.device-svg {
  width: 100%;
  aspect-ratio: 3/2;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-svg svg {
  width: 100%;
  height: 100%;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* --- Sections Common --- */
.section {
  padding: 5rem 0;
}
.section-header {
  text-align: left;
  max-width: 800px;
  margin: 0 0 2.5rem;
}
.section-header h2 {
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--gray-500);
  font-size: 1.125rem;
}
.section-header .section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--gray-100);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.section-dark {
  background: var(--gray-900);
  color: rgba(255,255,255,0.85);
}
.section-dark h2 { color: var(--white); }
.section-dark .section-header p { color: var(--gray-400); }
.section-gray {
  background: var(--bg-section);
}
.section-blue {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: rgba(255,255,255,0.9);
}
.section-blue h2 { color: var(--white); }
.section-blue .section-header p { color: rgba(255,255,255,0.7); }

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-highlight {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 3px solid var(--accent);
}
.about-highlight h4 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.about-highlight p { font-size: 0.875rem; color: var(--gray-500); margin: 0; }
.about-clients {
  margin-top: 1.5rem;
}
.about-clients h4 {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.client-tag {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* --- Advantages Section --- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.adv-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.adv-card .adv-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.adv-card-last {
  grid-column: 2 / 3;
}
.adv-card .adv-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.adv-card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.adv-card p { font-size: 0.9375rem; color: var(--gray-500); margin: 0; }

/* --- Principle Section --- */
.principle-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.principle-step {
  text-align: center;
  padding: 1.5rem;
}
.principle-step .step-number {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #0F172A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 0.75rem;
}
.principle-step h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.principle-step p { font-size: 0.875rem; color: var(--gray-500); margin: 0; }
.principle-params {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.param-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.param-card .param-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.25rem;
}
.param-card .param-value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--accent);
}

/* --- Applications Section --- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition);
}
.app-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.app-card .app-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.app-card .app-icon i { font-size: 1.75rem; color: var(--primary); }
.app-card .app-name { font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); }
a.app-card { text-decoration: none; display: block; }

/* --- Product Line Section --- */
.product-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.product-tab {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition);
}
.product-tab:hover { border-color: var(--primary); color: var(--primary); }
.product-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.product-panel { display: none; }
.product-panel.active { display: block; }

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--bg-card);
}
thead {
  background: #0B3D6B;
  color: var(--white);
}
th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  color: var(--text-body);
}
tbody tr:hover { background: var(--gray-100); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: var(--gray-50); }
tbody tr:hover td { background: var(--gray-100); }

/* --- Options Section --- */
.options-intro {
  max-width: 800px;
  margin-bottom: 2rem;
}
.options-table-wrap {
  overflow-x: auto;
}
.options-table th:first-child,
.options-table td:first-child {
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 1;
  min-width: 140px;
}
.options-table thead th:first-child {
  background: #0B3D6B;
  z-index: 2;
}
.options-table tbody td:first-child {
  background: var(--white);
  font-weight: 600;
  border-right: 2px solid var(--gray-200);
}
.options-table tbody tr:hover td:first-child {
  background: var(--gray-50);
}
.options-table tbody tr:nth-child(even) td:first-child { background: var(--gray-50); }
.options-table td { font-size: 0.8125rem; }
.option-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.8125rem;
}

/* --- Transmitters Section --- */
.transmitters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.transmitter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.transmitter-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.transmitter-card .tx-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.transmitter-card .tx-header h3 { color: var(--primary); }
.transmitter-card .tx-header .tx-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
}
.transmitter-card .tx-body {
  padding: 1rem 1.5rem 1.5rem;
}
.transmitter-card .tx-body ul li {
  font-size: 0.875rem;
  padding: 0.35rem 0;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.transmitter-card .tx-body ul li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* --- Certifications Section --- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}
.cert-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.cert-card .cert-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.cert-card h4 { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.cert-card p { font-size: 0.8125rem; color: var(--gray-500); margin: 0; }
.cert-card .cert-doc {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 0.75rem;
  color: var(--primary);
}
.cert-card .cert-doc:hover { color: var(--accent-hover); }

/* --- Contacts Section --- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contacts-info h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.contacts-info .contact-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.contacts-info .contact-row .contact-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.contacts-info .contact-row a {
  color: var(--gray-700);
}
.contacts-info .contact-row a:hover { color: var(--primary); }
.contacts-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  height: 300px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand h4 {
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-links h5 {
  color: var(--white);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  padding: 0.25rem 0;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
}

/* --- Expandable Details --- */
details.expandable {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
details.expandable[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
details.expandable summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-800);
  list-style: none;
  user-select: none;
}
details.expandable summary::-webkit-details-marker { display: none; }
details.expandable summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}
details.expandable[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}
details.expandable summary:hover { background: var(--gray-50); }
details.expandable .expandable-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  overflow: hidden;
}
details.expandable .expandable-body > *:last-child { margin-bottom: 0; }
details.expandable .expandable-body ul { padding-left: 1.25rem; }
details.expandable .expandable-body ul li {
  list-style: disc;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
}
details.expandable .expandable-body p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* --- Configurator Collapse (hero teaser → expand) --- */
.cfg-collapse {
  margin-top: 1.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  transition: box-shadow var(--transition);
}
.cfg-collapse[open] {
  box-shadow: var(--shadow-xl);
}
.cfg-collapse summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 1.5rem 2rem;
}
.cfg-collapse summary::-webkit-details-marker { display: none; }
.cfg-collapse summary:hover { background: var(--gray-50); }
.cfg-collapse-preview {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.cfg-collapse-info { flex: 1; min-width: 0; }
.cfg-collapse-info h3 {
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
  color: var(--gray-800);
}
.cfg-collapse-info p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0 0 0.65rem;
  line-height: 1.5;
}
.cfg-collapse-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.cfg-collapse-tags span {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 6px;
}
.cfg-collapse-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.cfg-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: var(--accent);
  color: #0F172A;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.cfg-collapse summary:hover .cfg-collapse-btn { opacity: 0.85; }
.cfg-collapse-arrow {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: transform var(--transition);
}
.cfg-collapse[open] .cfg-collapse-arrow { transform: rotate(180deg); }
.cfg-collapse .expandable-body {
  padding: 0 2rem 2rem;
  border-top: 1px solid var(--gray-100);
}
html.theme-dark .cfg-collapse { background: var(--bg-card); }
html.theme-dark .cfg-collapse summary:hover { background: var(--gray-200); }
html.theme-dark .cfg-collapse-info h3 { color: var(--gray-700); }
html.theme-dark .cfg-collapse-info p { color: var(--gray-400); }
html.theme-dark .cfg-collapse-tags span {
  background: var(--gray-200);
  color: var(--gray-600);
}
html.theme-dark .cfg-collapse .expandable-body {
  border-top-color: var(--gray-200);
}
html.theme-dark .cfg-collapse-arrow { color: var(--gray-400); }

/* --- Replacement Hero Section --- */
.replacement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.repl-pain {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.repl-pain-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--danger);
}
.repl-pain-item i { font-size: 1.2rem; color: var(--danger); margin-top: 0.1rem; width: 1.5rem; text-align: center; }
.repl-pain-item p { margin: 0; font-size: 0.9rem; color: var(--gray-600); line-height: 1.5; }
.repl-pain-item strong { color: var(--gray-800); }

.repl-benefits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 0 auto 2.5rem;
  max-width: 1100px;
}
.repl-benefit-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: all var(--transition);
}
.repl-benefit-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.repl-benefit-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  line-height: 1;
}
.repl-benefit-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.15rem;
}
.repl-benefit-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  line-height: 1.25;
}

.repl-solution {
  background: linear-gradient(135deg, var(--primary), #072649);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin: 0 auto 2rem;
  max-width: 1100px;
}
.repl-solution-text { color: rgba(255,255,255,0.9); }
.repl-solution-text h3 { color: #fff; font-size: 1.15rem; margin: 0 0 0.5rem; }
.repl-solution-text p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0; line-height: 1.5; }
.repl-solution-text strong { color: var(--accent); }
.repl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #0F172A;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.repl-btn:hover { background: #D97706; color: #0F172A; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,0.35); }

html.theme-dark .repl-pain-item { background: var(--gray-800); border-left-color: #F87171; }
html.theme-dark .repl-pain-item p { color: var(--gray-300); }
html.theme-dark .repl-pain-item strong { color: var(--gray-100); }
html.theme-dark .repl-benefit-card { background: var(--bg-card); border-color: var(--gray-200); }
html.theme-dark .repl-benefit-value { color: var(--accent); }
html.theme-dark .repl-benefit-label { color: var(--gray-400); }

@media (max-width: 768px) {
  .replacement-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .repl-benefits { grid-template-columns: repeat(2, 1fr); }
  .repl-solution { grid-template-columns: 1fr; text-align: center; padding: 1.5rem; border-radius: var(--radius-lg); }
  .repl-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .repl-benefits { grid-template-columns: 1fr; }
}

/* --- Request Form --- */
.request-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.request-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
  display: block;
}
.request-form label .required { color: var(--accent); }
.request-form input,
.request-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-body);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition), background var(--transition);
  box-sizing: border-box;
}
.request-form input::placeholder,
.request-form textarea::placeholder { color: var(--text-muted); }
.request-form input:focus,
.request-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-section);
}
.request-form textarea { min-height: 100px; resize: vertical; }
.request-form .form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -0.5rem;
}
.request-form .repl-btn {
  align-self: center;
  font-size: 1rem;
  padding: 0.9rem 2rem;
}
@media (max-width: 768px) {
  .cfg-collapse { border-radius: var(--radius-lg); }
  .cfg-collapse summary { padding: 1.25rem; }
  .cfg-collapse-preview {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .cfg-collapse-tags { justify-content: center; }
  .cfg-collapse-action { width: 100%; }
  .cfg-collapse .expandable-body { padding: 0 1.25rem 1.25rem; }
}
.option-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
  background: var(--gray-100);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.25rem;
}

/* --- Option Cards (Emerson Product Card style) --- */
.option-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.option-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.option-card:hover {
  border-color: var(--gray-200);
  box-shadow: none;
}
.option-card-image {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #fafafa;
  border-bottom: 1px solid var(--gray-100);
  overflow: hidden;
}
.option-card-image img {
  max-width: 100%;
  max-height: 90px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.card-hover-zoom {
  min-height: 340px;
}
.card-hover-zoom .option-card-image {
  background: transparent;
  border-bottom: none;
  overflow: visible;
  height: auto;
  padding: 0.75rem 1rem 0.5rem;
}
.card-hover-zoom .option-card-image img {
  max-height: 100px;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
  transform-origin: top center;
}
.card-hover-zoom:hover .option-card-image img {
  transform: scale(2);
}
.card-hover-zoom .option-card-hover-btn {
  margin-top: auto;
  margin-bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease 0.15s, visibility 0.25s ease 0.15s;
  position: relative;
  z-index: 2;
}
.card-hover-zoom:hover .option-card-hover-btn {
  opacity: 1;
  visibility: visible;
}
.card-hover-zoom .option-card-hover-btn .btn-primary {
  display: inline-flex;
  font-size: 0.875rem;
}
.card-hover-zoom .option-card-body {
  padding: 0 1.25rem 5px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-hover-zoom .option-card-meta {
  transition: transform 0.3s ease;
}
.card-hover-zoom:hover .option-card-meta {
  transform: translateY(105px);
}
.card-hover-zoom .option-card-desc {
  transition: opacity 0.2s ease 0.15s, transform 0.3s ease;
}
.card-hover-zoom:hover .option-card-desc {
  opacity: 0;
  pointer-events: none;
  transform: translateY(105px);
}
.card-hover-zoom .option-card-header h4,
.card-hover-zoom .option-card-header .option-tag {
  transition: transform 0.3s ease;
  display: inline-block;
}
.card-hover-zoom:hover .option-card-header h4,
.card-hover-zoom:hover .option-card-header .option-tag {
  transform: translateY(105px);
}
.option-card-body {
  padding: 1rem 1.25rem 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.option-card-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}
.option-card-header .option-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.6875rem;
  color: var(--white);
  background: var(--primary);
  padding: 0.125rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.option-card-header h4 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
}
.option-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}
.option-card-meta span {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gray-500);
  background: var(--gray-50);
  padding: 0.125rem 0.45rem;
  border-radius: 3px;
  white-space: nowrap;
}
.option-card-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.45;
  flex: 1;
}
.option-card-footer {
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
}
.option-card-footer a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}
.option-card:hover .option-card-footer a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 700px) {
  .option-card-row {
    grid-template-columns: 1fr;
  }
}

html.theme-dark .option-card-row {
  gap: 1.25rem;
}
html.theme-dark .option-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}
html.theme-dark .option-card:hover {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
html.theme-dark .option-card-image {
  background: rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.08);
}
html.theme-dark .option-card-header h4 {
  color: var(--white);
}
html.theme-dark .option-card-meta span {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}
html.theme-dark .option-card-desc {
  color: rgba(255,255,255,0.55);
}
html.theme-dark .option-card-footer {
  border-top-color: rgba(255,255,255,0.08);
}
html.theme-dark .option-card-footer a {
  color: var(--accent);
}
html.theme-dark .product-tab {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}
html.theme-dark .product-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
html.theme-dark .product-tab.active {
  background: var(--accent);
  color: #0F172A;
  border-color: var(--accent);
}
html.theme-dark .card-hover-zoom .option-card-image {
  background: transparent;
}
html.theme-dark .card-hover-zoom .option-card-hover-btn .btn-primary {
  background: var(--accent);
  color: #0F172A;
}
html.theme-dark .card-hover-zoom .option-card-hover-btn .btn-primary:hover {
  background: #D97706;
}

html.theme-accessibility .option-card-row {
  gap: 1rem;
}
html.theme-accessibility .option-card {
  background: #000000;
  border-color: #FFFFFF;
}
html.theme-accessibility .option-card:hover {
  border-color: #FFFF00;
}
html.theme-accessibility .option-card-image {
  background: #000000;
  border-bottom-color: #FFFFFF;
}
html.theme-accessibility .option-card-header h4 {
  color: #FFFFFF;
}
html.theme-accessibility .option-card-meta span {
  color: #FFFFFF;
  background: #000000;
  border: 1px solid #FFFFFF;
}
html.theme-accessibility .option-card-desc {
  color: #FFFFFF;
}
html.theme-accessibility .option-card-footer {
  border-top-color: #FFFFFF;
}
html.theme-accessibility .option-card-footer a {
  color: #FFFFFF;
  text-decoration: underline;
}

/* --- Jacket card hover animation (like condition cards) --- */
.jacket-imgs {
  display: flex;
  gap: 1px;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  line-height: 0;
  margin-top: 1px;
}
.jacket-imgs img {
  display: block;
  max-height: 120px;
  width: auto;
  border-radius: 4px;
  transition: transform 0.3s ease;
  transform-origin: top center;
}
details.expandable:hover .jacket-imgs img {
  transform: scale(2);
}
.jacket-text {
  display: flex;
  flex-direction: column;
}
.jacket-shift {
  transition: transform 0.3s ease;
}
details.expandable:hover .jacket-shift {
  transform: translateY(130px);
}
.jacket-extra {
  transition: opacity 0.2s ease 0.15s;
}
.jacket-meta {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease 0.15s;
}
.jacket-meta span {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gray-500);
  background: var(--gray-50);
  padding: 0.125rem 0.45rem;
  border-radius: 3px;
  white-space: nowrap;
}
details.expandable:hover .jacket-meta {
  opacity: 1;
  pointer-events: auto;
}
details.expandable:hover .jacket-extra {
  opacity: 0;
  pointer-events: none;
}
details.expandable .jacket-text > div:last-child {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  margin-top: auto;
  position: relative;
  z-index: 2;
  transition: opacity 0.25s ease 0.15s, transform 0.25s ease 0.15s;
}
details.expandable:hover .jacket-text > div:last-child {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Images flush to summary */
details.expandable .jacket-content {
  margin-top: -1px;
}

/* --- Jacket images hover --- */
.jacket-img { cursor: pointer; }

/* --- Tubes grid --- */
.tubes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.tubes-grid details.expandable { margin-bottom: 0; height: 100%; }
.tubes-grid details.expandable .expandable-body { height: 100%; display: flex; flex-direction: column; }
.tubes-grid details.expandable .jacket-content { height: 100%; display: flex; flex-direction: column; }
.tubes-grid details.expandable .jacket-text { height: 100%; flex: 1; }
.tubes-grid details.expandable .jacket-text > div:last-child { margin-top: auto; padding-bottom: 2px; }
@media (max-width: 700px) {
  .tubes-grid { grid-template-columns: 1fr; }
}

/* --- Scroll Animation --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .navbar-links a { font-size: 0.8rem; padding: 0.4rem 0.3rem; }
  .navbar-links { gap: 0.1rem; }
  .theme-btn { padding: 0.35rem 0.4rem; }
}
@media (max-width: 960px) {
  .navbar-links a { font-size: 0.75rem; padding: 0.35rem 0.25rem; }
  .navbar .container { gap: 0.1rem; }
  .theme-toggles-desktop { display: none; }
}
@media (max-width: 820px) {
  .navbar-links a { font-size: 0.7rem; padding: 0.3rem 0.2rem; }
  .navbar .container { gap: 0.05rem; }
  .navbar-links { gap: 0.05rem; }
  .navbar-brand .brand-icon { width: 60px; height: 48px; font-size: 0.75rem; padding: 4px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; }
  .hero-device-card { max-width: 100%; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-steps { grid-template-columns: repeat(2, 1fr); }
  .principle-params { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
  .transmitters-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar .container { height: 56px; }
  .navbar-brand .brand-icon {
    width: 56px;
    height: 40px;
    font-size: 0.65rem;
    padding: 3px;
  }
  .navbar-links {
    display: flex;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    overflow-y: auto;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.5rem;
  }
  .navbar-links.open {
    opacity: 1;
    visibility: visible;
  }
  .navbar-links a {
    font-size: 1.2rem;
    padding: 0.85rem 1.5rem;
    width: auto;
    text-align: center;
  }
  .theme-toggles-mobile {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.5rem;
    width: auto;
  }
  .theme-toggles-desktop { display: none; }
  .navbar-toggle {
    display: block;
    z-index: 10000;
    position: relative;
  }
  .card-hover-zoom .option-card-hover-btn {
    opacity: 1;
    visibility: visible;
    position: static;
    z-index: auto;
  }
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero-content .hero-desc { font-size: 1rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .adv-card-last { grid-column: auto; }
  .principle-steps { grid-template-columns: 1fr; gap: 0; }
  .principle-params { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .transmitters-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
}

/* ===== MOBILE OPTIMIZATION — touch-friendly, readable, no breakage ===== */

@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .hero-content .hero-desc { font-size: 0.95rem; }

  /* Scrollable tables */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .options-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Compact cards */
  .about-highlight { padding: 1rem; }
  .adv-card { padding: 1rem; }
  .cert-card { padding: 1rem; }
  .adv-card { box-sizing: border-box; }
  .advantages-grid { box-sizing: border-box; }

  /* Contacts address */
  .contact-row { font-size: 0.875rem; }

  /* Hero height */
  .hero { min-height: auto; padding: 5rem 0 2rem; }

  /* Section spacing */
  .section { padding: 2rem 0; }

  /* Compact header stats */
  .hero-stats { gap: 0.5rem; }
  .hero-stat-value { font-size: 1.25rem; }

  /* Smaller badges */
  .hero-badges { gap: 0.4rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.25rem 0.6rem; }

  /* Buttons touch-friendly */
  .btn { padding: 0.65rem 1.25rem; font-size: 0.875rem; }

  /* Navbar links */
  .navbar-links a { padding: 0.75rem 1rem; font-size: 0.9375rem; }

  /* Principle steps */
  .principle-step { padding: 1rem; }

  /* Details/summary */
  details.expandable summary { padding: 0.75rem 1rem; font-size: 0.9375rem; }
  details.expandable .expandable-body { padding: 0 1rem 1rem; }

  /* Jacket images — wrap on mobile */
  .jacket-imgs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .jacket-imgs img {
    max-height: 80px;
  }

  /* Transmitter cards */
  .transmitter-card .tx-header { padding: 1rem 1rem 0.75rem; }
  .transmitter-card .tx-body { padding: 0.75rem 1rem 1rem; }

  /* Footer */
  .footer { padding: 2rem 0 1rem; }
  .footer-grid { gap: 1.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .btn { padding: 0.6rem 1.25rem; font-size: 0.8125rem; }
  .container { padding: 0 0.75rem; }
  .navbar .container { padding: 0 0.75rem; }
  .hero { padding: 4.5rem 0 1.5rem; }
  .hero-content .hero-subtitle { font-size: 1.1rem; }
  .section-header p { font-size: 0.9375rem; }

  /* Reduce gap in app grid */
  .apps-grid { gap: 0.75rem; }
  .app-card { padding: 0.875rem; }

  /* Tighter option table */
  .options-table td { font-size: 0.75rem; padding: 0.5rem; }
  .options-table th { font-size: 0.7rem; padding: 0.5rem; }
  
  /* Full-width sections on mobile */
  section { width: 100%; overflow: hidden; }
  .hero { width: 100%; }
  .hero::before { width: 100%; }
  
  /* Reduce hero padding more */
  .hero-content .hero-label { font-size: 0.65rem; }
  .hero-badge { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
}

/* --- Scrollbar --- */
:root { scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent; }
:root::-webkit-scrollbar { width: 8px; height: 8px; }
:root::-webkit-scrollbar-track { background: transparent; }
:root::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
html.theme-dark { scrollbar-color: #334155 transparent; }
html.theme-dark::-webkit-scrollbar-thumb { background: #334155; }

/* Ссылка «На главную» (масс-эксперт.рф) — компактнее на средних экранах */
.navbar-links a.nav-home { flex-shrink: 1; }
@media (max-width: 1300px) {
  .navbar-links a.nav-home { font-size: 0.75rem; padding: 0.4rem 0.3rem; }
}
@media (max-width: 1250px) {
  .navbar-links a.nav-home { font-size: 0; }
  .navbar-links a.nav-home i { font-size: 0.9rem; margin-right: 0; }
}

/* узкие экраны: ссылка «На главную» скрыта (10 ссылок не влезают), в мобильном меню — видна */
@media (min-width: 769px) and (max-width: 1176px) {
  .navbar-links a.nav-home { display: none; }
}
@media (max-width: 768px) {
  .navbar-links a.nav-home { display: inline-flex; font-size: 0.875rem; }
  .navbar-links a.nav-home i { font-size: 1rem; margin-right: 0.4rem; }
}
/* ============================================================
   ЕДИНАЯ ШАПКА AME + ТАБЫ ПРОДУКТА (union menu, 2026-08-17)
   ============================================================ */

/* --- Шапка AME (как на корпоративном масс-эксперт.рф) --- */
.ame-union-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #0B3D6B;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
html.theme-dark .ame-union-header { background: #0F172A; }
.ame-union-inner {
  max-width: 1200px; margin: 0 auto; height: 64px;
  padding: 0 20px; display: flex; align-items: center; gap: 20px;
}
.ame-union-logo {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; padding: 4px 6px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15); line-height: 0;
}
.ame-union-logo img { height: 34px; width: auto; display: block; }
.ame-union-nav { flex: 1 1 auto; }
.ame-union-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ame-union-nav > ul > li { position: relative; }
.ame-union-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; font-size: 15.5px; font-weight: 500; line-height: 1.3;
  padding: 10px 15px; border-radius: 9px; text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ame-union-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ame-union-nav .ame-sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: #072649; border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.35);
  display: none; animation: ame-union-drop 0.22s ease;
}
html.theme-dark .ame-union-nav .ame-sub { background: #1A2236; }
.ame-has-sub:hover .ame-sub { display: block; }
.ame-union-nav .ame-sub a { display: block; font-weight: 400; color: rgba(255, 255, 255, 0.85); }
.ame-union-nav .ame-sub a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
html.theme-dark .ame-union-nav .ame-sub a { color: #CBD5E1; }
html.theme-dark .ame-union-nav .ame-sub a:hover { background: #2A2F3E; color: #E2E8F0 !important; }
/* Тёмная тема: приглушённый текст пунктов меню (2026-08-25) */
html.theme-dark .ame-union-nav > ul > li > a { color: #E2E8F0 !important; }
html.theme-dark .ame-union-nav > ul > li > a:hover { color: #F59E0B !important; background: rgba(245, 158, 11, 0.12) !important; }
.ame-union-nav .ame-sub .ame-sub-product a { color: #F59E0B; font-weight: 600; }
@keyframes ame-union-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.ame-union-cta {
  flex: 0 0 auto; background: #0B3D6B; color: #FFFFFF;
  font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 8px;
  text-decoration: none; white-space: nowrap; border: none; cursor: pointer;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ame-union-cta:hover { background: #0A3574; color: #fff; transform: translateY(-1px); }
.ame-union-burger {
  flex: 0 0 auto; display: none; background: none; border: none; cursor: pointer;
  color: #fff; font-size: 22px; padding: 6px 8px; border-radius: 8px;
  transition: background-color 0.2s;
}
.ame-union-burger:hover { background: rgba(255, 255, 255, 0.1); }
html.theme-dark .ame-union-burger { color: #F59E0B; }

/* --- Крошки --- */
.ame-crumbs {
  max-width: 1200px; margin: 0 auto; padding: 8px 20px 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 12.5px; color: #64748B;
}
.ame-crumbs a { color: #0B3D6B; text-decoration: none; }
.ame-crumbs a:hover { color: #D97706; text-decoration: underline; }
html.theme-dark .ame-crumbs { color: #94A3B8; }
html.theme-dark .ame-crumbs a { color: #93C5FD; }
.ame-crumb-sep { margin: 0 6px; color: #94A3B8; }
html.theme-dark .ame-crumb-sep { color: #475569; }
.ame-crumb-current { color: #334155; font-weight: 500; }
html.theme-dark .ame-crumb-current { color: #E2E8F0; }

/* --- Таб-полоса продукта (переопределение .navbar) --- */
.ame-product-tabs {
  position: sticky !important; top: 64px !important; z-index: 990 !important;
  background: #FFFFFF !important; border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: none !important;
}
html.theme-dark .ame-product-tabs { background: #151B2B !important; border-bottom-color: #2A2F3E !important; }
.ame-product-tabs .container { height: 44px; }
.ame-product-tabs .navbar-links { height: 44px; gap: 2px; }
.ame-product-tabs .navbar-links a {
  color: #334155 !important; font-size: 13.5px !important; font-weight: 500 !important;
  padding: 0.45rem 0.55rem !important; border-radius: 6px !important;
  border-bottom: 2px solid transparent !important;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.ame-product-tabs .navbar-links a:hover { color: #D97706 !important; background: #F1F5F9 !important; }
.ame-product-tabs .navbar-links a.active { color: #D97706 !important; border-bottom-color: #F59E0B !important; }
html.theme-dark .ame-product-tabs .navbar-links a { color: #CBD5E1 !important; }
html.theme-dark .ame-product-tabs .navbar-links a:hover { color: #F59E0B !important; background: #2A2F3E !important; }
html.theme-dark .ame-product-tabs .navbar-links a.active { color: #F59E0B !important; border-bottom-color: #F59E0B !important; }

/* старые элементы ms-expert, ушедшие в шапку/попап */
.ame-product-tabs .navbar-brand,
.ame-product-tabs .navbar-toggle,
.ame-product-tabs .navbar-controls,
.ame-product-tabs .theme-toggles-desktop,
.ame-product-tabs .theme-toggles-mobile,
.ame-product-tabs .nav-home { display: none !important; }

/* --- Попап (как попап 867 на корпоративном) --- */
.ame-union-popup {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(2, 6, 23, 0.55); opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.ame-union-popup.open { opacity: 1; pointer-events: auto; }
.ame-union-popup-inner {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: #0F172A; overflow-y: auto; padding: 20px 24px 32px;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ame-union-popup.open .ame-union-popup-inner { transform: none; }
.ame-union-close {
  display: block; margin-left: auto; background: none; border: none; cursor: pointer;
  color: #fff; font-size: 22px; padding: 4px 8px; border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
}
.ame-union-close:hover { color: #F59E0B; background: rgba(255, 255, 255, 0.06); }
.ame-popup-nav ul { list-style: none; margin: 16px 0 0; padding: 0; }
.ame-popup-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.ame-popup-nav a {
  display: flex; align-items: center; justify-content: space-between;
  color: rgba(255, 255, 255, 0.88); font-size: 15px; font-weight: 500;
  padding: 13px 6px; text-decoration: none; transition: color 0.2s, background-color 0.2s;
}
.ame-popup-nav a:hover { color: #F59E0B; }
.ame-pm-sub-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left;
  color: rgba(255, 255, 255, 0.88); font-size: 15px; font-weight: 500;
  padding: 13px 6px; font-family: inherit; transition: color 0.2s;
}
.ame-pm-sub-btn:hover { color: #F59E0B; }
.ame-pm-sub { display: none; padding: 0 0 6px 14px; }
.ame-pm-open > .ame-pm-sub { display: block; }
.ame-pm-sub a { font-size: 14px; font-weight: 400; padding: 9px 6px; color: rgba(255, 255, 255, 0.72); }
.ame-pm-sub a:hover { color: #F59E0B; }
.ame-pm-product-btn, .ame-pm-product a { color: rgba(255, 255, 255, 0.72); font-weight: 400; }
.ame-pm-sub-btn i { transition: transform 0.25s; font-size: 13px; }
.ame-pm-open > .ame-pm-sub-btn i { transform: rotate(180deg); }
/* капсулы: темы и язык в одном ряду */
.ame-popup-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 20px;
}
.ame-popup-themes {
  display: inline-flex; align-items: center; gap: 2px;
  background: #1B2230; border: 1px solid #2A2F3E; border-radius: 999px; padding: 3px;
}
.ame-popup-themes .ame-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 30px; padding: 0;
  background: none; border: none; border-radius: 999px;
  color: #94A3B8; font-size: 14px; cursor: pointer;
  font-family: inherit; transition: background-color 0.2s, color 0.2s;
}
.ame-popup-themes .ame-theme-toggle:hover { color: #E2E8F0; }
.ame-popup-themes .ame-theme-toggle.active { background: rgba(255, 255, 255, 0.14); color: #F8FAFC; }
.ame-theme-toggle-label { display: none; }
/* капсула тем в подвале раздела (тёмный футер) */
.ame-theme-capsule {
  display: inline-flex; align-items: center; gap: 2px;
  background: #1B2230; border: 1px solid #2A2F3E; border-radius: 999px; padding: 3px;
}
.ame-theme-capsule button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 30px; padding: 0;
  background: none; border: none; border-radius: 999px;
  color: #94A3B8; font-size: 14px; cursor: pointer; font-family: inherit;
  transition: background-color 0.2s, color 0.2s;
}
.ame-theme-capsule button:hover { color: #E2E8F0; }
.ame-theme-capsule button.active { background: rgba(255, 255, 255, 0.14); color: #F8FAFC; }
/* капсула языка в подвале раздела: как в попапе, но фон прозрачный (2026-09-13) */
.ame-lang-foot .ame-lang-popup { background: transparent; border-color: #2A2F3E; }

/* --- body padding под фиксированную шапку --- */
body { padding-top: 64px; }
@media (max-width: 768px) {
  body { padding-top: 56px; }
  .ame-crumbs { display: none; }
  .ame-product-tabs { display: none !important; }
  .ame-union-inner { height: 56px; padding: 0 16px; gap: 12px; }
  .ame-union-logo img { height: 28px; }
  .ame-union-nav { display: none; }
  .ame-union-cta { padding: 5px 10px !important; font-size: 13px !important; }
  .ame-union-burger { display: block; }
}
@media (max-width: 960px) and (min-width: 769px) {
  .ame-union-nav { display: none; }
  .ame-union-burger { display: block; }
}
section[id] { scroll-margin-top: 130px; }
@media (max-width: 768px) { section[id] { scroll-margin-top: 76px; } }

/* ============================================================
   UNION v2: бейдж продукта слева, логотип AME по центру,
   бургер справа ВСЕГДА, большой крест (2026-08-17)
   ============================================================ */
.ame-union-inner { position: relative; justify-content: space-between; gap: 12px; }
.ame-union-left, .ame-union-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ame-union-logo {
  display: flex; align-items: center; justify-content: center;
}
.ame-product-badge {
  flex: 0 0 auto; width: 70px; height: 55px;
  background: #F59E0B; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.875rem; line-height: 1.2;
  color: #0F172A; text-align: center; padding: 6px;
  text-decoration: none; font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ame-product-badge:hover { background: #D97706; color: #0F172A; }
.ame-union-burger { display: inline-flex; align-items: center; justify-content: center; }
.ame-union-close { font-size: 30px; padding: 8px 12px; }
@media (max-width: 960px) {
  .ame-union-nav { display: none !important; }
  .ame-union-burger { display: inline-flex !important; }
}
@media (max-width: 768px) {
  .ame-union-burger { display: inline-flex !important; }
  .ame-product-badge { width: 54px; height: 44px; font-size: 0.7rem; }
  .ame-union-left, .ame-union-right { gap: 8px; }
}

/* ЗНАЧОК AME в шапке раздела — графический логотип на белом квадрате (2026-08-17) */
.ame-union-logo {
  background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15); border-radius: 10px;
  width: 70px; height: 55px; padding: 0;   /* размер = бейджу MASS EXPERT */
}
.ame-union-logo img { height: 42px; width: auto; display: block !important; }
@media (max-width: 768px) {
  .ame-union-logo { width: 54px !important; height: 44px !important; }
  .ame-union-logo img { height: 32px !important; }
}
.ame-union-logo::after { content: none !important; display: none !important; width: auto !important; height: auto !important; background: none !important; }

/* ===== ТАБЫ ПРОДУКТА: 14 пунктов — горизонтальный скролл без полосы (как Emerson), 2026-08-18 ===== */
.ame-product-tabs .container { max-width: 100% !important; }
.ame-product-tabs .navbar-links {
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
}
.ame-product-tabs .navbar-links::-webkit-scrollbar { display: none !important; }
.ame-product-tabs .navbar-links a { white-space: nowrap; flex: 0 0 auto; }

/* ===== 2026-09-25: текст ссылок полосы вкладок продукции — ПО ЦЕНТРУ =====
   Полоса прижималась влево (flex-start), на широких экранах справа оставалась пустота.
   Центрируем саму полосу (auto-поля), пока влезает; при переполнении — прежняя лента
   со скроллом слева. */
.ame-product-tabs .navbar-links { margin-left: auto !important; margin-right: auto !important; }
.ame-product-tabs .navbar-links a { text-align: center; }
/* якоря подсекций (Госреестр/ТР ТС/Сейсмостойкость/Криогенное) не прячутся под шапкой+табами */
#gossreestr-si, #tr-ts-012, #seysmostoykost, #kriogenika { scroll-margin-top: 130px; }
@media (max-width: 768px) {
  #gossreestr-si, #tr-ts-012, #seysmostoykost, #kriogenika { scroll-margin-top: 76px; }
}

/* ===== БЕГУНОК ПО СЕКЦИЯМ СТРАНИЦЫ (.ame-anchor-tabs) — ЭТАЛОН nasosnye (2026-08-26) =====
   Начальное положение: матовое стекло (blur 19px/0.12), высота 1.5× (62/81px),
   ширина = шапке (JS в main.js); при прилипании — синий (светлая) / #1A2236
   (тёмная), компактный 36px, во всю ширину. */
.ame-anchor-tabs { z-index: 989; left: 0; right: 0; }
.ame-anchor-tabs:not(.ame-anchor-stuck) { min-height: 62px; }
.ame-anchor-tabs .elementor-widget-container {
  padding: 0 16px !important;
  max-width: none !important;
}
.ame-anchor-tabs:not(.ame-anchor-stuck) .elementor-widget-container {
  min-height: 62px;
  display: flex;
  align-items: center;
  background: rgba(15,23,42,0.35) !important;
  -webkit-backdrop-filter: blur(19px) saturate(160%) !important;
  backdrop-filter: blur(19px) saturate(160%) !important;
}
html.theme-dark .ame-anchor-tabs:not(.ame-anchor-stuck) .elementor-widget-container {
  background: rgba(15,23,42,0.45) !important;
}
@media (max-width: 768px) {
  .ame-anchor-tabs:not(.ame-anchor-stuck),
  .ame-anchor-tabs:not(.ame-anchor-stuck) .elementor-widget-container { min-height: 81px; }
}
.ame-anchor-tabs .elementor-icon-list-items {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  min-width: 100% !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.ame-anchor-tabs .elementor-icon-list-items::-webkit-scrollbar { display: none !important; }
.ame-anchor-tabs .elementor-icon-list-item { margin-right: 8px !important; flex: 0 0 auto; }
.ame-anchor-tabs .elementor-icon-list-item a {
  display: inline-flex !important;
  align-items: center;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  white-space: nowrap;
  color: #E2E8F0 !important;
  font-size: 14px !important;
  transition: background-color 0.25s cubic-bezier(0.4,0,0.2,1), color 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}
.ame-anchor-tabs .elementor-icon-list-item a:hover { background: rgba(245,158,11,0.12); }
.ame-anchor-tabs .elementor-icon-list-item.ame-anchor-active a,
.ame-anchor-tabs .elementor-icon-list-item a.active { background: #F59E0B !important; color: #0F172A !important; }
/* прилипший: синий (светлая) / #1A2236 (тёмная), компактный 36px — как эталон nasosnye */
.ame-anchor-tabs.ame-anchor-stuck .elementor-widget-container {
  background: #0B3D6B !important;
  border-bottom: none !important;
  height: 36px !important;
  min-height: 36px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 16px !important;
}
html.theme-dark .ame-anchor-tabs.ame-anchor-stuck .elementor-widget-container {
  background: #1A2236 !important;
}
.ame-anchor-tabs.ame-anchor-stuck .elementor-icon-list-item a,
.ame-anchor-tabs.ame-anchor-stuck .elementor-icon-list-text {
  color: #E2E8F0 !important;
}
.ame-anchor-tabs.ame-anchor-stuck .elementor-icon-list-item a:hover { background: rgba(255,255,255,0.12) !important; color: #FFFFFF !important; }
.ame-anchor-tabs.ame-anchor-stuck .elementor-icon-list-item.ame-anchor-active a,
.ame-anchor-tabs.ame-anchor-stuck .elementor-icon-list-item a.active { background: #F59E0B !important; color: #0F172A !important; }
.ame-anchor-tabs.ame-anchor-stuck .elementor-icon-list-item.ame-anchor-active a .elementor-icon-list-text,
.ame-anchor-tabs.ame-anchor-stuck .elementor-icon-list-item a.active .elementor-icon-list-text { color: #0F172A !important; }
html.theme-dark .ame-anchor-tabs .elementor-icon-list-item a { color: #CBD5E1 !important; }
html.theme-dark .ame-anchor-tabs .elementor-icon-list-item a:hover { background: rgba(245,158,11,0.18); color: #FFFFFF !important; }
html.theme-dark .ame-anchor-tabs .elementor-icon-list-item.ame-anchor-active a,
html.theme-dark .ame-anchor-tabs .elementor-icon-list-item a.active { background: #F59E0B !important; color: #0F172A !important; }
html.theme-dark .ame-anchor-tabs.ame-anchor-stuck .elementor-widget-container { background: #1A2236 !important; border-bottom-color: #2A2F3E !important; }
/* якоря не прячутся под шапкой+табами+бегунком */
.ame-anchor-tabs + section[id] { scroll-margin-top: 130px; }

/* ============================================================
   UNION v3 (2026-08-18): шапка как на остальном сайте —
   порядок АМЭ → линия → бейдж → меню → CTA/бургер;
   светлая тема — БЕЛАЯ шапка (как корпоративный v=21)
   ============================================================ */
html:not(.theme-dark):not(.theme-accessibility) .ame-union-header {
  background: #FFFFFF !important;
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.12) !important;
  border-bottom: 1px solid #E2E8F0 !important;
}
html.theme-accessibility .ame-union-header { background: #000000 !important; }

.ame-union-logo {
  position: static !important; left: auto !important; transform: none !important;
  flex: 0 0 auto;
}
.ame-union-left {
  display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0;
}
.ame-union-nav { margin-left: 12px; }

/* вертикальная линия между АМЭ и бейджем (как на корпоративном) */
.ame-product-badge { position: relative; }
.ame-product-badge::before {
  content: ''; position: absolute; left: -3px; top: 0; width: 1px; height: 55px;
  background: #334155;
}

/* меню верхнего уровня: тёмный текст в светлой теме */
html:not(.theme-dark):not(.theme-accessibility) .ame-union-nav > ul > li > a {
  color: #1E293B !important;
}
html:not(.theme-dark):not(.theme-accessibility) .ame-union-nav > ul > li > a:hover {
  color: #0B3D6B !important; background: rgba(11, 61, 107, 0.08) !important;
}
html:not(.theme-dark):not(.theme-accessibility) .ame-union-nav .ame-sub a {
  color: rgba(255, 255, 255, 0.85) !important;
}
html:not(.theme-dark):not(.theme-accessibility) .ame-union-nav .ame-sub a:hover {
  color: #FFFFFF !important; background: rgba(255, 255, 255, 0.1) !important;
}

/* CTA: синяя в светлой теме (как кнопка «Связаться с нами» корпоративного) */
html:not(.theme-dark):not(.theme-accessibility) .ame-union-cta {
  background: #0B3D6B !important; color: #FFFFFF !important;
}
html:not(.theme-dark):not(.theme-accessibility) .ame-union-cta:hover {
  background: #0A3574 !important; color: #FFFFFF !important;
}
html.theme-dark .ame-union-cta { background: #194687 !important; color: #E2E8F0 !important; }
html.theme-dark .ame-union-cta:hover { background: #1E4F8F !important; color: #E2E8F0 !important; }

/* бургер: тёмный в светлой теме */
html:not(.theme-dark):not(.theme-accessibility) .ame-union-burger { color: #0F172A !important; }
html:not(.theme-dark):not(.theme-accessibility) .ame-union-burger:hover { background: rgba(15, 23, 42, 0.08) !important; }

/* мобильный: та же стабильная композиция — значок+бейдж слева, бургер справа */
@media (max-width: 768px) {
  .ame-product-badge::before { height: 44px; }
}

/* ===== Точки-маркеры у бегунков — убрать (2026-08-18) ===== */
.ame-anchor-tabs ul { list-style: none !important; padding-left: 0 !important; margin: 0 !important; }

/* фикс: inline-остаток мини-шапки .navbar{top:0!important} перебивал sticky
   табов — форсируем top:64 (под шапкой) более специфичным селектором (v=3) */
nav.ame-product-tabs { top: 64px !important; }
@media (max-width: 768px) {
  nav.ame-product-tabs { top: 56px !important; }
}

/* ============================================================
   v=4 (2026-08-18): шапка 50px/28px (в 2 раза), лейблы табов
   по вертикальному центру, scroll-margin под новую шапку
   ============================================================ */
.ame-union-inner { height: 50px !important; }
body { padding-top: 50px !important; }
nav.ame-product-tabs { top: 50px !important; }
section[id],
#gossreestr-si, #tr-ts-012, #seysmostoykost, #kriogenika,
.ame-anchor-tabs + section[id] { scroll-margin-top: 100px !important; }

.ame-union-logo img { height: 20px !important; }
.ame-union-left .ame-product-badge {
  width: 36px !important; height: 28px !important;
  font-size: 0.45rem !important; padding: 2px !important; border-radius: 6px !important;
}
.ame-union-left .ame-product-badge::before { height: 28px !important; }
.ame-union-nav a { padding: 6px 10px !important; font-size: 13px !important; }
.ame-union-cta { padding: 6px 14px !important; font-size: 13px !important; }
.ame-union-burger { font-size: 20px !important; padding: 4px 6px !important; }
.ame-union-close { font-size: 24px !important; padding: 4px 8px !important; }

/* 2. Лейблы табов и бегунков — строго по вертикальному центру */
.ame-product-tabs .navbar-links { align-items: center !important; }
.ame-product-tabs .navbar-links a {
  display: inline-flex !important; align-items: center !important; line-height: 1 !important;
}
.ame-anchor-tabs .elementor-icon-list-items,
.ame-anchor-tabs ul { align-items: center !important; }
.ame-anchor-tabs .elementor-icon-list-item,
.ame-anchor-tabs li,
.ame-anchor-tabs li a { display: inline-flex !important; align-items: center !important; }

/* Мобильный: шапка 28px */
@media (max-width: 768px) {
  .ame-union-inner { height: 28px !important; }
  body { padding-top: 28px !important; }
  nav.ame-product-tabs { top: 28px !important; }
  section[id],
  #gossreestr-si, #tr-ts-012, #seysmostoykost, #kriogenika,
  .ame-anchor-tabs + section[id] { scroll-margin-top: 76px !important; }
  .ame-union-logo img { height: 14px !important; }
  .ame-union-left .ame-product-badge {
    width: 27px !important; height: 22px !important; padding: 1px !important;
  }
  .ame-union-left .ame-product-badge::before { height: 22px !important; }
  .ame-union-burger { font-size: 16px !important; padding: 3px 5px !important; }
  .ame-union-close { font-size: 20px !important; padding: 3px 6px !important; }
}

/* ============================================================
   ШАПКА UNION = КОРПОРАТИВНАЯ: значок + название + меню + кнопка + бургер (2026-08-19)
   ============================================================ */
.ame-union-inner { display: flex; align-items: center; justify-content: space-between; }
.ame-union-left { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.ame-union-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px; font-weight: 600; line-height: 1.2; color: #0F172A; white-space: nowrap;
}
.ame-union-nav { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; margin-left: 0 !important; }
.ame-union-nav > ul { gap: 2px; }
.ame-union-right { flex: 0 0 auto; }
/* логотип как у корпоративной шапки: 36x28 (моб 27x22) */
.ame-union-logo { width: 36px !important; height: 28px !important; padding: 0 !important; display: flex !important; align-items: center; justify-content: center; }
.ame-union-logo img { height: 24px !important; width: auto; display: block !important; }
/* светлая тема */
html:not(.theme-dark):not(.theme-accessibility) .ame-union-name { color: #0F172A !important; }
/* тёмная тема */
html.theme-dark .ame-union-name { color: #E2E8F0 !important; }
html.theme-accessibility .ame-union-name { color: #FFFFFF !important; }
@media (max-width: 768px) {
  .ame-union-name { display: none; }
  .ame-union-logo { width: 27px !important; height: 22px !important; }
  .ame-union-logo img { height: 16px !important; }
}

/* ============================================================
   БЕГУНОК mass-expert ВИДЕН НА МОБИЛЬНОМ: горизонтальный скролл без полосы (2026-08-19)
   ============================================================ */
@media (max-width: 768px) {
  .ame-product-tabs { display: block !important; }
}

/* ============================================================
   ПЛАНШЕТ/ДЕСКТОП как у корпоративной шапки (2026-08-19)
   - десктоп: бургер скрыт (меню видно)
   - планшет 769-960: CTA виден (меню в бургере)
   ============================================================ */
@media (min-width: 961px) {
  .ame-union-burger { display: none !important; }
}
@media (max-width: 960px) and (min-width: 769px) {
  .ame-union-cta { display: inline-flex !important; }
}

/* ============================================================
   БЕГУНОК mass-expert на мобильном: лента В РЯД (не в столбик) (2026-08-19)
   ============================================================ */
@media (max-width: 768px) {
  .ame-product-tabs .navbar-links { flex-direction: row !important; height: 44px !important; }
}

/* ============================================================
   v=6: ШАПКА В 1.5 РАЗА ВЫШЕ (50->75, моб 28->42);
   композиция как на продуктовых: значок АМЭ | линия | бейдж (2026-08-19)
   ============================================================ */
.ame-union-inner { height: 75px !important; }
body { padding-top: 75px !important; }
nav.ame-product-tabs { top: 75px !important; }
section[id],
#gossreestr-si, #tr-ts-012, #seysmostoykost, #kriogenika,
.ame-anchor-tabs + section[id] { scroll-margin-top: 185px !important; }
/* значок АМЭ БЕЗ квадрата (был белый bg + тень + radius) */
.ame-union-logo { width: 54px !important; height: 42px !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
.ame-union-logo img { height: 36px !important; }
/* название компании не показываем (на продуктовых страницах его нет) */
.ame-union-name { display: none !important; }
/* бейдж продукта как на продуктовых страницах */
.ame-union-left .ame-product-badge { width: 54px !important; height: 42px !important; font-size: 0.62rem !important; padding: 3px 5px !important; border-radius: 9px !important; }
.ame-union-left .ame-product-badge::before { height: 42px !important; }
/* меню / CTA / бургер крупнее */
.ame-union-nav a { padding: 10px 16px !important; font-size: 16px !important; border-radius: 9px !important; letter-spacing: 0.01em !important; }
.ame-union-cta { padding: 8px 18px !important; font-size: 15px !important; }
.ame-union-burger { font-size: 24px !important; padding: 5px 8px !important; }
.ame-union-close { font-size: 28px !important; padding: 5px 9px !important; }
@media (max-width: 768px) {
  .ame-union-inner { height: 42px !important; }
  body { padding-top: 42px !important; }
  nav.ame-product-tabs { top: 42px !important; }
  section[id],
  #gossreestr-si, #tr-ts-012, #seysmostoykost, #kriogenika,
  .ame-anchor-tabs + section[id] { scroll-margin-top: 150px !important; }
  .ame-union-logo { width: 40px !important; height: 33px !important; }
  .ame-union-logo img { height: 24px !important; }
  .ame-union-left .ame-product-badge { width: 40px !important; height: 33px !important; font-size: 0.5rem !important; padding: 2px 3px !important; }
  .ame-union-left .ame-product-badge::before { height: 33px !important; }
  .ame-union-burger { font-size: 20px !important; padding: 4px 6px !important; }
  .ame-union-close { font-size: 24px !important; padding: 4px 7px !important; }
}

/* ============================================================
   v=7: бургер mass-expert — тач-таргет 40x40 (как на корпоративном) (2026-08-19)
   ============================================================ */
.ame-union-burger {
  width: 40px !important; height: 40px !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  font-size: 22px !important; line-height: 1 !important; border-radius: 8px !important;
}
@media (max-width: 768px) {
  .ame-union-burger { width: 40px !important; height: 40px !important; font-size: 20px !important; }
}

/* ============================================================
   v=12: ЕДИНАЯ шапка как на корпоративных (2026-08-25)
   - scrollbar-gutter: stable → ширина вьюпорта как на всех страницах
   - значок АМЭ: всегда 5px от левого края, размер как на главной (72px)
   - композиция: значок → 8px → линия → 8px → бейдж продукта
   ============================================================ */
html { scrollbar-gutter: stable; }
.ame-union-header .ame-union-inner { position: static !important; }
.ame-union-left {
  position: absolute !important; left: 5px !important; top: 50% !important;
  transform: translateY(-50%) !important; gap: 16px !important;
}
.ame-union-right { margin-left: auto !important; }
.ame-union-logo {
  width: auto !important; height: auto !important; padding: 0 !important;
  background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
}
.ame-union-logo img { height: 72px !important; width: auto !important; display: block !important; }
.ame-union-left .ame-product-badge::before { left: -8px !important; }
@media (max-width: 768px) {
  .ame-union-logo img { height: 24px !important; }
}

/* ===== Попап «Отправить запрос» (кнопка «Связаться с нами») ===== */
.ame-request-popup { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 16px; }
.ame-request-popup.open { display: flex; }
.ame-request-popup-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.6); }
.ame-request-popup-card {
  position: relative; background: #FFFFFF; border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  width: 100%; max-width: 440px; padding: 28px;
  max-height: 90vh; overflow: auto; box-sizing: border-box;
}
.ame-request-popup-close {
  position: absolute; top: 10px; right: 10px; background: none; border: none;
  font-size: 20px; color: #64748B; cursor: pointer; padding: 6px; border-radius: 8px; line-height: 1;
}
.ame-request-popup-close:hover { color: #0F172A; }
.ame-request-popup-card h3 { margin: 0 0 18px; font-size: 20px; color: #0F172A; font-weight: 700; }
.ame-request-form input, .ame-request-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #E2E8F0; border-radius: 8px;
  padding: 11px 14px; font-size: 15px; color: #0F172A; background: #FFFFFF;
  margin-bottom: 12px; font-family: inherit;
}
.ame-request-form input:focus, .ame-request-form textarea:focus {
  outline: none; border-color: #0B3D6B; box-shadow: 0 0 0 3px rgba(11, 61, 107, 0.12);
}
.ame-request-form textarea { resize: vertical; min-height: 90px; }
.ame-request-submit {
  width: 100%; background: #F59E0B; color: #0F172A; border: none; border-radius: 8px;
  padding: 12px 18px; font-size: 16px; font-weight: 600; cursor: pointer;
}
.ame-request-submit:hover { background: #D97706; color: #0F172A; }
.ame-request-note { margin: 10px 0 0; font-size: 13px; color: #64748B; text-align: center; }
.ame-request-success { text-align: center; padding: 20px 0 8px; }
.ame-request-success i { font-size: 44px; color: #16A34A; margin-bottom: 12px; }
.ame-request-success h4 { margin: 0 0 8px; font-size: 18px; color: #0F172A; }
.ame-request-success p { margin: 0; color: #64748B; font-size: 14px; }
html.theme-dark .ame-request-popup-card { background: #1A2236; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6); }
html.theme-dark .ame-request-popup-card h3 { color: #E2E8F0; }
html.theme-dark .ame-request-popup-close { color: #94A3B8; }
html.theme-dark .ame-request-popup-close:hover { color: #F1F5F9; }

html.theme-dark .ame-request-form input, html.theme-dark .ame-request-form textarea {
  background: #0F172A !important; border-color: rgba(255, 255, 255, 0.2); color: #E2E8F0;
}

html.theme-dark .ame-request-form input::placeholder, html.theme-dark .ame-request-form textarea::placeholder { color: #64748B; }
html.theme-dark .ame-request-form input:focus, html.theme-dark .ame-request-form textarea:focus {
  border-color: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
html.theme-dark .ame-request-success h4 { color: #E2E8F0; }
html.theme-dark .ame-request-success p { color: #94A3B8; }

.ame-request-status { font-size: 0.85rem; margin: 0.5rem 0 0; color: #DC2626; }
html.theme-dark .ame-request-status { color: #F87171; }
 «Отправить запрос»: блок контактов AME над формой
   (2026-08-26)
   ============================================================ */
.ame-request-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 14px;
  font-size: 0.9rem;
}
.ame-request-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #334155 !important;
  text-decoration: none !important;
}
.ame-request-contact i { color: #0B3D6B; font-size: 0.85rem; }
.ame-request-contact:hover { color: #0B3D6B !important; }
html.theme-dark .ame-request-contact { color: #CBD5E1 !important; }
html.theme-dark .ame-request-contact i { color: #93C5FD; }
html.theme-dark .ame-request-contact:hover { color: #E2E8F0 !important; }
 «Отправить запрос»: блок контактов AME над формой
   (2026-08-26)
   ============================================================ */
.ame-request-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 14px;
  font-size: 0.9rem;
}
.ame-request-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #334155 !important;
  text-decoration: none !important;
}
.ame-request-contact i { color: #0B3D6B; font-size: 0.85rem; }
.ame-request-contact:hover { color: #0B3D6B !important; }
html.theme-dark .ame-request-contact { color: #CBD5E1 !important; }
html.theme-dark .ame-request-contact i { color: #93C5FD; }
html.theme-dark .ame-request-contact:hover { color: #E2E8F0 !important; }

/* ===== БЕЙДЖИ В ШАПКЕ: текст крупнее (ровно ×2), плашка по контенту (2026-08-26) =====
   Было 0.45rem ПК / 0.35rem моб — стало 0.9rem / 0.7rem. Высота 42/33 как у
   корпоративных (2 строки «MASS EXPERT» влезают), ширина по контенту. */
.ame-union-left .ame-product-badge:not(.ame-badge-text) {
  font-size: 0.9rem !important;
  width: auto !important;
  min-width: 54px !important;
  height: 42px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
}
.ame-union-left .ame-product-badge:not(.ame-badge-text)::before { height: 42px !important; }
@media (max-width: 768px) {
  .ame-union-left .ame-product-badge:not(.ame-badge-text) {
    font-size: 0.7rem !important;
    min-width: 40px !important;
    height: 33px !important;
    padding: 0 8px !important;
  }
  .ame-union-left .ame-product-badge:not(.ame-badge-text)::before { height: 33px !important; }
}

/* ===== МОБИЛЬНЫЙ: АМЭ и бейдж как на корпоративных (kompakt-pruver): высота 33px (2026-08-26) ===== */
@media (max-width: 768px) {
  .ame-union-logo { width: 31px !important; height: 33px !important; }
  .ame-union-logo img { height: 25px !important; }
}


/* v24 (2026-09-10): переключатель RU/EN — тёмная плашка, виден на белой шапке */
.ame-lang-switch {
    background: transparent !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    color: #334155 !important;
    padding: 10px 14px !important;
    line-height: 1.2 !important;
}
.ame-lang-switch:hover { background: #F1F5F9 !important; color: #0F172A !important; border-color: #94A3B8 !important; }
html.theme-dark .ame-lang-switch { border-color: #475569 !important; color: #CBD5E1 !important; }
html.theme-dark .ame-lang-switch:hover { background: rgba(255, 255, 255, 0.08) !important; color: #FFFFFF !important; }

/* v25: мост над всплывающим меню шапки (hover не рвётся при переходе курсора) */
.ame-has-sub { position: relative; }
.ame-has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
/* v27: переключатель языка: в подвале (всегда) и в бургер-меню рядом с темами; шапка-плашка скрыта на мобильном */
@media (max-width: 1024px) { .ame-union-header .ame-lang-switch { display: none !important; } }
/* 2026-09-27: капсула RU|EN в шапке больше не строится (заменена кнопкой [◐ RU ▾]) — скрыта на всех ширинах */
.ame-union-header .ame-lang-head { display: none !important; }
.ame-lang-foot { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px 16px 18px; }
.ame-lang-foot-sep { color: #94A3B8; }
.ame-popup-sep { align-self: center; color: rgba(255, 255, 255, 0.35); margin: 0 2px 0 6px; }
.ame-lang-popup { display: inline-flex; gap: 2px; background: #1B2230; border: 1px solid #2A2F3E; border-radius: 999px; padding: 3px; }
.ame-lang-popup .ame-popup-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 30px; padding: 0 12px; border: none; border-radius: 999px; color: #94A3B8; font-size: 12px; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; transition: background-color 0.2s, color 0.2s; }
.ame-lang-popup .ame-popup-lang:hover { color: #E2E8F0; }
.ame-lang-popup .ame-popup-lang.on { background: rgba(255, 255, 255, 0.14); color: #F8FAFC; }

/* 2026-09-13: RU|EN в шапке и подвале — тот же капсульный вид, что в меню гамбургера; фон капсул прозрачный */
.ame-lang-foot .ame-lang-popup { background: transparent; }
.ame-lang-popup.ame-lang-head { display: inline-flex; align-items: center; gap: 2px; background: transparent; border: 1px solid #CBD5E1; border-radius: 999px; padding: 3px; }
html.theme-dark .ame-lang-popup.ame-lang-head { border-color: #475569; }
html.theme-accessibility .ame-lang-popup.ame-lang-head { border-color: #CBD5E1; }
html:not(.theme-dark):not(.theme-accessibility) .ame-lang-popup.ame-lang-head .ame-popup-lang { color: #64748B; }
html:not(.theme-dark):not(.theme-accessibility) .ame-lang-popup.ame-lang-head .ame-popup-lang:hover { color: #334155; }
html:not(.theme-dark):not(.theme-accessibility) .ame-lang-popup.ame-lang-head .ame-popup-lang.on { background: rgba(15, 23, 42, 0.08); color: #0F172A; }


/* ===== Бегунок плавает над низом hero (74px + своя высота): поднять контент hero ===== */
section[class$="-hero"], section.hero { padding-bottom: 150px; }
@media (max-width: 768px) {
  section[class$="-hero"], section.hero { padding-bottom: 170px; }
}


/* ===== Чипы модификаций в hero страниц опций ===== */
.hero-opts{position:relative;z-index:1;max-width:1200px;margin:20px auto 0;padding:0 24px;}
.hero-opts-row{display:flex;gap:8px;flex-wrap:wrap;}
.hero-opt{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);border-radius:10px;padding:5px 12px 5px 5px;text-decoration:none;transition:background .15s ease,border-color .15s ease,transform .15s ease;}
.hero-opt:hover{transform:translateY(-2px);background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.35);}
.hero-opt img{width:30px;height:30px;border-radius:7px;object-fit:cover;display:block;}
.hero-opt b{color:#fff;font-size:.92rem;font-weight:800;letter-spacing:.02em;}
.hero-opt.on{border-color:rgba(245,158,11,.65);background:rgba(245,158,11,.14);}
.hero-opt.on b{color:#FBBF24;}
@media (max-width:768px){.hero-opts{padding:0 20px;}.hero-opt img{width:26px;height:26px;}}



/* ===== CTA-баннер раздела: кнопка-попап «Связаться с нами» (вид btn-outline на синем фоне) ===== */
.section-blue .ame-union-cta,
html:not(.theme-dark):not(.theme-accessibility) .section-blue .ame-union-cta,
html.theme-dark .section-blue .ame-union-cta,
html.theme-accessibility .section-blue .ame-union-cta {
 background: transparent !important;
 color: #FFFFFF !important;
 border: 2px solid rgba(255,255,255,0.9) !important;
 padding: 0.875rem 2.25rem !important;
 font-size: 1rem !important;
 font-weight: 600 !important;
 font-family: inherit !important;
 border-radius: var(--radius) !important;
}
.section-blue .ame-union-cta:hover,
html:not(.theme-dark):not(.theme-accessibility) .section-blue .ame-union-cta:hover,
html.theme-dark .section-blue .ame-union-cta:hover,
html.theme-accessibility .section-blue .ame-union-cta:hover {
 background: rgba(255,255,255,0.15) !important;
 color: #FFFFFF !important;
}


/* ============================================================
   МОБИЛЬНЫЙ: таб-полоса — ссылки ВСЕГДА видимы (2026-09-23)
   Правило .navbar-links (мобильный оверлей старой шапки, ≤768px)
   делало ссылки таб-полосы невидимыми (opacity/visibility hidden,
   position:fixed): полоса рисовалась пустой белой строкой.
   Бургера у .ame-product-tabs нет — раскрыть её было нельзя.
   ============================================================ */
@media (max-width: 768px) {
  nav.ame-product-tabs .navbar-links {
    position: static !important;
    top: auto !important; left: auto !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    background: transparent !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
    transition: none !important;
  }
}

/* runner-left-align: begin (2026-09-25 №2: слева, от края контента; скролл по горизонтали, в т.ч. с ПК) */
.ame-anchor-tabs .elementor-widget-container,
.ame-anchor-tabs.ame-anchor-stuck .elementor-widget-container { padding: 0 !important; }
.ame-anchor-tabs .elementor-icon-list-items {
  justify-content: flex-start !important;
  max-width: 1240px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}
/* runner-left-align: end */

/* ===== 2026-09-24: знак в шапке — белый в тёмной теме и в режиме для слабовидящих =====
   Раньше правила не было: знак оставался тёмно-синим (#194687) на тёмном фоне. */
html.theme-dark .ame-union-logo img,
html.theme-accessibility .ame-union-logo img { filter: brightness(0) invert(1) !important; }

/* ===== конец блока 2026-09-24 ===== */

/* ===== contrast-2026-09-24: begin ===== */
/* Hero-секции с ярким/светлым градиентом: затемняем подложку в тёмной и a11y темах */
html.theme-dark .food-hero::after, html.theme-accessibility .food-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: rgba(15, 23, 42, 0.6); z-index: 0;
}
html.theme-accessibility .food-hero::after { background: rgba(0, 0, 0, 0.72); }
html.theme-dark .food-hero .container, html.theme-accessibility .food-hero .container { position: relative; z-index: 1; }
/* Подписи над заголовком hero: серый #6B7280 на тёмном (1.7–3.0) */
html.theme-dark .cond-label, html.theme-dark .hero-label, html.theme-dark .food-label,
html.theme-dark .poly-label, html.theme-dark .bio-label, html.theme-dark .bat-label,
html.theme-dark .elec-label, html.theme-dark .lab-label, html.theme-dark .tube-label,
html.theme-dark .repl-benefit-label, html.theme-dark .img-caption,
html.theme-dark .cfg-collapse-info p { color: #CBD5E1 !important; }
html.theme-accessibility .cond-label, html.theme-accessibility .hero-label, html.theme-accessibility .food-label,
html.theme-accessibility .poly-label, html.theme-accessibility .bio-label, html.theme-accessibility .bat-label,
html.theme-accessibility .elec-label, html.theme-accessibility .lab-label, html.theme-accessibility .tube-label,
html.theme-accessibility .img-caption { color: #FFFFFF !important; }
/* Подзаголовки: янтарь на светлом/тёмном не дотягивал */
html.theme-dark .cond-subtitle, html.theme-dark .hero-subtitle, html.theme-dark .food-subtitle,
html.theme-dark .poly-subtitle, html.theme-dark .bio-subtitle, html.theme-dark .bat-subtitle,
html.theme-dark .elec-subtitle, html.theme-dark .lab-subtitle, html.theme-dark .tube-subtitle { color: #FFFFFF !important; }
html.theme-accessibility .cond-subtitle, html.theme-accessibility .hero-subtitle, html.theme-accessibility .food-subtitle,
html.theme-accessibility .poly-subtitle, html.theme-accessibility .bio-subtitle, html.theme-accessibility .bat-subtitle,
html.theme-accessibility .elec-subtitle, html.theme-accessibility .lab-subtitle, html.theme-accessibility .tube-subtitle { color: #FFFFFF !important; }
/* Описания в hero (rgba .8 было 2.9–3.7) */
html.theme-dark .cond-desc, html.theme-dark .hero-desc, html.theme-dark .food-desc,
html.theme-dark .poly-desc, html.theme-dark .bio-desc, html.theme-dark .bat-desc,
html.theme-dark .elec-desc, html.theme-dark .lab-desc, html.theme-dark .tube-desc,
html.theme-dark .cond-desc strong, html.theme-dark .food-desc strong, html.theme-dark .hero-desc strong { color: #F1F5F9 !important; }
html.theme-accessibility .cond-desc, html.theme-accessibility .hero-desc, html.theme-accessibility .food-desc,
html.theme-accessibility .cond-desc strong, html.theme-accessibility .food-desc strong, html.theme-accessibility .hero-desc strong { color: #FFFFFF !important; }
/* Коды, значения, формулы: --primary (#0B3D6B) на чёрном в a11y */
html.theme-accessibility .option-code, html.theme-accessibility .spec-hl-value,
html.theme-accessibility .acc-value, html.theme-accessibility .mc-formula,
html.theme-accessibility .mc-tag, html.theme-accessibility .fmc-tag,
html.theme-accessibility .repl-benefit-value, html.theme-accessibility .cfg-tag,
html.theme-accessibility .section-badge, html.theme-accessibility .option-hero-badge { color: #FFFFFF !important; }
/* Чипы DN и тип трубки: --white меняется на тёмный в тёмной/a11y темах */
html.theme-dark .dn-chip, html.theme-dark .tube-type { color: #F1F5F9 !important; }
html.theme-accessibility .dn-chip, html.theme-accessibility .tube-type {
  color: #FFFFFF !important; background: rgba(255,255,255,0.12) !important; border-color: rgba(255,255,255,0.45) !important;
}
/* Теги (bmc/cfg) */
html.theme-dark .bmc-tag { color: #6EE7B7 !important; background: rgba(6,95,70,0.25) !important; border-color: rgba(110,231,183,0.45) !important; }
html.theme-accessibility .bmc-tag { color: #FFFFFF !important; background: #000000 !important; border-color: #FFFFFF !important; }
html.theme-dark .cfg-tag { color: #FCD34D !important; background: rgba(245,158,11,0.16) !important; }
/* Бейджи в hero на светлых подложках */
html.theme-dark .cond-badge, html.theme-dark .food-badge, html.theme-dark .option-hero-badge,
html.theme-dark .poly-badge, html.theme-dark .tube-badge {
  color: #FFFFFF !important; background: rgba(15,23,42,0.72) !important; border-color: rgba(255,255,255,0.4) !important;
}
html.theme-accessibility .cond-badge, html.theme-accessibility .food-badge, html.theme-accessibility .option-hero-badge,
html.theme-accessibility .poly-badge, html.theme-accessibility .tube-badge {
  color: #FFFFFF !important; background: #000000 !important; border: 1px solid #FFFFFF !important;
}
/* Бейдж секции: синий/белый на янтаре и зелёном */
html.theme-dark .section-badge { color: #0F172A !important; }
/* Контурные кнопки в hero */
html.theme-dark .btn.btn-outline, html.theme-accessibility .btn.btn-outline {
  color: #FFFFFF !important; background: rgba(15,23,42,0.55) !important; border-color: rgba(255,255,255,0.8) !important;
}
/* Бегунок раздела: в a11y стекло было светлым, в тёмной — слишком прозрачным */
html.theme-dark .ame-anchor-tabs .elementor-widget-container { background: rgba(15,23,42,0.78) !important; }
html.theme-accessibility .ame-anchor-tabs .elementor-widget-container {
  background: #000000 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
/* Информационные боксы на светлых подложках */
html.theme-dark .info-box { background: #1A2236 !important; border-color: #2A2F3E !important; }
html.theme-dark .info-box li, html.theme-dark .info-box strong, html.theme-dark .info-box p { color: #CBD5E1 !important; }
html.theme-accessibility .info-box, html.theme-accessibility .highlight-box, html.theme-accessibility .safety-notice {
  background: #000000 !important; border: 2px solid #FFFFFF !important;
}
html.theme-accessibility .info-box h3, html.theme-accessibility .info-box h4, html.theme-accessibility .info-box li,
html.theme-accessibility .info-box p, html.theme-accessibility .info-box strong,
html.theme-accessibility .highlight-box h3, html.theme-accessibility .highlight-box p, html.theme-accessibility .highlight-box strong,
html.theme-accessibility .safety-notice h3, html.theme-accessibility .safety-notice p, html.theme-accessibility .safety-notice strong { color: #FFFFFF !important; }
/* SVG-схемы (страница раздела): метки L₁/L₂ и текст на светлых плашках */
html.theme-dark svg text[fill="#64748B"], html.theme-accessibility svg text[fill="#64748B"] { fill: #94A3B8 !important; }
svg text[fill="#DC2626"] { fill: #B91C1C !important; }
/* Прочее: решения/конфигуратор */
html.theme-dark .repl-solution-text p, html.theme-dark .repl-solution-text strong, html.theme-dark .repl-solution-text h3 { color: #F1F5F9 !important; }
html.theme-accessibility .repl-solution-text p, html.theme-accessibility .repl-solution-text strong,
html.theme-accessibility .repl-solution-text h3 { color: #FFFFFF !important; }
html.theme-dark .cfg-form label span, html.theme-dark .cfg-collapse-btn { color: #FFFFFF !important; }
/* --- итерация 2: затемняем ФОН hero-секций (blend), текст поверх не затеняется --- */
html.theme-dark .cond-hero, html.theme-dark .hero, html.theme-dark .food-hero, html.theme-dark .option-hero,
html.theme-dark .tube-hero, html.theme-dark .poly-hero, html.theme-dark .bio-hero, html.theme-dark .bat-hero,
html.theme-dark .elec-hero, html.theme-dark .lab-hero {
  background-color: rgba(15, 23, 42, 0.5) !important; background-blend-mode: multiply !important;
}
html.theme-accessibility .cond-hero, html.theme-accessibility .hero, html.theme-accessibility .food-hero,
html.theme-accessibility .option-hero, html.theme-accessibility .tube-hero, html.theme-accessibility .poly-hero,
html.theme-accessibility .bio-hero, html.theme-accessibility .bat-hero, html.theme-accessibility .elec-hero,
html.theme-accessibility .lab-hero {
  background-color: rgba(0, 0, 0, 0.62) !important; background-blend-mode: multiply !important;
}
html.theme-dark .section-badge { color: #0F172A !important; background: #F59E0B !important; }
html.theme-accessibility .tube-symbol { color: #F59E0B !important; }
svg text[fill="#059669"] { fill: #065F46 !important; }
html.theme-dark .repl-solution { background: #1A2236 !important; border-color: #2A2F3E !important; }
html.theme-dark .img-caption { color: #FFFFFF !important; background: rgba(15, 23, 42, 0.72) !important; }
html.theme-accessibility .img-caption { color: #FFFFFF !important; background: #000000 !important; }
html.theme-dark .cond-desc, html.theme-dark .hero-desc, html.theme-dark .cond-desc strong { color: #FFFFFF !important; }
/* --- итерация 3: чипы/значения раздела, бейдж продукта на страницах раздела --- */
html.theme-accessibility .cfg-tag { color: #0F172A !important; background: #F59E0B !important; }
html.theme-accessibility .spec-value { color: #FFFFFF !important; }
html.theme-accessibility .cfg-collapse-btn { color: #FFFFFF !important; }
html.theme-dark .cfg-collapse-btn { color: #0F172A !important; }
html.theme-dark .ame-product-badge:not(.ame-badge-text), html.theme-dark .ame-product-badge:not(.ame-badge-text) span { color: #0F172A !important; }
html.theme-accessibility .ame-product-badge, html.theme-accessibility .ame-product-badge span { color: #0F172A !important; }
html.theme-dark .ame-union-header .ame-union-left .ame-product-badge:not(.ame-badge-text),
html.theme-dark .ame-union-header .ame-union-left .ame-product-badge:not(.ame-badge-text) span { color: #0F172A !important; }
html.theme-dark .ame-product-badge:not(.ame-badge-text) { background: #F59E0B !important; color: #0F172A !important; }

/* --- итерация 8 (a11y): кнопки внутри карточек опций (в a11y --accent = чёрный → чёрное на чёрном) --- */
html.theme-accessibility #content .option-card-hover-btn .btn-primary,
html.theme-accessibility #content .card-hover-zoom .option-card-hover-btn .btn-primary,
html.theme-accessibility .option-card-hover-btn .btn-primary,
html.theme-accessibility .card-hover-zoom .option-card-hover-btn .btn-primary {
  background: #F59E0B !important; color: #0F172A !important; border-color: #F59E0B !important;
}
html.theme-accessibility .option-card-hover-btn .btn-primary:hover,
html.theme-accessibility .card-hover-zoom .option-card-hover-btn .btn-primary:hover { background: #D97706 !important; }
/* ===== contrast-2026-09-24: end ===== */

/* ===== hero-image-bigger-2026-09-24: begin ===== */
/* Картинка семейства расходомеров в hero — крупнее (было 380x154 при карточке 460px).
   ПК: правая колонка шире, карточка на всю колонку, отступы меньше, рамка под пропорцию фото. */
@media (min-width: 1025px) {
  .hero-grid { grid-template-columns: 0.78fr 1.22fr; gap: 3rem; }
}
.hero-visual { width: 100%; }
.hero .hero-visual .hero-device-card { width: 100%; max-width: 100%; padding: 22px; }
.hero .hero-visual .device-svg { aspect-ratio: 2.1; margin-bottom: 1.25rem; }
.hero .hero-visual .device-svg img { width: 100%; height: 100%; object-fit: contain; }
/* ===== hero-image-bigger-2026-09-24: end ===== */


/* ===== themehead-2026-09-24: begin =====
   Капсула тем в шапке (десктоп) — рядом с капсулой RU|EN. На мобильном темы остаются в гамбургере.
   Классы кнопок те же, что у капсулы в подвале, — клики и синхронизация работают общим кодом. */
.ame-theme-capsule.ame-theme-head {
  display: inline-flex; align-items: center; gap: 2px;
  background: transparent; border: 1px solid #CBD5E1;
  border-radius: 999px; padding: 3px;
}
.ame-theme-capsule.ame-theme-head button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 30px; padding: 0;
  background: none; border: none; border-radius: 999px;
  color: #64748B; font-size: 14px; cursor: pointer; font-family: inherit;
  transition: background-color 0.2s, color 0.2s;
}
.ame-theme-capsule.ame-theme-head button:hover { color: #334155; }
.ame-theme-capsule.ame-theme-head button.active { background: rgba(15, 23, 42, 0.08); color: #0F172A; }
html.theme-dark .ame-theme-capsule.ame-theme-head { border-color: #475569; }
html.theme-dark .ame-theme-capsule.ame-theme-head button { color: #94A3B8; }
html.theme-dark .ame-theme-capsule.ame-theme-head button:hover { color: #E2E8F0; }
html.theme-dark .ame-theme-capsule.ame-theme-head button.active { background: rgba(255, 255, 255, 0.14); color: #F8FAFC; }
html.theme-accessibility .ame-theme-capsule.ame-theme-head { border-color: #CBD5E1; }
html.theme-accessibility .ame-theme-capsule.ame-theme-head button { color: #E2E8F0; }
html.theme-accessibility .ame-theme-capsule.ame-theme-head button.active { background: rgba(255, 255, 255, 0.14); color: #F8FAFC; }
/* 2026-09-27: капсула тем в шапке больше не выводится — её заменила кнопка [◐ RU ▾] (headerprefs, от 1025px) */
.ame-union-header .ame-theme-head { display: none !important; }
/* ===== themehead-2026-09-24: end ===== */

/* ===== headerprefs-2026-09-27: begin =====
   Кнопка [◐ RU ▾] в шапке (десктоп ≥1025px) вместо капсул тем и RU|EN. Панель: темы + язык.
   Мобильный — без изменений (всё в гамбургере). Значения 1:1 с утверждённым макетом. */
.ame-prefs-wrap { display: none; }
@media (min-width: 1025px) { .ame-union-header .ame-prefs-wrap { display: inline-flex; position: relative; } }
.ame-prefs-head {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px; border: 1px solid #CBD5E1; border-radius: 999px;
  background: transparent; color: #475569; font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .03em; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.ame-prefs-head:hover { border-color: #94A3B8; color: #0F172A; }
.ame-prefs-head i.fas { font-size: 13px; color: #64748B; }
.ame-prefs-caret { font-size: 10px !important; }
.ame-prefs-cur { line-height: 1; }
.ame-prefs-panel {
  position: absolute; top: calc(100% + 9px); right: 0; width: 252px; padding: 10px;
  z-index: 1200; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 12px;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.16);
  font-family: 'Inter', system-ui, sans-serif;
}
.ame-prefs-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; padding: 4px 10px 5px; }
.ame-prefs-lbl--lang { margin-top: 6px; border-top: 1px solid #E2E8F0; padding-top: 10px; }
.ame-prefs-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0;
  background: none; border-radius: 8px; font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px; font-weight: 500; line-height: 1.2; color: #334155; cursor: pointer;
  text-align: left; text-decoration: none;
}
.ame-prefs-row i.fas { width: 16px; text-align: center; font-size: 13px; color: #64748B; }
.ame-prefs-row:hover { background: rgba(15, 23, 42, 0.07); }
.ame-prefs-chk { margin-left: auto; font-size: 11px; color: #16A34A; opacity: 0; }
.ame-prefs-row.active, .ame-prefs-row.is-cur { font-weight: 600; color: #0F172A; }
.ame-prefs-row.active .ame-prefs-chk, .ame-prefs-row.is-cur .ame-prefs-chk { opacity: 1; }
html.theme-dark .ame-prefs-head { border-color: #475569; color: #CBD5E1; }
html.theme-dark .ame-prefs-head:hover { border-color: #64748B; color: #FFFFFF; }
html.theme-dark .ame-prefs-head i.fas { color: #94A3B8; }
html.theme-dark .ame-prefs-panel { background: #1E293B; border-color: #334155; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55); }
html.theme-dark .ame-prefs-row { color: #E2E8F0; }
html.theme-dark .ame-prefs-row i.fas { color: #94A3B8; }
html.theme-dark .ame-prefs-row:hover { background: rgba(255, 255, 255, 0.09); }
html.theme-dark .ame-prefs-row.active, html.theme-dark .ame-prefs-row.is-cur { color: #F8FAFC; }
html.theme-dark .ame-prefs-lbl--lang { border-color: #334155; }
html.theme-dark .ame-prefs-chk { color: #4ADE80; }
html.theme-accessibility .ame-prefs-head { border-color: #CBD5E1; color: #FFFFFF; }
html.theme-accessibility .ame-prefs-head i.fas { color: #FFFFFF; }
html.theme-accessibility .ame-prefs-panel { background: #000000; border-color: #FFFFFF; box-shadow: none; }
html.theme-accessibility .ame-prefs-row { color: #FFFFFF; }
html.theme-accessibility .ame-prefs-row i.fas { color: #FFFFFF; }
html.theme-accessibility .ame-prefs-row:hover { background: rgba(255, 255, 255, 0.2); }
html.theme-accessibility .ame-prefs-row.active, html.theme-accessibility .ame-prefs-row.is-cur { color: #FFFFFF; }
html.theme-accessibility .ame-prefs-chk { color: #F59E0B; }
/* ===== headerprefs-2026-09-27: end ===== */
 */ */

/* ===== mh-2026-10-08: подменю — раскрытие при наведении на ПК, пункты «выезжают слева» ===== */
@keyframes ame-pm-item-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}
/* --- попап-меню (гамбургер): плавная высота, пункты появляются со сдвигом --- */
.ame-union-popup .ame-pm-sub {
  display: block; max-height: 0; overflow: hidden; visibility: hidden;
  transition: max-height .32s cubic-bezier(.33,1,.68,1), visibility 0s linear .34s;
}
.ame-union-popup .ame-pm-open > .ame-pm-sub {
  max-height: 999px; visibility: visible;
  transition: max-height .32s cubic-bezier(.33,1,.68,1), visibility 0s 0s;
}
.ame-union-popup .ame-pm-open > .ame-pm-sub > li { animation: ame-pm-item-in .26s cubic-bezier(.2,.7,.3,1) both; }
.ame-union-popup .ame-pm-open > .ame-pm-sub > li:nth-child(1) { animation-delay: .02s; }
.ame-union-popup .ame-pm-open > .ame-pm-sub > li:nth-child(2) { animation-delay: .044s; }
.ame-union-popup .ame-pm-open > .ame-pm-sub > li:nth-child(3) { animation-delay: .068s; }
.ame-union-popup .ame-pm-open > .ame-pm-sub > li:nth-child(4) { animation-delay: .092s; }
.ame-union-popup .ame-pm-open > .ame-pm-sub > li:nth-child(5) { animation-delay: .116s; }
.ame-union-popup .ame-pm-open > .ame-pm-sub > li:nth-child(6) { animation-delay: .14s; }
.ame-union-popup .ame-pm-open > .ame-pm-sub > li:nth-child(7) { animation-delay: .164s; }
.ame-union-popup .ame-pm-open > .ame-pm-sub > li:nth-child(8) { animation-delay: .188s; }
.ame-union-popup .ame-pm-open > .ame-pm-sub > li:nth-child(9) { animation-delay: .212s; }
/* --- шапка (десктоп): мягкое раскрытие при наведении, пункты «выезжают слева» --- */
.ame-union-nav .ame-sub {
  display: block !important; opacity: 0 !important; visibility: hidden !important;
  transform: translateY(-6px) !important; pointer-events: none !important;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s !important;
  animation: none !important;
}
.ame-union-nav .ame-sub > li {
  opacity: 0; transform: translateX(-10px);
  transition: opacity .2s ease, transform .2s ease;
}
.ame-has-sub:hover .ame-sub, .ame-has-sub:focus-within .ame-sub {
  opacity: 1 !important; visibility: visible !important; transform: none !important;
  pointer-events: auto !important;
  transition: opacity .2s ease .04s, transform .2s ease .04s, visibility 0s 0s !important;
}
.ame-has-sub:hover .ame-sub > li, .ame-has-sub:focus-within .ame-sub > li { opacity: 1; transform: none; }
.ame-has-sub:hover .ame-sub > li:nth-child(1), .ame-has-sub:focus-within .ame-sub > li:nth-child(1) { transition-delay: .025s; }
.ame-has-sub:hover .ame-sub > li:nth-child(2), .ame-has-sub:focus-within .ame-sub > li:nth-child(2) { transition-delay: .047s; }
.ame-has-sub:hover .ame-sub > li:nth-child(3), .ame-has-sub:focus-within .ame-sub > li:nth-child(3) { transition-delay: .069s; }
.ame-has-sub:hover .ame-sub > li:nth-child(4), .ame-has-sub:focus-within .ame-sub > li:nth-child(4) { transition-delay: .091s; }
.ame-has-sub:hover .ame-sub > li:nth-child(5), .ame-has-sub:focus-within .ame-sub > li:nth-child(5) { transition-delay: .113s; }
.ame-has-sub:hover .ame-sub > li:nth-child(6), .ame-has-sub:focus-within .ame-sub > li:nth-child(6) { transition-delay: .135s; }
.ame-has-sub:hover .ame-sub > li:nth-child(7), .ame-has-sub:focus-within .ame-sub > li:nth-child(7) { transition-delay: .157s; }
.ame-has-sub:hover .ame-sub > li:nth-child(8), .ame-has-sub:focus-within .ame-sub > li:nth-child(8) { transition-delay: .179s; }
.ame-has-sub:hover .ame-sub > li:nth-child(9), .ame-has-sub:focus-within .ame-sub > li:nth-child(9) { transition-delay: .201s; }
/* --- тем, кто отключил анимации в системе, — без движения --- */
@media (prefers-reduced-motion: reduce) {
  .ame-union-popup .ame-pm-sub,
  .ame-union-popup .ame-pm-open > .ame-pm-sub { transition: none !important; }
  .ame-union-popup .ame-pm-open > .ame-pm-sub > li { animation: none !important; }
  .ame-union-nav .ame-sub,
  .ame-has-sub:hover .ame-sub, .ame-has-sub:focus-within .ame-sub { transform: none !important; transition: none !important; }
  .ame-union-nav .ame-sub > li { transition: none; transform: none; }
}
/* ===== mh-2026-10-08: end ===== */

/* ===== mh2-2026-10-08: панель подменю вылетает СЛЕВА от меню (ПК, ≥961px) ===== */
@media (min-width: 961px) {
  /* снять обрезку: панель выходит за пределы ящика влево */
  .ame-union-popup-inner { overflow: visible; }
  .ame-union-popup li.ame-pm-has-sub { position: relative; }
  .ame-union-popup .ame-pm-sub {
    position: absolute; top: -6px; right: calc(100% + 16px); left: auto;
    width: 300px;
    max-height: none; overflow: visible;
    background: #0F172A; border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px; padding: 8px;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.45);
    visibility: hidden; opacity: 0; transform: translateX(-14px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
    z-index: 40;
  }
  .ame-union-popup .ame-pm-open > .ame-pm-sub {
    max-height: none; visibility: visible; opacity: 1; transform: none;
    transition: opacity .22s ease .04s, transform .22s ease .04s, visibility 0s 0s;
  }
  /* мостик через зазор — курсор «не теряет» панель */
  .ame-union-popup .ame-pm-sub::before {
    content: ""; position: absolute; top: 0; bottom: 0; right: -18px; width: 20px;
  }
  /* вложенный уровень («Расходомеры Mass-EXPERT») — ещё левее */
  .ame-union-popup .ame-pm-sub .ame-pm-sub { top: -14px; right: calc(100% + 14px); }
  /* стрелка-подсказка: открывается влево */
  .ame-union-popup .ame-pm-has-sub > .ame-pm-sub-btn { position: relative; }
  .ame-union-popup .ame-pm-has-sub > .ame-pm-sub-btn::after {
    content: "\2039"; font-size: 19px; line-height: 1; opacity: .45; padding-left: 10px;
    transition: opacity .2s ease;
  }
  .ame-union-popup .ame-pm-open > .ame-pm-sub-btn::after { opacity: .95; }
}
/* ===== mh2-2026-10-08: end ===== */

/* ===== mh3-2026-10-08: КЛИК — раскрытие вниз; «долгое» наведение — крупные оранжевые пункты слева (эффект) ===== */
@media (min-width: 961px) {
  /* возврат аккордеона: отменяем вылет-панель этапа 2 */
  .ame-union-popup-inner { overflow-y: auto; }
  .ame-union-popup .ame-pm-sub {
    position: static; top: auto; right: auto; left: auto; width: auto;
    max-height: 0; overflow: hidden; padding: 0 0 6px 14px;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    opacity: 1; transform: none; visibility: hidden; z-index: auto;
    transition: max-height .32s cubic-bezier(.33,1,.68,1), visibility 0s linear .34s;
  }
  .ame-union-popup .ame-pm-open > .ame-pm-sub {
    max-height: 999px; visibility: visible;
    transition: max-height .32s cubic-bezier(.33,1,.68,1), visibility 0s 0s;
  }
  .ame-union-popup .ame-pm-sub::before { display: none; }
  .ame-union-popup .ame-pm-sub .ame-pm-sub { top: auto; right: auto; }
  .ame-union-popup .ame-pm-has-sub > .ame-pm-sub-btn::after { display: none; }
}
/* превью-эффект: крупные оранжевые пункты всплывают слева от меню */
.ame-pm-preview {
  position: absolute; top: 120px; right: calc(min(420px, 100%) + 36px);
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px; text-align: right; max-width: min(52vw, 680px);
  visibility: hidden; pointer-events: none; z-index: 2100;
  transition: visibility 0s linear .34s;
}
.ame-pm-preview.pm-show { visibility: visible; pointer-events: auto; transition: visibility 0s 0s; }
.ame-pm-preview a {
  display: block; text-decoration: none; pointer-events: auto;
  font-weight: 800; line-height: 1.14; letter-spacing: .01em; color: #F59E0B;
  font-size: clamp(20px, 2.2vw, 30px);
  text-shadow: 0 2px 26px rgba(245, 158, 11, .28);
  opacity: 0; transform: translate(-42px, 8px);
  transition: opacity .28s ease, transform .30s cubic-bezier(.22,1,.36,1), color .18s ease;
}
.ame-pm-preview.pm-show a {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i, 0) * 55ms), calc(var(--i, 0) * 55ms), 0s;
}
.ame-pm-preview a:hover { color: #FCD34D; }
@media (prefers-reduced-motion: reduce) {
  .ame-pm-preview a { transition: none; transform: none; }
}
/* ===== mh3-2026-10-08: end ===== */

/* ===== mh4-2026-10-08: полировка превью — сильнее затемнение; пункты тоньше и с воздухом; наведение → перелив + свечение ===== */
/* (1) фон при открытом меню затемняем сильнее (было rgba(2,6,23,.55)) */
.ame-union-popup { background: rgba(2, 6, 23, 0.84); }
@supports ((-webkit-backdrop-filter: blur(5px)) or (backdrop-filter: blur(5px))) {
  .ame-union-popup { -webkit-backdrop-filter: blur(5px) saturate(112%); backdrop-filter: blur(5px) saturate(112%); }
}
/* (2) пункты превью: тоньше штрих, больше воздуха между пунктами */
.ame-pm-preview { gap: 18px; }
.ame-pm-preview a {
  font-weight: 500;
  letter-spacing: .012em;
  line-height: 1.18;
  font-size: clamp(21px, 2.25vw, 31px);
  text-shadow: 0 2px 26px rgba(245, 158, 11, .22);
  transition: opacity .28s ease, transform .30s cubic-bezier(.22,1,.36,1), filter .25s ease;
}
/* (3) наведение: переливание (градиент по тексту) + мягкое свечение, лёгкий сдвиг к меню */
.ame-pm-preview a:hover {
  transform: translateX(6px);
  background-image: linear-gradient(100deg, #f59e0b 8%, #ffc55c 32%, #fff0c9 48%, #ffc55c 62%, #f59e0b 90%);
  background-size: 210% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, .50)) drop-shadow(0 0 30px rgba(245, 158, 11, .24));
  animation: ame-pm-shine 1.9s cubic-bezier(.45, 0, .4, 1) infinite;
}
@keyframes ame-pm-shine {
  0% { background-position: 132% 0; }
  100% { background-position: -32% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ame-pm-preview a { transition: none; }
  .ame-pm-preview a:hover { animation: none; }
}
/* ===== mh4-2026-10-08: end ===== */

/* ===== mh5-2026-10-08: адаптивная раскладка превью (best practices мега-меню: без прокрутки, всё видно) =====
   — длинные списки (>6 пунктов) раскладываются в 2 колонки (первая колонка ближе к меню);
   — кегль подбирается под высоту экрана и ширину места слева от меню (JS задаёт --pv-fs и max-width);
   — ничего не обрезается и не запрокручивается. */
.ame-pm-preview a {
  font-size: var(--pv-fs, clamp(21px, 2.25vw, 31px));
  white-space: nowrap;
}
.ame-pm-preview.pv-2col {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: end;
  align-items: center;
  justify-items: end;
  gap: 16px 46px;
}
.ame-pm-preview.pv-2col a { grid-row: var(--r); grid-column: var(--c); }

/* (4) НАДЁЖНЫЙ перелив/свечение при наведении.
   Замена градиента по буквам (background-clip:text + прозрачная заливка) — в Chromium он
   давал пропадание кусков текста при анимации («то перед исчезает, то зад»).
   Теперь: заливка всегда непрозрачная; блик — отдельный слой ПОВЕРХ текста (белая полоса, едет слева направо);
   свечение — статичные text-shadow. Ничего не режется по буквам → глюков нет. */
.ame-pm-preview a {
  position: relative;
  transition: opacity .28s ease, transform .30s cubic-bezier(.22,1,.36,1), color .16s ease, text-shadow .25s ease;
}
.ame-pm-preview a::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(105deg, rgba(255,255,255,0) 42%, rgba(255,246,220,.9) 50%, rgba(255,255,255,0) 58%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  background-position: 130% 0;
  opacity: 0;
  transition: opacity .18s ease;
}
.ame-pm-preview a:hover {
  transform: none;
  background-image: none;
  animation: none;
  filter: none;
  color: #FFD27A;
  -webkit-text-fill-color: #FFD27A;
  text-shadow: 0 0 16px rgba(245, 158, 11, .50), 0 0 36px rgba(245, 158, 11, .26);
}
.ame-pm-preview a:hover::after { opacity: .5; animation: ame-pm-sheen 1.3s cubic-bezier(.4, 0, .25, 1) infinite; }
@keyframes ame-pm-sheen {
  from { background-position: 130% 0; }
  to { background-position: -30% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ame-pm-preview a { transition: none; transform: none; }
  .ame-pm-preview a:hover::after { animation: none; background-position: 50% 0; opacity: .3; }
}
/* ===== mh5-2026-10-08: end ===== */

/* ===== mh6-2026-10-08: единый вертикальный ритм списка меню + текст крупнее (best practice; эталон ame-info.ru — 16px) =====
   Причина неровных отступов: у схлопнутого подменю оставались margin-top:16px и padding-bottom:6px —
   строки «Услуги» и «Продукция» были на 22px выше остальных. Теперь закрытое подменю не добавляет высоты. */
.ame-union-popup .ame-popup-nav > ul > li > a,
.ame-union-popup .ame-popup-nav > ul > li > .ame-pm-sub-btn {
  font-size: 17px;
  line-height: 1.5;
  padding: 14px 6px;
}
.ame-union-popup .ame-pm-sub { margin-top: 0; padding-bottom: 0; }
.ame-union-popup .ame-pm-open > .ame-pm-sub { margin-top: 8px; padding-bottom: 8px; }
.ame-union-popup .ame-pm-sub li > a,
.ame-union-popup .ame-pm-sub li > .ame-pm-sub-btn { font-size: 16px; }
/* ===== mh6-2026-10-08: end ===== */

/* ===== mh7-2026-10-08: одна разделительная черта перед служебным блоком (темы/языки) — убрали дубль =====
   Было: под «Контактами» сразу ДВА линии — бордер последнего пункта списка (rgba(255,255,255,.07))
   и верхняя рамка .ame-popup-controls (rgba(255,255,255,.15)). Оставляем только рамку служебного блока:
   она отделяет «инструменты» (темы/язык) от навигации, а список заканчивается без лишней черты. */
.ame-union-popup .ame-popup-nav > ul > li:last-child { border-bottom: 0; }
/* ===== mh7-2026-10-08: end ===== */
