/* ==========================================================================
   ДИЗАЙН-СИСТЕМА UCHETA.RU
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Бренд-цвета (раздел 12.1) */
  --primary-blue: #0b3a75;
  --primary-hover: #0d2d5e;
  --accent-teal: #0d9488;
  --accent-tint: #f0fdf9;

  /* Нейтральные цвета (раздел 12.1) */
  --canvas-bg: #ffffff;
  --surface-bg: #ffffff;
  --muted-bg: #f1f5f9;
  --border-color: #e2e8f0;
  --text-main: #000000;
  --text-secondary: #000000;
  --text-tertiary: #000000;
  --text-muted: #333333;

  /* Переменные Bootstrap */
  --bs-body-color: #000000;
  --bs-body-color-rgb: 0, 0, 0;
  --bs-body-rgb: 0, 0, 0;
  --bs-secondary-color: #000000;
  --bs-secondary-color-rgb: 0, 0, 0;
  --bs-secondary-rgb: 0, 0, 0;
  --bs-tertiary-color: #000000;
  --bs-tertiary-color-rgb: 0, 0, 0;
  --bs-tertiary-rgb: 0, 0, 0;

  /* Семантические (статусы ТМЦ) */
  --status-success-txt: #0f766e;
  --status-success-bg: #ecfdf5;
  --status-info-txt: #0369a1;
  --status-info-bg: #f0f9ff;
  --status-warning-txt: #b45309;
  --status-warning-bg: #fffbeb;
  --status-fuchsia-txt: #a21caf;
  --status-fuchsia-bg: #fdf4ff;

  /* Совместимость с Bootstrap / старыми переменными */
  --bg-canvas: var(--canvas-bg);
  --bg-surface: var(--surface-bg);
  --bg-card: rgba(255, 255, 255, 0.9);
  --primary-accent: var(--primary-blue);
  --success-color: var(--accent-teal);
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --primary-glow: rgba(11, 58, 117, 0.15);
  --font-sans: 'Montserrat', sans-serif;
  --bs-font-sans-serif: 'Montserrat', sans-serif;
  --bs-body-font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   БАЗОВЫЕ СТИЛИ И ТИПОГРАФИКА
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--canvas-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

p,
.text-secondary,
.text-tertiary,
.text-main,
.text-muted {
  color: #000000 !important;
}

svg.lucide {
  stroke-width: 2.2px;
}

button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.nav-link,
.dropdown-item {
  font-family: var(--font-sans);
}

.mono {
  font-family: 'Montserrat', sans-serif;
}

/* Адаптивные заголовки */
h1,
.h1 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h2,
.h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

h3,
.h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
}

h4,
.h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.body-large {
  font-size: 19px;
  line-height: 1.7;
}

.body-small {
  font-size: 15px;
  line-height: 1.65;
}

.caption {
  font-size: 13px;
  line-height: 1.5;
}

/* ==========================================================================
   КОМПОНЕНТЫ И ЭЛЕМЕНТЫ
   ========================================================================== */

