/* ==========================================================================
   Группа предприятий "Процессор" (Омск) — Master Stylesheet
   Modern Design System + Dark Theme + BVI Accessibility (ГОСТ Р 52872-2012)
   ========================================================================== */

:root {
  /* Brand Identity */
  --brand-yellow: #f59e0b;
  --brand-yellow-hover: #d97706;
  --brand-yellow-light: #fef3c7;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-blue-light: #eff6ff;
  --brand-blue-dark: #1e40af;
  
  /* Modern Neutral Palette (Light) */
  --dark-950: #090d16;
  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --dark-600: #475569;
  --dark-500: #64748b;
  --dark-400: #94a3b8;
  --dark-300: #cbd5e1;
  --dark-200: #e2e8f0;
  --dark-100: #f1f5f9;
  --dark-50: #f8fafc;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  
  /* Typography & Layout */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-current: var(--font-family-base);
  --font-size-multiplier: 1;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Dark Theme (☀️ / 🌙)
   ========================================================================== */
html.theme-dark {
  --bg-main: #0b1120;
  --bg-card: #131d33;
  --bg-card-alt: #1a2744;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #27354f;
  --dark-950: #050811;
  --dark-900: #0b1120;
  --dark-800: #131d33;
  --dark-700: #1a2744;
  --dark-100: #1e293b;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

html.theme-dark .site-header {
  background: rgba(11, 17, 32, 0.92);
  border-bottom-color: #27354f;
}

html.theme-dark .btn-outline {
  border-color: #334155;
  color: #f1f5f9;
}
html.theme-dark .btn-outline:hover {
  background: #1e293b;
  border-color: #475569;
}

html.theme-dark .hero-badge {
  background: #131d33;
  border-color: #334155;
  color: #e2e8f0;
}

html.theme-dark .form-input,
html.theme-dark .form-textarea {
  background: #131d33;
  color: #ffffff;
  border-color: #334155;
}

html.theme-dark .product-card.featured::before {
  background: #f59e0b;
  color: #000000;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   BVI: Режим для слабовидящих (ГОСТ Р 52872-2012)
   ========================================================================== */

/* Font Size Scales */
html.font-size-normal { --font-size-multiplier: 1; }
html.font-size-large  { --font-size-multiplier: 1.25; }
html.font-size-xlarge { --font-size-multiplier: 1.5; }

html.font-serif,
html.font-serif * {
  font-family: 'Times New Roman', Times, Georgia, serif !important;
}

html.spacing-wide,
html.spacing-wide * {
  letter-spacing: 0.12em !important;
}

/* 1. Scheme: Black on White (Черным по белому) */
html.bvi-active.bvi-scheme-bw,
html.bvi-active:not(.bvi-scheme-wb):not(.bvi-scheme-blue):not(.bvi-scheme-yb) {
  --bg-main: #ffffff !important;
  --bg-card: #ffffff !important;
  --bg-card-alt: #f4f4f4 !important;
  --text-main: #000000 !important;
  --text-muted: #111111 !important;
  --border-color: #000000 !important;
  --brand-yellow: #000000 !important;
  --brand-blue: #000000 !important;
  --brand-yellow-light: #ffffff !important;
  --brand-blue-light: #ffffff !important;
  --dark-950: #ffffff !important;
  --dark-900: #ffffff !important;
  --dark-800: #ffffff !important;
  --dark-700: #000000 !important;
  --dark-300: #000000 !important;
  --dark-100: #f0f0f0 !important;
}

/* 2. Scheme: White on Black (Белым по черному) */
html.bvi-active.bvi-scheme-wb {
  --bg-main: #000000 !important;
  --bg-card: #000000 !important;
  --bg-card-alt: #1a1a1a !important;
  --text-main: #ffffff !important;
  --text-muted: #ffffff !important;
  --border-color: #ffffff !important;
  --brand-yellow: #ffffff !important;
  --brand-blue: #ffffff !important;
  --brand-yellow-light: #000000 !important;
  --brand-blue-light: #000000 !important;
  --dark-950: #000000 !important;
  --dark-900: #000000 !important;
  --dark-800: #000000 !important;
  --dark-700: #ffffff !important;
  --dark-300: #ffffff !important;
  --dark-100: #1a1a1a !important;
}

/* 3. Scheme: Blue on Soft Cyan (Темно-синим по голубому) */
html.bvi-active.bvi-scheme-blue {
  --bg-main: #c6e2ff !important;
  --bg-card: #c6e2ff !important;
  --bg-card-alt: #b0d5fc !important;
  --text-main: #063462 !important;
  --text-muted: #063462 !important;
  --border-color: #063462 !important;
  --brand-yellow: #063462 !important;
  --brand-blue: #063462 !important;
  --brand-yellow-light: #c6e2ff !important;
  --brand-blue-light: #c6e2ff !important;
  --dark-950: #c6e2ff !important;
  --dark-900: #c6e2ff !important;
  --dark-800: #c6e2ff !important;
  --dark-700: #063462 !important;
  --dark-300: #063462 !important;
  --dark-100: #b0d5fc !important;
}

/* 4. Scheme: Yellow on Black (Желтым по черному) */
html.bvi-active.bvi-scheme-yb {
  --bg-main: #000000 !important;
  --bg-card: #000000 !important;
  --bg-card-alt: #1a1a1a !important;
  --text-main: #ffff00 !important;
  --text-muted: #ffff00 !important;
  --border-color: #ffff00 !important;
  --brand-yellow: #ffff00 !important;
  --brand-blue: #ffff00 !important;
  --brand-yellow-light: #000000 !important;
  --brand-blue-light: #000000 !important;
  --dark-950: #000000 !important;
  --dark-900: #000000 !important;
  --dark-800: #000000 !important;
  --dark-700: #ffff00 !important;
  --dark-300: #ffff00 !important;
  --dark-100: #1a1a1a !important;
}

/* Base BVI styles */
html.bvi-active {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
}

html.bvi-active * {
  box-shadow: none !important;
  text-shadow: none !important;
  background-image: none !important;
}

/* Structural containers in BVI */
html.bvi-active body,
html.bvi-active main,
html.bvi-active section {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
}

html.bvi-active .topbar,
html.bvi-active .site-header,
html.bvi-active .site-footer {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

html.bvi-active .topbar {
  border-bottom: 2px solid var(--border-color) !important;
}
html.bvi-active .site-header {
  border-bottom: 2px solid var(--border-color) !important;
}
html.bvi-active .site-footer {
  border-top: 2px solid var(--border-color) !important;
}

html.bvi-active .hero-card,
html.bvi-active .product-card,
html.bvi-active .service-card,
html.bvi-active .course-card,
html.bvi-active .contacts-card,
html.bvi-active .promo-banner,
html.bvi-active .calc-result-panel,
html.bvi-active .calc-controls,
html.bvi-active .calculator-container,
html.bvi-active .faq-item,
html.bvi-active .modal-card,
html.bvi-active .cms-modal-card,
html.bvi-active .cms-card-box,
html.bvi-active .hero-support-pill,
html.bvi-active .calc-price-block,
html.bvi-active .promo-action {
  background-color: var(--bg-card) !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text-main) !important;
}

/* Text elements in BVI */
html.bvi-active p,
html.bvi-active span,
html.bvi-active h1,
html.bvi-active h2,
html.bvi-active h3,
html.bvi-active h4,
html.bvi-active h5,
html.bvi-active h6,
html.bvi-active li,
html.bvi-active label,
html.bvi-active strong,
html.bvi-active b,
html.bvi-active .hero-title,
html.bvi-active .hero-subtitle,
html.bvi-active .section-title,
html.bvi-active .section-desc,
html.bvi-active .product-title,
html.bvi-active .product-audience,
html.bvi-active .product-desc,
html.bvi-active .service-title,
html.bvi-active .service-desc,
html.bvi-active .course-title,
html.bvi-active .course-desc,
html.bvi-active .faq-question,
html.bvi-active .faq-answer,
html.bvi-active .contact-label,
html.bvi-active .contact-value,
html.bvi-active .contact-subtext,
html.bvi-active .stat-number,
html.bvi-active .stat-label,
html.bvi-active .calc-rec-name,
html.bvi-active .calc-rec-desc,
html.bvi-active .calc-rec-feature,
html.bvi-active .calc-price-label,
html.bvi-active .calc-price-value,
html.bvi-active .promo-title,
html.bvi-active .promo-desc,
html.bvi-active .footer-col-title,
html.bvi-active .footer-links a,
html.bvi-active .footer-bottom,
html.bvi-active .modal-title,
html.bvi-active .modal-subtitle,
html.bvi-active .form-label,
html.bvi-active .form-policy,
html.bvi-active .phone-chip-number,
html.bvi-active .phone-chip-label,
html.bvi-active .support-label,
html.bvi-active .support-phone,
html.bvi-active .product-price-from,
html.bvi-active .product-price-val,
html.bvi-active .status-name,
html.bvi-active .nav-link,
html.bvi-active .logo-title,
html.bvi-active .logo-subtitle {
  color: var(--text-main) !important;
  -webkit-text-fill-color: var(--text-main) !important;
}

/* Links in BVI */
html.bvi-active a {
  color: var(--text-main) !important;
  text-decoration: underline !important;
}

/* Buttons in BVI */
html.bvi-active .btn,
html.bvi-active .bvi-btn {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 2px solid var(--border-color) !important;
  font-weight: 800 !important;
}

html.bvi-active .btn *,
html.bvi-active .bvi-btn * {
  color: var(--text-main) !important;
  stroke: var(--text-main) !important;
}

/* Active / Inverted elements in BVI */
html.bvi-active .btn.active,
html.bvi-active .bvi-btn.active,
html.bvi-active .btn-primary,
html.bvi-active .catalog-tab-btn.active,
html.bvi-active .calc-option input:checked + label {
  background-color: var(--text-main) !important;
  color: var(--bg-main) !important;
  border-color: var(--text-main) !important;
}

html.bvi-active .btn.active *,
html.bvi-active .bvi-btn.active *,
html.bvi-active .btn-primary *,
html.bvi-active .catalog-tab-btn.active *,
html.bvi-active .calc-option input:checked + label * {
  color: var(--bg-main) !important;
  stroke: var(--bg-main) !important;
  fill: var(--bg-main) !important;
  -webkit-text-fill-color: var(--bg-main) !important;
}

/* Badges & Pills in BVI */
html.bvi-active .section-tag,
html.bvi-active .hero-badge,
html.bvi-active .course-tag,
html.bvi-active .status-box,
html.bvi-active .calc-step-badge,
html.bvi-active .calc-option label,
html.bvi-active .catalog-tab-btn,
html.bvi-active .product-icon,
html.bvi-active .service-icon-box,
html.bvi-active .product-card.featured::before,
html.bvi-active .topbar-badge,
html.bvi-active .logo-badge,
html.bvi-active .promo-badge-item,
html.bvi-active .hero-card-icon {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 2px solid var(--border-color) !important;
}

html.bvi-active .section-tag *,
html.bvi-active .hero-badge *,
html.bvi-active .course-tag *,
html.bvi-active .status-box *,
html.bvi-active .calc-step-badge *,
html.bvi-active .calc-option label *,
html.bvi-active .catalog-tab-btn *,
html.bvi-active .product-icon *,
html.bvi-active .service-icon-box *,
html.bvi-active .topbar-badge *,
html.bvi-active .logo-badge *,
html.bvi-active .promo-badge-item *,
html.bvi-active .hero-card-icon * {
  color: var(--text-main) !important;
}

/* Form inputs in BVI */
html.bvi-active .form-input,
html.bvi-active .form-textarea,
html.bvi-active select {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  border: 2px solid var(--border-color) !important;
}

/* BVI Color Scheme Buttons Specific Styling */
html.bvi-active #bvi-scheme-bw {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}
html.bvi-active #bvi-scheme-wb {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}
html.bvi-active #bvi-scheme-blue {
  background: #c6e2ff !important;
  color: #063462 !important;
  border: 2px solid #063462 !important;
}
html.bvi-active #bvi-scheme-yb {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

html.bvi-active #bvi-scheme-bw.active { outline: 3px solid #2563eb !important; outline-offset: 1px; }
html.bvi-active #bvi-scheme-wb.active { outline: 3px solid #2563eb !important; outline-offset: 1px; }
html.bvi-active #bvi-scheme-blue.active { outline: 3px solid #063462 !important; outline-offset: 1px; }
html.bvi-active #bvi-scheme-yb.active { outline: 3px solid #ffff00 !important; outline-offset: 1px; }

/* Image mode filters */
html.bvi-images-off img,
html.bvi-images-off iframe,
html.bvi-images-off svg {
  filter: grayscale(100%) contrast(150%) !important;
}
html.bvi-images-hidden img,
html.bvi-images-hidden iframe {
  display: none !important;
}

/* BVI Panel Styling */
.bvi-panel {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card-alt);
  border-bottom: 2px solid var(--border-color);
  padding: 10px 0;
  z-index: 2200;
  display: none;
}

html.bvi-active .bvi-panel {
  display: block;
}

.bvi-panel-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.bvi-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bvi-group-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-right: 2px;
}

