/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Advantages: enforce centered text in new adv-card and mobile centering for legacy blocks --- */
.advantages .adv-card .adv-card__text {
  text-align: center;
  align-items: center;
  justify-content: center;
}
.advantages .adv-card .adv-card__title,
.advantages .adv-card .adv-card__desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .advantages__item-text {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Strong centering for mobile cards (mirror the first card behavior) */
@media (max-width: 768px) {
  .advantages .adv-card,
  .advantages .adv-card__text {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .advantages .adv-card__title,
  .advantages .adv-card__desc {
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center !important;
    text-align-last: center;
  }
}

/* --- Mobile compact overrides (final fine-tuning) --- */
@media (max-width: 700px) {
  header .top-bar { padding: 8px 10px; gap: 6px; }
  header .logo, header .logo.large-logo { width: 150px; }
  .main-nav ul { padding: 10px 0; }
  .main-nav a { padding: 10px 16px; font-size: 14px; }

  /* Prevent heading overflow on small screens */
  .section-title,
  .advantages__title,
  .products-title,
  .contacts-title { word-break: break-word; hyphens: auto; }

  /* Hero text becomes more compact */
  .hero-slider-content h2 { font-size: 1.2em; }
  .hero-slider-content p { font-size: 0.95em; }

  /* Cards compact spacing */
  .adv-card { padding: 16px 10px; }
  .adv-card__icon { width: 44px; height: 44px; }
  .product-card__title { font-size: 1em; }
}

@media (max-width: 480px) {
  header .top-bar { padding: 6px 8px; }
  header .logo, header .logo.large-logo { width: 130px; }
  .main-nav a { padding: 10px 14px; font-size: 14px; }

  /* Homepage products: tighter spacing */
  .products-grid { gap: 18px 0; }
  .product-card { padding: 10px 8px; min-height: 48px; }
  .product-card__img { width: 40px !important; height: 40px !important; }
}

html, body {
  font-size: 16px;
  font-family: Verdana, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: 0;
  background: #efefef;
}

@media (max-width: 1100px) {
  html, body {
    font-size: 15px;
  }
}

@media (max-width: 700px) {
  html, body {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html, body {
    font-size: 13px;
  }
  
  /* Дополнительная оптимизация для очень маленьких экранов */
  .top-bar {
    padding: 8px 15px;
    gap: 10px;
  }
  
  .logo {
    width: 150px;
  }
  
  .logo.large-logo {
    width: 150px;
  }
  
  .logo-since {
    font-size: 1.1em;
  }
  
  .logo-desc {
    font-size: 0.7em;
    max-width: 150px;
  }
  
  .mobile-contacts .contact-link {
    font-size: 12px;
  }
  
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
}

/* Header Styles */
header {
  position: relative;
  z-index: 20;
  background: #0193de; /* Синий фон как у футера */
}

.top-bar {
  background: #0193de; /* Синий фон как у футера */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px; /* Добавляем горизонтальные отступы */
  border-bottom: none; /* Убираем границу */
  gap: 20px;
  position: relative;
  min-height: 60px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: gap 0.3s ease;
  flex-shrink: 0;
  order: 1;
}

.logo {
  width: 200px; /* Уменьшаем размер логотипа */
  height: auto;
  transition: width 0.3s ease;
}

.logo:hover {
  transform: none;
}

.logo.large-logo {
  width: 200px; /* Уменьшаем размер логотипа */
  height: auto;
}

.logo-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.logo-since {
  font-size: 1.8em;
  font-weight: 800;
  color: #0193de;
  line-height: 1;
  letter-spacing: 0.5px;
}

.logo-desc {
  font-size: 0.95em;
  color: #8b8d8f;
  line-height: 1.2;
  max-width: 280px;
}

.company-info h1 {
  font-size: 24px;
  color: #1a5f7a;
}

.contact-block, .address-block {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.address-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 2px;
}

/* Navigation */
.main-nav {
  box-shadow: none;
  padding: 0;
  width: auto;
  position: static;
  z-index: auto;
  margin-bottom: 0;
  order: 2;
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav .container {
  max-width: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px; /* Уменьшаем высоту контейнера меню */
}

.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
  height: 40px; /* Уменьшаем высоту списка меню */
}

.main-nav li {
  height: 40px; /* Уменьшаем высоту пунктов меню */
}

.main-nav a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: none;
  text-decoration: none;
  position: relative;
  transition: font-weight 0.3s ease, color 0.3s ease;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

.main-nav a:hover,
.main-nav a:focus {
  background: none;
  color: #fff; /* Полностью белый цвет при наведении */
  font-weight: 500; /* Возвращаем к стандартной жирности */
}

.main-nav a.active {
  background: none;
  color: #fff;
  font-weight: 600; /* Активный пункт тоже жирный */
}

/* --- Подменю --- */
.has-submenu {
  position: relative;
}

.has-submenu > .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  box-shadow: 0 8px 32px rgba(1,147,222,0.12);
  border-radius: 4px;
  padding: 10px 0; /* Общий вертикальный отступ для всего блока */
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 99999;
  list-style: none;
  display: flex; /* Делаем flex-контейнером */
  flex-direction: column; /* Располагаем элементы вертикально */
  overflow: hidden;
}

.has-submenu:hover > .submenu {
  opacity: 1; /* Показываем при наведении */
  visibility: visible; /* Показываем при наведении */
  transform: translateY(0); /* Возвращаем на место */
}

.has-submenu > a::after {
  content: '\25BC'; /* Unicode для стрелки вниз */
  font-size: 10px;
  margin-left: 6px;
  color: #fff; /* Белый цвет стрелки */
  transition: transform 0.3s ease; /* Плавный поворот стрелки */
}

.has-submenu:hover > a::after {
  transform: rotate(180deg); /* Поворот стрелки при наведении */
}

.submenu li {
  width: 100%; /* Пункты списка занимают всю ширину */
  margin-bottom: 0; /* Отступы будут регулироваться padding у ссылки */
}

.submenu li:last-child {
  margin-bottom: 0;
}

.submenu a {
  display: block;
  width: 100%;
  padding: 12px 20px; /* Оптимальный padding для пунктов */
  color: #222;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  background: none;
  border: none;
  border-radius: 0;
  text-align: left;
  transition: background 0.3s ease, color 0.3s ease, font-weight 0.3s ease;
  white-space: nowrap;
}

.submenu a:hover, .submenu a.active {
  background: none; /* Убираем фон при наведении */
  color: #0193de; /* Меняем цвет текста на синий при наведении */
  font-weight: 600;
  border-radius: 0;
}

/* --- Поиск в шапке --- */
.search-form {
  display: none;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animate 0.6s linear;
  background: rgba(255,255,255,0.5);
  pointer-events: none;
  z-index: 2;
}

@keyframes ripple-animate {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

.search-form button:hover,
.search-form button:focus {
  background: #2676c7;
  transform: scale(1.06);
  box-shadow: 0 2px 12px rgba(64,158,255,0.18);
}

@media (max-width: 1100px) {
  .container {
    max-width: 100%;
  }
  .search-form input[type="text"] {
    min-width: 100px;
  }
  .logo {
    width: 260px;
  }
  .logo.large-logo {
    width: 260px;
  }
  .logo-since {
    font-size: 1.6em;
  }
  .logo-desc {
    font-size: 0.9em;
    max-width: 240px;
  }
  
  /* Улучшаем отображение контактов на планшетах */
  .contacts-block {
    gap: 8px;
  }
  
  .contact-link {
    font-size: 14px;
  }
}

/* Старые стили для @media (max-width: 900px) удалены - используются новые улучшенные стили */

@media (max-width: 700px) {
  .logo-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .logo {
    width: 180px;
  }
  .logo.large-logo {
    width: 180px;
  }
  .logo-info {
    align-items: flex-start;
  }
  .logo-since {
    font-size: 1.3em;
  }
  .logo-desc {
    font-size: 0.8em;
    max-width: 200px;
  }
  
  /* Скрываем контакты на мобильных устройствах */
  .contacts-block {
    display: none !important;
  }
  
  /* Скрываем мобильные контакты */
  .mobile-contacts {
    display: none;
  }
  
  /* Улучшаем отображение мобильного меню */
  .main-nav {
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .main-nav ul {
    padding: 15px 0;
  }
  
  .main-nav a {
    padding: 15px 20px;
    font-size: 16px;
  }
  
  /* Улучшаем отображение на средних экранах */
  .top-bar {
    padding: 12px 15px;
  }
  
  .logo-block {
    gap: 6px;
  }
}

/* Мобильные контакты - скрыты по умолчанию */
.mobile-contacts {
  display: none;
  order: 4;
  flex-shrink: 0;
}

/* Бургер-меню */
.burger-container {
  display: none;
  align-items: center;
  order: 3;
  flex-shrink: 0;
}

.burger-menu {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.burger-menu span:nth-child(1) {
  top: 0px;
}

.burger-menu span:nth-child(2) {
  top: 8px;
}

.burger-menu span:nth-child(3) {
  top: 16px;
}

.burger-menu.open span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.burger-menu.open span:nth-child(2) {
  opacity: 0;
  left: 0;
}

.burger-menu.open span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Мобильное меню */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: #0193de;
  padding: 80px 20px 20px;
  transition: right 0.3s ease-in-out;
  z-index: 999;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.nav-mobile.open {
  right: 0;
}

.nav-mobile a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-size: 16px;
  font-weight: 500;
}

.nav-mobile a:hover,
.nav-mobile a:focus {
  background-color: transparent;
  color: white !important;
}

.nav-mobile a.active {
  background-color: transparent;
  font-weight: 600;
  color: white !important;
}

/* Мобильное подменю */
.mobile-submenu {
  background: transparent;
  margin: 10px -20px;
  padding: 0 20px;
  border-radius: 4px;
}

.mobile-submenu-category {
  margin-bottom: 15px;
}

.mobile-submenu-category > a {
  font-weight: 600;
  color: #ffd700;
  font-size: 14px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,215,0,0.3);
  margin-bottom: 8px;
}

.mobile-submenu-category ul {
  list-style: none;
  padding: 0;
  margin: 5px 0 0 0;
}

.mobile-submenu-category ul li {
  margin: 0;
}

.mobile-submenu-category ul li a {
  padding: 8px 0 8px 15px;
  font-size: 14px;
  color: #e0e0e0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 0;
}

.mobile-submenu-category ul li a:hover {
  color: white;
  background: rgba(255,255,255,0.05);
}

/* Стиль для ссылки возврата на главную в каталоге */
.catalog-back-link {
  background: rgba(255,255,255,0.1) !important;
  color: white !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 4px !important;
  margin-bottom: 15px !important;
  text-align: center !important;
}

/* Блок контактов в мобильном меню каталога */
.mobile-menu-contacts {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.mobile-menu-contacts a {
  background: rgba(255,255,255,0.1) !important;
  color: white !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 4px !important;
  text-align: center !important;
  font-size: 16px !important;
}

/* Выпадающие списки в мобильном меню */
.mobile-category-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 12px 15px;
  background: transparent;
  border-radius: 4px;
  margin-bottom: 5px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-transform: none;
  transition: background-color 0.3s;
}

.mobile-category-toggle:hover {
  background: transparent;
  color: white !important;
}

.toggle-arrow {
  transition: transform 0.3s;
  font-size: 12px;
}

.mobile-category-toggle.active .toggle-arrow {
  transform: rotate(180deg);
}

.mobile-submenu-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.mobile-submenu-list.open {
  max-height: 200px;
}

.mobile-submenu-list li {
  margin: 0;
}

.mobile-submenu-list li a {
  padding: 8px 0 8px 20px !important;
  font-size: 14px !important;
  color: #e0e0e0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  margin-bottom: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  text-align: left !important;
  font-weight: normal !important;
  text-transform: none !important;
}

.mobile-submenu-list li a:hover,
.mobile-submenu-list li a.active {
  color: white !important;
  background: rgba(255,255,255,0.05) !important;
}

/* Overlay для мобильного меню */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 998;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}


body {
  padding-top: 0;
}

/* Анимация меню при скроллинге удалена */

/* Hero Section */
.hero-section {
  min-height: 320px;
  max-height: 420px;
  overflow: hidden;
}

.main-page .hero-section {
  min-height: 80vh;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 0;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
  padding-bottom: 60px;
}

.hero-content {
  flex: 1 1 50%;
  color: #fff;
  text-align: left;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.25);
  max-width: 600px;
}

.hero-content h2 {
  font-size: 3.3em;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.2em;
  opacity: 0.9;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.feature-card h3 {
  color: #1a5f7a;
  margin-bottom: 15px;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Footer */
#page-footer {
  background: #0193de;
  color: white;
  padding: 20px 0 15px;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__top {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
  align-items: center;
}

.footer__top .logo {
  width: 180px; /* Еще более компактный размер логотипа в футере */
  height: auto;
}

.content--sm {
  font-size: 0.95em;
  line-height: 1.5;
  max-width: 400px;
  color: rgba(255, 255, 255, 0.9);
}

.footer__middle {
  display: grid;
  grid-template-columns: 1fr 300px 0.8fr; /* О компании фиксированная ширина 300px */
  gap: 20px;
  margin-bottom: 18px;
}

.footer-col__title {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.footer-col .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col .menu li {
  margin-bottom: 6px;
}

.footer-col .menu a {
  color: #fff; /* Белый цвет текста */
  text-decoration: none;
  font-size: 13px;
  padding: 2px 0;
  transition: color 0.3s ease;
  display: flex; /* Делаем flex-контейнером */
  align-items: center; /* Выравниваем элементы по центру */
}

.footer-col .menu a:hover {
  color: rgba(255, 255, 255, 0.7); /* Легкое затемнение при наведении */
}

.footer-icon {
  width: 20px; /* Размер иконки */
  height: 20px; /* Размер иконки */
  margin-right: 10px; /* Отступ справа от иконки */
  filter: invert(100%) brightness(200%); /* Делаем иконки белыми */
}

.footer__bottom {
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy {
  color: rgba(255, 255, 255, 0.8);
  max-width: 100% !important;
}

@media (max-width: 900px) {
  .footer__top {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer__middle {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .footer__middle {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Дополнительная мобильная адаптация футера */
@media (max-width: 700px) {
  #page-footer { padding: 15px 0 12px; }
  .footer__top { align-items: center; text-align: center; gap: 8px; margin-bottom: 15px; }
  .footer__top .logo { width: 140px; height: auto; }
  .content--sm { font-size: 0.85em; line-height: 1.3; max-width: 100%; }
  .footer__middle { grid-template-columns: 1fr; gap: 12px; }
  /* Скрываем колонки "Продукция" и "О компании" на мобилках, оставляем только "Контакты" */
  .footer__middle .footer-col:nth-child(1),
  .footer__middle .footer-col:nth-child(2) { display: none; }
  .footer-col__title { text-align: center; margin-bottom: 8px; }
  .footer-col .menu a { padding: 6px 0; font-size: 14px; }
  .footer-icon { width: 16px; height: 16px; margin-right: 6px; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; padding-top: 12px; }
}

/* --- История компании --- */
.history-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Изменяем с серого на более светлый */
  position: relative;
  overflow: hidden;
}

.history-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Вертикальная линия с кругами */
.history-timeline {
  position: absolute;
  left: 50%;
  top: 80px;
  bottom: 40px;
  width: 0;
  z-index: 0;
  transform: translateX(-50%);
}

.history-timeline-line {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 4px;
  height: 90%;
  background: #e0e0e0;
  transform: translateX(-50%);
  z-index: 1;
}

.history-timeline-point {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 24px;
  background: #0074af;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-timeline-point-inner {
  width: 8px;
  height: 8px;
  background: #0074af;
  border-radius: 50%;
}

/* --- Сетка и карточки --- */
.history-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  padding: 0 20px;
}

.history-row {
  display: flex;
  gap: 30px;
  width: 100%;
}

.history-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
  flex: 1;
}

.history-card--main {
  min-height: 400px;
}

.history-card--year {
  min-height: 200px;
}

.history-card h2 {
  color: #0193de;
  margin-bottom: 20px;
  font-size: 18px;
}

.history-card p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.company-foundation {
  font-size: 1.2em; /* Увеличиваю размер шрифта */
  display: block; /* Делаю блочным элементом для переноса строки */
  margin-bottom: 5px; /* Небольшой отступ после заголовка */
}

.history-card ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.history-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .history-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .history-card {
    width: 100%;
    padding: 20px;
    margin: 0;
    max-width: 100%;
  }
  
  .history-card--main {
    min-height: auto;
  }
  
  .history-card--year {
    min-height: auto;
  }
  
  .history-card h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .history-card p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  
  .history-card ul {
    padding-left: 15px;
    margin-bottom: 12px;
  }
  
  .history-card li {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.5;
  }
  
  .history-card--offset {
    margin-top: 0;
  }
  
  .history-grid {
    padding: 0 10px;
    gap: 20px;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  .history-card {
    padding: 15px;
  }
  
  .history-card h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .history-card p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  
  .history-card li {
    font-size: 13px;
    margin-bottom: 5px;
    line-height: 1.4;
  }
  
  .history-grid {
    padding: 0 5px;
    gap: 15px;
  }
  
  .history-row {
    gap: 15px;
  }
}

.history-card--main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  font-size: 1em;
}

.history-card--left {
  align-self: flex-start;
  margin-left: 0;
  margin-right: auto;
  max-width: 48%;
}

.history-card--right {
  align-self: flex-end;
  margin-right: 0;
  margin-left: auto;
  max-width: 48%;
}

.history-card--yellow-text {
  color: #f7b500;
  font-weight: 500;
}

.history-card--year h2 {
  color: #111;
  font-size: 1.3em;
  margin-bottom: 12px;
  font-weight: bold;
}

.history-card--main h2 {
  color: #111;
  font-size: 1.3em;
  margin-bottom: 18px;
  font-weight: bold;
}

.history-card--offset {
  margin-top: 48px;
}

.history-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 32px;
}

/* --- Продукция: сетка и карточки --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px
}

.product-card {
  background: #dfe9f5;
  border-radius: 28px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.07);
  padding: 24px 32px;
  min-height: 140px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  gap: 20px;
}

.product-card__img {
  width: 80px;
  height: 80px;
  min-width: 60px;
  min-height: 60px;
  max-width: 350px;
  max-height: 350px;
  object-fit: contain;
  border-radius: 16px;
  margin-right: 18px;
  flex-shrink: 0;
  position: static;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.product-card__title {
  color: #153a6b;
  font-size: 1.08em;
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1.2;
}

.products-title {
  font-size: 40px;
  font-weight: 900;
  color: #333;
  margin-bottom: 60px;
  letter-spacing: 0;
  text-align: center;
  line-height: 1.1;
  word-break: normal;
  white-space: normal;
}

.ibp-img {
  /* Здесь свои параметры для смещения, размера и т.д. */
  right: 0px;
  bottom: 1px;
  width: 90%;
  /* ... */
}

/* Hero Background Styles */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 140px;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 900px) {
  .hero-section {
    min-height: 200px;
    max-height: 280px;
  }
  .hero-image {
    height: 80px;
    max-height: 100px;
  }
}

@media (max-width: 600px) {
  .hero-section {
    min-height: 120px;
    max-height: 180px;
  }
  .hero-image {
    height: 40px;
    max-height: 60px;
  }
}

/* Затемняющий слой поверх фоновой картинки */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 40, 60, 0.45); /* Полупрозрачное затемнение */
  z-index: 1;
}