/* Кнопки */
.btn-primary {
  background: var(--primary-blue);
  color: #ffffff !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 150ms, transform 100ms, box-shadow 150ms;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(11, 58, 117, 0.2);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue) !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid var(--primary-blue);
  cursor: pointer;
  transition: background 150ms, color 150ms, transform 100ms;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.btn-outline:hover {
  background: #f0f4ff;
}

.btn-outline:active {
  transform: scale(0.98);
}

.btn-on-dark {
  background: #ffffff;
  color: var(--primary-blue) !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  transition: background 150ms;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-on-dark:hover {
  background: var(--muted-bg);
}

.btn-ghost-on-dark {
  background: transparent;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 150ms, background 150ms;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost-on-dark:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

/* Карточки */
.card {
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
  position: relative;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Карточки болей */
.pain-card {
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 200ms ease, border-color 200ms ease;
  height: 100%;
}

.pain-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: #fca5a5;
  /* red-300 */
}

.pain-card__icon {
  color: #ef4444;
  /* red-500 */
  font-size: 28px;
  margin-bottom: 16px;
}

.pain-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pain-card__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pain-card__scenario {
  font-style: italic;
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

/* Бейджи */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.badge--success {
  background: var(--status-success-bg);
  color: var(--status-success-txt);
}

.badge--info {
  background: var(--status-info-bg);
  color: var(--status-info-txt);
}

.badge--warning {
  background: var(--status-warning-bg);
  color: var(--status-warning-txt);
}

.badge--fuchsia {
  background: var(--status-fuchsia-bg);
  color: var(--status-fuchsia-txt);
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  margin-bottom: 12px;
}

.feature-badge {
  background: var(--muted-bg);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   СЕТКИ И ОТСТУПЫ
   ========================================================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Отступы секций */
.py-section-xl {
  padding-top: 120px;
  padding-bottom: 120px;
}

.py-section-l {
  padding-top: 96px;
  padding-bottom: 96px;
}

.py-section-m {
  padding-top: 72px;
  padding-bottom: 72px;
}

.py-section-s {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* ==========================================================================
   АНГАРХИЯ И СТЕКЛЯННЫЙ ЭФФЕКТ (НАВИГАЦИЯ)
   ========================================================================== */

.navbar-glass {
  transition: background 200ms ease, box-shadow 200ms ease, padding 200ms ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar-glass.scrolled {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--border-color);
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  color: var(--text-main) !important;
}

.navbar-brand span {
  color: var(--accent-teal);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: #000000 !important;
  padding: 0.5rem 0.75rem !important;
  background: transparent !important;
  border-radius: 0;
  transition: color 150ms ease, font-weight 150ms ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-blue) !important;
  background: transparent !important;
}

.nav-link.active {
  font-weight: 600 !important;
  color: var(--primary-blue) !important;
  background: transparent !important;
}

/* Выпадающие меню */
.dropdown-menu {
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 6px;
}

.dropdown-item {
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  color: var(--text-secondary) !important;
  transition: all 150ms;
}

.dropdown-item:hover {
  background-color: var(--accent-tint) !important;
  color: var(--accent-teal) !important;
}

/* ==========================================================================
   АНИМАЦИИ
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
}

.animate-fade-in-up.is-visible {
  animation: fadeInUp 600ms ease-out forwards;
}

.stagger-1 {
  animation-delay: 80ms;
}

.stagger-2 {
  animation-delay: 160ms;
}

.stagger-3 {
  animation-delay: 240ms;
}

.stagger-4 {
  animation-delay: 320ms;
}

.stagger-5 {
  animation-delay: 400ms;
}

.stagger-6 {
  animation-delay: 480ms;
}

/* Луч сканирования QR */
@keyframes scanLine {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  45% {
    transform: translateY(180px);
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  55% {
    transform: translateY(0);
    opacity: 0;
  }

  60% {
    opacity: 1;
  }

  100% {
    transform: translateY(180px);
    opacity: 1;
  }
}

.scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
  box-shadow: 0 0 10px var(--accent-teal);
  animation: scanLine 2.5s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}

/* Пульсирующие уголки сканера */
@keyframes cornerPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.qr-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--accent-teal);
  border-width: 4px;
  animation: cornerPulse 1.5s ease-in-out infinite;
  z-index: 5;
}

.qr-corner-tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 8px;
}

.qr-corner-tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 8px;
}

.qr-corner-bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 8px;
}

.qr-corner-br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 8px;
}

/* Тост результата скана */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scan-result-toast {
  opacity: 0;
}

.scan-result-toast.is-visible {
  animation: toastIn 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Коннекторы Pipeline */
.pipeline__connector {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  position: relative;
  overflow: hidden;
  align-self: center;
  margin: 0 10px;
}

.pipeline__connector::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--accent-teal);
  transition: width 800ms ease-out;
}

.is-visible .pipeline__connector::after {
  width: 100%;
}

@media (max-width: 768px) {
  .pipeline__connector {
    width: 2px;
    height: 32px;
    margin: 10px 0;
    align-self: center;
    flex: none;
  }

  .pipeline__connector::after {
    width: 100%;
    height: 0;
    transition: height 800ms ease-out;
  }

  .is-visible .pipeline__connector::after {
    height: 100%;
  }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scan-line {
    display: none;
  }

  .qr-corner {
    animation: none;
    opacity: 0.8;
  }
}

/* ==========================================================================
   СОВМЕСТИМОСТЬ И УЛУЧШЕНИЯ ДЛЯ УЧЕТА.РУ
   ========================================================================== */

/* Заднее размытое свечение */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* Стеклянные карточки */
.card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(11, 58, 117, 0.06);
  border-color: rgba(11, 58, 117, 0.15);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 30%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-teal {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #0f766e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--accent-tint);
  border: 1px solid rgba(13, 148, 136, 0.15);
  color: var(--accent-teal);
  transition: all 250ms ease;
}

.card:hover .icon-box,
.card-glass:hover .icon-box {
  background: var(--accent-teal);
  color: #ffffff;
}

.icon-box-primary {
  background: #f0f4ff;
  border: 1px solid rgba(11, 58, 117, 0.15);
  color: var(--primary-blue);
}

.card:hover .icon-box-primary,
.card-glass:hover .icon-box-primary {
  background: var(--primary-blue);
  color: #ffffff;
}

/* Интерактивные таблицы */
.table-custom {
  color: var(--text-secondary);
}

.table-custom th {
  color: var(--text-main);
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  background: var(--muted-bg);
  padding: 14px 18px;
}

.table-custom td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table-custom tr:hover td {
  background: var(--muted-bg);
}

