/* Общие стили */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  /*! color: #fff; */
}
.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  /*! background-color: #1a1a1a; */
  /*! border-bottom: 1px solid #444; */
  font-size: 1.9em;
  font-family: EuropeCondBold;
  font-weight: bold;
}

.header-contacts a,
.header-social a {
  color: #ccc;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.header-contacts a:hover,
.header-social a:hover {
  color: #faa11c;
}

.header-contacts a {
  white-space: nowrap;
}

.header-social {
  display: flex;
  gap: 14px;
  font-size: 1.3em;
}
/* Шапка сайта */
header {
  background-color: #000;;
  padding: 20px;
  text-align: center;
  /*! background-image: url(/imgs/header250.webp); */
  border-bottom: 3px solid #333;
  /*! border-top: 3px solid #333; */
  padding-bottom: 6px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  /*! gap: 8px; */
  /*! width: 311px; */
  /*! padding-left: 100px; */
}

.logo img {
  height: 79px;
  /*! margin-right: 214px; */
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 3px solid #333;
  padding-top: 5px;
}

/* Каталог продукции — выпадающее меню */
.dropbtn,
.nav .btn {
  background: linear-gradient(145deg, #2d2d2d, #fba11d);
  border: 1px solid #444;
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 24px;
  border-radius: 6px;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
}

.dropbtn:hover,
.nav .btn:hover {
  background-color: #faa11c;
  color: #fff;
  border-color: #e65100;
  transform: scale(1.05);
}

.dropbtn {
  background-color: #5b5b5b;
  color: white;
  padding: 16px;
  font-size: 21px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  /*! font-weight: bold; */
  letter-spacing: 0px;
  background: linear-gradient(145deg, #2d2d2d, #fba11d);
  border: 1px solid #444;
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 24px;
  border-radius: 6px;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
}

.dropbtn:hover,
.dropbtn:focus {
  background-color: #fba11d;
}

.dropdown {
  position: relative;
  display: inline-block;
}

/*Выпадающее меню */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #4e4e4e;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown-content.show {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(203px, 3fr));
  gap: 51px;
  padding: 46px;
  opacity: 1;
  transform: translateY(10px);
  /*! background-image: url("/imgs/p1.webp"); */
  width: 712px;
  margin: 6px -123px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('/imgs/p1.webp');
}

.dropdown-content a {

  color: white;
  padding: 14px 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: background-color 0.3s ease, border-radius 0.3s ease;
  border-radius: 5px;
  background: #000000ba;
  font-size: 17px;
  font-family: RussianRail_G_Pro_Regular;
}

.dropdown-content a:hover {
  background-color: #faa11c;
  color: #000;
  /*! font-weight: bold; */
}


/* Кнопки */
.btn {
  color: white;
  padding: 17px 5px;
  font-size: 21px;
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
  background-color: #5b5b5b;
  transition: background-color 0.3s ease;
  /*! font-weight: bold; */
  letter-spacing: 0px;
}

.btn:hover {
  background-color: #fca11c;
}

/* Контактная информация */
.contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.contact-info input {
  padding: 5px;
  border-radius: 5px;
  border: none;
}

.contact-info button {
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Главный экран */
.hero {
  text-align: center;
  padding: 120px 20px 80px;
  background-image: url('/imgs/s4.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Полупрозрачный слой поверх фона */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(10, 10, 10, 0.6) 100%);
  z-index: 1;
}

.hero * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.8em;
  margin-bottom: 48px;
  color: #f89e1b;
  /*! font-weight: 700; */
  letter-spacing: 2.5px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 25px;
  /*! color: #ddd; */
  max-width: 77%;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 300;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  opacity: 0.85;
}

/* Блоки особенностей */
.features {
  display: flex;
  justify-content: space-around;
  padding: 50px 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.feature {
  text-align: center;
  flex: 1 1 200px;
}

.feature i {
  font-size: 4em;
  color: #f89e1b;
  margin-bottom: 10px;
}

/* Сервисы */
.services {
  display: flex;
  justify-content: space-around;
  /*! padding: 50px 20px; */
  flex-wrap: wrap;
  /*! gap: 2px; */
  margin-bottom: 40px;
}

.service {
  text-align: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #3a3a3a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.service i {
  font-size: 2em;
  margin-bottom: 10px;
}

/* Бургер-меню */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #333;
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 99;
  }

  .nav {
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .dropdown,
  .nav .btn {
    margin: 10px 20px;
  }

  .dropdown-content {
    position: static;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown-content.show {
    max-height: 300px;
  }

  .dropbtn {
    width: 100%;
    text-align: left;
  }
}

/* Страница товаров */
main.products {
  padding: 40px 20px;
  background-color: #fff;
  color: #fff;
  min-height: 69vh;
}

main.products h1 {
  font-size: 2.8em;
  color: #3d3d3d;
  text-align: center;
  margin-bottom: 45px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  font-family: Open Sans;
}

main.products p {
  font-size: 1.2em;
  color: #ccc;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Сетка товаров */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Кликабельная карточка */
/* Кликабельная карточка — современный дизайн */
.product-link {
  flex: 1 1 280px;
  max-width: 320px;
  text-decoration: none;
  color: inherit;
  background-color: #2d2d2d;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #444;
}

.product-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.product-link img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 3px solid #faa01c;
}

.product-link h2 {
  font-size: 1.4em;
  color: #fff;
  margin: 14px 0 8px;
  padding: 0 16px;
  text-align: center;
}

.product-link p {
  color: #bbb;
  font-size: 0.95em;
  margin: 0 16px 16px;
  text-align: center;
  line-height: 1.5;
  flex-grow: 1;
}

/* Страница товара */
.product-page {
  padding: 40px 20px;
  background-color: #fff;
  min-height: 100vh;
  text-align: center;
}

.product-card {
  max-width: 800px;
  margin: 0 auto;
  background-color: #2d2d2d;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.product-card h1 {
  font-size: 2em;
  margin: 20px 0 10px;
  color: #f89e1b;
}

.product-card .article {
  font-size: 1.1em;
  color: #ccc;
  margin: 0 0 15px;
}

.product-card .description {
  font-size: 1.2em;
  line-height: 1.6;
  color: #ddd;
  padding: 0 30px 20px;
  text-align: left;
}

.back-link {
  display: inline-block;
  margin: 15px 30px 30px;
  padding: 10px 20px;
  background-color: #faa11c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.back-link:hover {
  background-color: #e65100;
}

/* Светлая тема */
body.light-theme {
  background-color: #f4f4f4;
  color: #333;
}

body.light-theme header,
body.light-theme .products-grid .product-link,
body.light-theme .product-card {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .product-link,
body.light-theme .product-card {
  border: 1px solid #ddd;
}

body.light-theme .dropbtn,
body.light-theme .btn {
  background-color: #f8f8f8;
  color: #333;
}

body.light-theme .dropbtn:hover,
body.light-theme .btn:hover {
  background-color: #faa11c;
}

body.light-theme footer {
  background-color: #eee;
  color: #333;
}

body.light-theme .dropdown-content a {
  color: #333;
}

/* Кнопка переключения темы */
.theme-toggle {
  margin-left: 20px;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

#theme-toggle:hover {
  transform: rotate(30deg);
}

/* Подвал */
/* Стили для улучшенного футера */
.site-footer {
  background-color: #1a1a1a;
  color: #ddd;
  font-size: 19px;
  display: flex;
  padding-bottom: 20px;
  font-weight: bold;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  /*! gap: 57px; */
  /*! margin-bottom: 40px; */
  /*! align-items: baseline; */
  /*! max-width: 500px; */
  /*! padding-left: 100px; */
  justify-items: center;
 }

.footer-section h3 {
  color: #faa11c;
  font-size: 1.2em;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #faa11c;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #faa11c;
}

.footer-bottom {
  /*! text-align: center; */
  /*! padding-top: 20px; */
  border-top: 2px solid #444;
  color: #888;
  /*! display: flex; */
  /*! justify-content: center; */
  /*! align-items: center; */
  /*! flex-wrap: wrap; */
  /*! gap: 15px; */
  width: 600px;
  font-size: 13px;
  text-align: center;
}

.footer-social a {
  color: #ccc;
  font-size: 1.3em;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #faa11c;
}

/* Кнопка "Наверх" */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #faa11c;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5em;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #e65100;
  transform: scale(1.1);
}

.top-img {
  width: 50px;
}

/* Адаптация под мобильные */
@media (max-width: 768px) {
  .back-to-top {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
    font-size: 1.6em;
  }
}
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
/* Страница "Где купить" */
.where-to-buy {
  padding: 60px 20px;
  background-color: #1a1a1a;
  color: #fff;
  min-height: 100vh;
}

.where-to-buy h1 {
  font-size: 2.8em;
  color: #f89e1b;
  text-align: center;
  margin-bottom: 10px;
}

.where-to-buy .subtitle {
  text-align: center;
  font-size: 1.2em;
  color: #ccc;
  margin-bottom: 40px;
}

.stores-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.store-card {
  flex: 1 1 280px;
  max-width: 350px;
  background-color: #2d2d2d;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.store-card:hover {
  transform: translateY(-5px);
}

.store-card i {
  font-size: 3em;
  color: #faa11c;
  margin-bottom: 15px;
}

.store-card h3 {
  color: #fff;
  margin: 0 0 15px;
  font-size: 1.5em;
}

.store-card p {
  color: #ccc;
  font-size: 0.95em;
  line-height: 1.6;
  margin: 0 0 20px;
}

.store-card .btn {
  background-color: #faa11c;
  color: white;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.store-card .btn:hover {
  background-color: #e65100;
}

.contact-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #333;
  border-radius: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cta h2 {
  color: #f89e1b;
  font-size: 2em;
  margin: 0 0 15px;
}

.contact-cta p {
  color: #ccc;
  font-size: 1.1em;
  margin: 0 0 20px;
}

/* Секция карты */
.map-section {
  margin: 60px auto;
  max-width: 1000px;
  padding: 0 15px;
}

.map-section h2 {
  text-align: center;
  font-size: 2em;
  color: #f89e1b;
  margin-bottom: 20px;
}

#yandex-map {
  width: 100%;
  height: 450px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: #e0e0e0;
}

//.dropbtn::before {
    content: "▶";
  color: #ff4700;
  font-size: 20px;
  margin-right: 6px;
  animation: pulse 1.5s infinite;
//}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* Поиск в шапке */
.header-search {
  position: relative;
  margin: 1px 36%;
  flex: 1;
  max-width: 500px;
}

.search-input-header {
  width: 100%;
  padding: 7px 0px;
  font-size: 20px;
  border: 1px solid #959595;
    border-top-width: 1px;
  border-radius: 5px;
  outline: none;
  background-color: #333;
  color: #fff;
  transition: all 0.3s ease;
  text-align: center;
  border-top-width: 0px;
  margin-bottom: 12px;
  /*! justify-content: center; */
  /*! margin: 12px auto; */
  /*! margin-left: 25px; */
}

.search-input-header:focus {
  border-color: #e65100;
  box-shadow: 0 0 8px rgba(230, 81, 0, 0.3);
}

/* Выпадающий список результатов поиска */
.search-results-header {
  position: absolute;
  /*! top: 100%; */
  /*! left: 0; */
  width: 700px;
  max-width: 700px;
  background: #2d2d2d;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  /*! max-height: 300px; */
  overflow-y: auto;
  display: none;
  margin: 2px 30%;
  font-size: 21px;
}

.search-results-header.show {
  display: block;
}

.search-results-header a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #444;
  transition: background 0.2s ease;
}

.search-results-header a:hover {
  background: #3a3a3a;
}

.search-results-header img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 5px;
}

.search-results-header .info {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-results-header .info strong {
  font-size: 0.95em;
  display: block;
  color: #fff;
}

.search-results-header .info small {
  color: #89da11;
  font-size: 18px;
}

.search-results-header .no-results {
  text-align: center;
  padding: 20px;
  color: #aaa;
  font-style: italic;
}

/* Страница подбора аналога */
.cross-reference-page {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  text-align: center;
}

.cross-reference-page h1 {
  font-size: 2.5em;
  color: #faa11c;
  margin-bottom: 15px;
}

.cross-reference-page p {
  font-size: 1.1em;
  color: #ccc;
  margin-bottom: 30px;
}

.cross-reference-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.cross-reference-form .search-input {
  flex: 1;
  max-width: 400px;
  padding: 14px 18px;
  font-size: 1.1em;
  border: 2px solid #faa11c;
  border-radius: 50px;
  outline: none;
  background-color: #333;
  color: #fff;
}

.cross-reference-form button {
  padding: 0 25px;
  background-color: #faa11c;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease;
}

.cross-reference-form button:hover {
  background-color: #e65100;
}

.cross-reference-results {
  margin: 30px auto;
  text-align: center;
}

.cross-reference-card {
  background: #2d2d2d;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 0 auto 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cross-reference-card h3 {
  margin: 0;
  color: #faa11c;
  font-size: 1.3em;
}

.product-match {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-match img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #faa11c;
}

.product-match strong {
  font-size: 1.2em;
  color: #fff;
}

.product-match small {
  color: #ccc;
}

.no-match {
  color: #aaa;
  font-style: italic;
  font-size: 1.1em;
}

.help-text {
  margin-top: 50px;
  padding: 20px;
  background-color: #2d2d2d;
  border-radius: 10px;
  color: #ccc;
}

.help-text h3 {
  color: #faa11c;
  margin-bottom: 15px;
}

.help-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.help-text li {
  background: #3a3a3a;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.95em;
}

/* Страница "О компании" */
.about-page {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  text-align: left;
}

.about-page h1 {
  font-size: 2.5em;
  color: #5b5b5b;
  text-align: center;
  margin-bottom: 33px;
}

.about-content {
  line-height: 1.8;
  font-size: 1.1em;
  color: #ddd;
}

.about-content p {
  margin-bottom: 20px;
  color: #494949;
  font-weight: 600;
}

.about-content strong {
  color: #faa11c;
  font-size: 1.2em;
}

.representative {
  margin-top: 40px;
  padding: 20px;
  background-color: #2d2d2d;
  border-radius: 10px;
  border-left: 5px solid #faa11c;
  box-shadow: 5px 8px 10px rgba(0, 0, 0, 0.3);
}

.representative h2 {
  color: #faa11c;
  margin-top: 0;
  font-size: 1.4em;
}

.representative a {
  color: #faa11c;
  text-decoration: none;
}

.representative a:hover {
  text-decoration: underline;
}

.representative p {
	color: #fff;
}

/* Страница "Стать партнёром" */
.partnership-page {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  text-align: left;
}

.partnership-page h1 {
  font-size: 2.5em;
  color: #faa11c;
  text-align: center;
  margin-bottom: 30px;
}

.partnership-content {
  line-height: 1.8;
  font-size: 1.1em;
  color: #ddd;
}

.partnership-content p {
  margin-bottom: 20px;
}

.partnership-content strong {
  color: #faa11c;
  font-size: 1.2em;
}

.advantages-list {
  background-color: #2d2d2d;
  padding: 25px 20px;
  border-radius: 10px;
  list-style-type: none;
  margin: 25px 0;
}

.advantages-list li {
  margin-bottom: 14px;
  padding-left: 35px;
  position: relative;
  font-size: 1.1em;
}

.advantages-list li::before {
  content: "✓";
  color: #faa11c;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.4em;
}

.contact-info {
  margin-top: 40px;
  padding: 20px;
  background-color: #2d2d2d;
  border-radius: 10px;
  border-left: 5px solid #faa11c;
}

.contact-info h3 {
  color: #faa11c;
  margin-top: 0;
  font-size: 1.4em;
}

.contact-info a {
  color: #faa11c;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Страница "Стать партнёром" */
.partnership-page {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  text-align: left;
}

.partnership-page h1 {
  font-size: 2.5em;
  color: #5b5b5b;
  text-align: center;
  margin-bottom: 30px;
}

.partnership-content {
  line-height: 1.8;
  font-size: 1.1em;
  color: #ddd;
}

.partnership-content p {
  margin-bottom: 20px;
}

.partnership-content strong {
  color: #6a6a6a;
  font-size: 23px;
  font-weight: 600;
}

.advantages-list {
  background-color: #2d2d2d;
  padding: 25px 20px;
  border-radius: 10px;
  list-style-type: none;
  margin: 25px 0;
}

.advantages-list li {
  margin-bottom: 14px;
  padding-left: 35px;
  position: relative;
  font-size: 1.1em;
}

.advantages-list li::before {
  content: "✓";
  color: #faa11c;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.4em;
}

.contact-info {
  margin-top: 40px;
  padding: 20px;
  background-color: #2d2d2d;
  border-radius: 10px;
  border-left: 5px solid #faa11c;
}

.contact-info h3 {
  color: #faa11c;
  margin-top: 0;
  font-size: 1.4em;
}

.contact-info a {
  color: #faa11c;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Форма заявки */
.application-form {
  margin-top: 50px;
  padding: 30px;
  background-color: #2d2d2d;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.application-form h2 {
  color: #faa11c;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.6em;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  font-size: 1em;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #faa11c;
  box-shadow: 0 0 5px rgba(250, 161, 28, 0.3);
}

.form-group textarea {
  resize: vertical;
}

.application-form .btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
}

/* Галерея товара с миниатюрами */
.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.main-image-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
  cursor: zoom-in;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: scale(1.02);
}

.thumbnails {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 2px solid #444;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.thumb.active {
  border-color: #faa11c;
  opacity: 1;
  box-shadow: 0 0 8px rgba(250, 161, 28, 0.5);
}

.thumb:hover {
  opacity: 1;
  transform: scale(1.04);
  border-color: #faa11c;
}


/* Модальное окно для увеличения изображения */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 70%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-left: 15%;
  /*! margin: 50px; */
}

.modal.show {
  display: flex;
}

.modal-content {
  max-width: 90vw;
  max-height: 93vh;
  object-fit: contain;
  border: 2px solid #faa11c;
  border-radius: 8px;
  /*! box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); */
  transition: transform 0.2s ease;
}

.modal-content:hover {
  transform: scale(1.02);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 71px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  z-index: 10;
}

.close:hover {
  color: #faa11c;
}

@font-face {
  font-family: "Open Sans";
  src:
    url("/fonts/jaro-cyrillic.otf") format("woff2"),
}

@font-face {
  font-family: "EuropeCondBold";
  src:
    url("/fonts/EuropeCondBold.otf") format("woff2"),
}


@font-face {
  font-family: "RussianRail_G_Pro_Regular";
  src:
    url("/fonts/RussianRail_G_Pro_Regular.otf") format("woff2"),
}

/* Бургер-меню */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Показываем бургер на мобильных */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
  }

  nav.active {
    display: flex;
  }

  .dropdown,
  .nav .btn {
    margin: 10px 20px;
  }
}

