/* Основные стили для приложения ЕвроСнаб */

/* Переменные цветов */
:root {
  --primary-color: #0056b3;
  --secondary-color: #34495e;
  --accent-color: #0056b3;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --grey-color: #95a5a6;
  --border-color: #dee2e6;
  --cyan-color: #01F8FF;
  --border-radius: 0.375rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --hover-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* Общие стили */
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  color: #217dbb;
}

/* Заголовки */
.section-title {
  border-bottom: 2px solid var(--light-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Карточки */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-bottom: 1rem;
}

.card:hover {
  box-shadow: var(--hover-shadow);
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* Кнопки */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #004494;
  border-color: #004494;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 86, 179, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 86, 179, 0.3);
}

/* Навигация */
.navbar {
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #0050bd !important;
}

.nav-pills .nav-link.active {
  background-color: var(--accent-color);
}

/* Боковая панель */
.sidebar .nav-link {
  color: var(--dark-color);
  padding: 0.5rem 1rem;
  margin-bottom: 0.2rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--accent-color);
}

.sidebar .nav-link.active {
  background-color: var(--accent-color);
  color: white;
}

.sidebar .nav-link i {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
}

/* Статусы */
.status-badge {
  padding: 0.35rem 0.6rem;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-new {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--accent-color);
}

.status-in-progress {
  background-color: rgba(243, 156, 18, 0.1);
  color: var(--warning-color);
}

.status-delivered {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--success-color);
}

.status-completed {
  background-color: rgba(52, 73, 94, 0.1);
  color: var(--dark-color);
}

.status-canceled {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
}

/* Формы */
.form-control:focus, .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Таблицы */
.table-hover tbody tr:hover {
  background-color: rgba(0, 86, 179, 0.03);
}

/* Иконки */
.icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1.5rem;
}

/* Статистические карточки */
.stats-card {
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background-color: #fff;
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Хлебные крошки */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
}

/* Модальные окна */
.modal-header {
  background-color: var(--primary-color);
  color: white;
}