.hover-lift {
  transition: transform 200ms ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Ограничитель текста */
.max-w-3xl {
  max-width: 48rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Кастомный калькулятор */
.calculator-widget {
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.calculator-result-card {
  background: var(--accent-tint);
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 16px;
}

/* Слайдеры тарифов */
input[type=range].form-range {
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
}

input[type=range].form-range::-webkit-slider-thumb {
  background: var(--accent-teal);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

input[type=range].form-range::-moz-range-thumb {
  background: var(--accent-teal);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

/* Стилизация табов выдачи */
.signature-tabs .nav-link {
  border: 1px solid transparent !important;
  color: var(--text-secondary) !important;
  background: transparent !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 20px !important;
}

.signature-tabs .nav-link.active {
  color: var(--accent-teal) !important;
  background: var(--accent-tint) !important;
  border: 1px solid rgba(13, 148, 136, 0.2) !important;
}

/* Интерактивный макет MacBook */
.macbook-frame {
  background: #000;
  border-radius: 16px 16px 0 0;
  border: 10px solid #222;
  border-bottom: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.macbook-base {
  height: 12px;
  background: #ccc;
  border-radius: 0 0 10px 10px;
  border-top: 1px solid #999;
  position: relative;
}

.macbook-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #888;
  border-radius: 0 0 4px 4px;
}

/* ==========================================================================
   СЕКЦИЯ ЛИДОВ И ОСНОВНОЙ ФУТЕР
   ========================================================================== */

.lead-form-section {
  background: radial-gradient(135deg, var(--canvas-bg) 0%, var(--surface-bg) 100%);
  border-top: 1px solid var(--border-color);
}

.card-lead {
  border-radius: 24px;
}

.badge-lead-promo {
  background-color: var(--primary-blue) !important;
}

.lead-input {
  box-shadow: none !important;
  border-color: var(--border-color) !important;
}

.lead-input:focus {
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 3px rgba(11, 58, 117, 0.1) !important;
}

.site-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
}

.site-footer .navbar-brand {
  color: #ffffff !important;
  font-size: 20px;
}

.site-footer-desc {
  line-height: 1.6;
  max-width: 320px;
  color: #94a3b8 !important;
}

.btn-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: all 150ms ease;
}

.btn-social:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

.footer-title {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-link:hover,
.footer-link:focus {
  color: #ffffff;
}

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

.footer-bottom {
  color: #64748b;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-bottom a:hover {
  color: var(--accent-teal);
}

.modal-content-custom {
  background-color: var(--surface-bg);
  border-radius: 16px;
}

.btn-feedback-floating {
  width: 56px;
  height: 56px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--bs-rose);
  border: none;
}

.btn-feedback-floating:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   УТИЛИТАРНЫЕ КЛАССЫ И ИКОНКИ (РЕФАКТОРИНГ ИНЛАЙН-СТИЛЕЙ)
   ========================================================================== */

/* Иконки */
.icon-xs {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
}

.icon-sm {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -2px;
}

.icon-md {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -2px;
}

.icon-lg {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: -2px;
}

.icon-xl {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: -2px;
}

.icon-2xl {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: -2px;
}

.icon-3xl {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: -2px;
}

/* Анимации и задержки */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

/* Свечения и декоративные фоны */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Утилиты оформления */
.tracking-tight-custom {
  letter-spacing: -0.02em;
}

.border-color-custom {
  border-color: var(--border-color) !important;
}

.color-accent-teal {
  color: var(--accent-teal) !important;
}

.color-primary-blue {
  color: var(--primary-blue) !important;
}

.bg-accent-tint {
  background: var(--accent-tint) !important;
}

.bg-muted-custom {
  background: var(--muted-bg) !important;
}

/* Кнопки навигации в шапке */
.nav-btn-login,
.nav-btn-register {
  font-size: 14px;
  padding: 8px 16px !important;
  border-radius: 8px;
}

/* Страницы ошибок (403, 404, 500) */
.error-page-hero {
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
}

.error-code-title {
  font-size: 10rem;
  letter-spacing: -5px;
}

.error-code-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-code-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-desc-text {
  max-width: 500px;
}

/* ==========================================================================
   ЕДИНЫЙ СТИЛЬ ХЛЕБНЫХ КРОШЕК (BREADCRUMB) ПО ВСЕМУ САЙТУ
   ========================================================================== */
.breadcrumb {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  list-style: none !important;
  font-size: 0.8125rem !important;
  /* 13px - не большой аккуратный шрифт */
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  background: transparent !important;
}

.breadcrumb-item {
  display: inline-flex !important;
  align-items: center !important;
  color: #475569 !important;
  /* Чуть светлее черного */
  font-size: 0.8125rem !important;
}

.breadcrumb-item+.breadcrumb-item {
  padding-left: 0.45rem !important;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "/" !important;
  /* Единый лаконичный разделитель */
  padding-right: 0.45rem !important;
  color: #94a3b8 !important;
  font-weight: 400 !important;
  float: none !important;
}

.breadcrumb-item a {
  color: #475569 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.breadcrumb-item a:hover {
  color: #2563eb !important;
  /* Легкий синий акцент при наведении */
  text-decoration: none !important;
}

.breadcrumb-item.active {
  color: #1e293b !important;
  /* Чуть более насыщенный для активной страницы */
  font-weight: 600 !important;
}


.fb-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.35rem;
  background: linear-gradient(135deg, var(--primary-blue, #0b3a75) 0%, #0d5cad 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(11, 58, 117, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.fb-float-btn i {
  font-size: 1.15rem;
  color: #38bdf8 !important;
  transition: transform 0.25s ease;
}

.fb-float-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(11, 58, 117, 0.45), 0 4px 10px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #0d2d5e 0%, var(--primary-blue, #0b3a75) 100%);
}

.fb-float-btn:hover i {
  transform: scale(1.15) rotate(-8deg);
}

.fb-float-btn:active {
  transform: translateY(-1px) scale(0.99);
}

/* ── Модальный оверлей ── */
.fb-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  box-sizing: border-box;
}

.fb-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ── Модальный диалог (карточка) ── */
.fb-modal-dialog {
  background: #ffffff;
  border-radius: 22px;
  padding: 2rem 2.25rem 2.25rem;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.1);
  transform: translateY(24px) scale(0.95);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.fb-modal-overlay.is-active .fb-modal-dialog {
  transform: translateY(0) scale(1);
}

/* ── Кнопка закрытия ── */
.fb-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b !important;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  padding: 0;
  line-height: 1;
  z-index: 10;
}

.fb-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a !important;
  transform: rotate(90deg);
}

