/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: 0;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
}

/* Header Styles */
header {
  position: relative;
  z-index: 20;
  background: #0193de; /* Синий фон как у футера */
}

.top-bar {
  background: #0193de; /* Синий фон как у футера */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 10px 0; /* Уменьшаем вертикальные отступы с 20px до 10px */
  border-bottom: none; /* Убираем границу */
  gap: 20px;
  position: relative;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: gap 0.3s ease;
}

.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;
}

.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;
}

.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;
  }
}

@media (max-width: 900px) {
  .top-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 10px;
  }

  .logo-block {
    flex-basis: auto;
    order: 1;
  }

  .contacts-block {
    order: 2;
    margin-left: auto;
  }

  .mobile-menu-btn {
    display: block;
    order: 3;
  }

  .main-nav {
    width: 100%;
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: none;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    gap: 0;
    height: auto;
    background: #fff;
  }

  .main-nav ul.active {
    display: flex;
  }

  .main-nav li {
    width: 100%;
    height: auto;
  }

  .main-nav a {
    text-align: left;
    padding: 12px 20px;
    color: #333;
    background: none;
    border-bottom: 1px solid #eee;
  }
  .main-nav a:hover,
  .main-nav a:focus {
    background: rgba(0, 116, 175, 0.1);
    color: #0074af;
  }
  .main-nav a.active {
    background: transparent;
    color: #0074af;
  }

  .has-submenu > a::after {
    display: none;
  }
  .submenu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0;
    background: #f8f8f8;
    padding: 0;
  }
  .submenu a {
    color: #0074af;
    padding: 8px 40px;
    border-bottom: 1px solid #eee;
  }
  .submenu li:last-child a {
    border-bottom: none;
  }
}

@media (max-width: 700px) {
  .logo-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .logo {
    width: 220px;
  }
  .logo.large-logo {
    width: 220px;
  }
  .logo-info {
    align-items: flex-start;
  }
  .logo-since {
    font-size: 1.3em;
  }
  .logo-desc {
    font-size: 0.8em;
    max-width: 200px;
  }
}

/* Мобильное меню */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: #1a5f7a;
  margin: 5px 0;
  transition: all 0.3s ease;
}

body {
  padding-top: 0;
}

.main-nav.scrolled {
  position: relative;
  top: auto;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: auto;
  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: 60px 0 30px;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__top {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  align-items: center;
}

.footer__top .logo {
  width: 250px; /* Увеличиваю размер логотипа в футере */
  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: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col__title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col .menu li {
  margin-bottom: 12px;
}

.footer-col .menu a {
  color: #fff; /* Белый цвет текста */
  text-decoration: none;
  font-size: 15px;
  padding: 5px 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: 30px;
  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);
}

@media (max-width: 900px) {
  .footer__top {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer__middle {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer__middle {
    grid-template-columns: 1fr;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* --- История компании --- */
.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: 24px;
}

.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;
  }
  
  .history-card {
    width: 100%;
  }
}

.history-card--main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  font-size: 1.15em;
}

.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: 2em;
  margin-bottom: 12px;
  font-weight: bold;
}

.history-card--main h2 {
  color: #111;
  font-size: 2em;
  margin-bottom: 18px;
  font-weight: bold;
}

.history-card--offset {
  margin-top: 48px;
}

.history-title {
  font-size: 2em;
  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: 32px 32px 0 32px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.product-card h3 {
  font-size: 1.5em;
  font-weight: 600;
  color: #222;
  margin-bottom: 0;
  text-align: left;
  position: relative;
  z-index: 2;
}

.product-card img {
  position: absolute;
  right: 0px;
  bottom: 0px;
  left: auto;
  width: 55%;
  height: 65%;
  min-width: 120px;
  min-height: 100px;
  max-width: 65%;
  max-height: 80%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.products-title {
  font-size: 4em;
  font-weight: 900;
  margin-bottom: 32px;
  margin-top: 0;
  letter-spacing: 2px;
  text-align: left;
}

.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: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 700px) {
  .logo-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .logo-info {
    align-items: flex-start;
  }
  .logo.large-logo {
    width: 120px;
  }
}

/* Затемняющий слой поверх фоновой картинки */
.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: 80vh;
  gap: 48px;
  padding-top: 32px;
}

.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: column;
  align-items: center;
  min-height: 220px;
  transition: box-shadow 0.2s;
}
.advantages__item:hover {
  box-shadow: 0 8px 32px 0 rgba(1,147,222,0.16);
}
.advantages__item-icon {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}
.advantages__item-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.advantages__item-text {
  font-size: 1.13em;
  color: #222;
  text-align: center;
  line-height: 1.4;
}
.text-blue {
  color: #0193de;
  font-weight: 700;
}
@media (max-width: 1100px) {
  .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 700px) {
  .advantages {
    margin: 32px 0;
  }
  .advantages__title {
    font-size: 1.3em;
    margin-bottom: 18px;
  }
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .advantages__item {
    padding: 18px 8px 14px 8px;
    min-height: 0;
  }
  .advantages__item-icon {
    height: 48px;
    margin-bottom: 10px;
  }
  .advantages__item-icon img {
    width: 48px;
    height: 48px;
  }
  .advantages__item-text {
    font-size: 1em;
  }
}

/* --- Модельный ряд: красивая таблица --- */
.table_block {
  border-radius: 18px;
  padding: 24px 18px 18px 18px;
  margin-top: 6px;
  margin-bottom: 60px;
  overflow-x: auto;
}
.table_holder table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95em;
  background: none;
}
.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;
}
@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;
  }
}

.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;
}

.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); /* Легкое затемнение при наведении */
}

.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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#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: 15px 0;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 20px; /* Отступ от следующего блока */
}

.breadcrumbs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.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: 20px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.07);
  padding: 28px 28px 20px 28px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #222; /* Цвет текста как на карточках продукции */
}
.news-card h3 {
  font-size: 1.4em;
  font-weight: 600;
  color: #222; /* Цвет заголовка как на карточках продукции */
  margin-bottom: 10px;
  text-align: left;
}
.news-card p {
  color: #222; /* Цвет основного текста */
  margin-bottom: 16px;
  line-height: 1.6;
}
.news-card .read-more {
  color: #0193de;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.news-card .read-more:hover {
  color: #005b8c;
  text-decoration: underline;
}

/* Стили для изображений в карточках новостей */
.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
}

/* Увеличение расстояния между новостными карточками */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 38px; /* Было меньше, теперь больше для визуального разделения */
}

/* Чёрный цвет заголовка "Новости" только для страницы новостей */
.news-grid ~ .section-title,
.section-title {
  color: #333333 !important;
}

/* Адаптивные стили для изображений в карточках новостей */
@media (max-width: 768px) {
  .news-card img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .news-card img {
    height: 140px;
  }
}

/* --- Референс-лист --- */
.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: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.reference-card__param {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.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);
}

/* Адаптивность */
@media (max-width: 1100px) {
  .references-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
  }
  
  .section .section-title h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .references-grid {
    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 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .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 {
    grid-template-columns: 1fr;
    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;
}
@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;
}
.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;
  }
}

/* --- Конец вставки уникальных стилей из страниц --- */
  
/* =========================
   Универсальные классы для замены 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; }
/* Для уникальных и сложных блоков — добавлять по мере необходимости */
  