/* Новая шапка */
.top-header-panel {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.header-logo {
  max-height: 50px;
  width: auto;
}

.contact-info .icon-box {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.contact-info .icon-box i {
  font-size: 18px;
}

.contact-text small {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-text {
  line-height: 1.2;
}

.contact-item {
  display: flex;
  align-items: center;
}

/* Кнопка "Задать вопрос" */
.btn-ask-question {
  background-color: #0050bd;
  border-color: #0050bd;
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 25px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-ask-question:hover {
  background-color: #222931;
  border-color: #222931;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Темная навигационная панель */
.navbar-dark {
  background-color: #222931 !important;
  min-height: 50px;
  max-height: 50px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-dark .navbar-nav .nav-link {
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.56px;
  padding: 14px 13px 13px 14px;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 0;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: #0050bd;
}

/* Dropdown стили */
.navbar-dark .dropdown-menu {
  background-color: #222931;
  border: none;
  margin-top: 0;
  border-radius: 0;
  padding: 0;
  min-width: 250px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  animation: none !important;
}

.navbar-dark .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.navbar-dark .dropdown-item {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 20px;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-dark .dropdown-item:last-child {
  border-bottom: none;
}

.navbar-dark .dropdown-item:hover,
.navbar-dark .dropdown-item:focus {
  background-color: #0050bd;
  color: #ffffff !important;
  padding-left: 25px;
}

/* Кастомная стрелка для dropdown */
.navbar-dark .dropdown-toggle::after {
  display: none;
}

.navbar-dark .dropdown-toggle .fa-angle-down {
  font-size: 14px;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-left: 5px;
}

.navbar-dark .dropdown-toggle[aria-expanded="true"] .fa-angle-down,
.navbar-dark .dropdown:hover .dropdown-toggle .fa-angle-down {
  transform: rotate(180deg);
}

/* Показываем dropdown при наведении на десктопе */
@media (min-width: 992px) {
  .navbar-dark .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  
  .navbar-dark .dropdown-toggle:hover {
    color: #ffffff !important;
    background-color: #0050bd;
  }
}

/* Кнопка поиска и входа */
.search-btn,
.navbar-dark a[href="/auth/login"],
.navbar-dark .dropdown-toggle {
  font-size: 14px;
  padding: 8px 12px;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.search-btn:hover,
.navbar-dark a[href="/auth/login"]:hover,
.navbar-dark .dropdown-toggle:hover {
  background-color: rgba(255,255,255,0.1);
  color: #ffffff !important;
}

.search-btn:focus {
  box-shadow: none;
  outline: none;
}

/* Футер */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
  text-decoration: none;
}

/* Кнопка прокрутки наверх */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #0050bd;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 80, 189, 0.3);
  transform: scale(0.8);
}

.scroll-to-top:hover {
  background-color: #222931;
  transform: scale(0.9) translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 80, 189, 0.4);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.scroll-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 80, 189, 0.5);
}

.scroll-to-top:not(.show) {
  pointer-events: none;
}

/* Анимации */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Мобильная навигация */
@media (max-width: 991px) {
  .navbar-dark .navbar-nav {
    padding: 15px 0;
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 0;
  }
  
  .navbar-dark .navbar-nav .nav-link:hover {
    padding-left: 25px;
    color: #ffffff !important;
  }
  
  .navbar-dark .dropdown-menu {
    background-color: rgba(0,0,0,0.2);
    box-shadow: none;
    margin-left: 20px;
    margin-top: 0;
  }
  
  .navbar-dark .navbar-toggler {
    border: none;
    padding: 4px 8px;
  }
  
  .navbar-dark .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }
  
  .navbar-collapse {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 10px;
  }
  
  .contact-info {
    font-size: 14px;
  }
  
  .contact-text small {
    font-size: 11px;
  }
  
  .btn-ask-question {
    font-size: 12px;
    padding: 8px 20px;
  }
}

@media (max-width: 767px) {
  .top-header-panel .contact-item {
    margin-bottom: 10px;
  }
  
  .header-logo {
    max-height: 40px;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .contact-item {
    justify-content: center;
  }
  
  .btn-ask-question {
    width: 100%;
    max-width: 300px;
  }
  
  .sidebar {
    margin-bottom: 1.5rem;
  }
  
  .stats-card {
    margin-bottom: 1rem;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .scroll-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 15px;
    right: 15px;
  }
}

/* Исправление полосы между шапкой и контентом */
.hero-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.navbar + .hero-section,
.navbar + section,
.navbar + div,
.navbar + main > *:first-child {
  margin-top: 0 !important;
}

/* Стили для состояний */
.sticky-top.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Уведомления */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 0.25rem 0.5rem;
  border-radius: 50%;
  font-size: 0.75rem;
  background-color: var(--danger-color);
  color: white;
}

/* История статусов */
.status-timeline {
  position: relative;
  padding-left: 30px;
}

.status-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  background-color: var(--border-color);
}

.status-timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.status-timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid var(--accent-color);
  z-index: 1;
}

.status-timeline-item.active::before {
  background-color: var(--accent-color);
}

/* Кнопка вверх */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* Убираем старую верхнюю панель для лендинга */
.top-info-bar {
  display: none;
}
/* Улучшенные стили для лучшей читаемости секции преимуществ */

/* Новый блок преимуществ с улучшенной контрастностью */
.advantages-section.bg-gradient {
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, #1a202c 100%);
  min-height: 450px;
  position: relative;
  /* Добавляем дополнительный градиент для лучшего контраста */
  background-image: 
    linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(45, 55, 72, 0.95) 50%, rgba(26, 32, 44, 0.95) 100%),
    radial-gradient(circle at 30% 50%, rgba(0, 80, 189, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(1, 248, 255, 0.2) 0%, transparent 50%);
}

.advantage-bg-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(1, 248, 255, 0.08);
  animation: float 6s ease-in-out infinite;
  /* Добавляем легкую тень для лучшей видимости */
  box-shadow: 0 0 40px rgba(1, 248, 255, 0.1);
}

.advantage-bg-shape.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.advantage-bg-shape.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: -3%;
  animation-delay: 2s;
}

.advantage-bg-shape.shape-3 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 10%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.advantage-card-new {
  padding: 2.5rem 2rem;
  border-radius: 20px;
  /* Улучшенный фон карточки с лучшей контрастностью */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
  /* Добавляем тень для глубины */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.advantage-card-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s;
}

.advantage-card-new:hover::before {
  left: 100%;
}

.advantage-card-new:hover {
  transform: translateY(-15px) scale(1.02);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(1, 248, 255, 0.6);
}

.advantage-icon-new {
  position: relative;
  margin-bottom: 1.5rem;
}

