/* Тёмная образовательная тема: #020617 фон, #0F172A карты, #22C55E акцент, #3B82F6 доп., #E5E7EB текст */
:root {
  --primary-50: #ecfdf5;
  --primary-100: #d1fae5;
  --primary-200: #a7f3d0;
  --primary-300: #6ee7b7;
  --primary-400: #34d399;
  --primary-500: #22c55e;
  --primary-600: #16a34a;
  --primary-700: #15803d;
  --primary-800: #166534;
  --primary-900: #14532d;
  --primary-950: #052e16;
  --primary-rgb: 34, 197, 94;
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  --neutral-950: #020617;
  --surface-primary: #0f172a;
  --surface-secondary: #020617;
  --surface-accent: #0b1220;
  --text-primary: #e5e7eb;
  --text-secondary: #cbd5e1;
  --text-accent: #22c55e;
  --button-primary-bg: #22c55e;
  --button-primary-text: #020617;
  --button-secondary-bg: #1e293b;
  --button-secondary-text: #e5e7eb;
  --border-light: #334155;
}

html {
  color-scheme: dark;
}

body {
  background-color: #020617 !important;
  color: #e5e7eb !important;
}

.text-muted,
.top_body_base.text-muted,
.text-secondary {
  color: #94a3b8 !important;
}

.bg-light {
  background-color: #0f172a !important;
}

.header-clean {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
  border-bottom: 1px solid #1e293b;
}

.header-clean .navbar-dark .nav-link {
  color: #e5e7eb !important;
}

.header-clean .navbar-dark .nav-link:hover,
.header-clean .navbar-dark .nav-link:focus {
  color: #22c55e !important;
}

.header-clean .brand-text {
  color: #e5e7eb !important;
}

.custom-toggler .line {
  background: #e5e7eb !important;
}

.navbar-backdrop {
  background: rgba(2, 6, 23, 0.92) !important;
}

.hero-section,
.usp-section,
.leadgen-section-secondary,
.about-secondary,
.services-section,
.blog-section,
.py-5 {
  background-color: transparent !important;
}

.hero-section .fresh_hero_title,
.core_section_title,
.blog-title {
  color: #f8fafc !important;
}

.page_section_subtitle,
.prime_hero_subtitle,
.blog-subtitle {
  color: #cbd5e1 !important;
}

.usp-item,
.about-feature-card,
.service-card-inner,
.blog-card,
.leadgen-form-card,
.contact-form-wrapper .form-card,
.info-card {
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
}

.usp-item-stat {
  color: #3b82f6 !important;
}

.btn-primary {
  background-color: #22c55e !important;
  border-color: #22c55e !important;
  color: #020617 !important;
}

.btn-primary:hover {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
  color: #020617 !important;
}