.bvi-btn {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.bvi-btn:hover {
  outline: 2px solid var(--border-color);
}

.bvi-close-btn {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.bvi-close-btn:hover {
  background: var(--text-main);
  color: var(--bg-main);
}

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: calc(16px * var(--font-size-multiplier));
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-current);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Buttons & Tags
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-yellow);
  color: #000000;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-yellow-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-blue {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-blue:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  background: var(--dark-100);
  border-color: var(--dark-300);
}

.btn-white {
  background: #ffffff;
  color: var(--dark-900);
}
.btn-white:hover {
  background: var(--dark-100);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--brand-yellow-light);
  color: #b45309;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-tag.blue {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Header & Topbar
   ========================================================================== */
.topbar {
  background: var(--dark-950);
  color: #ffffff;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-badge {
  background: var(--brand-yellow);
  color: #000000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


.topbar-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

html.bvi-active .topbar-btn {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 2px solid var(--border-color) !important;
  font-weight: 800 !important;
}
html.bvi-active .topbar-btn * {
  color: var(--text-main) !important;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-badge {
  background: var(--brand-yellow);
  color: #000000;
  font-size: 1.4rem;
  font-weight: 900;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-main);
  line-height: 1.1;
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 1;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--brand-blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.phone-chip {
  display: flex;
  flex-direction: column;
  text-align: right;
  white-space: nowrap;
}

.phone-chip-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.phone-chip-label {
  font-size: 0.7rem;
  color: #16a34a;
  font-weight: 600;
  white-space: nowrap;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--bg-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 60px 0 80px;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.06), transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.05), transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.18;
  color: var(--text-main);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.highlight-yellow {
  color: #d97706;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-number {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.stat-number.yellow {
  color: #d97706;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-yellow-light);
  color: #d97706;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.hero-card-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.hero-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.feature-check {
  color: #16a34a;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-support-pill {
  background: var(--dark-100);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-support-pill-info {
  display: flex;
  flex-direction: column;
}

.support-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.support-phone {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-blue);
}

/* ==========================================================================
   Calculator Section
   ========================================================================== */
.calculator-section {
  padding: 80px 0;
  background: var(--bg-card-alt);
}

.calculator-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
}