/* Адаптация для мобильных устройств (до 768px) */
@media (max-width: 768px) {
  /* Шапка */
  .header-top {
    flex-direction: column;
    gap: 8px;
    padding: 10px 15px;
    font-size: 0.85em;
  }

  .header-contacts,
  .header-social {
    justify-content: center;
  }

  /* Логотип */
  .logo img {
    height: 60px;
  }

  /* Поиск */
  .header-search {
    margin: 1px 15px;
    max-width: calc(100% - 30px);
  }

  .search-input-header {
    font-size: 16px;
    padding: 12px 15px;
  }

  /* Навигация */
  nav {
    flex-direction: column;
    align-items: stretch;
    background-color: #1a1a1a;
    border-radius: 0;
    border-top: 1px solid #444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .dropbtn,
  .nav .btn {
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 0;
    border-bottom: 1px solid #444;
  }

  /* Выпадающее меню */
  .dropdown-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    margin: 0 10px;
    width: auto;
    left: 10px;
    right: 10px;
  }

  .dropdown-content a {
    justify-content: center;
    font-size: 16px;
    padding: 12px 15px;
  }

  /* Главный экран */
  .hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 18px;
    max-width: 90%;
    line-height: 1.6;
  }

  /* Товары */
  main.products h1 {
    font-size: 2.2em;
  }

  .products-grid {
    gap: 20px;
    padding: 0 10px;
  }

  .product-link {
    max-width: 100%;
    margin: 0 auto;
  }

  .product-link img {
    height: 200px;
  }

  /* Карточка товара */
  .product-card {
    margin: 0 15px;
  }

  .product-card .description {
    padding: 0 15px 20px;
    font-size: 16px;
  }

  /* Футер */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }

  .footer-section h3::after {
    width: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    font-size: 0.8em;
  }

  /* Кнопка "Наверх" */
  .back-to-top {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 1.3em;
  }

  /* Поиск в шапке */
  .search-results-header {
    margin: 2px 5px;
    width: auto;
    max-width: calc(100% - 10px);
    font-size: 18px;
  }

  .search-results-header a {
    padding: 10px 12px;
    gap: 8px;
  }

  .search-results-header img {
    width: 60px;
    height: 60px;
  }

  /* Галерея */
  .main-image-container {
    height: 300px;
  }

  .thumbnails {
    gap: 5px;
  }

  .thumb {
    width: 45px;
    height: 45px;
  }

  /* Модальное окно */
  .modal {
    width: 90%;
    margin-left: 5%;
    padding: 10px;
  }

  .close {
    font-size: 50px;
    right: 20px;
    top: 15px;
  }

  /* Страницы контента */
  .about-page,
  .partnership-page,
  .cross-reference-page,
  .where-to-buy {
    padding: 30px 15px;
  }

  .application-form {
    padding: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
  }
}