.icon-pulse {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  background: linear-gradient(45deg, #01F8FF, #0050bd);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: iconPulse 3s infinite;
  box-shadow: 
    0 10px 30px rgba(1, 248, 255, 0.4),
    0 0 0 4px rgba(255, 255, 255, 0.1);
}

.icon-pulse i {
  font-size: 2.2rem;
  color: white;
  z-index: 2;
  transition: transform 0.3s ease;
  /* Добавляем текстовую тень для лучшей видимости */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.advantage-card-new:hover .icon-pulse i {
  transform: scale(1.1);
}

.icon-pulse::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(45deg, #01F8FF, #0050bd);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulseRing 3s infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulseRing {
  0% { 
    transform: scale(0.8); 
    opacity: 0.6; 
  }
  100% { 
    transform: scale(1.5); 
    opacity: 0; 
  }
}

.advantage-number {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: rgba(1, 248, 255, 0.25);
  border: 2px solid #01F8FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #01F8FF;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  /* Добавляем тень для номера */
  box-shadow: 0 4px 12px rgba(1, 248, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.advantage-card-new:hover .advantage-number {
  background: #01F8FF;
  color: #1a365d;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(1, 248, 255, 0.5);
}

.advantage-card-new h3 {
  font-size: 1.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  /* Улучшаем контраст текста заголовков */
  color: #ffffff !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  font-weight: 800;
}

.advantage-card-new p {
  /* Улучшаем контраст описания */
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.text-glow {
  text-shadow: 
    0 0 10px rgba(1, 248, 255, 0.8),
    2px 2px 8px rgba(0, 0, 0, 0.6);
  color: #ffffff !important;
}

/* Улучшаем заголовок секции */
.advantages-section h2 {
  color: #ffffff !important;
  text-shadow: 
    0 0 20px rgba(1, 248, 255, 0.6),
    2px 2px 8px rgba(0, 0, 0, 0.8);
  font-weight: 800;
}

.advantages-section p {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

/* Карусель заводов с улучшенным контрастом */
.factories-section {
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  /* Добавляем разделительную линию */
  border-top: 4px solid #0050bd;
}

.factories-section .carousel-indicators {
  position: relative;
  margin-bottom: 3rem;
  justify-content: center;
}

.factories-section .carousel-indicators button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin: 0 10px;
  background-color: rgba(0, 80, 189, 0.4);
  border: 2px solid #0050bd;
  transition: all 0.3s ease;
}

.factories-section .carousel-indicators button.active {
  background-color: #0050bd;
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(0, 80, 189, 0.5);
}

.factories-section .carousel-control-prev,
.factories-section .carousel-control-next {
  width: 8%;
  color: #0050bd;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.factories-section .carousel-control-prev:hover,
.factories-section .carousel-control-next:hover {
  opacity: 1;
}

.factories-section .carousel-control-prev-icon,
.factories-section .carousel-control-next-icon {
  background-color: #0050bd;
  border-radius: 50%;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 80, 189, 0.3);
}

.factories-section .carousel-control-prev-icon:hover,
.factories-section .carousel-control-next-icon:hover {
  background-color: #222931;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 80, 189, 0.4);
}

/* Улучшение карточек заводов */
.factory-card {
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 80, 189, 0.15);
  overflow: hidden;
  position: relative;
}

.factory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #01F8FF, #0050bd);
  transition: left 0.5s ease;
}

.factory-card:hover::before {
  left: 0;
}

.factory-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 80, 189, 0.2);
  border-color: #0050bd;
}

.factory-card img {
  transition: all 0.4s ease;
  filter: grayscale(0.1);
}

.factory-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0);
}

.factory-card h4 a {
  transition: color 0.3s ease;
  color: #2d3748;
}

.factory-card:hover h4 a {
  color: #0050bd !important;
}

.factory-card .btn {
  background: linear-gradient(45deg, #0050bd, #222931);
  border: none;
  font-weight: 600;
  padding: 12px 28px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 80, 189, 0.3);
}

.factory-card .btn:hover {
  background: linear-gradient(45deg, #01F8FF, #0050bd);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 80, 189, 0.4);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .advantage-bg-shape {
    display: none;
  }
  
  .advantages-section.bg-gradient {
    min-height: auto;
    padding: 3rem 0;
    /* Упрощаем фон для мобильных */
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
  }
  
  .advantage-card-new {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  .icon-pulse {
    width: 70px;
    height: 70px;
  }
  
  .icon-pulse i {
    font-size: 1.8rem;
  }
  
  .advantage-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    top: 20px;
    right: 20px;
  }
  
  .advantages-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .advantage-card-new h3 {
    font-size: 1.2rem;
  }
  
  .factories-section .carousel-control-prev,
  .factories-section .carousel-control-next {
    width: 12%;
  }
  
  .factories-section .carousel-control-prev-icon,
  .factories-section .carousel-control-next-icon {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .advantage-card-new {
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.25);
  }
  
  .icon-pulse {
    width: 60px;
    height: 60px;
  }
  
  .icon-pulse i {
    font-size: 1.5rem;
  }
  
  .advantage-card-new h3 {
    font-size: 1.1rem;
  }
}

/* Дополнительные стили для плавающей кнопки авторизации */
.auth-button-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 86, 179, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
  }
}

/* Плавающие частицы */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(1, 248, 255, 0.15);
  border-radius: 50%;
  animation: floatParticle 15s infinite linear;
  box-shadow: 0 0 10px rgba(1, 248, 255, 0.3);
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ===== Migrated from landing.css (shared: footer, icons, cards used by login + cabinet) ===== */