.calc-controls {
  padding: 36px;
}

.calc-step {
  margin-bottom: 28px;
}

.calc-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
}

.calc-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: #000000;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.calc-option input {
  position: absolute;
  opacity: 0;
}

.calc-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  height: 100%;
  gap: 6px;
}

.calc-option label:hover {
  border-color: var(--brand-yellow);
  background: var(--bg-card-alt);
}

.calc-option input:checked + label {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow-light);
  color: #92400e;
}

.opt-icon {
  font-size: 1.3rem;
}

.calc-result-panel {
  background: var(--dark-900);
  color: #ffffff;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--border-color);
}

.calc-result-tag {
  color: var(--brand-yellow);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.calc-rec-name {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.25;
}

.calc-rec-desc {
  font-size: 0.88rem;
  color: var(--dark-300);
  line-height: 1.5;
  margin-bottom: 20px;
}

.calc-rec-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.calc-rec-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--dark-200);
}

.calc-rec-feature svg {
  color: var(--brand-yellow);
  flex-shrink: 0;
}

.calc-price-block {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.calc-price-label {
  font-size: 0.78rem;
  color: var(--dark-400);
  text-transform: uppercase;
  font-weight: 600;
}

.calc-price-value {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--brand-yellow);
}

/* ==========================================================================
   Catalog Section
   ========================================================================== */
