/* ==================================================================
   ГЛАВНАЯ СТРАНИЦА - ПОЛНЫЙ ФАЙЛ СТИЛЕЙ
   Включает: слайдер, статистику, услуги (с волной), новости, обратную связь, контакты, ресурсы
   ================================================================== */

/* ==================================================================
   БАЗОВЫЕ ПЕРЕМЕННЫЕ И ОБЩИЕ СТИЛИ
   ================================================================== */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #0dcaf0;
    --dark-blue: #1e2a3e;
    --text: #212529;
    --gray: #6c757d;
    --light: #f8f9fa;
}

/* ==================================================================
   ГЛАВНАЯ СТРАНИЦА - СЛАЙДЕР
   ================================================================== */
.section-modern-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.slider-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  z-index: 1;
}

#modernSlider {
  height: 600px;
  min-height: 500px;
  max-height: 600px;
  position: relative;
  overflow: hidden;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  display: none;
  pointer-events: none;
}

.carousel-item.active {
  position: relative;
  opacity: 1;
  z-index: 2;
  display: block;
  pointer-events: all;
  min-height: 600px;
}

/* Контент слайдера */
.slider-content {
  position: relative;
  z-index: 10;
  padding: 0.5rem 0;
  flex: 1;
}

.slider-badge {
  animation: fadeInDown 0.6s ease;
}

.slider-badge .badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0.4rem 0.8rem;
}

.slider-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a1a;
  animation: fadeInUp 0.8s ease 0.2s both;
  margin-bottom: 0.75rem;
}

.slider-title .text-blue-600 {
  color: #2563eb;
}

.slider-title .text-green-600 {
  color: #059669;
}

.slider-title span {
  font-size: 1.25rem;
  margin-top: 0.25rem;
  display: block;
}

.slider-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
  animation: fadeInUp 0.8s ease 0.4s both;
  margin-bottom: 1rem;
}

/* Особенности в слайдере */
.slider-features {
  animation: fadeInUp 0.8s ease 0.6s both;
  margin-bottom: 1rem;
}

.slider-features .row {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
}

.feature-item {
  padding: 0.4rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  align-items: center;
  min-height: 60px;
}

.feature-item:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.feature-content {
  flex: 1;
  min-width: 0;
}