/* :root color overrides (preserve cascade: landing.css previously overrode these after style.css) */
:root {
  --primary-color: #0050bd;
  --secondary-color: #222931;
  --light-color: #ecf0f1;
  --dark-color: #222931;
  --grey-color: #95a5a6;
  --border-color: #dee2e6;
  --accent-color: #0050bd;
  --cyan-color: #01F8FF;
}

/* Карточки заводов (cabinet cement-types pages) */
.factory-card {
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 86, 179, 0.1);
  overflow: hidden;
  position: relative;
}

/* Принудительно скрываем любые псевдоэлементы с полосами */
.factory-card::before,
.factory-card::after {
  display: none !important;
}

.factory-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 86, 179, 0.15);
  border-color: #0056b3;
}

.factory-card:hover::before,
.factory-card:hover::after {
  display: none !important;
}

.factory-card img {
  transition: all 0.3s ease;
  filter: grayscale(0.1);
}

.factory-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0);
}

.factory-card h4 a {
  transition: color 0.3s ease;
  color: #2d3748;
}

.factory-card:hover h4 a {
  color: #0056b3 !important;
}

.factory-card .btn {
  background: linear-gradient(45deg, #0056b3, #004494);
  border: none;
  font-weight: 600;
  padding: 10px 25px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.factory-card .btn:hover {
  background: linear-gradient(45deg, #004494, #003366);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
}

/* Контактные элементы (cabinet: client/dashboard, client-sidebar) */
.contact-item .icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 80, 189, 0.1);
  border-radius: 50%;
  margin-right: 20px;
}

.contact-item:hover .icon {
  background-color: var(--primary-color);
}

.contact-item:hover .icon i {
  color: white !important;
}

.contact-info h5 {
  color: var(--primary-color);
  font-weight: 600;
}

/* ===== ФУТЕР (login page shows the site footer) ===== */
.eurosnab-footer {
  background-color: #1B2026;
  color: #fff;
  padding: 30px 0 20px;
}

.eurosnab-footer .footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.eurosnab-footer a {
  color: #8F9396;
  transition: color 0.3s ease;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.eurosnab-footer a:hover {
  color: #01F8FF;
}

.eurosnab-footer .footer-contact {
  color: #8F9396;
}

.eurosnab-footer .footer-contact i {
  color: #01F8FF;
  margin-right: 10px;
  width: 16px;
}

.eurosnab-footer .fa-chevron-right {
  color: #01F8FF;
  font-size: 12px;
  margin-right: 8px;
}

.eurosnab-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  padding-top: 20px;
  font-size: 14px;
  color: #8F9396;
}

/* Ссылка на политику в футере должна быть серой как остальные */
.eurosnab-footer a[href="/privacy"],
.footer-bottom a[href="/privacy"] {
  color: #8F9396 !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.eurosnab-footer a[href="/privacy"]:hover,
.footer-bottom a[href="/privacy"]:hover {
  color: #01F8FF !important;
  text-decoration: none !important;
}

.eurosnab-footer .footer-bottom a[href="/privacy"] {
  color: #8F9396 !important;
  font-weight: normal !important;
  text-decoration: none !important;
}

.eurosnab-footer .footer-bottom a[href="/privacy"]:hover {
  color: #01F8FF !important;
  transform: none !important;
}

/* ===== FLASH-СООБЩЕНИЯ (rendered in main.ejs flash block on login/non-admin) ===== */
.flash-messages-container {
  position: relative;
  z-index: 100;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0;
}

.alert {
  margin-bottom: 0;
  border-radius: 0;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  padding: 1rem 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  overflow: hidden;
}

.alert-inner {
  max-width: 1320px;
  width: 100%;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-content {
  flex: 1;
  display: flex;
  align-items: center;
}

.alert .btn-close {
  margin-left: 15px;
  flex-shrink: 0;
}

.alert-success {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-left: 5px solid #ffffff;
}

.alert-danger {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
  color: white;
  border-left: 5px solid #ffffff;
}

.alert-info {
  background: linear-gradient(135deg, #17a2b8, #007bff);
  color: white;
  border-left: 5px solid #ffffff;
}

.alert-warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: #212529;
  border-left: 5px solid #ffffff;
}

.alert .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.alert .btn-close:hover {
  opacity: 1;
}

.alert-warning .btn-close {
  filter: brightness(0) invert(0);
}

.alert-success::before {
  content: "✓";
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.alert-danger::before {
  content: "⚠";
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.alert-info::before {
  content: "ℹ";
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.alert-warning::before {
  content: "⚡";
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

/* ===== АДАПТИВНЫЕ СТИЛИ (migrated responsive variants) ===== */
@media (max-width: 768px) {
  .alert {
    padding: 0.75rem 0;
    font-size: 0.9rem;
  }

  .alert-inner {
    padding: 0 10px;
  }

  .contact-item .icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
}

@media (max-width: 576px) {
  .eurosnab-footer .footer-title {
    margin-top: 20px;
  }
}