/* Flex-контейнер для hero-секции */
.hero-flex-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 32vh;
  gap: 16px;
  padding-top: 8px;
}

.hero-content {
  flex: 1 1 50%;
  color: #fff;
  text-align: left;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.25);
  max-width: 600px;
}

.hero-content h2 {
  font-size: 2.8em;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.25em;
  opacity: 0.95;
}

.achievements {
  position: static;
  top: unset;
  right: unset;
  transform: none;
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 380px;
  width: auto;
  z-index: 2;
}

.achievement-block {
  background: rgba(30, 40, 60, 0.55); /* Более плотное затемнение */
  border-radius: 12px;
  padding: 22px 28px 18px 28px;
  margin-bottom: 0;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.achievement-number {
  font-size: 2.1em;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.achievement-desc {
  font-size: 1.05em;
  color: #e0e0e0;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .hero-flex-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    min-height: 60vh;
  }
  .achievements {
    right: 2vw;
    max-width: 320px;
    width: 90vw;
  }
}

@media (max-width: 900px) {
  .achievements {
    position: static;
    transform: none;
    margin: 32px auto 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }
  .hero-content {
    margin-top: 0;
  }
  .hero-content h2 {
    font-size: 2em;
  }
  .hero-flex-container {
    padding-top: 12px;
  }
}

@media (max-width: 700px) {
  .hero-flex-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    min-height: 40vh;
    padding-bottom: 24px;
  }
  .hero-content h2 {
    font-size: 1.5em;
  }
  .achievement-block {
    padding: 14px 12px 12px 12px;
  }
}

/* --- Контакты --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  justify-content: center;
}

.contact-form {
  max-width: 370px;
  width: 100%;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(1,147,222,0.07);
  padding: 24px 20px;
  max-width: 350px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
}

.contact-link {
  color: #0193de;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}

.contact-link:hover {
  color: #005b8c;
  text-decoration: underline;
}

.contact-card-title {
  font-size: 1.35em;
  font-weight: bold;
  margin-bottom: 2px;
}

.contact-card-subtitle {
  color: #8b8d8f;
  font-size: 1em;
  margin-bottom: 12px;
}

.contact-card-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  width: 100%;
  margin: 14px 0 14px 0;
}

.contact-card-address {
  font-size: 1.08em;
  margin-bottom: 16px;
}

.contact-card-hours {
  margin-bottom: 12px;
}

.contact-card-note {
  color: #8b8d8f;
  font-size: 0.98em;
}

.contact-card-phones {
  margin-bottom: 12px;
}

.contact-card-email {
  margin-bottom: 12px;
}

.contact-card-map-btn {
  margin-top: 10px;
  background: none;
  border: none;
  color: #1a5f7a;
  font-weight: 600;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 0 0 0;
  transition: color 0.2s;
}

.contact-card-map-btn:hover {
  color: #0193de;
}

.contact-card-map-icon {
  font-size: 1.3em;
  margin-right: 2px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-form, .contact-card {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
}

/* --- Контакты: фон и заголовок как на "О компании" --- */
.contacts-section {
  background: #f3f3f3;
  padding: 60px 0 60px 0;
  position: relative;
}

.contacts-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 32px;
  color: #1a5f7a;
  text-align: left;
  margin-left: 0;
}

@media (max-width: 900px) {
  .contacts-section {
    padding: 32px 0 32px 0;
  }
  .contacts-title {
    font-size: 1.4em;
    margin-bottom: 22px;
  }
}

/* --- Форма обратной связи в стиле Transas --- */
.feedback-section {
  background: #f8f9fa;
  padding: 48px 0 48px 0;
}

.feedback-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 980px;
  margin: 0 auto 28px auto;
  gap: 32px;
}

.feedback-title {
  font-size: 2.8em;
  font-weight: 800;
  color: #333333 !important;
  margin: 0;
  line-height: 1.1;
}

.feedback-desc {
  font-size: 1.13em;
  color: #333;
  max-width: 480px;
  margin-top: 10px;
}

.feedback-main-row {
  background: linear-gradient(120deg, #e6e8eb 0%, #f7f8fa 100%);
  border-radius: 10px;
  box-shadow: 0 4px 32px 0 rgba(30,40,60,0.10);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
  padding: 38px 38px 32px 38px;
  gap: 32px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 45%;
  max-width: 400px;
}

.feedback-form input,
.feedback-form textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.feedback-form textarea {
  height: 100px;
  resize: vertical;
}

.feedback-form button {
  padding: 12px 20px;
  background-color: #0193de;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.feedback-form button:hover {
  background-color: #0177b3;
}

.feedback-logo-block {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.feedback-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 2px 12px rgba(30,40,60,0.10));
}

@media (max-width: 1100px) {
  .feedback-header-row, .feedback-main-row {
    max-width: 98vw;
    gap: 18px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 800px) {
  .feedback-header-row {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .feedback-main-row {
    flex-direction: column;
    gap: 18px;
    padding: 18px 8px 18px 8px;
  }
  .feedback-logo-block {
    justify-content: flex-start;
  }
  .feedback-logo {
    max-width: 160px;
  }
}

/* --- Блок офиса справа от формы --- */
.feedback-office-block {
  width: 45%;
  max-width: 400px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-details {
  font-size: 15px;
  color: #222;
  line-height: 1.7;
}

.info-details p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px 0;
}

.info-details .icon {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .feedback-form,
  .feedback-office-block {
    width: 100%;
    max-width: none;
  }
}

/* Удаляем лишние стили для старых .contact-form/.contact-card */
/* .contact-form, .contact-card, .contact-grid { display: none !important; } */

/* Специальные стили для изображений */
.product-card img.rulevye-machyny {
  position: absolute;
  right: 0px;
  bottom: 0px;
  left: auto;
  width: 65%;  /* Можно изменить */
  height: 75%;  /* Можно изменить */
  min-width: 140px;  /* Можно изменить */
  min-height: 100px;  /* Можно изменить */
  max-width: 75%;  /* Можно изменить */
  max-height: 90%;  /* Можно изменить */
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1100px) {
  .product-card img.rulevye-machyny {
    right: 22px;
    bottom: 8px;
    width: 80%;  /* Можно изменить */
    height: 75%;  /* Можно изменить */
    min-width: 110px;  /* Можно изменить */
    min-height: 90px;  /* Можно изменить */
  }
}

@media (max-width: 700px) {
  .product-card img.rulevye-machyny {
    right: 6px;
    bottom: 6px;
    width: 75%;  /* Можно изменить */
    height: 70%;  /* Можно изменить */
    min-width: 90px;  /* Можно изменить */
    min-height: 70px;  /* Можно изменить */
  }
}

.section-title {
  font-size: 3.5em;  /* Увеличено с 2.8em до размера page-title */
  font-weight: 800;
  color: #0193de;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .section-title {
    font-size: 3.2em;  /* Увеличено с 2.6em */
  }
}

@media (max-width: 900px) {
  .section-title {
    font-size: 2.8em;  /* Увеличено с 2.4em */
  }
}

@media (max-width: 700px) {
  .section-title {
    font-size: 2.4em;  /* Увеличено с 2em */
  }
}

/* --- Mission Section (Цели и стратегии) --- */
.mission-section {
  margin-top: 64px;
  margin-bottom: 64px;
}

.mission-title {
  font-size: 2.4em;
  font-weight: 800;
  color: #222;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  text-align: left;
}

.mission-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mission-text {
  flex: 1 1 420px;
  min-width: 320px;
  max-width: 54%;
  font-size: 1.18em;
  color: #222;
  line-height: 1.5;
}

.mission-strategy {
  margin-top: 12px;
  font-size: 1.13em;
  color: #222;
}

.mission-strategy-highlight {
  color: #0066e6;
  font-weight: 700;
  text-decoration: underline;
  letter-spacing: 0.01em;
}

.mission-image-block {
  flex: 1 1 380px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 260px;
  max-width: 44%;
}

.mission-image {
  width: 100%;
  max-width: 600px;
  border-radius: 24px;
  box-shadow: 0 4px 32px 0 rgba(30,40,60,0.10);
  object-fit: cover;
  display: block;
}

@media (max-width: 1100px) {
  .mission-content {
    flex-direction: column;
    gap: 28px;
  }
  .mission-text, .mission-image-block {
    max-width: 100%;
    min-width: 0;
  }
  .mission-image {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .mission-section {
    margin-top: 32px;
    margin-bottom: 32px;
  }
  .mission-title {
    font-size: 1.4em;
    margin-bottom: 18px;
  }
  .mission-text {
    font-size: 1em;
  }
  .mission-strategy {
    font-size: 1em;
  }
  .mission-image {
    border-radius: 14px;
  }
}

/* --- Target Section (Цели и стратегии) --- */
.target {
  margin-top: 64px;
  margin-bottom: 64px;
}
.target__title {
  font-size: 2.4em;
  font-weight: 800;
  color: #222;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  text-align: left;
}
.target__text {
  font-size: 1.18em;
  color: #222;
  line-height: 1.5;
  background: none;
  margin-bottom: 0;
}
.target__text span {
  color: #0066e6;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.target__image {
  width: 100%;
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.target__image img {
  width: 100%;
  max-width: 1400px;
  border-radius: 24px;
  box-shadow: 0 4px 32px 0 rgba(30,40,60,0.10);
  object-fit: cover;
  display: block;
}
/* Сетка для двух колонок */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}
.col-lg-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 15px;
  padding-right: 15px;
}
.mb-4 {
  margin-bottom: 1.5rem !important;
}
.mb-lg-5 {
  margin-bottom: 2.5rem !important;
}
@media (max-width: 1100px) {
  .target {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .target__title {
    font-size: 2em;
    margin-bottom: 18px;
  }
  .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  .target {
    margin-top: 24px;
    margin-bottom: 24px;
  }
  .target__title {
    font-size: 1.3em;
    margin-bottom: 12px;
  }
  .target__text {
    font-size: 1em;
  }
  .target__image img {
    border-radius: 14px;
  }
}

/* --- Advantages Section (Преимущества сотрудничества) --- */
.advantages {
  margin: 64px 0;
}
.advantages__title {
  font-size: 2.2em;
  font-weight: 800;
  color: #222;
  margin-bottom: 38px;
  text-align: center;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}
.col-md-4 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}
.mb-3 {
  margin-bottom: 1.5rem !important;
}
.advantages__item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(1,147,222,0.08);
  padding: 32px 18px 24px 18px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  min-height: 120px;
  /* transition: box-shadow 0.2s; */
}
.advantages__item:hover {
  /* box-shadow: 0 8px 32px 0 rgba(1,147,222,0.16); */
  box-shadow: 0 4px 24px 0 rgba(1,147,222,0.08);
}
.advantages__item-icon {
  margin-bottom: 0;
  margin-right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 64px;
  height: 64px;
}
.advantages__item-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.advantages__item-text {
  font-size: 1.13em;
  color: #222;
  text-align: left;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.text-blue {
  color: #0193de;
  font-weight: 700;
}
@media (max-width: 700px) {
  .advantages__item {
    flex-direction: column;
    align-items: center;
    padding: 18px 8px 14px 8px;
    min-height: 0;
  }
  .advantages__item-icon {
    margin-right: 0;
    margin-bottom: 10px;
    width: 48px;
    min-width: 48px;
    height: 48px;
  }
  .advantages__item-icon img {
    width: 48px;
    height: 48px;
  }
  .advantages__item-text {
    font-size: 1em;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
}

/* --- Модельный ряд: красивая таблица --- */
.table_block {
  border-radius: 18px;
  padding: 24px 18px 18px 18px;
  margin-top: 6px;
  margin-bottom: 60px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.table_holder table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95em;
  background: none;
  min-width: 1100px;
}
.table_holder th, .table_holder td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  transition: background 0.18s;
}
.table_holder th {
  background: #f3f6fa;
  font-weight: 700;
  color: #0193de;
  border-top: none;
}
.table_holder tr:last-child td {
  border-bottom: none;
}
.table_holder tr {
  transition: background 0.18s;
}
.table_holder tbody tr:hover {
  background: #f0f1f3;
}
.table_holder td {
  color: #222;
}

/* Sticky first column for wide tables on small screens */
.table_holder thead th:first-child,
.table_holder tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 8px 0 12px rgba(0,0,0,0.04);
}
.table_holder thead th:first-child { z-index: 3; }