.feature-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.2;
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-subtext {
  font-size: 0.65rem;
  line-height: 1.1;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Кнопки слайдера */
.slider-actions {
  animation: fadeInUp 0.8s ease 0.8s both;
  margin-bottom: 0;
}

.slider-actions .btn {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

.slider-actions .btn-md {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

/* Быстрые контакты */
.quick-contacts {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

.quick-contacts .rounded-circle {
  width: 28px;
  height: 28px;
  padding: 0.4rem;
  font-size: 0.75rem;
}

.quick-contacts a,
.quick-contacts .fw-bold {
  font-size: 0.8rem;
}

.quick-contacts .text-muted {
  font-size: 0.7rem;
}

/* Изображение слайдера */
.slide-image-right {
  position: relative;
  top: 0;
  right: 0;
  margin-left: 100px;
  width: 100%;
  height: 100%;
}

.slider-image-container {
  position: relative;
  height: 350px;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  opacity: 1 !important;
  overflow: hidden;
}

.slider-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.carousel-item.active .slider-image {
  transform: scale(1.03);
}

.carousel-item.active .slider-image-wrapper:hover .slider-image {
  transform: scale(1.05);
}

/* Карточки статистики в слайдере */
.slider-stats-card {
  position: absolute;
  bottom: 10px;
  left: 10px;
  max-width: 160px;
  padding: 0.5rem !important;
  z-index: 20;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(229, 231, 235, 0.8);
  font-size: 0.75rem;
  animation: slideInStats 0.6s ease 0.4s both;
}

/* Позиционирование статистики */
.stats-position-top-left { top: 10px; left: 10px; bottom: auto; right: auto; }
.stats-position-top-right { top: 10px; right: 10px; bottom: auto; left: auto; }
.stats-position-bottom-left { bottom: 10px; left: 10px; top: auto; right: auto; }
.stats-position-bottom-right { bottom: 10px; right: 10px; top: auto; left: auto; }
.stats-position-center-left { top: 50%; left: 10px; transform: translateY(-50%); }
.stats-position-center-right { top: 50%; right: 10px; transform: translateY(-50%); }

/* Размеры статистики */
.stats-size-sm {
  max-width: 140px;
  padding: 0.4rem !important;
}
.stats-size-sm .stats-icon { width: 24px; height: 24px; font-size: 0.7rem; }
.stats-size-sm .stats-value { font-size: 0.75rem; }
.stats-size-sm .stats-label { font-size: 0.6rem; }

.stats-size-xs {
  max-width: 120px;
  padding: 0.3rem !important;
}
.stats-size-xs .stats-icon { width: 20px; height: 20px; font-size: 0.65rem; }
.stats-size-xs .stats-value { font-size: 0.7rem; }
.stats-size-xs .stats-label { font-size: 0.55rem; }

.stats-size-lg {
  max-width: 180px;
  padding: 0.75rem !important;
}
.stats-size-lg .stats-icon { width: 32px; height: 32px; font-size: 1rem; }
.stats-size-lg .stats-value { font-size: 1rem; }
.stats-size-lg .stats-label { font-size: 0.75rem; }

/* Элементы статистики */
.stats-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  border-radius: 50%;
}

.stats-value {
  color: #1e40af;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
  line-height: 1.2;
}

.stats-label {
  font-size: 0.65rem;
  color: #6b7280;
  line-height: 1.2;
}

/* Цветовые темы статистики */
.stats-theme-primary .stats-icon { background-color: rgba(37, 99, 235, 0.1); color: #2563eb; }
.stats-theme-primary .stats-value { color: #1e40af; }
.stats-theme-success .stats-icon { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.stats-theme-success .stats-value { color: #047857; }
.stats-theme-purple .stats-icon { background-color: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.stats-theme-purple .stats-value { color: #7c3aed; }
.stats-theme-orange .stats-icon { background-color: rgba(249, 115, 22, 0.1); color: #f97316; }
.stats-theme-orange .stats-value { color: #ea580c; }
.stats-theme-red .stats-icon { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }
.stats-theme-red .stats-value { color: #dc2626; }

/* Индикаторы слайдера */
.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.3);
  border: none;
  margin: 0 4px;
}

.carousel-indicators button.active {
  background-color: #2563eb;
}

.carousel-indicators-custom {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel-indicators-custom button {
  width: 30px;
  height: 3px;
  border-radius: 1.5px;
  background-color: rgba(40, 136, 192, 0.473);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.carousel-indicators-custom button.active {
  background-color: rgba(255, 255, 255, 0.8);
}

.carousel-indicators-custom button.active::before {
  width: 100%;
}

.carousel-indicators-custom button:hover {
  transform: scaleY(1.5);
  background-color: rgba(255, 255, 255, 0.5);
}

/* Кнопки навигации слайдера */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0.8;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.carousel-control-prev {
  left: 10px !important;
  right: auto !important;
}

.carousel-control-next {
  right: 10px !important;
  left: auto !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background-color: white;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  filter: none !important;
  opacity: 1 !important;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%232563eb' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%232563eb' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* Фоновые изображения слайдера */
.slider-background-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.slider-background-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.85) 0%, rgba(224, 242, 254, 0.8) 30%, rgba(240, 249, 255, 0.7) 100%);
  z-index: 2;
}

.slider-background-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  animation: subtleZoom 20s ease infinite alternate;
}

@keyframes subtleZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.slider-bg-1::after { background-image: url("/assets/images/1770285963.png"); }
.slider-bg-2::after { background-image: url("/assets/images/1770286468.png"); }
.slider-bg-3::after { background-image: url("/assets/images/1770287217.png"); }
.slider-bg-4::after { background-image: url("/assets/images/1770286468.png"); }

/* ==================================================================
   АНИМАЦИИ ДЛЯ СЛАЙДЕРА
   ================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInStats {
  0% { opacity: 0; transform: translateX(-10px) scale(0.95); }
  70% { transform: translateX(2px) scale(1.02); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes scaleInImage {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInRightImage {
  0% { transform: translateX(20px); opacity: 0.8; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideFromTop {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ==================================================================
   СТАТИСТИКА НА ГЛАВНОЙ СТРАНИЦЕ
   ================================================================== */
.stats-section {
  padding: 4rem 0;
  background: white;
}

.stats-header {
  text-align: center;
  margin-bottom: 3rem;
}

.stats-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.stats-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #1d8ce0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

.stat-icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e7f3fd 0%, #d0e7ff 100%);
  border-radius: 50%;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon-bg {
  transform: rotate(45deg) scale(1.1);
  background: linear-gradient(135deg, var(--primary), #1d8ce0);
}

.stat-icon i {
  font-size: 2rem;
  color: var(--primary);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon i {
  color: white;
  transform: scale(1.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.stat-number .plus {
  font-size: 1.5rem;
  color: var(--success);
}

.stat-number.animated {
  animation: countUp 0.5s ease forwards;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-label {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 1rem;
  font-weight: 500;
}

.stat-description {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 0;
}

/* Прогресс бар статистики */
.stat-progress {
  margin-top: 1.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
}

.progress {
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease-in-out;
}

/* Цветовые варианты статистики */
.stat-card.primary:hover { border-color: var(--primary); }
.stat-card.primary .stat-number { color: var(--primary); }

.stat-card.success:hover { border-color: var(--success); }
.stat-card.success .stat-number { color: var(--success); }
.stat-card.success .stat-icon i { color: var(--success); }
.stat-card.success .stat-icon-bg { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }
.stat-card.success:hover .stat-icon-bg { background: linear-gradient(135deg, var(--success), #198754); }

.stat-card.warning:hover { border-color: var(--warning); }
.stat-card.warning .stat-number { color: var(--warning); }
.stat-card.warning .stat-icon i { color: var(--warning); }
.stat-card.warning .stat-icon-bg { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.stat-card.warning:hover .stat-icon-bg { background: linear-gradient(135deg, var(--warning), #ffc107); }

.stat-card.danger:hover { border-color: var(--danger); }
.stat-card.danger .stat-number { color: var(--danger); }
.stat-card.danger .stat-icon i { color: var(--danger); }
.stat-card.danger .stat-icon-bg { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); }
.stat-card.danger:hover .stat-icon-bg { background: linear-gradient(135deg, var(--danger), #dc3545); }

/* ==================================================================
   СЕКЦИЯ "ВСЕ УСЛУГИ" НА ГЛАВНОЙ (С АНИМИРОВАННОЙ ВОЛНОЙ)
   ================================================================== */
.section-all-services {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 !important;
  z-index: 1;
}

/* Canvas для анимированной волны - фиксируем относительно секции */
.services-wave-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Контейнер с контентом должен быть выше canvas */
.section-all-services .container {
  position: relative;
  z-index: 2;
}

.section-all-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #1d8ce0 25%, #0dcaf0 50%, #1d8ce0 75%, var(--primary) 100%);
  z-index: 2;
}

.section-all-services .section-title {
  position: relative;
  display: inline-block;
  color: var(--dark-blue);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  z-index: 2;
}

.section-all-services .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #1d8ce0);
  border-radius: 2px;
}

.section-all-services .section-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Сетка услуг */
.all-services-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Карточка услуги на главной */
.service-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px);
  animation: cardAppear 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes cardAppear {
  to { opacity: 1; transform: translateY(0); }
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #1d8ce0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.12), 0 8px 16px rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Иконка услуги */
.service-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.service-icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 20px;
  transform: rotate(45deg);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon-bg {
  transform: rotate(45deg) scale(1.1);
  background: linear-gradient(135deg, var(--primary), #1d8ce0);
}

.service-icon {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  color: white;
  transform: scale(1.1);
}

/* Заголовок услуги */
.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.4;
  transition: color 0.3s ease;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card:hover .service-card-title {
  color: var(--primary);
}

/* Описание услуги */
.service-card-description {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
  flex-grow: 1;
}

/* Бейджи */
.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.service-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(226, 232, 240, 0.5);
  color: #475569;
  transition: all 0.3s ease;
}

.service-card:hover .service-badge {
  background: rgba(13, 110, 253, 0.1);
  color: var(--primary);
}

.service-badge.highlight {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

/* Кнопка "Подробнее" */
.service-card-action {
  margin-top: auto;
  text-align: center;
}

.btn-service-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-service-more::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-service-more:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
  text-decoration: none;
}

.btn-service-more:hover::before {
  width: 200px;
  height: 200px;
}

.btn-service-more:hover i {
  transform: translateX(3px);
}

.btn-service-more i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* Кнопка "Все услуги" */
.all-services-btn-container {
  margin-top: 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.btn-all-services {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), #1d8ce0);
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.2), 0 4px 10px rgba(13, 110, 253, 0.1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.btn-all-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-all-services:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(13, 110, 253, 0.25), 0 8px 15px rgba(13, 110, 253, 0.15);
  text-decoration: none;
  color: white;
}

.btn-all-services:hover::before {
  left: 100%;
}

.btn-all-services:hover i {
  transform: translateX(5px) rotate(90deg);
}

.btn-all-services i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* ==================================================================
   НОВОСТИ
   ================================================================== */
.section-news {
  background: white;
  position: relative;
  overflow: hidden;
}

.section-news .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-news .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #1d8ce0);
  border-radius: 2px;
}

.section-news .section-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.news-item {
  opacity: 0;
  transform: translateY(30px);
  animation: newsAppear 0.5s ease forwards;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }
.news-item:nth-child(6) { animation-delay: 0.6s; }
.news-item:nth-child(7) { animation-delay: 0.7s; }
.news-item:nth-child(8) { animation-delay: 0.8s; }
.news-item:nth-child(9) { animation-delay: 0.9s; }

@keyframes newsAppear {
  to { opacity: 1; transform: translateY(0); }
}

.news-item .card {
  transition: all 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
}

.news-item .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.news-item .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item .card:hover .card-img-top {
  transform: scale(1.05);
}

/* ==================================================================
   ОБРАТНАЯ СВЯЗЬ
   ================================================================== */
.section-feedback {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  position: relative;
  overflow: hidden;
}

.section-feedback .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.section-feedback .section-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ==================================================================
   КОНТАКТЫ
   ================================================================== */
.section-contacts .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-contacts .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #1d8ce0);
  border-radius: 2px;
}

.contact-info {
  transition: all 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ==================================================================
   ПОЛЕЗНЫЕ РЕСУРСЫ
   ================================================================== */
.section-resources .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-resources .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #1d8ce0);
  border-radius: 2px;
}

.useful-links-carousel .btn-outline-primary {
  transition: all 0.3s ease;
}

.useful-links-carousel .btn-outline-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
}

/* ==================================================================
   АНИМИРОВАННЫЙ БАННЕР
   ================================================================== */
.slider-top-banner {
  position: absolute;
  left: 326px;
  right: 326px;
  z-index: 5;
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.95) 100%, rgba(29, 140, 224, 0.95) 100%);
  color: white;
  padding: 4px 2px;
  border-radius: 0 0 12px 12px;
  backdrop-filter: blur(10px);
  animation: slideDown 0.5s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-top-banner .banner-left-btn,
.slider-top-banner .banner-link,
.slider-top-banner .banner-indicator {
  pointer-events: auto;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.banner-left-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 3px 8px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  margin-left: 1px;
  margin-right: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  height: 24px;
}

.banner-left-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-left-btn:hover i {
  transform: rotate(15deg);
}

.banner-left-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.banner-content-wrapper {
  flex-grow: 1;
  position: relative;
}

.banner-messages-container {
  position: relative;
  height: 28px;
  overflow: hidden;
}

.banner-message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 5px;
}

.banner-message.active {
  opacity: 1;
  transform: translateY(0);
}

.banner-message.exit {
  opacity: 0;
  transform: translateY(-20px);
}

.banner-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  animation: badgePulse 3s infinite;
  transform-origin: center;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
}

.banner-badge.primary { background-color: #b91b1b; }
.banner-badge.success { background-color: #198754; }
.banner-badge.warning { background-color: #ffc107; color: #212529; }
.banner-badge.danger { background-color: #dc3545; }
.banner-badge.info { background-color: #0dcaf0; }
.banner-badge.dark { background-color: #212529; }
.banner-badge.purple { background-color: #6f42c1; }

.banner-text {
  font-weight: 500;
  font-size: 0.75rem !important;
  text-align: center;
  flex-grow: 1;
  position: relative;
  padding: 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-text span {
  display: inline-block;
  position: relative;
}

.banner-text span::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease;
}

.banner-message.active .banner-text span::after {
  width: 100%;
  transition: width 1s ease 0.5s;
}

.banner-link {
  color: white;
  text-decoration: none;
  font-size: 0.75rem !important;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 15px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-right: 5px;
}

.banner-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.banner-link:hover::before {
  width: 200px;
  height: 200px;
}

.banner-link:hover {
  background: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.banner-link:hover i {
  transform: translateX(5px) scale(1.1);
}

.banner-link i {
  font-size: 0.75rem;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.banner-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 5px;
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
}

.banner-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-indicator.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.banner-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 21;
  backdrop-filter: blur(5px);
}

.banner-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.banner-nav.prev { left: 10px; }
.banner-nav.next { right: 10px; }

.banner-nav i { font-size: 0.9rem; }

.banner-gradient-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0), transparent);
  animation: gradientMove 15s linear infinite;
}

@keyframes gradientMove {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ==================================================================
   НОВОСТИ - ДЕТАЛЬНАЯ СТРАНИЦА
   ================================================================== */
.news-single-header {
  background: linear-gradient(135deg, #0d6efd 0%, #1d8ce0 100%);
  color: white;
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.news-single-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #1d8ce0 25%, #0dcaf0 50%, #1d8ce0 75%, var(--primary) 100%);
}

.news-breadcrumb {
  margin-bottom: 1.5rem;
}

.news-single-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.news-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.news-single-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.news-single-meta-item i {
  font-size: 1.1rem;
}

.news-single-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.news-badge-single {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.news-badge-single.important {
  background: rgba(220, 53, 69, 0.8);
}

.news-badge-single.announcement {
  background: rgba(255, 193, 7, 0.8);
  color: #212529;
}

/* Основное содержимое новости */
.news-single-content {
  padding: 3rem 0;
}

.news-single-image {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-single-image img {
  width: 100%;
  height: auto;
  display: block;
}

.news-single-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 3rem;
}

.news-single-body h2,
.news-single-body h3,
.news-single-body h4 {
  color: var(--dark-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.news-single-body h2 { font-size: 1.8rem; }
.news-single-body h3 { font-size: 1.5rem; }
.news-single-body h4 { font-size: 1.2rem; }

.news-single-body p {
  margin-bottom: 1.5rem;
}

.news-single-body ul,
.news-single-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.news-single-body li {
  margin-bottom: 0.5rem;
}

.news-single-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--gray);
  font-size: 1.2rem;
}

.news-single-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.news-single-body figure {
  margin: 2rem 0;
  text-align: center;
}

.news-single-body figcaption {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Галерея новости */
.news-gallery {
  margin: 3rem 0;
}

.gallery-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
}

/* Документы новости */
.news-documents {
  margin: 3rem 0;
}

.documents-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
}

.documents-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text);
}

.document-item:hover {
  border-color: var(--primary);
  background: var(--light);
  transform: translateY(-2px);
}

.document-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.document-icon i {
  font-size: 1.2rem;
  color: var(--primary);
}

.document-info {
  flex: 1;
}

.document-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.document-meta {
  font-size: 0.85rem;
  color: var(--gray);
  display: flex;
  gap: 1rem;
}

/* Действия новости */
.news-actions-single {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.news-share {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-title {
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.share-btn.vk { background: #4c75a3; }
.share-btn.telegram { background: #0088cc; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }

.share-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.news-navigation {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid #dee2e6;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nav-btn.prev i { order: -1; }

/* Похожие новости */
.news-related {
  margin-top: 4rem;
}

.related-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Комментарии новости */
.news-comments {
  margin-top: 4rem;
}

.comments-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 2rem;
  text-align: center;
}

.comments-list {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.comment-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

.comment-date {
  font-size: 0.85rem;
  color: var(--gray);
}

.comment-text {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.comment-actions {
  display: flex;
  gap: 1rem;
}

.comment-action {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.comment-action:hover {
  color: var(--primary);
}

.comment-reply {
  margin-left: 2rem;
  margin-top: 1.5rem;
  padding-left: 2rem;
  border-left: 2px solid #e9ecef;
}

.comment-form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.form-submit:hover {
  background: var(--dark-blue);
}

/* ==================================================================
   АДАПТИВНОСТЬ ГЛАВНОЙ СТРАНИЦЫ
   ================================================================== */
@media (max-width: 1199.98px) {
  #modernSlider {
    height: 550px;
    min-height: 850px;
    max-height: 550px;
  }
  
  .carousel-item.active {
    min-height: 550px;
  }
  
  .slider-title {
    font-size: 1.75rem;
  }
  
  .slider-title span {
    font-size: 1.1rem;
  }
  
  .slider-image-container {
    height: 320px;
  }
  
  .feature-item {
    min-height: 55px;
  }
  
  .feature-text {
    font-size: 0.7rem;
  }
  
  .feature-subtext {
    font-size: 0.6rem;
  }
  
  .slider-stats-card {
    max-width: 140px;
    padding: 0.4rem !important;
  }
  
  .stats-icon {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
  
  .stats-value {
    font-size: 0.75rem;
  }
  
  .stats-label {
    font-size: 0.6rem;
  }
  
  .stats-title {
    font-size: 2.2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  #modernSlider {
    height: auto;
    min-height: auto;
    max-height: none;
  }
  
  .carousel-item {
    min-height: auto;
    padding: 1.5rem 0;
  }
  
  .carousel-item.active {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .slider-title {
    font-size: 1.5rem;
  }
  
  .slider-title span {
    font-size: 1rem;
  }
  
  .slider-description {
    font-size: 0.9rem;
  }
  
  .slider-image-container {
    height: 300px;
    margin-top: 1.5rem;
  }
  
  .slider-stats-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    max-width: 100%;
    width: 100%;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 32px;
    height: 32px;
    top: calc(50% + 10px);
  }
  
  .feature-item {
    min-height: 50px;
  }
  
  .stats-section {
    padding: 3rem 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-all-services {
    padding: 4rem 0 !important;
  }
  
  .section-all-services .section-title {
    font-size: 2.2rem;
  }
  
  .all-services-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .service-card {
    padding: 1.75rem;
  }
  
  .service-icon-wrapper {
    width: 70px;
    height: 70px;
  }
  
  .service-icon {
    font-size: 1.75rem;
  }
  
  .service-card-title {
    font-size: 1.15rem;
    min-height: 3rem;
  }
}

@media (max-width: 768px) {
  .slider-title {
    font-size: 1.3rem;
  }
  
  .slider-title span {
    font-size: 0.9rem;
  }
  
  .slider-description {
    font-size: 0.85rem;
  }
  
  .feature-item {
    margin-bottom: 0.25rem;
    min-height: 45px;
  }
  
  .slider-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .slider-actions .me-3 {
    margin-right: 0;
  }
  
  .slider-image-container {
    height: 250px;
  }
  
  .carousel-indicators {
    bottom: 15px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 28px;
    height: 28px;
    top: calc(50% + 15px);
  }
  
  .carousel-control-prev {
    left: 5px !important;
  }
  
  .carousel-control-next {
    right: 5px !important;
  }
  
  .carousel-indicators-custom {
    bottom: 15px;
  }
  
  .carousel-indicators-custom button {
    width: 20px;
    height: 2px;
  }
  
  .slider-features .col-12 {
    width: 100%;
  }
  
  .feature-item {
    min-height: 40px;
  }
  
  .feature-text,
  .feature-subtext {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  
  .slider-stats-card {
    max-width: 120px;
    padding: 0.3rem !important;
  }
  
  .stats-icon {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }
  
  .stats-value {
    font-size: 0.7rem;
  }
  
  .stats-label {
    font-size: 0.55rem;
  }
  
  .stats-title {
    font-size: 2rem;
  }
  
  .stats-subtitle {
    font-size: 1rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
  }
  
  .stat-icon i {
    font-size: 1.75rem;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
  
  .section-all-services {
    padding: 3rem 0 !important;
  }
  
  .section-all-services .section-title {
    font-size: 2rem;
  }
  
  .all-services-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .service-icon-wrapper {
    width: 65px;
    height: 65px;
    margin-bottom: 1.25rem;
  }
  
  .service-card-title {
    font-size: 1.1rem;
    min-height: 2.8rem;
  }
  
  .service-card-description {
    font-size: 0.9rem;
  }
  
  .btn-service-more {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .btn-all-services {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
  
  .news-single-title {
    font-size: 2rem;
  }
  
  .news-single-meta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .documents-list {
    grid-template-columns: 1fr;
  }
  
  .comment-reply {
    margin-left: 1rem;
    padding-left: 1rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .slider-title {
    font-size: 1.2rem;
  }
  
  .slider-title span {
    font-size: 0.8rem;
  }
  
  .slider-badge .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  
  .feature-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .feature-text {
    font-size: 0.7rem;
  }
  
  .feature-subtext {
    font-size: 0.6rem;
  }
  
  .slider-image-container {
    height: 200px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 24px;
    height: 24px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 12px;
    height: 12px;
  }
  
  .quick-contacts {
    padding: 0.5rem;
  }
  
  .quick-contacts .rounded-circle {
    width: 24px;
    height: 24px;
    padding: 0.3rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section-all-services .section-title {
    font-size: 1.8rem;
  }
  
  .section-all-services .section-subtitle {
    font-size: 1rem;
  }
  
  .all-services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.25rem;
  }
  
  .service-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .service-card-title {
    font-size: 1rem;
    min-height: 2.5rem;
  }
  
  .service-badges {
    margin-bottom: 1rem;
  }
  
  .news-single-title {
    font-size: 1.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .share-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .news-navigation {
    flex-direction: column;
  }
  
  .nav-btn {
    width: 100%;
    justify-content: center;
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}






/* ============================================
   Секция "Новости" с анимированным фоном
   Разнообразные фигуры + быстрое движение
   ============================================ */

/* Основной контейнер секции */
.section-news {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    z-index: 1;
}

/* Анимированный фон - разнообразные фигуры */
.news-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Общие стили для всех фигур */
.news-bg-shapes .shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.04;
}

/* КРУГИ */
.news-bg-shapes .shape.circle {
    border-radius: 50%;
    background: #0d6efd;
}

/* КВАДРАТЫ */
.news-bg-shapes .shape.square {
    background: #0d6efd;
}

/* ТРЕУГОЛЬНИКИ (создаем через border) */
.news-bg-shapes .shape.triangle {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #0d6efd;
}

.news-bg-shapes .shape.triangle.small {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #0d6efd;
}

.news-bg-shapes .shape.triangle.large {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #0d6efd;
}

/* РОМБЫ */
.news-bg-shapes .shape.rhombus {
    background: #0d6efd;
    transform: rotate(45deg);
}

/* ЗВЕЗДЫ (через clip-path) */
.news-bg-shapes .shape.star {
    background: #0d6efd;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ШЕСТИУГОЛЬНИКИ */
.news-bg-shapes .shape.hexagon {
    background: #0d6efd;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* ПРЯМОУГОЛЬНИКИ */
.news-bg-shapes .shape.rectangle {
    background: #0d6efd;
    border-radius: 4px;
}

/* Анимации для фигур - БЫСТРОЕ ДВИЖЕНИЕ */
@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(40px, -30px) rotate(90deg); }
    50% { transform: translate(20px, -50px) rotate(180deg); }
    75% { transform: translate(-20px, -25px) rotate(270deg); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-35px, -25px) rotate(-90deg); }
    50% { transform: translate(-50px, -40px) rotate(-180deg); }
    75% { transform: translate(-15px, -35px) rotate(-270deg); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(30px, -40px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-25px, -30px) rotate(240deg) scale(0.9); }
}

@keyframes floatShape4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-45px, -55px) rotate(180deg); }
}

@keyframes floatShape5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(50px, -20px) rotate(45deg) scale(1.2); }
    75% { transform: translate(-30px, -45px) rotate(-45deg) scale(0.8); }
}

@keyframes floatShape6 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(-25px, -60px) rotate(-60deg); }
    60% { transform: translate(35px, -35px) rotate(60deg); }
}

@keyframes floatShape7 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(-55px, -30px) rotate(180deg) scale(1.15); }
}

@keyframes floatShape8 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    40% { transform: translate(45px, -45px) rotate(120deg); }
    80% { transform: translate(-20px, -50px) rotate(240deg); }
}

/* Контейнер с контентом — поверх фона */
.section-news .container {
    position: relative;
    z-index: 2;
}

/* Стили заголовков секции */
.section-news .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-news .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0a58ca);
    border-radius: 2px;
}

.section-news .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Стили карточек новостей (улучшенные) */
.news-item {
    opacity: 0;
    transform: translateY(30px);
    animation: newsAppear 0.5s ease forwards;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }
.news-item:nth-child(6) { animation-delay: 0.6s; }
.news-item:nth-child(7) { animation-delay: 0.7s; }
.news-item:nth-child(8) { animation-delay: 0.8s; }
.news-item:nth-child(9) { animation-delay: 0.9s; }

@keyframes newsAppear {
    to { opacity: 1; transform: translateY(0); }
}

.news-item .card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.news-item .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.news-item .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item .card:hover .card-img-top {
    transform: scale(1.05);
}

.news-item .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e2a3e;
    transition: color 0.3s ease;
}

.news-item .card:hover .card-title {
    color: #0d6efd;
}

/* Стили пагинации */
.pagination .page-link {
    color: #0d6efd;
    border-radius: 8px;
    margin: 0 4px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    transform: translateY(-2px);
}

.pagination .active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.pagination .disabled .page-link {
    color: #6c757d;
    pointer-events: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-news .section-title {
        font-size: 2rem;
    }
    
    .section-news .section-subtitle {
        font-size: 1rem;
    }
    
    .news-item .card-img-top {
        height: 180px;
    }
    
    .news-item .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .section-news .section-title {
        font-size: 1.8rem;
    }
    
    .news-item .card-img-top {
        height: 160px;
    }
}




/* =========================================== */
/* БАННЕР-СТРОКА НАД СЛАЙДЕРОМ (КЛЕЩИ)         */
/* =========================================== */
.tick-alert-banner {
    background: linear-gradient(135deg, #0a81f0 0%, #128ada 100%);
    color: white;
    padding: 10px 0;
    border-bottom: 2px solid #2473e9;
    position: relative;
    transition: background 0.4s ease;
}

/* Вариант для акарицидной обработки */
.tick-alert-banner.processing {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    border-bottom: 2px solid #1b5e20;
}

.tick-alert-banner.processing .tick-alert-badge {
    background: #a5d6a7;
    color: #1b5e20;
}

.tick-alert-banner.processing .btn-warning {
    background: #81c784;
    color: #1b5e20;
}

.tick-alert-banner.processing .btn-warning:hover {
    background: #a5d6a7;
}

.tick-alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tick-alert-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    animation: pulseTick 2s infinite;
    transition: all 0.3s ease;
}

@keyframes pulseTick {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255, 193, 7, 0); }
}

.tick-alert-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.tick-alert-badge {
    background: #ffc107;
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tick-alert-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.tick-alert-actions .btn {
    border-radius: 30px;
    padding: 5px 18px;
    font-weight: 600;
    border: none;
    transition: all 0.2s;
}

.tick-alert-actions .btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
}

.tick-alert-actions .btn-light:hover {
    background: white;
    transform: translateY(-1px);
}

.tick-alert-actions .btn-warning {
    background: #ffc107;
    color: #000;
}

.tick-alert-actions .btn-warning:hover {
    background: #ffca2c;
    transform: translateY(-1px);
}

/* =========================================== */
/* БЛОК УПРАВЛЕНИЯ: ТОЧКИ + ТАЙМЕР              */
/* =========================================== */
.banner-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 10px;
}

.banner-dots {
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.banner-dot.active {
    width: 20px;
    border-radius: 10px;
    background: #ffc107;
}

.tick-alert-banner.processing .banner-dot.active {
    background: #a5d6a7;
}

/* =========================================== */
/* ТАЙМЕР ОБРАТНОГО ОТСЧЕТА                    */
/* =========================================== */
.banner-timer {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.banner-timer:hover {
    transform: scale(1.1);
}

.timer-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
}

.timer-progress {
    fill: none;
    stroke: #ffc107;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 62.8; /* 2 * PI * 10 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
}

.tick-alert-banner.processing .timer-progress {
    stroke: #a5d6a7;
}

.timer-text {
    font-size: 10px;
    font-weight: 700;
    color: white;
    z-index: 2;
    line-height: 1;
}

/* Анимация смены текста */
.banner-text-changing {
    opacity: 0;
}

/* Пауза при наведении на баннер */
.tick-alert-banner:hover .timer-progress {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .tick-alert-content {
        justify-content: center;
    }
    .tick-alert-actions {
        margin-left: 0;
    }
    .tick-alert-text {
        font-size: 0.9rem;
    }
    .banner-controls {
        margin-left: 0;
        justify-content: center;
        width: 100%;
        margin-top: 5px;
    }
}



/* Кнопка "Медкнижки" - партнёр гигтест */
.btn-medknigi {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1568d4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #125cbd;
    transition: all 0.2s;
    margin-left: 8px;
    white-space: nowrap;
}

.btn-medknigi i {
    font-size: 1.1rem;
}

.btn-medknigi:hover {
    background: #0f4b99;
    color: white;
    text-decoration: none;
}

.btn-medknigi:active {
    background: #0973ec;
}

@media (max-width: 992px) {
    .btn-medknigi {
        padding: 8px 12px;
    }
}

.running-line{
    position: relative;
    background: #1b3a6b;
    color: #fff;
    overflow: hidden;
    border-bottom: 2px solid #e25c00;
}
.running-line-inner{
    display:flex;
    align-items:center;
    max-width:1600px;
    margin:0 auto;
    padding: 8px 44px 8px 14px;
    position:relative;
}
.running-line-icon{
    flex:0 0 auto;
    font-size:1.1rem;
    color:#ffcb6b;
    margin-right:12px;
}
.running-line-viewport{
    flex:1 1 auto;
    overflow:hidden;
    white-space:nowrap;
}
.running-line-track{
    display:inline-flex;
    align-items:center;
    animation: runningLineScroll 40s linear infinite;
    will-change: transform;
}
.running-line:hover .running-line-track,
.running-line.is-paused .running-line-track{
    animation-play-state: paused;
}
.running-line-item{
    display:inline-flex;
    align-items:center;
    font-size:0.92rem;
    padding: 0 28px 0 0;
}
.running-line-item a{
    color:#fff;
    text-decoration:underline;
    text-underline-offset:2px;
}
.running-line-item a:hover{ color:#ffcb6b; }
.running-line-item.is-urgent{ color:#ffd27a; font-weight:600; }
.running-line-sep{ margin-left:28px; opacity:0.5; }
.running-line-close{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    background:transparent;
    border:none;
    color:#fff;
    opacity:0.75;
    font-size:0.9rem;
    line-height:1;
    padding:6px;
    cursor:pointer;
}
.running-line-close:hover{ opacity:1; }

@keyframes runningLineScroll{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
}

@media (max-width:576px){
    .running-line-item{ font-size:0.82rem; }
    .running-line-icon{ display:none; }
}