/* ── Шапка в модальном окне ── */
.fb-widget-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.fb-widget-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 58, 117, 0.10) 0%, rgba(13, 148, 136, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-blue, #0b3a75);
}

.fb-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text-main, #000);
  line-height: 1.3;
}

.fb-widget-subtitle {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #475569 !important;
}

/* ── Поля формы ── */
.fb-fields {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.fb-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fb-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main, #000);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.fb-label-hint {
  font-weight: 400;
  color: #94a3b8 !important;
  font-size: 0.75rem;
}

.fb-label-required {
  color: #ef4444 !important;
  font-size: 0.85rem;
}

.fb-input {
  width: 100%;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  color: #0f172a;
  background: #fafbfc;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.fb-input::placeholder {
  color: #b0bec5;
  font-size: 0.82rem;
}

.fb-input:focus {
  border-color: var(--primary-blue, #0b3a75);
  box-shadow: 0 0 0 3px rgba(11, 58, 117, 0.10);
  background: #ffffff;
}

.fb-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.fb-char-count {
  font-size: 0.72rem;
  color: #94a3b8 !important;
  text-align: right;
  margin-top: 0.15rem;
}

/* ── Сообщения ── */
.fb-msg {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.fb-msg[hidden] {
  display: none !important;
}

.fb-msg-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c !important;
}

.fb-msg-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d !important;
}

.fb-msg-success i {
  color: #22c55e !important;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── Кнопка отправки ── */
.fb-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.75rem;
  background: linear-gradient(135deg, var(--primary-blue, #0b3a75), #0d5cad);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(11, 58, 117, 0.22);
}

.fb-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #0d2d5e, var(--primary-blue, #0b3a75));
  box-shadow: 0 4px 14px rgba(11, 58, 117, 0.32);
  transform: translateY(-1px);
}

.fb-submit:active:not(:disabled) {
  transform: translateY(0);
}

.fb-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ── Уведомление о политике конфиденциальности ── */
.fb-privacy-note {
  font-size: 0.75rem;
  color: #64748b !important;
  line-height: 1.45;
  margin-top: 0.85rem;
  text-align: center;
}

.fb-privacy-note a {
  color: var(--primary-blue, #0b3a75) !important;
  text-decoration: underline;
  transition: color 0.18s ease;
}

.fb-privacy-note a:hover {
  color: #0d2d5e !important;
}

/* ── Спиннер ── */
.fb-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: fbSpin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes fbSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Адаптив ── */
@media (max-width: 576px) {
  .fb-float-btn {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(11, 58, 117, 0.4);
  }

  .fb-float-btn-text {
    display: none !important;
  }

  .fb-float-btn i {
    font-size: 1.35rem;
    margin: 0;
  }

  .fb-modal-dialog {
    padding: 1.5rem 1.25rem 1.5rem;
    border-radius: 18px;
  }

  .fb-widget-header {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .fb-widget-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .fb-submit {
    width: 100%;
    justify-content: center;
  }
}