/* Scroll hint */
.table_scroll_hint {
  display: none;
}
@media (max-width: 700px) {
  .table_block {
    padding: 5px 2px;
    border-radius: 10px;
  }
  .table_holder th, .table_holder td {
    padding: 5px 2px;
    font-size: 0.88em;
  }
}

@media (max-width: 600px) {
  .table_holder th, .table_holder td { font-size: 0.82em; padding: 4px; }
  .table_scroll_hint {
    display: block;
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(1,147,222,0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    pointer-events: none;
  }
}

.product-card.clickable {
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.18s;
  text-decoration: none;
  color: inherit;
}
.product-card.clickable:hover {
  box-shadow: 0 8px 32px 0 rgba(1,147,222,0.13);
  background: #f7fafd;
}

/* Services Page Styles */
.services-title {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
  font-size: 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h2 {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
}

.service-card p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card ul li {
  color: #666;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.service-card ul li:before {
  content: "•";
  color: #3498db;
  position: absolute;
  left: 0;
}

.services-cta {
  text-align: center;
  background: #f8f9fa;
  padding: 40px;
  border-radius: 8px;
  margin-top: 50px;
}

.services-cta h2 {
  color: #2c3e50;
  font-size: 28px;
  margin-bottom: 15px;
}

.services-cta p {
  color: #666;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 1em;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(1,147,222,0.08);
  outline: none;
  text-align: center;
  text-decoration: none;
  background: #0193de;
  color: #fff;
}
.btn-primary {
  background: #0193de;
  color: #fff;
}
.btn-primary:hover, .btn:hover {
  background: #0177b3;
  color: #fff;
  box-shadow: 0 4px 16px rgba(1,147,222,0.13);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
  background: #fff;
  color: #3498db;
  border: 2px solid #3498db;
}

.btn-secondary:hover {
  background: #f8f9fa;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .services-cta {
    padding: 30px 20px;
  }
}

.contacts-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: auto;
  order: 3;
  flex-shrink: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: invert(1); /* Изменяем цвет иконок на белый */
}

.contact-link {
  color: #fff; /* Белый цвет текста для контактов */
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: rgba(255, 255, 255, 0.7); /* Легкое затемнение при наведении */
}

/* Принудительно скрываем блок полноразмерных контактов на мобильных,
   правило расположено после базового объявления, чтобы перебить его */
@media (max-width: 600px) {
  .contacts-block { display: none !important; }
}

.section {
  padding: 60px 0 100px 0; /* Добавляем отступ снизу */
}

/* Product Page Specific Styles for IBP */
.double-header_wrapper {
  margin-bottom: 30px;
  border-bottom: 1px solid #ccc; /* Добавляем горизонтальную линию */
  padding-bottom: 20px; /* Отступ под линией */
  text-align: center; /* Выравнивание по центру */
}

.double-header__first {
  font-size: 2em; /* Уменьшаем размер шрифта */
  color: #333;
  margin-bottom: 5px;
}

.double-header__second {
  font-size: 1.2em; /* Уменьшаем размер шрифта */
  color: #666;
  margin-bottom: 20px;
}

.container.clearfix {
  padding-top: 50px; /* Отступ сверху от шапки */
}

.main-slider {
  margin-bottom: 1rem;
  text-align: center;
}

.slide__img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-previews__item {
  width: auto !important;
}

.product-tabs {
  margin-top: 30px;
}

.product-content-block {
  display: block;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gray-header {
  font-size: 1.8em;
  color: #555;
  margin-top: 20px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.content-table th,
.content-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.content-table th {
  background-color: #f2f2f2;
  font-weight: bold;
  color: #333;
}

.content-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.content-table tr:hover {
  background-color: #f1f1f1;
}

.product-content-block ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.product-content-block ul li {
  margin-bottom: 10px;
}

/* Product Gallery Styles */
.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.main-image-display {
  position: relative;
  width: 100%;
  max-width: 600px; /* Уменьшаем размер основной фотографии для лучшей читаемости */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

#current-product-image {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.5em;
  border-radius: 50%;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.gallery-arrow:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.7);
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

.thumbnail-navigation {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbnail {
  width: 100px; /* Размер миниатюр */
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.thumbnail:hover {
  border-color: #0193de;
  transform: scale(1.05);
}

.thumbnail.active-thumbnail {
  border-color: #0193de;
  box-shadow: 0 0 8px rgba(1, 147, 222, 0.5);
}

/* Responsive adjustments for product gallery */
@media (max-width: 768px) {
  .main-image-display {
    max-width: 100%;
  }
  .gallery-arrow {
    padding: 8px 12px;
    font-size: 1.2em;
  }
  .thumbnail {
    width: 80px;
    height: 55px;
  }
}

@media (max-width: 480px) {
  .gallery-arrow {
    padding: 5px 10px;
    font-size: 1em;
  }
  .thumbnail {
    width: 60px;
    height: 40px;
  }
}

/* Breadcrumbs Styles */
.breadcrumbs {
  padding: 5px 0;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px; /* Отступ от следующего блока */
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.breadcrumbs.container {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.breadcrumbs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  background: transparent !important;
}

.breadcrumbs__item {
  display: inline-block;
  margin-right: 5px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  margin-left: 5px;
  color: #999;
}

.breadcrumbs__link {
  color: #0193de;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
  color: #0056b3;
}

.breadcrumbs__item:last-child {
  color: #333;
  font-weight: bold;
}

.map-tabs {
  max-width: 980px;
  margin: 32px auto 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 32px 0 rgba(30,40,60,0.10);
  overflow: hidden;
}

.map-tabs__map-block {
  width: 100%;
}

.yandex-map {
  width: 100%;
  height: 400px;
}

.yandex-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-tabs__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.map-tabs__item {
  padding: 12px 24px;
}

.map-tabs__link {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.map-tabs__item.active .map-tabs__link {
  color: #0193de;
}

@media (max-width: 1100px) {
  .map-tabs {
    margin: 32px 10px 0;
  }
}

/* --- Новости: карточки --- */
.news-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #222;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: scale(1);
}
.news-card:hover {
  box-shadow: 0 4px 20px 0 rgba(0,0,0,0.1);
  transform: scale(1.02);
}
.news-image {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}
.news-date {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 8px;
  font-weight: 500;
}
.news-content h3 {
  font-size: 1.2em;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  text-align: left;
  line-height: 1.3;
}
.news-content p {
  color: #666;
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 0.95em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Сетка новостей - 3 карточки в ряд */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-left: 10px;
}

/* Чёрный цвет заголовка "Новости" только для страницы новостей */
.news-grid ~ .section-title,
.section-title {
  color: #333333 !important;
  font-size: 1.8em !important;
  font-weight: 700 !important;
}

/* Адаптивные стили для карточек новостей */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  .news-image {
    width: 100%;
    height: 150px;
  }
  .news-content {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .news-card {
    padding: 12px;
  }
  .news-image {
    height: 120px;
  }
}

/* --- Референс-лист --- */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

/* Заголовок секции референс-листа */
.section .section-title {
  text-align: left;
  margin-bottom: 36px;
}

.section .section-title h2 {
  font-size: 40px;
  font-weight: 900;
  color: #333;
  margin-bottom: 16px;
  letter-spacing: 0;
  text-align: left;
  line-height: 1.1;
  word-break: normal;
  white-space: normal;
}

.section .section-title p {
  font-size: 18px;
  font-weight: 400;
  color: #666;
  max-width: 600px;
  margin: 0 0 32px 0;
  line-height: 1.3;
  text-align: left;
}

.reference-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.reference-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.12);
}

/* Слайдер карточки */
.slider-card {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.slider-card__item {
  width: 100%;
  height: 100%;
  position: relative;
  display: none; /* По умолчанию скрыты */
}

.slider-card__item:first-child {
  display: block; /* Первый слайд видим */
}

.slider-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.slider-card:hover .slider-card__img {
  transform: scale(1.05);
}

/* Стрелки слайдера */
.slider-card .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  transition: all 0.3s ease;
  opacity: 0;
}

.slider-card:hover .slick-arrow {
  opacity: 1;
}

.slider-card .slick-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.1);
}

.slider-card .slick-prev {
  left: 16px;
}

.slider-card .slick-next {
  right: 16px;
}

/* Точки слайдера */
.slider-card .slick-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.slider-card .slick-dots li {
  margin: 0;
}

.slider-card .slick-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0;
  padding: 0;
}


.slider-card .slick-dots button:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.slider-card .slick-dots .slick-active button {
  background: #fff;
  transform: scale(1.2);
}

/* Информация карточки */
.reference-card__info {
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background-color 0.3s ease;
}

.reference-card__info:hover {
  text-decoration: none;
  color: inherit;
  background-color: #f8f9fa;
}

.reference-card__hint {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: lowercase;
}

.reference-card__title {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  line-height: 1.3;
}

.reference-card__params {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.reference-card__param {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  align-items: flex-start;
}

.reference-card__param-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reference-card__param-value {
  font-size: 14px;
  color: #222;
  font-weight: 600;
}

.reference-card__link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0193de;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.reference-card__link:hover {
  color: #0178b3;
}

.reference-card__link::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.reference-card__link:hover::after {
  transform: translateX(4px);
}

/* Контейнер для карточек верфи (3 в ряд) */
.reference-shipyard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  grid-column: 1 / -1;
}

/* Адаптивность */
@media (max-width: 1100px) {
  .references-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
  }
  
  .reference-shipyard-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .section .section-title h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .references-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .reference-shipyard-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .section .section-title {
    margin-bottom: 24px;
  }
  
  .section .section-title h2 {
    font-size: 24px;
  }
  
  .section .section-title p {
    font-size: 14px;
  }
  
  .slider-card {
    height: 240px;
  }
  
  .reference-card__info {
    padding: 20px;
  }
  
  .reference-card__title {
    font-size: 18px;
  }
  
  .reference-card__params {
    gap: 10px;
  }
  
  .slider-card .slick-arrow {
    opacity: 1; /* Всегда видимые на мобильных */
  }
}

@media (max-width: 480px) {
  .section .section-title h2 {
    font-size: 18px;
  }
  
  .section .section-title p {
    font-size: 12px;
  }
  
  .slider-card {
    height: 200px;
  }
  
  .reference-card__info {
    padding: 16px;
  }
  
  .reference-card__params {
    gap: 8px;
  }
  
  .slider-card .slick-arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* --- Современные карточки услуг --- */
.services-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 48px;
}