.btn-outline-primary {
  color: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

.btn-outline-primary:hover {
  background: #3b82f6 !important;
  color: #020617 !important;
}

.form-control,
.form-select,
.form-input {
  background-color: #020617 !important;
  border-color: #334155 !important;
  color: #e5e7eb !important;
}

.form-floating > label {
  color: #94a3b8 !important;
}

.footer-professional-blue-01 {
  background: #020617 !important;
  color: #e5e7eb !important;
  border-top: 1px solid #1e293b;
}

.footer-professional-blue-01 .footer-link {
  color: #cbd5e1 !important;
}

.footer-professional-blue-01 .footer-link:hover {
  color: #22c55e !important;
}

.footer-divider {
  border-color: #1e293b !important;
}

.site-disclaimer-boot {
  background: #0b1220 !important;
  color: #cbd5e1 !important;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
}

.site-disclaimer-boot p {
  color: #cbd5e1 !important;
}

.leadgen-section-secondary .display-4 {
  color: #f8fafc !important;
}

.btn-leadgen-submit {
  background: linear-gradient(90deg, #22c55e, #16a34a) !important;
  color: #020617 !important;
  border: none !important;
}

.contact-section .info-card-primary {
  background: #0f172a !important;
}

.accordion-item {
  background: #0f172a !important;
  color: #e5e7eb !important;
  border-color: #1e293b !important;
}

.accordion-button {
  background: #0f172a !important;
  color: #e5e7eb !important;
}

.accordion-button:not(.collapsed) {
  background: #111c33 !important;
  color: #22c55e !important;
}

.article-container .blog-article {
  color: #e5e7eb;
}

.article-container h1,
.article-container h2,
.article-container h3 {
  color: #f8fafc;
}

.legal-page,
.legal {
  background: transparent;
  color: #e5e7eb;
}

.legal-page h1,
.legal-page h2,
.legal h1,
.legal h2 {
  color: #f8fafc;
}

.legal-page a,
.legal a {
  color: #3b82f6;
}

.legal-page a:hover,
.legal a:hover {
  color: #22c55e;
}

.site-header {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b;
}

.site-header .brand,
.site-header .nav a {
  color: #e5e7eb !important;
}

.footer {
  background: #020617 !important;
  color: #cbd5e1 !important;
}

.footer a {
  color: #3b82f6 !important;
}

.footer a:hover {
  color: #22c55e !important;
}

.site-disclaimer {
  background: #0b1220 !important;
  color: #cbd5e1 !important;
}

.site-disclaimer p {
  color: #cbd5e1 !important;
}

.rounded-4.border.bg-white.shadow-sm {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #e5e7eb !important;
}

.rounded-4.border.bg-white.shadow-sm .form-label,
.rounded-4.border.bg-white.shadow-sm h2 {
  color: #e5e7eb !important;
}


.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 40rem;
  margin-inline: auto;
  display: none;
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(1 4 9 / 0.55);
  padding: 1.5rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__title { font-size: 1.125rem; font-weight: 700; color: #e5e7eb; margin-bottom: 0.5rem; }
.cookie-banner__text { color: #cbd5e1; font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-panel {
  position: fixed; inset: 0; z-index: 210; display: none;
  align-items: center; justify-content: center; padding: 1rem;
  background-color: rgb(1 4 9 / 0.55);
}
.cookie-panel.is-visible { display: flex; }
.cookie-panel__dialog {
  width: min(100%, 32rem); max-height: min(90vh, 40rem); overflow: auto;
  background-color: #0f172a; border-radius: 1rem; border: 1px solid #334155;
  box-shadow: 0 25px 50px -12px rgb(1 4 9 / 0.55); padding: 1.5rem;
}
.cookie-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cookie-panel__header h2 { font-size: 1.25rem; font-weight: 700; color: #e5e7eb; }
.cookie-panel__close {
  width: 44px; height: 44px; border: 1px solid #334155; border-radius: 0.5rem;
  background-color: #0f172a; color: #e5e7eb; flex-shrink: 0;
}
.cookie-panel__close:hover { background-color: #112c30; border-color: #22c55e; }
.cookie-panel__text { color: #cbd5e1; font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; }
.cookie-panel__options { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.cookie-option {
  display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; padding: 1rem;
  border: 1px solid #334155; border-radius: 0.75rem; background-color: #112c30;
}
.cookie-option input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: #22c55e; }
.cookie-option__title { font-weight: 700; color: #e5e7eb; }
.cookie-option__desc { margin: 0; color: #cbd5e1; font-size: 0.875rem; }
.cookie-panel__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-toggle {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 190;
  min-width: 44px; min-height: 44px; padding: 0.7rem 0.95rem; border-radius: 999px;
  border: 1px solid #334155; background-color: #22c55e; color: #000000;
  box-shadow: 0 10px 15px -3px rgb(1 4 9 / 0.55); display: inline-flex; align-items: center;
  gap: 0.4rem; font-size: 0.875rem; font-weight: 600;
}
.cookie-toggle:hover { background-color: #1da750; }
.cookie-btn {
  min-height: 44px; padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cookie-btn--primary { background-color: #22c55e; color: #000000; border: 0; }
.cookie-btn--primary:hover { background-color: #1da750; }
.cookie-btn--secondary { background-color: #112c30; color: #22c55e; border: 1px solid #334155; }
.cookie-btn--secondary:hover { border-color: #22c55e; }
.cookie-btn--ghost { background-color: #0f172a; color: #cbd5e1; border: 1px solid #334155; }
.cookie-btn--ghost:hover { background-color: #112c30; color: #22c55e; }
@media (min-width: 768px) {
  .cookie-banner { left: auto; right: 1.5rem; bottom: 5.5rem; margin-inline: 0; }
  .cookie-toggle { right: 1.5rem; bottom: 1.5rem; }
}