.products-section {
  padding: 80px 0;
}

.catalog-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.catalog-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.catalog-tab-btn:hover {
  border-color: var(--dark-400);
  color: var(--text-main);
}

.catalog-tab-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--dark-400);
}

.product-card.featured {
  border-color: var(--brand-yellow);
  box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.15);
}

.product-card.featured::before {
  content: '★ Популярно';
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
  line-height: 1.2;
  white-space: nowrap;
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.product-card.featured .product-card-header {
  padding-right: 85px;
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-yellow-light);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.product-icon.blue {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

.product-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.product-audience {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.product-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.product-feature-item {
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--brand-yellow);
  border-radius: 50%;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.product-price-from {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.product-price-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  padding: 80px 0;
  background: var(--bg-card-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-icon-box.yellow {
  background: var(--brand-yellow-light);
  color: #d97706;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-icon {
  color: #16a34a;
  font-weight: 800;
}

/* ==========================================================================
   Promo Banner
   ========================================================================== */
.banner-section {
  padding: 40px 0;
}

.promo-banner {
  background: var(--dark-900);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-xl);
}

.promo-title {
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.2;
}

.promo-desc {
  font-size: 0.95rem;
  color: var(--dark-300);
  line-height: 1.6;
  margin-bottom: 20px;
}

.promo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.promo-badge-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

.promo-action {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   Training Section
   ========================================================================== */
.training-section {
  padding: 80px 0;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.course-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.course-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}

.course-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  padding: 80px 0;
  background: var(--bg-card-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.statuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.status-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.status-icon {
  font-size: 1.3rem;
}

.status-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 80px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--brand-blue);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Contacts & Map Section
   ========================================================================== */
.contacts-section {
  padding: 80px 0;
  background: var(--bg-card-alt);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contacts-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.contact-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.map-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 400px;
  position: relative;
  box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark-950);
  color: #ffffff;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--dark-400);
}

.footer-links a:hover {
  color: var(--brand-yellow);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: var(--dark-400);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Modal Dialogs
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card-alt);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-policy {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid #16a34a;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Admin Dock & CMS Dashboard Styles
   ========================================================================== */
.admin-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1.5px solid #334155;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2500;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-dock.visible {
  transform: translateX(-50%) translateY(0);
}

.admin-dock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f59e0b;
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.admin-dock-btn {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #475569;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.admin-dock-btn:hover {
  background: #334155;
  border-color: #64748b;
}

.admin-dock-btn.active {
  background: #f59e0b;
  color: #000000;
  border-color: #f59e0b;
}

.admin-dock-btn.save {
  background: #16a34a;
  border-color: #16a34a;
}
.admin-dock-btn.save:hover {
  background: #15803d;
}

.admin-dock-btn.logout {
  background: transparent;
  border-color: #ef4444;
  color: #f87171;
}
.admin-dock-btn.logout:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Visual Editing Mode Highlight */
body.admin-visual-mode [data-editable] {
  cursor: text;
  outline: 2px dashed rgba(245, 158, 11, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

body.admin-visual-mode [data-editable]:hover {
  outline: 2px solid #f59e0b;
  background-color: rgba(245, 158, 11, 0.1);
}

/* CMS Dashboard Modal */
.cms-modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.cms-modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card-alt);
}

.cms-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cms-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 480px;
  overflow: hidden;
}

.cms-sidebar {
  background: var(--bg-card-alt);
  border-right: 1px solid var(--border-color);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cms-tab-btn {
  background: transparent;
  border: none;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-tab-btn:hover {
  background: var(--dark-100);
  color: var(--text-main);
}

.cms-tab-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
}

.cms-content-area {
  padding: 28px;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
}

.cms-tab-panel {
  display: none;
}

.cms-tab-panel.active {
  display: block;
}

.cms-panel-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.cms-panel-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cms-card-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .nav-links {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .logo-subtitle {
    display: none;
  }
}

@media (max-width: 992px) {
  .nav-links, .phone-chip {
    display: none;
  }
  .burger-btn {
    display: block;
  }
  .hero-grid, .about-grid, .contacts-grid, .calc-grid, .promo-banner {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .calc-result-panel {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .cms-layout {
    grid-template-columns: 1fr;
  }
  .cms-sidebar {
    flex-direction: row;
    overflow-x: auto;
  }
  .admin-dock {
    width: 94%;
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
    justify-content: center;
  }
}