.services__item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
  display: flex;
  flex: 1 1 420px;
  min-width: 320px;
  max-width: 600px;
  align-items: stretch;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  animation-fill-mode: forwards;
}

.services__item.wow.fadeInUp {
  animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services__item-link {
  display: flex;
  flex: 1 1 100%;
  text-decoration: none;
  color: inherit;
  align-items: stretch;
}

.services__item-content {
  flex: 2 1 0;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services__item-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.services__item-text ul {
  padding-left: 18px;
  margin: 0;
}

.services__item-text li {
  font-size: 1em;
  color: #444;
  margin-bottom: 6px;
  line-height: 1.5;
}

.services__item-image {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  padding: 0;
  overflow: hidden;
}

.services__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .services-flex {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .services__item {
    max-width: 100%;
    min-width: 0;
  }
  .services__item-content {
    padding: 24px 16px;
  }
  .services__item-title {
    font-size: 1.1em;
  }
  .services__item-image {
    max-width: 140px;
    padding: 0 8px;
  }
  .services__item-image img {
    max-height: 100px;
  }
}

.table_holder {
  box-shadow: 0 2px 12px rgba(60,60,60,0.13); /* Серая тень */
  border-radius: 8px;
  background: #fff;
  padding: 18px 12px;
}

/* Отступ сверху для блока с таблицей, чтобы не соприкасалась с футером */
.table_block {
  margin-bottom: 60px;
  margin-top: 40px;
}

.services__item-image {
  max-width: 140px;
  padding: 0;
}
.services__item-image img {
  height: 100%;
  object-fit: cover;
}

/* =========================
   Стили для Horizon.php
   (модальные окна, формы, product-flex, product-content-block--full и т.д.)
   ========================= */
.product-content-block--full {
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 32px 32px 32px 32px;
  margin-bottom: 40px;
}
.product-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.product-gallery {
  flex: 0 0 45%;
  min-width: 280px;
}
.product-text {
  flex: 1;
  min-width: 280px;
}
.product-text-below {
  margin-top: 32px;
}
.product-text ul {
  margin: 16px 0;
  padding-left: 24px;
  list-style-type: disc;
}
.product-text ul li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #333;
}
@media (max-width: 900px) {
  .product-flex { flex-direction: column; }
  .product-gallery, .product-text { min-width: 0; width: 100%; }
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: animatetop 0.4s;
}
#privacyModal .modal-content {
  max-width: 900px;
  margin: 5% auto;
}
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}
.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
}
.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.modal-content h2 {
    margin-bottom: 15px;
}
.modal-content p {
    margin-bottom: 20px;
}
#orderForm .form-group {
    margin-bottom: 15px;
}
#orderForm label {
    display: block;
    margin-bottom: 5px;
}
#orderForm input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#orderForm button {
    width: 100%;
    margin-top: 10px;
}
.privacy-policy {
    margin-top: 15px;
    font-size: 12px;
    text-align: center;
    color: #666;
}
.privacy-policy a {
    color: #0193de;
}

/* =========================
   Стили для TubeBoringServices.php (уникальные)
   ========================= */
#consultationForm .form-group {
    margin-bottom: 15px;
}
#consultationForm label {
    display: block;
    margin-bottom: 5px;
}
#consultationForm input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#consultationForm button {
    width: 100%;
    margin-top: 10px;
}

/* =========================
   Стили для 404.php (уникальные)
   ========================= */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.error-content {
  max-width: 600px;
  position: relative;
}
.error-gif {
  position: absolute;
  top: 20px;
  left: 0;
  width: 80px;
  height: auto;
  z-index: 1;
}
.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: #0193de;
  margin: 0;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
.error-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  margin: 20px 0;
}
.error-description {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}
.error-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.error-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #0193de;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid #0193de;
}
.error-btn:hover {
  background: #0178b3;
  border-color: #0178b3;
  transform: translateY(-2px);
}
.error-btn.secondary {
  background: transparent;
  color: #0193de;
}
.error-btn.secondary:hover {
  background: #0193de;
  color: white;
}
.error-links {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}
.error-links h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.error-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.error-links li a {
  color: #0193de;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #0193de;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}
.error-links li a:hover {
  background: #0193de;
  color: white;
}
@media (max-width: 768px) {
  .error-code {
    font-size: 6rem;
  }
  .error-title {
    font-size: 2rem;
  }
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  .error-links ul {
    flex-direction: column;
    align-items: center;
  }
}

/* --- Стили для страницы 3D-печати --- */
.printing-hero-section {
  background: linear-gradient(135deg, #0193de 0%, #1565d8 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.printing-hero-content h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 700;
}

.printing-hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  opacity: 0.9;
  font-weight: 500;
}

.printing-hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.capabilities-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.capabilities-content p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #555;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background: white;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-icon {
  font-size: 3em;
  margin-bottom: 20px;
}

.service-item h3 {
  color: #0193de;
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-item p {
  color: #666;
  line-height: 1.5;
}

.advantages-section {
  background: #f8f9fa;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.advantage-item {
  background: white;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-3px);
}

.advantage-icon {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.advantage-item h3 {
  color: #0193de;
  font-size: 1.2em;
  margin-bottom: 15px;
  font-weight: 600;
}

.advantage-item p {
  color: #666;
  line-height: 1.5;
}

.applications-list {
  max-width: 800px;
  margin: 0 auto;
}

.application-item {
  background: white;
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  border-left: 4px solid #0193de;
  transition: transform 0.3s ease;
}

.application-item:hover {
  transform: translateX(5px);
}

.application-item h3 {
  color: #0193de;
  font-size: 1.2em;
  margin-bottom: 10px;
  font-weight: 600;
}

.application-item p {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.process-section {
  background: #f8f9fa;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.process-step {
  background: white;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
}

.step-number {
  background: #0193de;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  margin: 0 auto 20px;
}

.process-step h3 {
  color: #0193de;
  font-size: 1.2em;
  margin-bottom: 15px;
  font-weight: 600;
}

.process-step p {
  color: #666;
  line-height: 1.5;
  font-size: 0.95em;
}

.cta-section {
  background: linear-gradient(135deg, #0193de 0%, #1565d8 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.95;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-item {
  font-size: 1.1em;
}

.contact-item a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.faq-section {
  background: #f8f9fa;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
}

.faq-item h3 {
  color: #0193de;
  font-size: 1.2em;
  margin-bottom: 10px;
  font-weight: 600;
}

.faq-item p {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Адаптивность для страницы 3D-печати */
@media (max-width: 768px) {
  .printing-hero-content h1 {
    font-size: 2em;
  }
  
  .printing-hero-subtitle {
    font-size: 1.1em;
  }
  
  .printing-hero-description {
    font-size: 1em;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 20px;
  }
  
  .cta-content h2 {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .printing-hero-section {
    padding: 60px 0;
  }
  
  .printing-hero-content h1 {
    font-size: 1.8em;
  }
  
  .service-item,
  .advantage-item,
  .process-step {
    padding: 20px 15px;
  }
  
  .application-item,
  .faq-item {
    padding: 20px 15px;
  }
}

/* --- Конец вставки уникальных стилей из страниц --- */
  
/* =========================
   Универсальные классы для замены inline-стилей (CSP)
   ========================= */
.bg-light { background: #f3f3f3 !important; }
.mt-18 { margin-top: 18px !important; }
.mt-30 { margin-top: 30px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-48 { margin-top: 48px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-18 { margin-bottom: 18px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-48 { margin-bottom: 48px !important; }
.mb-60 { margin-bottom: 60px !important; }
.pl-32 { padding-left: 32px !important; }
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.fs-15 { font-size: 15px !important; }
.fs-21 { font-size: 2.1em !important; }
.fs-25 { font-size: 25px !important; }
.fs-500 { font-weight: 500 !important; }
.fs-600 { font-weight: 600 !important; }
.fs-700 { font-weight: 700 !important; }
.color-dark { color: #222 !important; }
.color-gray { color: #666 !important; }
.lh-16 { line-height: 1.6 !important; }
.flex { display: flex !important; }
.block { display: block !important; }
.gap-40 { gap: 40px !important; }
.flex-1 { flex: 1 !important; }
.flex-45 { flex: 0 0 45% !important; }
.minw-280 { min-width: 280px !important; }
.w-60 { width: 60px !important; }
.h-60 { height: 60px !important; }
.bg-green { background: #4CAF50 !important; }
.radius-8 { border-radius: 8px !important; }
.radius-50 { border-radius: 50% !important; }
.m-auto { margin: 0 auto !important; }
.mb-20 { margin-bottom: 20px !important; }
/* Для таблиц */
.v-align-top { vertical-align: top !important; }
.w-496 { width: 49.6162% !important; }
h-18 { height: 18px !important; }
/* Для уникальных и сложных блоков — добавлять по мере необходимости */
  
/* =========================
   Адаптивность для страницы 'Продукция' (products.php)
   ========================= */

/* Базовые стили уже есть, добавим более агрессивное уменьшение для малых экранов */
@media (max-width: 1100px) {
  .products-title {
    font-size: 32px;
  }
  .product-card {
    padding: 18px 10px;
    min-height: 180px;
  }
  .product-card img {
    max-width: 60%;
    max-height: 120px;
  }
}
@media (max-width: 900px) {
  .products-title {
    font-size: 24px;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .product-card {
    padding: 14px 6px;
    min-height: 140px;
  }
  .product-card img {
    max-width: 50%;
    max-height: 90px;
  }
}
@media (max-width: 700px) {
  .products-title {
    font-size: 18px;
    margin-bottom: 18px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-card {
    padding: 10px 4px;
    min-height: 100px;
  }
  .product-card img {
    max-width: 80%;
    max-height: 60px;
  }
  .product-card h3 {
    font-size: 1em;
  }
}
@media (max-width: 480px) {
  .products-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .product-card {
    padding: 6px 2px;
    min-height: 60px;
  }
  .product-card img {
    max-width: 90%;
    max-height: 40px;
  }
  .product-card h3 {
    font-size: 0.9em;
  }
}
/* Конец адаптивных стилей для products.php */
  
/* --- Сетка продукции на главной --- */
.products-table-block {
  margin: 40px 0;
  padding: 0 20px;
}

.products-title {
  font-size: clamp(24px, 4vw, 40px); /* Плавное масштабирование заголовка */
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

/* Основная сетка с умной адаптацией */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.product-card {
  display: flex;
  flex-direction: column !important;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(21,58,107,0.07);
  padding: 12px 8px;
  text-decoration: none;
  transition: box-shadow 0.18s, transform 0.18s;
  min-height: 200px;
  aspect-ratio: 1; /* Квадратные карточки */
  position: relative;
}

.product-card:hover {
  box-shadow: 0 6px 24px rgba(21,58,107,0.13);
  transform: translateY(-2px) scale(1.025);
}

/* УМНАЯ АДАПТАЦИЯ КАРТИНОК - используем относительные размеры */
.product-card__img {
  width: 85% !important; /* 85% от ширины карточки */
  height: auto !important;
  max-width: 300px !important; /* Максимум на больших экранах */
  max-height: 70% !important; /* Не больше 70% высоты карточки */
  object-fit: contain;
  flex-shrink: 0;
  aspect-ratio: 1/1; /* Квадратные картинки */
}

.product-card__title {
  color: #484848;
  font-size: clamp(0.9em, 1.5vw, 1.08em); /* Плавный размер текста */
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  margin-top: auto;
  margin-bottom: 20px;
  padding: 0 8px;
}

.product-card:not(.product-card--3d) .product-card__title {
  margin-bottom: 15px;
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
}

/* ===== АДАПТАЦИЯ ДЛЯ РАЗНЫХ ЭКРАНОВ ===== */

/* Большие планшеты и малые десктопы: 992px - 1200px */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
  
  .product-card__img {
    max-width: 220px !important;
  }
}

/* Планшеты: 768px - 991px */
@media (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
  }
  
  .product-card {
    min-height: 180px;
  }
  
  .product-card__img {
    width: 80% !important;
    max-width: 180px !important;
    max-height: 65% !important;
  }
}

/* Средние планшеты: 768px - 800px */
@media (max-width: 800px) and (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }
  
  .product-card {
    min-height: 170px;
    padding: 10px 8px;
  }
  
  .product-card__img {
    width: 70% !important;
    max-width: 150px !important;
    max-height: 60% !important;
  }
  
  .product-card__title {
    font-size: 0.98em;
    margin-bottom: 14px;
  }
}

/* Средние планшеты: 600px - 767px */
@media (max-width: 767px) and (min-width: 601px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 10px;
  }
  
  .product-card {
    min-height: 150px;
    padding: 10px 6px;
  }
  
  .product-card__img {
    width: 65% !important;
    max-width: 120px !important;
    max-height: 55% !important;
  }
  
  .product-card__title {
    font-size: 0.9em;
    margin-bottom: 10px;
  }
}

/* Переход на горизонтальные карточки: < 600px */
@media (max-width: 600px) {
  .products-table-block {
    margin: 30px 0;
    padding: 0 15px;
  }
  
  .products-title {
    margin-bottom: 20px;
  }
  
  .products-grid {
    grid-template-columns: 1fr; /* Одна колонка */
    gap: 15px 0;
  }
  
  .product-card {
    padding: 14px 12px;
    min-height: 70px;
    flex-direction: row !important; /* Горизонтальная раскладка */
    align-items: center;
    justify-content: flex-start;
    aspect-ratio: auto;
  }
  
  .product-card__img {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .product-card__title {
    font-size: 1em;
    text-align: left;
    margin-bottom: 0;
    margin-top: 0;
  }
}

/* Маленькие мобильные: < 480px */
@media (max-width: 480px) {
  .products-table-block {
    margin: 20px 0;
    padding: 0 10px;
  }
  
  .products-title {
    margin-bottom: 15px;
  }
  
  .products-grid {
    gap: 12px 0;
  }
  
  .product-card {
    padding: 12px 10px;
    min-height: 60px;
    border-radius: 10px;
  }
  
  .product-card__img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    margin-right: 10px;
  }
  
  .product-card__title {
    font-size: 0.9em;
    line-height: 1.25;
  }
}

/* Очень маленькие экраны: < 400px */
@media (max-width: 400px) {
  .product-card {
    padding: 10px 8px;
    min-height: 55px;
  }
  
  .product-card__img {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    margin-right: 8px;
  }
  
  .product-card__title {
    font-size: 0.85em;
  }
}

@media (max-width: 400px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0193de;
  }
  
  .top-bar {
    padding: 3px 6px;
    gap: 6px;
    min-height: 45px;
  }
  
  body {
    padding-top: 65px;
  }
  
  .main_top {
    margin-top: 0;
  }
  
  .logo {
    width: 100px;
  }
  
  .logo.large-logo {
    width: 100px;
  }
  
  .burger-menu {
    width: 20px;
    height: 20px;
  }
  
  .mobile-contacts {
    display: none;
  }
}

@media (max-width: 360px) {
  .product-card {
    padding: 10px 6px;
    min-height: 45px;
  }
  
  .product-card__img {
    width: 35px !important;
    height: 35px !important;
    margin-right: 8px;
  }
  
  .product-card__title {
    font-size: 0.85em;
  }
}

.bg-hero-main {
  background-image: url('images/mainImg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}
  
@media (max-width: 900px) {
  .hero-content h2 {
    font-size: 2em;
  }
  .hero-content p {
    font-size: 1em;
  }
  .hero-content {
    max-width: 420px;
    padding-right: 0;
  }
  .logo, .logo.large-logo {
    width: 140px;
    height: auto;
  }
  .main-nav .container {
    flex-direction: column;
    height: auto;
    padding: 0;
  }
  .main-nav ul {
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
  }
}

@media (max-width: 600px) {
  .hero-content h2 {
    font-size: 1.2em;
  }
  .hero-content p {
    font-size: 0.95em;
  }
  .hero-content {
    max-width: 100%;
    padding: 0 4px;
  }
  .logo, .logo.large-logo {
    width: 100px;
    height: auto;
  }
  .main-nav .container {
    flex-direction: column;
    height: auto;
    padding: 0;
  }
  .main-nav ul {
    flex-wrap: wrap;
    gap: 6px;
    height: auto;
    font-size: 13px;
  }
}

/* =========================
   ИСПРАВЛЕНИЯ АДАПТИВНОСТИ
   ========================= */

/* Добавляем промежуточные медиа-запросы для плавной адаптивности */

/* Для экранов от 1200px до 1400px */
@media (max-width: 1400px) and (min-width: 1201px) {
  .container {
    max-width: 1200px;
    padding: 0 20px;
  }
  
  .hero-slider-content {
    max-width: 85vw;
    padding: 28px 32px 20px 32px;
  }
  
  .adv-card {
    width: 380px;
  }
}

/* Для экранов от 1000px до 1200px */
@media (max-width: 1200px) and (min-width: 1001px) {
  .container {
    max-width: 1000px;
    padding: 0 15px;
  }
  
  .hero-slider-content {
    max-width: 90vw;
    padding: 24px 28px 18px 28px;
  }
  
  .adv-card {
    width: 350px;
    height: 180px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
  }
}

/* Для экранов от 800px до 1000px */
@media (max-width: 1000px) and (min-width: 801px) {
  .container {
    max-width: 900px;
    padding: 0 12px;
  }
  
  .hero-slider-content {
    max-width: 95vw;
    padding: 20px 24px 16px 24px;
  }
  
  .adv-card {
    width: 320px;
    height: 160px;
    padding: 24px 20px 20px 20px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }
  
  .product-card {
    padding: 14px 8px;
    min-height: 120px;
  }
}

/* Улучшаем существующие медиа-запросы */
@media (max-width: 1100px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  /* Плавное уменьшение размеров */
  .hero-slider-content {
    font-size: 0.95em;
  }
  
  .adv-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Добавляем плавные переходы для всех элементов */
* {
  transition: all 0.3s ease;
}

/* Исправляем проблемы с overflow */
body {
  overflow-x: hidden;
}

.container {
  overflow-x: hidden;
}

/* Улучшаем адаптивность flex-контейнеров */
.adv-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

/* Адаптивные размеры для карточек преимуществ */
@media (max-width: 1200px) {
  .adv-flex-wrap {
    gap: 18px;
  }
  .adv-card {
    width: calc(50% - 9px);
    min-width: 300px;
  }
}

@media (max-width: 800px) {
  .adv-flex-wrap {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .adv-card {
    width: 100%;
    max-width: 400px;
    min-width: 0;
  }
}

/* Исправляем проблемы с сеткой продукции */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    max-width: 100%;
  }
}

@media (max-width: 800px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .products-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
}

@media (max-width: 600px) {
  .products-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Старые стили для шапки удалены - используются новые улучшенные стили в разделе "ИСПРАВЛЕНИЯ ШАПКИ САЙТА" */

/* Исправляем проблемы с hero-секцией */
@media (max-width: 1200px) {
  .hero-slider-content {
    left: 4vw;
    max-width: 92vw;
  }
  
  .hero-slider-content h2 {
    font-size: 2.2em;
  }
}

@media (max-width: 1000px) {
  .hero-slider-content {
    left: 3vw;
    max-width: 94vw;
    padding: 18px 20px 14px 20px;
  }
  
  .hero-slider-content h2 {
    font-size: 1.8em;
  }
}

/* Добавляем плавное масштабирование шрифтов */
@media (max-width: 1200px) {
  html, body {
    font-size: 15px;
  }
}

@media (max-width: 1000px) {
  html, body {
    font-size: 14px;
  }
}

@media (max-width: 800px) {
  html, body {
    font-size: 13px;
  }
}

/* Дополнительные исправления для лучшей адаптивности */


/* Улучшаем адаптивность контейнеров */
@media (max-width: 1400px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 1200px) {
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 800px) {
  .container {
    padding: 0 10px;
  }
}

/* Исправляем проблемы с изображениями */
img {
  max-width: 100%;
  height: auto;
}

/* Улучшаем адаптивность таблиц */
@media (max-width: 1200px) {
  .table_block {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Исправляем проблемы с формами */
@media (max-width: 800px) {
  .feedback-form,
  .contact-form {
    width: 100%;
    max-width: 100%;
  }
  
  .feedback-main-row {
    flex-direction: column;
    gap: 20px;
  }
}

/* Улучшаем адаптивность футера */
@media (max-width: 1200px) {
  .footer__middle {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 800px) {
  .footer__middle {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .footer__top {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* =========================
   ИСПРАВЛЕНИЯ ШАПКИ САЙТА
   ========================= */

/* Промежуточные медиа-запросы для шапки */

/* Для экранов от 1200px до 1400px */
@media (max-width: 1400px) and (min-width: 1201px) {
  .top-bar {
    padding: 10px 18px;
    gap: 18px;
  }
  
  .logo {
    width: 190px;
  }
  
  .logo.large-logo {
    width: 190px;
  }
  
  .main-nav ul {
    gap: 15px;
  }
  
  .main-nav a {
    font-size: 14px;
    padding: 0 6px;
    white-space: nowrap;
  }
}

/* Для экранов до 1450px - скрываем контакты */
@media (max-width: 1450px) {
  .contacts-block {
    display: none !important;
  }
  
  .mobile-contacts {
    display: none;
  }
}

/* Для экранов до 1200px - активируем бургер-меню */
@media (max-width: 1200px) {
  .main-nav {
    display: none;
  }
  
  .burger-container {
    display: flex;
  }
  
  .top-bar {
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-block {
    order: 1;
  }
  
  .burger-container {
    order: 2;
  }
}

/* Для экранов от 1000px до 1200px */
@media (max-width: 1200px) and (min-width: 1001px) {
  .top-bar {
    padding: 8px 15px;
    gap: 15px;
  }
  
  .logo {
    width: 180px;
  }
  
  .logo.large-logo {
    width: 180px;
  }
}

/* Для экранов от 800px до 1000px */
@media (max-width: 1000px) and (min-width: 801px) {
  .top-bar {
    padding: 6px 12px;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .logo {
    width: 160px;
  }
  
  .logo.large-logo {
    width: 160px;
  }
}

/* Для экранов от 600px до 800px */
@media (max-width: 800px) and (min-width: 601px) {
  .top-bar {
    padding: 6px 10px;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .logo {
    width: 140px;
  }
  
  .logo.large-logo {
    width: 140px;
  }
}

/* Для экранов до 600px - мобильная версия */
@media (max-width: 600px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0193de;
  }
  
  .top-bar {
    padding: 4px 8px;
    gap: 8px;
    flex-wrap: nowrap;
    min-height: 50px;
    justify-content: space-between;
    align-items: center;
  }
  
  body {
    padding-top: 70px;
  }
  
  .main_top {
    margin-top: 0;
  }
  
  .logo {
    width: 120px;
  }
  
  .logo.large-logo {
    width: 120px;
  }
  
  .burger-menu {
    width: 25px;
    height: 18px;
  }
  
  .burger-menu span {
    height: 2px;
  }
  
  .burger-menu span:nth-child(2) {
    top: 7px;
  }
  
  .burger-menu span:nth-child(3) {
    top: 14px;
  }
  
  .nav-mobile {
    width: 250px;
    padding: 70px 15px 15px;
  }
  
  .nav-mobile a {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .contacts-block {
    display: none !important;
  }
  
  .mobile-contacts {
    display: none;
  }
}

/* Исправляем проблемы с overflow в шапке */
.top-bar {
  overflow: hidden;
}

.logo-block,
.contacts-block,
.mobile-contacts {
  overflow: hidden;
}

/* Улучшаем адаптивность навигации */
@media (max-width: 1000px) {
  .main-nav .container {
    max-width: 100%;
    padding: 0;
  }
  
  .main-nav ul {
    height: auto;
    min-height: 40px;
  }
  
  .main-nav li {
    height: auto;
  }
  
  .main-nav a {
    height: auto;
    min-height: 32px;
  }
}

.main_top {
  width: 100vw;
  max-width: 100%;
  margin: 0 auto 0 auto;
  position: relative;
  overflow: hidden;
}
.wrap {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  position: relative;
  padding: 0;
}
.flexslider {
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.slides {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.slides li {
  width: 100vw;
  max-width: 100vw;
  display: block;
}
.slides img {
  width: 100vw;
  max-width: 100vw;
  height: 420px;
  object-fit: cover;
  display: block;
}
.hero-slider-content {
  background: rgba(20, 32, 48, 0.68);
  border-radius: 22px;
  padding: 32px 38px 24px 38px;
  display: inline-block;
  position: absolute;
  left: 6vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.45);
  max-width: 90vw;
  min-width: 320px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
}
@media (max-width: 900px) {
  .hero-slider-content {
    padding: 18px 12px 14px 12px;
    border-radius: 14px;
    max-width: 98vw;
    min-width: 0;
  }
}
.hero-slider-content h2 {
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.1;
}
.hero-slider-content p {
  font-size: 1.2em;
  opacity: 0.95;
}
@media (max-width: 900px) {
  .slides img {
    height: 240px;
  }
  .hero-slider-content h2 {
    font-size: 1.5em;
  }
}
@media (max-width: 600px) {
  .slides img {
    height: 120px;
  }
  .hero-slider-content h2 {
    font-size: 1em;
  }
  .hero-slider-content p {
    font-size: 0.95em;
  }
}

.product-cards-modern-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 32px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1340px;
}
.product-card-modern {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: #e9f0fa;
  border-radius: 18px;
  padding: 28px 24px 18px 28px;
  min-height: 180px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  position: relative;
  overflow: hidden;
}
.product-card-text {
  flex: 1 1 50%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.product-card-title {
  font-size: 1.35em;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}
.product-card-img {
  flex: 0 0 48%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
}
.product-card-img img {
  max-width: 150px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 8px;
  margin-left: 18px;
  align-self: flex-end;
}
@media (max-width: 900px) {
  .product-cards-modern-wrap {
    gap: 18px 0;
    max-width: 900px;
  }
  .product-card-modern {
    max-width: 100%;
    padding: 18px 10px;
  }
  .product-card-img img {
    max-width: 100px;
    max-height: 80px;
    margin-left: 8px;
  }
}
@media (max-width: 600px) {
  .product-cards-modern-wrap {
    flex-direction: column;
    align-items: center;
    gap: 12px 0;
  }
  .product-card-modern {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    padding: 12px 6px;
  }
  .product-card-img {
    margin-top: 10px;
    justify-content: flex-start;
  }
  .product-card-img img {
    max-width: 80px;
    max-height: 60px;
    margin-left: 0;
  }
}

.product-card-left {
  margin-left: 0 !important;
}

.products-items-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 32px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1340px;
}
.products__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: #e9f0fa;
  border-radius: 18px;
  min-height: 180px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  overflow: hidden;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  padding: 28px 24px 18px 28px;
  transition: transform 0.22s cubic-bezier(.23,1.02,.32,1), box-shadow 0.22s cubic-bezier(.23,1.02,.32,1);
}
.products__item:hover, .products__item:focus {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 8px 32px 0 rgba(1,147,222,0.13);
  z-index: 2;
}
.products__item-title {
  font-size: 1.35em;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
  text-decoration: none;
  background: none;
  z-index: 2;
  position: relative;
}
.products__item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}
.products__item-link:focus, .products__item-link:hover {
  text-decoration: none;
  color: #1565d8;
}
@media (max-width: 900px) {
  .products-items-wrap {
    gap: 18px 0;
    max-width: 900px;
  }
  .products__item {
    max-width: 100%;
    padding: 18px 10px;
    min-height: 120px;
    background-size: 120px 90px;
  }
  .products__item-title {
    font-size: 1.1em;
  }
}
@media (max-width: 600px) {
  .products-items-wrap {
    flex-direction: column;
    align-items: center;
    gap: 12px 0;
  }
  .products__item {
    max-width: 100%;
    padding: 12px 6px;
    min-height: 80px;
    background-size: 80px 60px;
  }
  .products__item-title {
    font-size: 1em;
  }
}

.products__item--left {
  margin-left: 0 !important;
  justify-self: start !important;
}

.products__item {
  background-size: 90px 70px !important;
  background-position: right 0 bottom 0 !important;
}
@media (max-width: 900px) {
  .products__item {
    background-size: 60px 46px !important;
    background-position: right 0 bottom 0 !important;
  }
}
@media (max-width: 600px) {
  .products__item {
    background-size: 44px 32px !important;
    background-position: right 0 bottom 0 !important;
  }
}

.hero-slider-bg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1000px;
  max-width: 98vw;
  min-height: 130px;
  height: auto;
  background: rgba(20, 32, 48, 0.68);
  border-radius: 22px;
  z-index: 1;
  filter: blur(0.5px);
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
}
.hero-slider-content h2,
.hero-slider-content p {
  position: relative;
  z-index: 2;
}
@media (max-width: 1100px) {
  .hero-slider-bg {
    width: 90vw;
    min-height: 100px;
    border-radius: 16px;
  }
}
@media (max-width: 700px) {
  .hero-slider-bg {
    width: 98vw;
    min-height: 60px;
    border-radius: 8px;
  }
}

.adv-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  width: 420px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 28px 28px 28px;
  transition: box-shadow 0.2s;
}
.adv-card__icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  margin-top: 2px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.adv-card__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.adv-card__title {
  color: #1565d8;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  text-align: center;
}
.adv-card__desc {
  color: #222;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
}
/* Старые стили для .adv-flex-wrap удалены - используются новые улучшенные стили в разделе исправлений адаптивности */

/* Убираем подчёркивание у текста в карточках продукции на главной */
.products-table-block .product-card,
.products-table-block .product-card:visited,
.products-table-block .product-card:hover,
.products-table-block .product-card:active {
  text-decoration: none !important;
  color: inherit;
}
.products-table-block .product-card__title {
  text-decoration: none !important;
}

/* 3D эффект для карточки ИБП */
.product-card--3d {
  position: relative;
  overflow: visible !important;
  z-index: 1;
  justify-content: flex-start !important;
}

.product-card--3d .product-card__img {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  width: 250px !important;
  height: 250px !important;
  z-index: 2;
  transition: transform 0.3s ease;
}

.product-card--3d:has([alt="Рулевые машины"]) .product-card__img {
  top: 0px;
}

.product-card--3d:has([alt="Система управления курсом судна (Авторулевой)"]) .product-card__img {
  top: -40px;
  width: 350px !important;
  height: 350px !important;
  max-width: 350px !important;
  max-height: 350px !important;
}

.product-card--3d:hover .product-card__img {
  transform: translateX(-50%) rotate(0deg) scale(1.05);
}

.product-card--3d .product-card__title {
  margin-top: 250px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .product-card--3d .product-card__img {
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    width: 350px !important;
    height: 350px !important;
    max-width: none !important;
    max-height: none !important;
  }
  
  .product-card--3d .product-card__title {
    margin-top: 380px;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .product-card--3d .product-card__img {
    width: 300px !important;
    height: 300px !important;
    max-width: none !important;
    max-height: none !important;
  }
  
  .product-card--3d .product-card__title {
    margin-top: 330px;
    margin-bottom: 15px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .product-card--3d .product-card__img {
    width: 250px !important;
    height: 250px !important;
    max-width: none !important;
    max-height: none !important;
  }
  
  .product-card--3d .product-card__title {
    margin-top: 280px;
    margin-bottom: 10px;
    font-size: 0.85em;
  }
}

/* Стили для обычной карточки "Система управления рулевой машиной" в мобильной версии */
@media (max-width: 768px) {
  .product-card:not(.product-card--3d) .product-card__img {
    width: 350px !important;
    height: 350px !important;
    max-width: none !important;
    max-height: none !important;
  }
}

@media (max-width: 600px) {
  .product-card:not(.product-card--3d) .product-card__img {
    width: 300px !important;
    height: 300px !important;
    max-width: none !important;
    max-height: none !important;
  }
}

@media (max-width: 480px) {
  .product-card:not(.product-card--3d) .product-card__img {
    width: 250px !important;
    height: 250px !important;
    max-width: none !important;
    max-height: none !important;
  }
}

/* ========================================
   СИСТЕМА ПЕРЕКЛЮЧЕНИЯ ТЕМ
   ======================================== */

/* Переключатель цветовой схемы */
.color-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Кнопки переключателя */
.color-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.color-btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.color-btn.active {
  opacity: 1;
  transform: scale(1.2);
  border-color: rgba(0, 0, 0, 0.3);
}

/* Синяя схема */
.color-btn.blue {
  background: #0193de;
}

/* Белая схема */
.color-btn.white {
  background: #ffffff;
  border-color: #ddd;
}

/* Адаптивность переключателя */
/* На мобильных устройствах переключатель остается справа сверху, а бургер-меню опускается ниже */
@media (max-width: 1200px) {
  .color-switcher {
    top: 8px;
    right: 10px;
    padding: 5px;
    gap: 5px;
    z-index: 10001; /* Выше бургер-меню по умолчанию */
    transition: z-index 0s; /* Мгновенное переключение слоев */
  }
  
  .color-btn {
    width: 13px;
    height: 13px;
  }
  
  /* Опускаем бургер-меню ниже переключателя */
  .burger-container {
    margin-top: 35px; /* Сдвигаем бургер вниз */
  }
  
  /* Когда меню открыто - переключатель уходит на задний план */
  body.menu-open .color-switcher {
    z-index: 500 !important; /* ЗА боковым меню и overlay */
  }
}

@media (max-width: 768px) {
  .color-switcher {
    top: 8px;
    right: 8px;
    padding: 4px;
    gap: 4px;
  }
  
  .color-btn {
    width: 12px;
    height: 12px;
  }
  
  .burger-container {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .color-switcher {
    top: 6px;
    right: 6px;
    padding: 3px;
    gap: 3px;
  }
  
  .color-btn {
    width: 11px;
    height: 11px;
  }
  
  .burger-container {
    margin-top: 28px;
  }
}

/* ========================================
   БЕЛАЯ ТЕМА
   ======================================== */

/* Белый фон для шапки */
body.theme-white header {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.theme-white .top-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e0e0e0;
}

/* Темный цвет для ссылок в меню */
body.theme-white .main-nav a {
  color: #333333 !important;
}

body.theme-white .main-nav a:hover {
  color: #0193de !important;
}

body.theme-white .main-nav a.active {
  color: #0193de !important;
  border-bottom: 3px solid #0193de;
}

/* Мобильное меню - темный текст */
body.theme-white .nav-mobile {
  background-color: #ffffff !important;
}

body.theme-white .nav-mobile a {
  color: #333333 !important;
}

body.theme-white .nav-mobile a:hover,
body.theme-white .nav-mobile a.active {
  color: #0193de !important;
  background: #f5f5f5;
}

/* Стили для категорий и подменю в белой теме */
body.theme-white .mobile-category-toggle {
  color: #333333 !important;
}

body.theme-white .mobile-category-toggle:hover {
  color: #0193de !important;
  background: #f5f5f5 !important;
}

body.theme-white .mobile-submenu-list li a {
  color: #555555 !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

body.theme-white .mobile-submenu-list li a:hover,
body.theme-white .mobile-submenu-list li a.active {
  color: #0193de !important;
  background: #f5f5f5 !important;
}

body.theme-white .mobile-submenu-list li span {
  color: #666666 !important;
}

/* Контакты в мобильном меню */
body.theme-white .mobile-menu-contacts {
  border-top: 1px solid rgba(0,0,0,0.1);
}

body.theme-white .mobile-menu-contacts a {
  background: #f5f5f5 !important;
  color: #0193de !important;
  border: 1px solid #e0e0e0 !important;
}

/* Ссылка "Вернуться на главную" */
body.theme-white .catalog-back-link {
  color: #0193de !important;
  background: #f5f5f5 !important;
  border: 1px solid #e0e0e0 !important;
}

body.theme-white .catalog-back-link:hover {
  background: #e8f4fd !important;
  border-color: #0193de !important;
}

/* Стрелка в переключателе категорий */
body.theme-white .toggle-arrow {
  color: #333333 !important;
}

/* Бургер-меню - темные полоски */
body.theme-white .burger-menu span {
  background: #333333 !important;
}

/* Контакты в мобильной версии */
body.theme-white .mobile-contacts .contact-link {
  color: #0193de !important;
}

/* Замена логотипа на новый для белого фона */
body.theme-white .logo-block img {
  content: url('images/llogo_white.webp') !important;
}

/* Для мобильной версии логотипа */
@media (max-width: 700px) {
  body.theme-white .logo-block img {
    content: url('images/llogo_white.webp') !important;
  }
}

/* Белый фон для футера */
body.theme-white #page-footer {
  background: #ffffff !important;
  color: #333333 !important;
  border-top: 1px solid #e0e0e0;
}

/* Темный текст в футере */
body.theme-white .footer-col__title {
  color: #333333 !important;
}

body.theme-white .footer-col .menu a {
  color: #333333 !important;
}

body.theme-white .footer-col .menu a:hover {
  color: #0193de !important;
}

body.theme-white .content--sm {
  color: #666666 !important;
}

body.theme-white .copy {
  color: #666666 !important;
}

/* Иконки в футере - темные */
body.theme-white .footer-icon {
  filter: none !important;
}

/* Граница в футере */
body.theme-white .footer__bottom {
  border-top: 1px solid #e0e0e0 !important;
}

/* Переключение логотипа "Сделано в России" */
body.theme-white .made-in-ru-blue {
  display: none !important;
}

body.theme-white .made-in-ru-white {
  display: block !important;
}

/* Замена логотипа в футере на белый */
body.theme-white .footer__top .logo {
  content: url('images/llogo_white.webp') !important;
}

/* ========================================
   СИНЯЯ ТЕМА (ОРИГИНАЛЬНАЯ)
   ======================================== */

/* Синяя тема - возвращаем оригинальные стили */
body.theme-blue header {
  background: #0193de !important;
  box-shadow: none;
}

body.theme-blue .top-bar {
  background: #0193de !important;
  border-bottom: none;
}

body.theme-blue .main-nav a {
  color: #ffffff !important;
}

body.theme-blue .main-nav a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.theme-blue .main-nav a.active {
  color: #ffffff !important;
  border-bottom: 3px solid #ffffff;
}

body.theme-blue .nav-mobile {
  background-color: #0193de !important;
}

body.theme-blue .nav-mobile a {
  color: #ffffff !important;
}

body.theme-blue .nav-mobile a:hover,
body.theme-blue .nav-mobile a.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
}

body.theme-blue .burger-menu span {
  background: #ffffff !important;
}

body.theme-blue .mobile-contacts .contact-link {
  color: #ffffff !important;
}

body.theme-blue .logo-block img {
  content: url('images/llogo.webp') !important;
}

body.theme-blue .made-in-ru-blue {
  display: block !important;
}

body.theme-blue .made-in-ru-white {
  display: none !important;
}

body.theme-blue #page-footer {
  background: #0193de !important;
  color: #ffffff !important;
  border-top: none;
}

body.theme-blue .footer-col__title {
  color: #ffffff !important;
}

body.theme-blue .footer-col .menu a {
  color: #ffffff !important;
}

body.theme-blue .footer-col .menu a:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.theme-blue .content--sm {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.theme-blue .copy {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.theme-blue .footer-icon {
  filter: invert(100%) brightness(200%) !important;
}

body.theme-blue .footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.theme-blue .footer__top .logo {
  content: url('images/llogo.webp') !important;
}

/* --- Слайдер изображений для страниц продуктов --- */
.image-slider {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background: #fff;
}

.slider-image.active {
  opacity: 1;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.prev-btn {
  margin-left: 15px;
}

.next-btn {
  margin-right: 15px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #0193de;
  transform: scale(1.2);
}

.dot:hover {
  background: #0193de;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .slider-wrapper {
    height: 300px;
  }
  
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .prev-btn {
    margin-left: 10px;
  }
  
  .next-btn {
    margin-right: 10px;
  }
}

/* --- Блок партнёров --- */
.partners-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.partners-title {
  font-size: 40px;
  font-weight: 900;
  color: #333;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 0;
  line-height: 1.1;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 8px;
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.partner-img {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.partner-logo:hover .partner-img {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .partners-section {
    padding: 40px 0;
  }
  
  .partners-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
  
  .partner-logo {
    height: 60px;
    padding: 10px;
  }
}

@media (max-width: 600px) {
  .partners-section {
    padding: 30px 0;
  }
  
  .partners-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 15px;
  }
  
  .partner-logo {
    height: 50px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .partners-section {
    padding: 25px 0;
  }
  
  .partners-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
  }
  
  .partner-logo {
    height: 45px;
    padding: 6px;
  }
}

@media (max-width: 360px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 5px;
  }
  
  .partner-logo {
    height: 40px;
    padding: 5px;
  }
}

/* --- Улучшенное позиционирование и размер фоновых изображений для карточек продукции на products.php --- */
.products__item {
  background-size: 120px 90px !important;
  background-position: right 18px bottom 14px !important;
  background-repeat: no-repeat !important;
}
@media (max-width: 900px) {
  .products__item {
    background-size: 80px 60px !important;
    background-position: right 8px bottom 6px !important;
  }
}
@media (max-width: 600px) {
  .products__item {
    background-size: 54px 40px !important;
    background-position: right 4px bottom 4px !important;
  }
}
  
/* --- Корректировка карточек преимуществ на главной: иконка сверху, текст под иконкой, всё по центру --- */
.adv-card {
  display: flex;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 32px 28px 28px 28px;
}
.adv-card__icon {
  margin-bottom: 10px;
  margin-right: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.adv-card__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.adv-card__title, .adv-card__desc {
  text-align: center;
}

.product-card {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start;
  text-align: center;
}
.product-card__img {
  margin: 0 auto 12px auto;
  display: block;
}
.product-card__title {
  display: block;
  text-align: center;
  margin: 0 auto;
  width: 100%;
}
.products__item {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start;
  text-align: center;
}
.products__item-title {
  display: block;
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

.reference-full-list {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 18px;
  padding: 40px 32px;
  margin: 60px auto 80px auto;
  max-width: 700px;
  box-shadow: 0 4px 24px rgba(25, 118, 210, 0.10);
  gap: 32px;
  flex-wrap: wrap;
}
.reference-full-list__icon {
  flex-shrink: 0;
}
.reference-full-list__title {
  margin: 0 0 8px 0;
  font-size: 1.4rem;
  color: #1976d2;
  font-weight: 700;
  text-align: center;
}
.reference-full-list__desc {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 1rem;
  text-align: center;
}
.reference-full-list__btn {
  display: inline-block;
  padding: 14px 32px;
  background: #1976d2;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 1.08em;
  margin: 0 auto;
}
.reference-full-list__btn:hover,
.reference-full-list__btn:focus {
  background: #125ea7;
}
.reference-full-list__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (max-width: 700px) {
  .reference-full-list {
    flex-direction: column;
    padding: 24px 8px;
    gap: 18px;
    max-width: 98vw;
    margin: 32px auto 40px auto;
  }
  .reference-full-list__icon svg {
    width: 36px;
    height: 36px;
  }
  .reference-full-list__btn {
    width: 100%;
    padding: 12px 0;
    font-size: 1em;
  }
}
  
.products__item--center-title .products__item-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.products__item-title {
  text-decoration: none !important;
  border-bottom: none !important;
}
  
/* Структура обозначения ИБП — адаптивное изображение */
.product-figure {
  display: flex;
  justify-content: center;
  margin: 16px 0 24px;
}
.product-figure img {
  width: 100%;
  max-width: 720px; /* ограничение визуальной ширины на десктопе */
  height: auto;
}
  
/* Структура обозначения ИБП — уменьшенная ширина */
.product-figure img {
  max-width: 560px;
}
  
/* Старые стили для мобильной шапки удалены - используются новые улучшенные стили */

/* Скрытие блока контактов в неполноэкранном режиме */
@media not (display-mode: fullscreen) {
  .contacts-block {
    display: none !important;
  }
}

/* Мобильные стили для модальных окон */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
    max-width: none;
  }
  
  .modal-content h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .modal-content p {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  .form-group input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
    min-height: 44px; /* Минимальная высота для touch-устройств */
    touch-action: manipulation; /* Улучшает отзывчивость на touch */
    -webkit-tap-highlight-color: transparent; /* Убирает подсветку при нажатии */
  }
  
  /* Улучшенные стили для кнопок на страницах */
  .product-cta .btn,
  .btn-primary {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 16px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .close-btn {
    font-size: 24px;
    top: 10px;
    right: 15px;
  }
  
  .privacy-policy {
    margin-top: 15px;
  }
  
  .privacy-policy p {
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    margin: 5% auto;
    padding: 15px;
  }
  
  .modal-content h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .modal-content p {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .form-group input {
    padding: 10px;
    font-size: 14px;
  }
  
  .btn {
    padding: 10px;
    font-size: 14px;
  }
  
  .close-btn {
    font-size: 20px;
    top: 8px;
    right: 12px;
  }
}

/* Дополнительные стили для улучшения работы на мобильных устройствах */
@media (max-width: 768px) {
  /* Предотвращение zoom на iOS при фокусе на input */
  input[type="text"],
  input[type="tel"],
  input[type="email"] {
    font-size: 16px !important;
  }
  
  /* Улучшение отзывчивости кнопок */
  .btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  /* Улучшение видимости модальных окон */
  .modal {
    -webkit-overflow-scrolling: touch;
  }
  
  .modal-content {
    -webkit-overflow-scrolling: touch;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Стиль для заметки */
.note {
  background-color: #f8f9fa;
  border-left: 4px solid #0193de;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
  font-style: italic;
  color: #333;
}

/* Стили для изображений в статьях */
.article-image img {
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Специально для изображения neva2025_mini - уменьшенный размер */
.article-image img[src*="neva2025_mini"],
.main-image-display img[src*="neva2025_mini"] {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Стили для кнопки "Вернуться к новостям" - без анимации и изменения цвета */
a[href="news"].btn.btn-secondary {
  transition: none !important;
  animation: none !important;
}

a[href="news"].btn.btn-secondary:hover {
  background-color: inherit !important;
  color: inherit !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Стили для бокового меню категорий */
.aside-categories-menu {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}




.aside-products-menu__category_link {
  font-weight: 600;
  font-size: 16px;
  color: #1565d8;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.aside-products-menu__category_link:hover {
  color: #0d47a1;
  text-decoration: underline;
}

.aside-products-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 15px;
}

.aside-products-menu__item {
  margin-bottom: 8px;
}

.aside-products-menu__item:last-child {
  margin-bottom: 0;
}

.aside-products-menu__link {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.aside-products-menu__link:hover {
  color: #1565d8;
  text-decoration: underline;
}

/* Стили для каталога товаров */
.catalog-section {
  margin-top: 30px;
}

/* Стили для категорий каталога */
.catalog__category {
  margin-bottom: 40px;
}

.catalog_green-header {
  background: #ffffff;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.catalog_header {
  background: #28a745;
  color: white;
  padding: 15px 20px;
  margin: 0;
}

.green-header {
  background: #28a745 !important;
}

.catalog_title-left {
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.catalog_title-left:hover {
  color: #f8f9fa;
  text-decoration: none;
}

/* Стиль для синего заголовка */
.blue-header {
  background: #1565d8;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
}

/* Стили для изображения "Сделано в России" */
.made-in-ru {
  display: flex;
  align-items: center;
  margin-left: 15px;
  flex-shrink: 0;
}

.made-in-ru-img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

/* Стили для блока "Сделано в России" справа от меню в шапке */
.made-in-ru-header {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: block;
}

/* Скрываем на экранах меньше 1200px */
@media (max-width: 1199px) {
  .made-in-ru-header {
    display: none !important;
  }
}

.made-in-ru-header-img {
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* По умолчанию показываем синий логотип, белый скрываем */
.made-in-ru-blue {
  display: block;
}

.made-in-ru-white {
  display: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .made-in-ru {
    margin-left: 10px;
  }
  
  .made-in-ru-img {
    height: 35px;
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .made-in-ru {
    margin-left: 8px;
  }
  
  .made-in-ru-img {
    height: 30px;
    max-width: 80px;
  }
}

.catalog__flexbox {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 40px;
  flex-wrap: wrap;
}

.catalog__item {
  background: transparent;
  border-radius: 8px;
  box-shadow: none;
  overflow: visible;
  width: 397.33px;
  height: 570px;
  flex-shrink: 0;
  border: 1px solid #e9ecef;
  position: relative;
}

.catalog__cert-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 70px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

.catalog__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  z-index: 3;
}

/* Синие углы при наведении на карточку */
.catalog__item:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 10px;
  border-top: 3px solid #0193de;
  border-left: 3px solid #0193de;
  z-index: 1;
}

.catalog__item:hover::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 10px;
  border-top: 3px solid #0193de;
  border-right: 3px solid #0193de;
  z-index: 1;
}

/* Дополнительные углы через дополнительные селекторы */
.catalog__item:hover .catalog__link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -15px;
  width: 30px;
  height: 10px;
  border-bottom: 3px solid #0193de;
  border-left: 3px solid #0193de;
  z-index: 1;
}

.catalog__item:hover .catalog__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -15px;
  width: 30px;
  height: 10px;
  border-bottom: 3px solid #0193de;
  border-right: 3px solid #0193de;
  z-index: 1;
}

.catalog__img-wrapper {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.catalog__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog__title-wrapper {
  padding: 15px 20px 10px;
}

.catalog__title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.catalog__description {
  padding: 0 20px 25px;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  min-height: 70px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .aside-categories-menu {
    margin-bottom: 20px;
    padding: 15px;
  }
  
  .aside-products-menu__category_link {
    font-size: 15px;
  }
  
  .aside-products-menu__link {
    font-size: 13px;
  }
  
  .catalog__flexbox {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }
  
  .catalog__img-wrapper {
    height: 180px;
  }
  
  .catalog__title {
    font-size: 16px;
  }
  
  .catalog__title-wrapper {
    padding: 12px 15px 8px;
  }
  
  .catalog__description {
    padding: 0 15px 15px;
    font-size: 13px;
  }
  
  .catalog__cert-icon {
    width: 45px;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .aside-categories-menu {
    padding: 12px;
  }
  
  .catalog__img-wrapper {
    height: 160px;
  }
  
  .catalog__title {
    font-size: 15px;
  }
  
  .catalog__cert-icon {
    width: 40px;
    top: 8px;
    right: 8px;
  }
}

/* Стили для единого блока с боковым меню */
.main-content {
  padding: 0;
}

.unified-content-block {
  display: flex;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-menu {
  width: 280px;
  min-width: 280px;
  background: #ffffff;
  border-right: 1px solid #e9ecef;
  padding: 0;
  position: relative;
  height: auto;
  overflow-y: visible;
  z-index: 10;
  display: block !important;
  flex-shrink: 0;
}

/* Уменьшение отступов для страницы Product */
.main-content {
  padding: 0;
}

/* Мобильная адаптация для бокового меню */
@media (max-width: 768px) {
  .sidebar-menu {
    display: none !important;
  }
  
  .unified-content-block {
    flex-direction: column;
  }
  
  .main-content-area {
    width: 100%;
    margin-left: 0;
    padding: 20px 15px;
  }
  
  /* Мобильная адаптация для страницы продукта */
  .product-title {
    font-size: 2em;
    text-align: center;
  }
  
  .product-main-image {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
  
  .specifications-table {
    font-size: 12px;
  }
  
  .spec-label,
  .spec-value {
    padding: 8px 10px;
  }
  
  /* Адаптация заметки для мобильных */
  .note-block {
    padding: 12px 15px;
    margin: 15px 0;
  }
  
  .note-label {
    font-size: 13px;
  }
  
  .note-text {
    font-size: 13px;
  }
}


.main-content-area {
  flex: 1;
  padding: 10px;
  background: #fff;
  min-height: 100vh;
}


/* Стили для страницы продукта */
.product-header {
  margin-bottom: 30px;
  padding: 20px 0;
}

.product-header.text-center {
  text-align: center;
}

.product-title {
  font-size: 2em;
  font-weight: 700;
  color: #0193de;
  margin: 0;
  padding: 5px 0;
  text-align: center;
  position: relative;
}

.product-title::before,
.product-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 100px;
  height: 2px;
  background: #0193de;
  transform: translateY(-50%);
}

.product-title::before {
  left: 0;
  margin-left: -120px;
}

.product-title::after {
  right: 0;
  margin-right: -120px;
}

/* Стили для заголовка с синей линией и корабликом (используется в подзаголовках) */
.catalog_header.blue-header .catalog_title-left {
  color: #0193de;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 3px solid #0193de;
  position: relative;
  text-align: left;
}

.catalog_header.blue-header .catalog_title-left::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: -2px;
  width: 80px;
  height: 50px;
  background: url('../images/korablik_MS_product.webp') no-repeat center center;
  background-size: contain;
}

.product-subtitle {
  margin-bottom: 15px;
  padding: 20px 0;
}

.product-subtitle h2 {
  font-size: 1.2em;
  font-weight: 400;
  color: #666;
  margin: 0;
  text-align: center;
}

.product-image {
  margin-bottom: 10px;
  padding: 5px 0 5px 0;
}

.product-main-image {
  width: 357.33px;
  height: 400px;
  object-fit: contain;
  border-radius: 8px;
}

/* Слайдер изображений */
.product-slider {
  margin: 20px auto 30px auto;
  max-width: 600px;
}

.slider-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 20px 50px;
  min-height: 400px;
}

.slider-images {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: none;
}

.slider-image.active {
  opacity: 1;
  display: block;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(1, 147, 222, 0.8);
  color: white;
  border: none;
  padding: 15px 12px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.slider-arrow:hover {
  background-color: rgba(1, 147, 222, 1);
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slider-dots {
  text-align: center;
  margin-top: 15px;
}

.slider-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dot.active,
.slider-dot:hover {
  background-color: #0193de;
}

/* Адаптивность для слайдера */
@media (max-width: 768px) {
  .slider-container {
    padding: 15px 40px;
    min-height: 300px;
  }
  
  .slider-images {
    height: 300px;
  }
  
  .slider-arrow {
    width: 35px;
    height: 35px;
    padding: 10px 8px;
    font-size: 16px;
  }
}

.product-description {
  margin-bottom: 40px;
  text-align: left;
}

.product-description h3 {
  font-size: 1.2em;
  font-weight: 600;
  color: #0193de;
  margin: 0 0 15px 0;
  border-bottom: 2px solid #0193de;
  padding-bottom: 8px;
}

.product-description p {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 12px;
  text-align: left;
}

.product-description ul {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin: 10px 0 15px 0;
  padding-left: 25px;
}

.product-description ul li {
  padding: 4px 0;
}

/* Стиль для заметки */
.note-block {
  background-color: #f8f9fa;
  border-left: 4px solid #0193de;
  padding: 15px 20px;
  margin: 20px 0;
}

.note-label {
  color: #0193de;
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.note-text {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Блок с сертификатами */
.certificate-block {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0193de;
  border-radius: 12px;
  padding: 25px 30px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.certificate-block__icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.certificate-block__text {
  flex: 1;
}

.certificate-block__text p {
  color: #1e40af;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .certificate-block {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .certificate-block__text p {
    text-align: center;
    font-size: 14px;
  }
}

.product-specifications {
  margin-bottom: 40px;
  text-align: left;
}

.product-specifications h3 {
  font-size: 1.2em;
  font-weight: 600;
  color: #0193de;
  margin: 0 0 15px 0;
  border-bottom: 2px solid #0193de;
  padding-bottom: 8px;
}

.specifications-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}

.specifications-table tr {
  border-bottom: 1px solid #e9ecef;
}

.specifications-table tr:last-child {
  border-bottom: none;
}

.spec-label {
  padding: 10px 12px;
  background-color: #f8f9fa;
  font-weight: 600;
  color: #0193de;
  width: 50%;
  vertical-align: top;
  border-right: 1px solid #e9ecef;
}

.spec-value {
  padding: 10px 12px;
  color: #333;
  width: 50%;
  vertical-align: top;
}

/* Скролл-меню для страницы "Системы электропитания и резервирования" */
.scroll-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #0193de;
  z-index: 200;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.scroll-menu.show {
  transform: translateY(0);
}

.scroll-menu__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.scroll-menu__nav {
  padding: 15px 0;
}

.scroll-menu__list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.scroll-menu__item {
  margin: 0;
}

.scroll-menu__link {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.scroll-menu__link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Стили для бокового меню */
.sidebar-menu .aside-categories-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu .aside-categories-menu__item {
  margin-bottom: 0;
  border-bottom: 1px solid #e9ecef;
}

.sidebar-menu .aside-categories-menu__item:last-child {
  border-bottom: none;
}

.sidebar-menu .aside-categories-menu__title {
  background: #0193de;
  padding: 12px 20px;
  border-bottom: 1px solid #0174b8;
}

.sidebar-menu .aside-categories-menu__title:first-child {
  border-top: none;
}

.sidebar-menu .aside-products-menu__category_link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: block;
  transition: background-color 0.3s ease;
}

.sidebar-menu .aside-products-menu__category_link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-menu .aside-products-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}

.sidebar-menu .aside-products-menu__item {
  margin: 0;
  border-bottom: 1px solid #e9ecef;
}

.sidebar-menu .aside-products-menu__item:last-child {
  border-bottom: none;
}

.sidebar-menu .aside-products-menu__link {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  padding: 10px 20px;
  display: block;
  transition: background-color 0.3s ease;
}

.sidebar-menu .aside-products-menu__link:hover {
  background-color: #e9ecef;
  color: #0193de;
}


.aside-products-menu__category_link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: block;
}

.aside-products-menu__category_link:hover {
  color: #fff;
  text-decoration: none;
}

.aside-products-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
}

.aside-products-menu__item {
  border-bottom: 1px solid #e9ecef;
}

.aside-products-menu__item:last-child {
  border-bottom: none;
}

.aside-products-menu__link {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.aside-products-menu__link:hover {
  background-color: #f8f9fa;
  color: #0193de;
  text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .unified-content-block {
    flex-direction: column;
  }
  
  .sidebar-menu {
    width: 100%;
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
  }
  
  .main-content-area {
    padding: 20px 15px;
  }
}

/* Стили для главного заголовка с линиями */
.main-title-with-lines {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0 30px 0;
  gap: 20px;
}

.main-page-title {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin: 0;
  white-space: nowrap;
}

.title-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
  max-width: 200px;
}

/* Стили для синего подзаголовка */
.catalog_header.blue-header {
  background: #fff;
  padding: 15px 20px;
  margin: 0 0 5px 0;
  position: relative;
  margin-right: 7px;
  border-radius: 0;
}



/* Адаптивность для заголовков */
@media (max-width: 768px) {
  .main-page-title {
    font-size: 28px;
  }
  
  .title-line {
    max-width: 100px;
  }
  
  .catalog_header.blue-header .catalog_title-left {
    font-size: 16px;
    padding-right: 90px;
    padding-top: 50px;
  }
  
  .catalog_header.blue-header .catalog_title-left::after {
    top: 40px;
    right: 5px;
    width: 60px;
    height: 40px;
  }
}

@media (max-width: 600px) {
  .catalog_header.blue-header .catalog_title-left {
    font-size: 15px;
    padding-right: 80px;
    padding-top: 47px;
  }
  
  .catalog_header.blue-header .catalog_title-left::after {
    top: 41px;
    right: 3px;
    width: 55px;
    height: 37px;
  }
}

@media (max-width: 480px) {
  .main-title-with-lines {
    gap: 10px;
    margin: 30px 0 20px 0;
  }
  
  .main-page-title {
    font-size: 24px;
  }
  
  .catalog_header.blue-header .catalog_title-left {
    font-size: 14px;
    padding-right: 70px;
    padding-top: 45px;
  }
  
  .catalog_header.blue-header .catalog_title-left::after {
    top: 42px;
    right: 2px;
    width: 50px;
    height: 35px;
  }
  
  .title-line {
    max-width: 50px;
  }
}

/* Стили для каталога товаров - оригинальный дизайн energy */
.catalog__category {
  margin-bottom: 60px;
}

.catalog_green-header .catalog_header {
  background: #4CAF50;
  padding: 15px 30px;
  margin-bottom: 30px;
}

.catalog_header.green-header {
  background: #4CAF50;
  padding: 15px 30px;
  margin-bottom: 30px;
}


.catalog__flexbox {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  list-style: none;
  padding: 0;
}

.catalog__item {
  width: 33.333%;
  padding: 0 15px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.catalog__link {
  display: block;
  background: transparent;
  border: none;
  text-decoration: none;
  color: #333;
  height: 100%;
}

.catalog__link:hover {
  text-decoration: none;
  color: #333;
}

.catalog__img-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.catalog__title-wrapper {
  padding: 20px 20px 10px 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.catalog__title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.catalog__description {
  padding: 0 20px 25px 20px;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  min-height: 70px;
}

/* Адаптивность */
@media (max-width: 992px) {
  .catalog__item {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .catalog__flexbox {
    margin: 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }
  
  .catalog__item {
    width: 100%;
    max-width: 400px;
    height: auto;
    padding: 0;
    margin-bottom: 0;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    position: relative;
  }
  
  .catalog__img-wrapper {
    height: 150px;
  }
  
  .catalog__title {
    font-size: 15px;
  }
  
  .catalog__description {
    font-size: 13px;
    min-height: auto;
  }
  
  .catalog__title-wrapper {
    min-height: auto;
    padding: 15px 15px 10px 15px;
  }
  
  .catalog__description {
    padding: 0 15px 15px 15px;
  }
  /* 3D эффект для карточек товаров - override существующих стилей */
.catalog__img-wrapper {
  position: relative;
  width: 100% !important;
  height: 420px !important;
  overflow: visible !important;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 25px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.catalog__img {
  max-width: 90% !important;
  max-height: 90% !important;
  object-fit: contain !important;
  position: relative !important;
  top: -10px !important; /* Дополнительный подъем изображения */
}

.catalog__link {
  display: block !important;
  background: transparent !important;
  border: none !important;
  text-decoration: none !important;
  color: #333 !important;
  height: 100% !important;
  overflow: visible !important; /* Позволяет изображению выходить за границы */
  border-radius: 0 !important;
  padding-top: 0 !important;
}

.catalog__link:hover {
  text-decoration: none !important;
  color: #333 !important;
}
/* Две карточки на всю ширину блока без анимаций */
.catalog__flexbox .catalog__item {
  width: 397.33px !important;
  height: 570px !important;
  max-width: 397.33px !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  position: relative !important;
}

/* Синие углы при наведении на карточку - дополнительные стили */
.catalog__flexbox .catalog__item:hover::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 30px !important;
  height: 10px !important;
  border-top: 3px solid #0193de !important;
  border-left: 3px solid #0193de !important;
  z-index: 1 !important;
}

.catalog__flexbox .catalog__item:hover::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 30px !important;
  height: 10px !important;
  border-top: 3px solid #0193de !important;
  border-right: 3px solid #0193de !important;
  z-index: 1 !important;
}

.catalog__flexbox .catalog__item:hover .catalog__link::before {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: -15px !important;
  width: 30px !important;
  height: 10px !important;
  border-bottom: 3px solid #0193de !important;
  border-left: 3px solid #0193de !important;
  z-index: 1 !important;
}

.catalog__flexbox .catalog__item:hover .catalog__link::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  right: -15px !important;
  width: 30px !important;
  height: 10px !important;
  border-bottom: 3px solid #0193de !important;
  border-right: 3px solid #0193de !important;
  z-index: 1 !important;
}

/* Убираем все анимации и hover эффекты */
.catalog__link {
  transition: none !important; /* Отключаем анимации */
}

.catalog__link:hover {
  transform: none !important; /* Убираем подъем при наведении */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; /* Обычная тень без эффектов */
}

.catalog__link:hover .catalog__img {
  transform: none !important; /* Убираем масштабирование изображения */
}

.catalog__img {
  transition: none !important; /* Отключаем анимации изображений */
}

/* Для мобильных устройств - одна карточка на всю ширину */
@media (max-width: 768px) {
  .catalog__flexbox .catalog__item {
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    margin-bottom: 20px;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    position: relative !important;
  }
  
  .catalog__flexbox .catalog__cert-icon {
    width: 45px !important;
    top: 10px !important;
    right: 10px !important;
  }
}

/* Интерактивная карта регионов */
.russia-map-section {
  margin: 40px auto;
  padding: 30px 0;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  /* Принудительное центрирование на странице */
  margin-left: auto !important;
  margin-right: auto !important;
  /* Убираем любые отступы слева/справа, которые могут сдвигать */
  padding-left: 0;
  padding-right: 0;
}

.russia-map-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  align-items: center;
  justify-content: center;
  /* Принудительное центрирование */
  margin-left: auto !important;
  margin-right: auto !important;
  /* Дополнительное центрирование содержимого */
  text-align: center;
}

#russia-map-container {
  width: 880px;
  max-width: 100%;
  margin: 0 auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: #f3f3f3;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  /* Фиксируем размеры контейнера, чтобы не дёргалось */
  min-height: 620px; /* 580px (высота SVG) + 40px (padding) */
  /* Центрируем контейнер */
  display: block;
  text-align: center;
  /* Центрирование через flexbox родителя */
  align-self: center;
}

/* Контейнер для информации о регионе (над картой) - скрыт */
.map-district-info {
  display: none !important;
}

.map-district-info b {
  display: none;
}

.map-district-info span {
  display: block;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  transition: all 0.3s ease;
  width: 100%;
  font-style: italic;
}

/* Когда показывается регион, убираем курсив */
.map-district-info span:has(.map-region-name) {
  font-style: normal;
}

/* Иконка парусного кораблика */
.map-district-info .map-ship-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
  line-height: 1;
}

.map-district-info .map-ship-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  transition: all 0.3s ease;
}

.map-district-info:hover .map-ship-icon svg {
  transform: translateY(-2px);
}

/* Название региона */
.map-district-info .map-region-name,
.map-district-info strong.map-region-name {
  font-size: 24px;
  font-weight: 700;
  color: #1976d2;
  display: inline-block;
  vertical-align: middle;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(25, 118, 210, 0.1);
  transition: all 0.3s ease;
  margin: 0;
}

.map-district-info strong {
  font-size: 24px;
  font-weight: 700;
  color: #1976d2;
  display: inline-block;
  vertical-align: middle;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(25, 118, 210, 0.1);
  margin: 0;
}

#russia-map-container svg {
  width: 880px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  /* Центрируем SVG внутри контейнера */
  /* Фиксируем размеры SVG, чтобы не дёргалось */
  min-height: 580px;
}

#russia-map-container svg [data-region] {
  cursor: pointer;
  /* Убираем transition на opacity чтобы не дёргалось */
  /* Убираем любые изменения размеров при hover */
  transform: none;
  will-change: filter; /* Оптимизация для filter */
}

#russia-map-container svg [data-region].map-region-active {
  filter: brightness(1.2) saturate(1.3);
  /* Подсветка через filter вместо изменения fill или opacity */
  /* Не меняем размеры или позицию */
  transform: none;
  transition: filter 0.2s ease; /* Плавная анимация только для filter */
}

#map-tooltip {
  position: absolute;
  background: rgba(25, 118, 210, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
  z-index: 10000;
  display: none;
  flex-direction: row;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transform: translate(-50%, -50%);
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: opacity 0.2s ease;
}

#map-tooltip .map-ship-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

#map-tooltip .map-ship-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

#map-tooltip .map-region-name-tooltip {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.3px;
}

#map-projects-list {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: none;
  max-height: 400px;
  overflow-y: auto;
  /* Fixed позиционирование чтобы не влиять на layout карты */
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 880px;
  z-index: 1000;
  pointer-events: auto;
}

#map-projects-list h3 {
  margin-bottom: 15px;
  color: #1976d2;
  font-size: 18px;
}

.map-project-item {
  padding: 12px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #1976d2;
}

.map-project-item strong {
  display: block;
  color: #333;
  margin-bottom: 5px;
}

.map-project-item span {
  display: block;
  font-size: 14px;
  color: #666;
  margin-top: 3px;
}

/* Принудительное центрирование карты внутри контейнера */
.container .russia-map-section,
.section .russia-map-section,
.russia-map-section {
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center !important;
}

/* Принудительное центрирование для всех родительских контейнеров */
.container .russia-map-section .russia-map-wrapper,
.section .russia-map-section .russia-map-wrapper,
.russia-map-section .russia-map-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: 1200px !important;
  text-align: center !important;
}

/* Принудительное центрирование контейнера карты */
.container .russia-map-section #russia-map-container,
.section .russia-map-section #russia-map-container,
.russia-map-section #russia-map-container,
#russia-map-container {
  width: 880px !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin: 0 auto !important;
  display: block !important;
  text-align: center !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
}

/* Принудительное центрирование SVG */
.container .russia-map-section #russia-map-container svg,
.section .russia-map-section #russia-map-container svg,
.russia-map-section #russia-map-container svg,
#russia-map-container svg {
  width: 880px !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin: 0 auto !important;
  float: none !important;
  position: relative !important;
}

@media (max-width: 768px) {
  .russia-map-wrapper {
    padding: 10px;
  }
  
  #russia-map-container {
    padding: 10px;
  }
  
  .map-district-info {
    min-height: 70px;
    height: 70px;
    padding: 12px 18px;
    border-radius: 8px;
  }
  
  .map-district-info span {
    font-size: 14px;
  }
  
  .map-district-info .map-ship-icon {
    margin-right: 8px;
  }
  
  .map-district-info .map-ship-icon svg {
    width: 22px;
    height: 22px;
  }
  
  .map-district-info .map-region-name,
  .map-district-info strong.map-region-name,
  .map-district-info strong {
    font-size: 18px;
    margin: 0;
  }
  
  #map-tooltip {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  #map-tooltip .map-ship-icon svg {
    width: 18px;
    height: 18px;
  }
}