/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  line-height: 1.6;
  color: #444;
  background-color: #f5f5f5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  background-color: #555;
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  border: 1px solid #444;
}

.btn:hover {
  background-color: #333;
  transform: translateY(-2px);
}

/* Шапка */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
}

.logo {
  font-size: 40px;
  font-weight: 700;
  color: #2c3e50;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #3498db;
}

/* Герой секция */
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Особенности */
.features .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.feature {
  flex: 1;
  min-width: 250px;
  margin: 15px;
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  background-color: #fafafa;
  border: 1px solid #eee;
}

.feature:hover {
  transform: translateY(-10px);
}

.feature .icon {
  font-size: 40px;
  margin-bottom: 20px;
  color: #666;
}

.feature h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Каталог */
.catalog {
  padding: 80px 0;
  background-color: #eee;
}

.catalog h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  color: #2c3e50;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  height: 250px;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.item:hover .overlay {
  transform: translateY(0);
}

.overlay h3 {
  margin-bottom: 10px;
}

.view-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.view-btn:hover {
  background: #2980b9;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  position: relative;
}

.modal-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  margin-bottom: 20px;
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  color: #333;
}

/* Призыв к действию */
.cta {
  padding: 80px 0;
  text-align: center;
  background-color: #444;
  color: white;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  background-color: #3498db;
}

.cta .btn:hover {
  background-color: #2980b9;
}

/* Подвал */
footer {
  background-color: #2a2a2a;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #3498db;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }

  nav ul {
    margin-top: 20px;
  }

  nav ul li {
    margin-left: 15px;
    margin-right: 15px;
  }

  .hero {
    padding: 150px 0 80px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .features .container {
    flex-direction: column;
  }

  .feature {
    margin-bottom: 30px;
  }
}
/* Стили для страницы каталога */
.catalog-page {
  padding: 100px 0 60px;
  background-color: #f5f5f5;
}

.catalog-page h1 {
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
  font-size: 2.2rem;
}

.catalog-filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 500;
}

.filter-group select {
  padding: 8px 15px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: white;
  min-width: 200px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.catalog-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.catalog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.item-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.catalog-item:hover .item-image img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.badge.new {
  background-color: #3498db;
}

.badge.popular {
  background-color: #e74c3c;
}

.item-info {
  padding: 20px;
}

.item-info h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #2c3e50;
}

.item-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.price {
  font-weight: bold;
  color: #2c3e50;
  font-size: 1.1rem;
}

.rating {
  color: #f39c12;
}

.catalog-item .btn {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 40px;
}

.pagination a {
  display: inline-block;
  padding: 8px 15px;
  background-color: white;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.pagination a.active,
.pagination a:hover {
  background-color: #3498db;
  color: white;
}
/* Стили для страницы услуг */
.services-page {
  padding: 100px 0 60px;
  background-color: #f5f5f5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: white;
  padding: 30px 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 50px;
  margin-bottom: 20px;
  color: #666;
}

.service-card h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.service-card p {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Стили для страницы оптовикам */
.wholesale-page {
  padding: 100px 0 60px;
  background-color: #f5f5f5;
  text-align: center;
}

.wholesale-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.wholesale-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Стили для страницы доставки */
.delivery-page {
  padding: 100px 0 60px;
  background-color: #f5f5f5;
}

.delivery-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.delivery-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.delivery-content img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Стили для страницы контактов */
.contacts-page {
  padding: 100px 0 60px;
  background-color: #f5f5f5;
}

.contacts-content {
  position: relative;
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contacts-overlay {
  position: absolute;
  top: 30px;
  left: 30px;
  background-color: rgba(250, 250, 250, 0.95);
  padding: 15px;
  border-radius: 8px;
  max-width: 300px;
}

.contacts-overlay h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.contacts-overlay p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.contacts-overlay strong {
  color: #3498db;
}

@media (max-width: 768px) {
  .contacts-overlay {
    position: relative;
    top: auto;
    left: auto;
    max-width: 100%;
    margin-top: -5px;
  }
}
.item img,
.catalog-item .item-image img,
.delivery-content img {
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}
.item:hover img,
.catalog-item:hover .item-image img,
.delivery-content img:hover {
  filter: grayscale(5%);
}

body {
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #121212;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Шапка - Темная */
header {
  background-color: #1e1e1e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #333;
}

.logo {
  font-size: 60px;
  font-weight: 700;
  color: #f0f0f0;
}

nav ul li a {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #3498db;
}

.feature {
  flex: 1;
  min-width: 250px;
  margin: 15px;
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  background-color: #252525;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #333;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.feature .icon {
  color: #3498db;
}

/* Каталог - Темный */
.catalog {
  padding: 80px 0;
  background-color: #121212 !important;
}

.gallery {
  gap: 25px;
}

.item {
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  height: 250px;
  border: 1px solid #333;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.overlay {
  background: linear-gradient(to top, rgba(30, 30, 30, 0.95), transparent);
}

.view-btn {
  background: #3498db;
}

.view-btn:hover {
  background: #2980b9;
}

/* Модальное окно - Темное */
.modal {
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  background-color: #1e1e1e;
  border: 1px solid #444;
  color: #f0f0f0;
}

.close {
  color: #aaa;
}

/* Призыв к действию - Темный с акцентом */
.cta {
  padding: 80px 0;
  text-align: center;
  background-color: #1a1a1a;
  color: white;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

/* Подвал - Темный */
footer {
  background-color: #121212;
  color: #aaa;
  border-top: 1px solid #333;
}

.footer-section h3 {
  color: #3498db;
}

.copyright {
  border-top: 1px solid #333;
}

/* Страница каталога - Темная */
.catalog-page {
  background-color: #151515;
}

.catalog-item {
  background-color: #24242435;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
}

.item-info h3 {
  color: #f0f0f0;
}

.item-description {
  color: #bbb;
}

.price {
  color: #f0f0f0;
}

.pagination a {
  background-color: #252525;
  color: #f0f0f0;
  border: 1px solid #333;
}

.pagination a.active,
.pagination a:hover {
  background-color: #3498db;
}

.modal-left {
  border-right: 1px solid #333;
}
.main-image {
  background-color: #252525;
  border-radius: 8px;
}
.thumbnail {
  border: 2px solid #444;
}

.btn.primary {
  background-color: #3498db;
}

.btn.secondary {
  background-color: #2c2c2c;
  color: #f0f0f0;
}

.btn.secondary:hover {
  background-color: #333;
}

/* Страницы услуг, опта, доставки, контактов */
.services-page,
.wholesale-page,
.delivery-page,
.contacts-page {
  background-color: #151515;
}

.service-card,
.wholesale-content,
.delivery-content {
  background-color: #12121200;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #1e1e1e;
}

.service-card p {
  color: #bbb;
}

.contacts-overlay {
  background-color: rgba(30, 30, 30, 0.95);
  border: 1px solid #444;
}

.contacts-overlay h3 {
  color: #f0f0f0;
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero {
    padding: 150px 0 80px;
  }

  .modal-left {
    border-right: none;
    border-bottom: 1px solid #333;
  }
}
.catalog-filters select {
  background-color: #252525;
  color: #f0f0f0;
  border: 1px solid #444;
}

.catalog-filters select option {
  background: #252525;
  color: #f0f0f0;
}
.catalog-filters label {
  color: #bbb;
}
.pagination a {
  background-color: #252525;
  color: #f0f0f0;
  border: 1px solid #333;
}
.catalog-page {
  background-color: #151515;
}
.logo img {
  max-height: 50px;
  width: auto;
  display: block;
}
/* Адаптация под мобильные устройства */
@media (max-width: 600px) {
  .container {
    width: 100%;
    padding: 0 8px;
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .logo {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .logo img {
    max-height: 40px;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 10px;
  }
  nav ul li {
    margin: 0 0 10px 0;
  }

  .hero {
    padding: 90px 0 40px;
    margin-top: 50px;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .hero p {
    font-size: 1rem;
    padding: 0 5px;
  }

  .features {
    padding: 40px 0;
  }
  .features .container {
    flex-direction: column;
    gap: 16px;
  }
  .feature {
    margin: 10px 0;
    padding: 18px 10px;
    min-width: unset;
  }

  .catalog {
    padding: 40px 0;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .item {
    height: 180px;
  }

  .catalog h2 {
    font-size: 1.3rem;
    margin-bottom: 25px;
  }

  .cta {
    padding: 40px 0;
  }
  .cta h2 {
    font-size: 1.2rem;
  }
  .cta p {
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
  }
  .footer-section {
    min-width: unset;
    margin-bottom: 18px;
    padding: 0 5px;
  }

  .modal-content {
    padding: 10px;
    max-width: 98vw;
  }
  .modal-image {
    max-height: 40vh;
  }
  .close {
    top: 5px;
    right: 10px;
    font-size: 2rem;
  }

  /* Каталог, услуги, доставка, контакты */
  .catalog-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .catalog-item,
  .service-card {
    padding: 15px 8px;
  }
  .item-image,
  .main-image {
    height: 120px;
  }
  .contacts-overlay {
    padding: 12px;
    max-width: 100%;
  }
  .wholesale-content,
  .delivery-content {
    padding: 15px 8px;
  }
  .pagination {
    gap: 2px;
  }
}
/* --- Бургер-меню и мобильная навигация --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  margin-left: auto;
}
.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #3498db;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}
/* --- Улучшенный бургер и мобильное меню --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  margin-left: auto;
}
.burger span {
  display: block;
  height: 4px;
  width: 30px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}
.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 600px) {
  header {
    background: #232323;
    border-bottom: 1px solid #333;
  }
  .burger {
    display: flex;
  }
  nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100vw;
    background: #181818;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    z-index: 1000;
    padding: 0;
    animation: fadeInMenu 0.25s;
  }
  @keyframes fadeInMenu {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  nav.open {
    display: flex;
  }
  nav ul {
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  nav ul li {
    margin: 0;
    border-bottom: 1px solid #222;
    padding: 0;
    text-align: left;
  }
  nav ul li a {
    color: #fff !important;
    font-size: 1.1rem;
    display: block;
    padding: 18px 24px;
    transition: background 0.2s, color 0.2s;
  }
  nav ul li a:hover {
    background: #232323;
    color: #3498db !important;
  }
  header .container {
    position: relative;
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
  }
  .logo {
    font-size: 32px;
    margin-bottom: 0;
  }
  .logo img {
    max-height: 36px;
  }
  .hero {
    padding: 70px 0 30px;
    margin-top: 0;
    text-align: center;
  }
  .hero h1 {
    font-size: 1.1rem;
    padding: 0 5px;
  }
  .hero p {
    font-size: 0.95rem;
    padding: 0 5px;
  }
  .features {
    padding: 30px 0;
  }
  .features .container {
    flex-direction: column;
    gap: 10px;
  }
  .feature {
    margin: 8px 0;
    padding: 14px 8px;
    min-width: unset;
    font-size: 0.98rem;
  }
  .gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .item {
    width: 100%;
    min-width: 0;
    height: 160px;
  }
  .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
  .catalog h2 {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }
  .cta {
    padding: 30px 0;
  }
  .cta h2 {
    font-size: 1.1rem;
  }
  .cta p {
    font-size: 1rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 0;
    margin-bottom: 10px;
  }
  .footer-section {
    min-width: unset;
    margin-bottom: 12px;
    padding: 0 5px;
    text-align: center;
  }
  .modal-content {
    padding: 8px;
    max-width: 98vw;
  }
  .modal-image {
    max-height: 40vh;
  }
  .close {
    top: 5px;
    right: 10px;
    font-size: 2rem;
  }
  .catalog-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .catalog-item,
  .service-card {
    padding: 10px 5px;
  }
  .item-image,
  .main-image {
    height: 90px;
  }
  .contacts-overlay {
    padding: 8px;
    max-width: 100%;
  }
  .wholesale-content,
  .delivery-content {
    padding: 10px 5px;
  }
  .pagination {
    gap: 2px;
  }
}
/* --- Декор для мобильных устройств --- */
@media (max-width: 600px) {
  header .container {
    padding: 6px 0;
  }
  .logo {
    font-size: 24px;
    margin-bottom: 0;
  }
  .logo img {
    max-height: 32px;
  }
  .burger {
    width: 48px;
    height: 48px;
  }
  .burger span {
    width: 32px;
    height: 4px;
    margin: 6px 0;
    background: #fff;
  }
  nav ul li a {
    font-size: 1.15rem;
    padding: 18px 18px;
    letter-spacing: 0.5px;
  }
  .hero {
    padding: 48px 0 24px;
    margin-top: 0;
  }
  .hero h1 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  .btn,
  .view-btn {
    font-size: 1.1rem;
    padding: 14px 0;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
  }
  .features {
    padding: 24px 0;
  }
  .feature {
    margin: 10px 0;
    padding: 18px 10px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.08);
    font-size: 1rem;
  }
  .feature .icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }
  .gallery {
    gap: 18px;
  }
  .item {
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
    height: 180px;
  }
  .item img {
    border-radius: 14px;
  }
  .overlay {
    padding: 14px;
    border-radius: 0 0 14px 14px;
    font-size: 1rem;
  }
  .catalog h2 {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }
  .cta {
    padding: 24px 0;
    border-radius: 14px;
    margin: 12px 0;
  }
  .cta h2 {
    font-size: 1.1rem;
  }
  .cta p {
    font-size: 1rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 0;
    margin-bottom: 10px;
    text-align: center;
  }
  .footer-section {
    min-width: unset;
    margin-bottom: 12px;
    padding: 0 5px;
    text-align: center;
  }
  .copyright {
    font-size: 0.95rem;
    padding-top: 10px;
  }
  .modal-content {
    padding: 8px;
    max-width: 98vw;
    border-radius: 14px;
  }
  .modal-image {
    max-height: 40vh;
    border-radius: 10px;
  }
  .close {
    top: 5px;
    right: 10px;
    font-size: 2rem;
  }
  /* Плавное появление секций */
  section,
  .feature,
  .item,
  .catalog-item,
  .service-card {
    animation: fadeInMobile 0.7s;
  }
  @keyframes fadeInMobile {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
/* --- Индивидуальные улучшения для мобильных устройств --- */
@media (max-width: 600px) {
  /* 1. Скрыть подзаголовок в hero */
  .hero p {
    display: none !important;
  }

  /* 2. Компактные фичи: две в ряд, одна под ними */
  .features .container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    justify-items: center;
    align-items: stretch;
  }
  .feature {
    margin: 0 !important;
    padding: 10px 6px !important;
    min-width: 0 !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(52, 152, 219, 0.08);
  }
  .feature .icon {
    font-size: 1.5rem !important;
    margin-bottom: 6px !important;
  }
  .feature:nth-child(3) {
    grid-column: 1 / span 2;
    width: 80%;
    margin: 0 auto !important;
  }

  /* 3. "Наши работы" — крупнее и ярче */
  .catalog h2 {
    font-size: 1.35rem !important;
    margin-bottom: 14px !important;
    color: #fff !important;
    background: linear-gradient(90deg, #3498db 0%, #1e1e1e 100%);
    padding: 10px 0 10px 12px;
    border-radius: 8px;
    letter-spacing: 1px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
  }

  /* 4. Галерея: две картинки в ряд, маленькие */
  .gallery {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .item {
    height: 90px !important;
    min-width: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 4px rgba(52, 152, 219, 0.1);
  }
  .item img {
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
  }

  /* 5. Модальное окно: выход по клику вне картинки */
  .modal {
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
  }
  .modal-content {
    background: #181818 !important;
    border-radius: 12px !important;
    padding: 6px !important;
    max-width: 90vw !important;
    max-height: 60vh !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
  }
  .modal-image {
    max-width: 100%;
    max-height: 40vh;
    border-radius: 8px;
    margin-bottom: 8px;
    pointer-events: auto;
  }
  .modal-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0;
    pointer-events: auto;
  }
  .close {
    display: none !important;
  }
}
/* --- Доработки мобильной главной страницы --- */
@media (max-width: 600px) {
  /* Кнопка "Посмотреть каталог" поменьше */
  .hero .btn {
    font-size: 0.95rem;
    padding: 10px 0;
    width: 90%;
    max-width: 260px;
    margin: 0 auto 18px auto;
    display: block;
  }

  /* БОЛЬШОЙ отступ между hero и features */
  .hero {
    padding-bottom: 18px !important;
    margin-bottom: 38px !important;
  }

  /* БОЛЬШОЙ отступ между features и "Наши работы" */
  .features {
    margin-bottom: 38px !important;
  }

  /* БОЛЬШОЙ отступ между "Наши работы" и галереей */
  .catalog h2 {
    margin-bottom: 18px !important;
  }

  /* Галерея: картинки крупнее, чуть более вытянутые, форма "карточки" */
  .gallery {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .item {
    height: 120px !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.13);
    background: #232323;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 4px rgba(52, 152, 219, 0.1);
  }

  /* БОЛЬШОЙ отступ между галереей и .cta */
  .catalog {
    margin-bottom: 38px !important;
  }

  /* БОЛЬШОЙ отступ между .cta и footer */
  .cta {
    margin-bottom: 28px !important;
  }

  /* Уменьшить кнопку "Посмотреть" в галерее */
  .view-btn {
    font-size: 0.95rem;
    padding: 7px 12px;
  }
}
@media (max-width: 600px) {
  /* Скрыть подзаголовок hero */
  .hero-subtitle,
  .hero p {
    display: none !important;
  }

  /* Кнопка "Посмотреть каталог" поменьше */
  .hero .btn {
    font-size: 0.95rem;
    padding: 10px 0;
    width: 90%;
    max-width: 260px;
    margin: 0 auto 18px auto;
    display: block;
  }

  /* БОЛЬШОЙ отступ между hero и features */
  .hero {
    padding-bottom: 18px !important;
    margin-bottom: 38px !important;
  }

  /* Компактные фичи: две в ряд, одна под ними */
  .features .container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    justify-items: center;
    align-items: stretch;
  }
  .feature {
    margin: 0 !important;
    padding: 10px 6px !important;
    min-width: 0 !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(52, 152, 219, 0.08);
  }
  .feature .icon {
    font-size: 1.5rem !important;
    margin-bottom: 6px !important;
  }
  .feature:nth-child(3) {
    grid-column: 1 / span 2;
    width: 80%;
    margin: 0 auto !important;
  }

  /* БОЛЬШОЙ отступ между features и "Наши работы" */
  .features {
    margin-bottom: 38px !important;
  }

  /* "Наши работы" — крупнее и ярче */
  .catalog h2 {
    font-size: 1.35rem !important;
    margin-bottom: 18px !important;
    color: #fff !important;
    background: linear-gradient(90deg, #3498db 0%, #1e1e1e 100%);
    padding: 10px 0 10px 12px;
    border-radius: 8px;
    letter-spacing: 1px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
  }

  /* Галерея: картинки крупнее, чуть более вытянутые, форма "карточки" */
  .gallery {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .item {
    height: 120px !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.13);
    background: #232323;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 4px rgba(52, 152, 219, 0.1);
  }

  /* БОЛЬШОЙ отступ между галереей и .cta */
  .catalog {
    margin-bottom: 38px !important;
  }

  /* БОЛЬШОЙ отступ между .cta и footer */
  .cta {
    margin-bottom: 28px !important;
  }

  /* Уменьшить кнопку "Посмотреть" в галерее */
  .view-btn {
    font-size: 0.95rem;
    padding: 7px 12px;
  }

  /* Модальное окно: большая картинка, аккуратная подпись */
  .modal-content {
    max-width: 96vw !important;
    max-height: 80vh !important;
    padding: 8px !important;
    border-radius: 12px !important;
    background: #181818 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .modal-image {
    max-width: 100vw !important;
    max-height: 55vh !important;
    width: auto !important;
    height: auto !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    display: block;
  }
  .modal-title {
    font-size: 1.1rem !important;
    color: #fff !important;
    text-align: center;
    margin-bottom: 0;
  }
  .close {
    font-size: 2rem !important;
    top: 8px !important;
    right: 16px !important;
  }
}
/* --- Свободная и современная главная страница --- */

/* 1. Шапка — полупрозрачная и не перекрывает контент */
header {
  background: rgba(30, 30, 30, 0.85);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #222;
}
header .container {
  min-height: 70px;
}

/* 2. Hero — больше воздуха, крупный заголовок, тень */
@keyframes fadeInHero {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: #fff;
  text-shadow: 0 6px 32px rgba(52, 152, 219, 0.25), 0 2px 8px #000;
  letter-spacing: 1.5px;
  line-height: 1.15;
  animation: fadeInHero 1.5s;
}
.hero .btn {
  font-size: 1.15rem;
  padding: 18px 40px;
  border-radius: 32px;
  background: linear-gradient(90deg, #3498db 60%, #2980b9 100%);
  box-shadow: 0 4px 24px rgba(52, 152, 219, 0.18);
  margin-top: 32px;
  margin-bottom: 0;
  border: none;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.hero .btn:hover {
  background: linear-gradient(90deg, #2980b9 0%, #3498db 100%);
  box-shadow: 0 8px 32px rgba(52, 152, 219, 0.25);
  transform: translateY(-2px) scale(1.03);
}

/* 3. Features — больше воздуха, плавная анимация */

@keyframes fadeInFeatures {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.features .container {
  gap: 32px !important;
}
.feature {
  background: #181818;
  border-radius: 18px !important;
  box-shadow: 0 4px 24px rgba(52, 152, 219, 0.1);
  padding: 28px 18px !important;
  margin: 0 12px !important;
  min-width: 0 !important;
  font-size: 1.05rem !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature:hover {
  box-shadow: 0 8px 32px rgba(52, 152, 219, 0.18);
  transform: translateY(-4px) scale(1.03);
}
.feature .icon {
  font-size: 2.2rem !important;
  margin-bottom: 10px !important;
  color: #3498db;
}

/* 4. Catalog — больше отступов сверху и снизу */
.catalog {
  padding: 70px 0 60px 0 !important;
}

/* 5. Мобильная версия — ещё больше воздуха и крупнее hero */
@media (max-width: 600px) {
  header .container {
    min-height: 70px;
  }
  .hero {
    padding: 120px 0 60px 0 !important;
    margin-top: 0 !important;
  }
  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 22px;
    text-shadow: 0 2px 12px #3498db77, 0 1px 4px #000;
    padding: 0 8px;
  }
  .hero .btn {
    font-size: 1rem;
    padding: 13px 0;
    width: 95%;
    max-width: 320px;
    margin: 24px auto 0 auto;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.13);
  }
  .features {
    padding: 36px 0 24px 0 !important;
  }
  .features .container {
    gap: 14px !important;
  }
  .feature {
    padding: 14px 8px !important;
    border-radius: 12px !important;
    font-size: 0.98rem !important;
    margin: 0 0 0 0 !important;
  }
  .feature .icon {
    font-size: 1.4rem !important;
    margin-bottom: 4px !important;
  }
  .catalog {
    padding: 36px 0 24px 0 !important;
  }
}

/* 6. Плавное появление секций */
section,
.feature,
.item,
.catalog-item,
.service-card {
  animation: fadeInMobile 0.7s;
}
@keyframes fadeInMobile {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.catalog h2 {
  color: #fff !important;
  /* Можно добавить легкую тень для читаемости */
  text-shadow: 0 2px 12px #3498db77, 0 1px 4px #000;
}
/* --- Синие тени для заголовков на всех страницах --- */
.services-page h1,
.wholesale-page h1,
.delivery-page h1,
.contacts-page h1,
.catalog-page h1 {
  color: #fff !important;
  text-align: center !important;
  font-size: 2rem;
  margin-bottom: 40px;
  text-shadow: 0 4px 24px #3498db99, 0 1px 4px #000;
  font-weight: 700;
  letter-spacing: 1px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  position: relative;
  z-index: 1;
}

/* --- Белый цвет для названий услуг --- */
.services-grid .service-card h3 {
  color: #fff !important;
  text-shadow: 0 2px 8px #3498db55, 0 1px 2px #000;
}

/* --- Отступы для плашек на страницах оптовикам и доставка --- */
.wholesale-content {
  margin-top: 40px !important;
}

.delivery-content {
  margin-top: 40px !important;
}

/* --- Центрирование и тени для заголовка "Доставка" --- */
.delivery-page h1 {
  text-align: center !important;
  margin-bottom: 40px !important;
  text-shadow: 0 4px 24px #3498db99, 0 1px 4px #000;
}

/* --- Центрирование и тени для заголовка "Наши контакты" --- */
.contacts-page h1 {
  text-align: center !important;
  margin-bottom: 40px !important;
  text-shadow: 0 4px 24px #3498db99, 0 1px 4px #000;
}

/* --- Каталог: белый заголовок с синей тенью --- */
.catalog-page h1 {
  color: #fff !important;
  text-align: center !important;
  font-size: 2rem;
  margin-bottom: 40px;
  text-shadow: 0 4px 24px #3498db99, 0 1px 4px #000;
  font-weight: 700;
  letter-spacing: 1px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  position: relative;
  z-index: 1;
}

/* --- Мобильная версия: крупные картинки в каталоге --- */
@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .catalog-item .item-image,
  .item-image {
    height: 220px !important;
    min-height: 180px !important;
    max-height: 260px !important;
  }
  .catalog-item .item-image img,
  .item-image img {
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
}
@media (max-width: 600px) {
  .catalog h2 {
    font-size: 1.35rem !important;
    margin-bottom: 18px !important;
    color: #fff !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-align: center !important;
    letter-spacing: 1px;
    text-shadow: 0 2px 16px #3498dbcc, 0 1px 4px #000;
  }
}
@media (max-width: 600px) {
  .cta {
    padding: 24px 0 !important;
    background: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  .cta h2 {
    font-size: 1.1rem;
    background: none !important;
    border-radius: 0 !important;
    color: #fff !important;
    text-align: center !important;
    text-shadow: 0 2px 16px #3498dbcc, 0 1px 4px #000;
    margin-bottom: 14px;
  }
  .cta p {
    font-size: 1rem;
    color: #fff !important;
    background: none !important;
    text-align: center !important;
    margin-bottom: 18px;
  }
}
.cta .btn {
  font-size: 1.15rem;
  padding: 18px 48px;
  border-radius: 32px;
  min-width: 220px;
}
@media (max-width: 600px) {
  .cta .btn {
    width: 70%;
    min-width: 120px;
    max-width: 90vw;
    font-size: 1rem;
    padding: 13px 0;
    border-radius: 18px;
    margin: 0 auto;
    display: block;
  }
}
/* Выравнивание карточек услуг и кнопок "Подробнее" */
.services-grid {
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card .btn {
  margin-top: auto !important;
}
.catalog-grid {
  align-items: stretch;
}

.catalog-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.catalog-item .btn,
.catalog-item .view-btn {
  margin-top: auto !important;
  width: 100%;
  box-sizing: border-box;
}
.catalog-item .item-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-item .item-info .btn,
.catalog-item .item-info .view-btn {
  margin-top: auto !important;
  width: 100%;
  box-sizing: border-box;
}
/* Сделать картинки в каталоге крупнее на всех устройствах */
.item-image {
  height: 300px !important;
  min-height: 220px !important;
  max-height: 340px !important;
}
.item-image img {
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}
@media (max-width: 600px) {
  .item-image {
    height: 220px !important;
    min-height: 180px !important;
    max-height: 260px !important;
  }
  .item-image img {
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
}
@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .catalog-item {
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.1);
    padding: 10px 6px !important;
    background: #232323 !important;
  }
  .item-image {
    height: 180px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
  }
  .item-image img {
    border-radius: 12px !important;
    object-fit: cover !important;
    height: 100% !important;
    width: 100% !important;
  }
  .item-info {
    padding: 0 !important;
  }
  .item-info h3 {
    font-size: 1.05rem !important;
    color: #fff !important;
    margin-bottom: 6px !important;
    text-align: center !important;
  }
  .item-description {
    font-size: 0.97rem !important;
    color: #bbb !important;
    margin-bottom: 8px !important;
    text-align: center !important;
  }
  .item-meta {
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    margin-bottom: 8px !important;
  }
  .price {
    font-size: 1.05rem !important;
    color: #fff !important;
  }
  .rating {
    font-size: 1rem !important;
  }
  .catalog-item .btn {
    font-size: 1.05rem !important;
    padding: 12px 0 !important;
    border-radius: 10px !important;
    margin-top: 8px !important;
    width: 100% !important;
  }
}
.catalog-item .btn {
  background: linear-gradient(90deg, #3498db 60%, #2980b9 100%);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 10px 0;
  margin-top: 10px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  letter-spacing: 0.5px;
}

.catalog-item .btn:hover {
  background: linear-gradient(90deg, #2980b9 0%, #3498db 100%);
  box-shadow: 0 8px 32px rgba(52, 152, 219, 0.18);
  transform: translateY(-2px) scale(1.03);
  color: #fff;
}
.catalog-item .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
@media (max-width: 600px) {
  .back-arrow {
    top: 61px;
    left: 12px;
    width: 56px;
    height: 56px;
  }
  .back-arrow svg {
    width: 48px;
    height: 48px;
  }
  .product-main-image {
    height: 260px;
  }
  .product-thumb {
    width: 72px;
    height: 72px;
  }
  .product-hero {
    gap: 12px;
    padding: 12px 0 8px 0;
  }
  .product-gallery {
    gap: 8px;
  }
  .product-hero-info {
    padding: 0 6px;
  }
}
.back-arrow {
  position: fixed;
  left: 12px;
  z-index: 1100;
  background: none;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
  outline: none;
  padding: 0;
  box-shadow: none;
}
.back-arrow:hover,
.back-arrow:focus {
  background: none;
  transform: scale(1.13);
}
.back-arrow svg {
  display: block;
  width: 48px;
  height: 48px;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 64px;
  padding: 0 16px;
}
.logo img {
  max-height: 40px;
  width: auto;
  display: block;
}
nav ul {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav ul li {
  margin: 0;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s;
  font-weight: 500;
}
nav ul li a.active,
nav ul li a:hover {
  background: rgba(52, 152, 219, 0.1);
  color: #fff;
}
@media (max-width: 900px) {
  .header-flex {
    gap: 8px;
    min-height: 56px;
    padding: 0 6px;
  }
  .logo img {
    max-height: 36px;
  }
  nav ul {
    gap: 6px;
  }
  nav ul li a {
    padding: 6px 8px;
    font-size: 0.97rem;
  }
}
@media (max-width: 900px) {
  .burger {
    display: flex;
  }
  nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: #232323;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px 24px;
    z-index: 1100;
  }
  nav.nav-open {
    display: flex;
  }
  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  nav ul li {
    width: 100%;
    margin: 0;
  }
  nav ul li a {
    display: block;
    width: 100%;
    padding: 16px 0;
    border-radius: 0;
    border-bottom: none;
    border-top: none;
    text-align: left;
    font-size: 1.1rem;
  }
}
body {
  background: #232323;
  color: #fff;
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #232323;
}
main {
  padding-top: 80px;
}
.product-hero {
  width: 100%;
  background: none;
}
@media (max-width: 900px) {
  nav ul li a {
    background: none !important;
    color: #fff !important;
    position: relative;
    transition: color 0.2s;
  }
}
nav ul li a,
nav ul li a:visited {
  text-decoration: none !important;
  background: none !important;
  color: #fff !important;
  position: relative;
  transition: color 0.2s;
}

nav ul li a.active,
nav ul li a:hover {
  color: #3498db !important;
  background: none !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  nav ul li a.active,
  nav ul li a:hover {
    color: #3498db !important;
    background: none !important;
    text-decoration: none !important;
  }
}
.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 47px; /* для символов-иконок */
}

.service-icon img,
.service-icon svg {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
.service-icon-big {
  font-size: 70px;
  line-height: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.btn-large {
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: 9px;
}
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 8px 0 0 0;
  padding: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #232323;
  color: #fff;
  font-size: 1.9rem;
  transition: background 0.2s, color 0.2s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.08);
  text-decoration: none;
}

.footer-social a:hover {
  background: #3498db;
  color: #fff;
  transform: translateY(-3px) scale(1.12);
  box-shadow: 0 4px 16px #3498db44;
}

@media (max-width: 600px) {
  .footer-social {
    gap: 14px;
    padding: 12px 0 0 0;
  }
  .footer-social a {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }
}
a {
  color: #3498db;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover {
  color: #217dbb;
  text-decoration: none;
}
.features {
  padding: 70px 0 60px 0 !important;
  background: #181818 !important;
  animation: fadeInFeatures 1.2s;
}
.hero-features-bg {
  position: relative;
  background: url("images/proizvodgpt.png") center center/cover no-repeat;
}
.hero {
  padding: 180px 0 60px 0;
  text-align: center;
}
.features {
  padding: 0 0 60px 0 !important;
}
.hero,
.features {
  background: none !important;
  position: relative;
  z-index: 2;
}
.hero-features-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.35); /* или другое значение прозрачности */
  z-index: 1;
}
header {
  background: #121212 !important;
}
.header-home {
  background: #1111114b !important;
}
.hero .btn:hover,
.hero .btn:focus {
  color: #fff !important;
}
.hero .btn,
.hero .btn:hover,
.hero .btn:focus {
  text-decoration: none !important;
}
body {
  background: #121212 !important;
}
body.index {
  background: #232323; /* или тот цвет, который нужен на главной */
}
.footer-social a {
  text-decoration: none !important;
}
.footer-social a:hover {
  text-decoration: none !important;
}
.contacts-modal .modal-content {
  background: #181818;
  color: #fff;
  border-radius: 16px;
  padding: 22px 18px 18px 18px;
  min-width: 0;
  max-width: 340px;
  width: 94vw;
  box-shadow: 0 8px 32px #0008;
  position: relative;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacts-modal .contacts-modal-body p {
  margin: 10px 0 0 0;
  font-size: 1.08rem;
  color: #e0e0e0;
  word-break: break-all;
}

.contacts-modal .contacts-modal-body p:first-child {
  font-size: 1.18rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.contacts-modal .contacts-modal-body a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
}
.contacts-modal .contacts-social {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.contacts-modal .contacts-social a:hover {
  color: #25d366;
  background: #181818;
  transform: scale(1.13);
}
.contacts-modal .contacts-social a[aria-label="Viber"]:hover {
  color: #7360f2;
}

.contacts-modal .close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 1.5rem;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.contacts-modal .close:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .contacts-modal .modal-content {
    padding: 12px 4vw 12px 4vw;
    max-width: 98vw;
  }
  .contacts-modal .contacts-social a {
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
  }
}
.btn-large {
  font-size: 0.9rem;
  padding: 15px 44px;
  border-radius: 15px;
}
.catalog-item .btn:hover,
.catalog-item .btn:focus {
  text-decoration: none !important;
}
.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.product-main-image {
  max-width: 480px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 6px 32px #0003, 0 1.5px 8px #2222;
  object-fit: cover;
  background: #222;
  margin-bottom: 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-main-image:hover {
  box-shadow: 0 12px 48px #0005, 0 2px 12px #2224;
  transform: scale(1.025);
}

.product-info {
  margin-top: 18px;
  padding: 18px 0 0 0;
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.product-info h1 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.product-hero-desc {
  font-size: 1.05rem;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.product-hero-specs {
  font-size: 0.97rem;
  color: #b0b0b0;
}

@media (max-width: 600px) {
  .product-main-image {
    max-width: 98vw;
    border-radius: 12px;
  }
  .product-info {
    padding: 10px 0 0 0;
  }
}
.catalog-item,
.item {
  height: 600px !important; /* Сделай такую же высоту, как у картинки */
  min-height: 600px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.catalog-item .item-image,
.item-image {
  height: 300px !important;
  min-height: 300px !important;
  max-height: 300px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.catalog-contacts-btn {
  font-size: 1.18rem !important;
  padding: 18px 48px !important;
  border-radius: 22px !important;
}
.gallery .item {
  height: 400px !important; /* нужная высота рамки */
  min-height: 400px !important;
  max-height: 400px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #232323 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
}

.gallery .item img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  display: block !important;
  margin: 0 auto !important;
}
.contacts-modal .modal-content {
  background: #18191c;
  color: #fff;
  border-radius: 12px;
  padding: 28px 20px 22px 20px;
  min-width: 0;
  max-width: 340px;
  width: 94vw;
  box-shadow: 0 8px 32px #000a, 0 1.5px 8px #2224;
  position: relative;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none !important; /* убирает рамку */
  /* "Острота" — чуть меньше скругление, контрастная рамка */
}

.contacts-modal .close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 1.7rem;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
  border-radius: 6px;
  padding: 2px 8px;
}
.contacts-modal .close:hover {
  color: #fff;
  background: #232323;
}

.contacts-modal .contacts-modal-body p {
  margin: 10px 0 0 0;
  font-size: 1.05rem;
  color: #e0e0e0;
  word-break: break-all;
}
.contacts-modal .contacts-modal-body p:first-child {
  font-size: 1.18rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.contacts-modal .contacts-modal-body a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
}
.contacts-modal .contacts-modal-body a:hover {
  color: #217dbb;
  text-decoration: none;
}

.contacts-modal .contacts-social {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.contacts-modal .contacts-social a {
  color: #fff;
  font-size: 2.2rem;
  background: #232323;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none !important;
  box-shadow: 0 2px 8px #3498db22;
  border: none !important;
}
.contacts-modal .contacts-social a:hover {
  color: #25d366;
  background: #181818;
  transform: scale(1.13);
  text-decoration: none !important;
  border: none !important;
}
.contacts-modal .contacts-social a[aria-label="Viber"]:hover {
  color: #7360f2;
}

@media (max-width: 600px) {
  .contacts-modal .modal-content {
    padding: 12px 4vw 12px 4vw;
    max-width: 98vw;
  }
  .contacts-modal .contacts-social a {
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
  }
}
.contacts-modal .contacts-social a {
  color: #fff;
  font-size: 2.2rem;
  background: none; /* было #232323 */
  border-radius: 0; /* было 50% */
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none !important;
  box-shadow: none;
  border: none !important;
}
.contacts-modal .contacts-social a:hover {
  color: #25d366;
  background: none;
  transform: scale(1.13);
  text-decoration: none !important;
  border: none !important;
}
.contacts-modal .contacts-social a[aria-label="Viber"]:hover {
  color: #7360f2;
}
.product-hero-desc {
  white-space: pre-line;
}
footer a,
footer a:visited,
footer a:hover,
footer a:active {
  text-decoration: none !important;
}
@media (max-width: 600px) {
  .logo {
    margin-left: 16px !important;
  }
}
@media (max-width: 600px) {
  .item {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 90px !important;
  }
  .item img {
    height: 100% !important;
  }
}
@media (max-width: 600px) {
  .gallery .item {
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
  }
  .gallery .item img {
    height: 100% !important;
    max-height: 250px !important;
    object-fit: cover !important;
  }
}
@media (max-width: 600px) {
  .modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  .modal-content {
    max-width: 96vw !important;
    max-height: 80vh !important;
    padding: 8px !important;
    border-radius: 12px !important;
    background: #181818 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  .modal-image {
    max-width: 90vw !important;
    max-height: 55vh !important;
    width: auto !important;
    height: auto !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    display: block;
    object-fit: contain !important;
  }
  .modal-title {
    font-size: 1.1rem !important;
    color: #fff !important;
    text-align: center;
    margin-bottom: 0;
  }
  .close {
    font-size: 2rem !important;
    top: 8px !important;
    right: 16px !important;
  }
}
@media (max-width: 600px) {
  .modal-content {
    padding: 24px !important; /* одинаковый отступ со всех сторон */
    max-width: 92vw !important;
    max-height: 76vh !important;
    box-sizing: border-box;
    background: #181818 !important;
    border-radius: 14px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .modal-image {
    max-width: 100% !important;
    max-height: 48vh !important;
    width: auto !important;
    height: auto !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    display: block;
    object-fit: contain !important;
  }
}
.contacts-social a {
  color: #fff;
  font-size: 2.2rem;
  background: none; /* было #232323 */
  border-radius: 0; /* было 50% */
  width: auto;
  height: auto;
  display: inline-block;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none !important;
  box-shadow: none;
  border: none !important;
}
.service-icon {
  color: #3498db !important;
  font-size: 48px !important;
  filter: grayscale(100%) !important;
}
.service-icon i {
  font-size: 38px; /* выбери нужный размер, например 24px или 28px */
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%; /* если карточки в сетке, это поможет выровнять */
  min-height: 260px; /* подбери под свой дизайн */
  box-sizing: border-box;
}

.service-icon {
  margin-bottom: 18px; /* расстояние между иконкой и заголовком */
  margin-top: 8px;
}

.service-card h3 {
  margin-bottom: 10px;
  margin-top: 0;
  min-height: 48px; /* одинаковая высота для всех заголовков */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

.service-card p {
  margin-top: 0;
  text-align: center;
}
@media (min-width: 601px) {
  .modal-content {
    background: #181818 !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 32px #000a, 0 2px 12px #2224;
    padding: 0 !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none !important;
    position: relative;
    transition: box-shadow 0.2s;
  }
  .modal-image {
    max-width: 80vw !important;
    max-height: 75vh !important;
    width: auto !important;
    height: auto !important;
    border-radius: 16px !important;
    margin: 0 !important;
    display: block;
    object-fit: contain !important;
    background: #232323;
    box-shadow: 0 2px 16px #3498db22;
  }
  .modal-title {
    font-size: 1.15rem !important;
    color: #fff !important;
    text-align: center;
    margin: 18px 0 10px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #3498db44, 0 1px 2px #000;
  }
  .close {
    position: absolute;
    top: 12px !important;
    right: 18px !important;
    font-size: 2.8rem !important;
    color: #fff !important;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    padding: 2px 12px;
    transition: color 0.2s, background 0.2s;
    z-index: 10;
    box-shadow: none;
    line-height: 1;
  }
  .close:hover {
    color: #3498db !important;
    background: #232323;
  }
}
@media (min-width: 601px) {
  .modal-content {
    background: #181818 !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 32px #000a, 0 2px 12px #2224;
    padding: 32px !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none !important;
    position: relative;
    transition: box-shadow 0.2s;
  }
  .modal-image {
    max-width: 90vw !important;
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
    border-radius: 18px !important;
    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
    background: #232323;
    box-shadow: 0 2px 16px #3498db22;
  }
}
  .modal-title {
    font-size: 1.15rem !important;
    color: #fff !important;
    text-align: center;
    margin: 18px 0 10px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #3498db44, 0 1px 2px #000;
  }
  .close {
    position: absolute;
    top: 12px !important;
    right: 18px !important;
    font-size: 2.8rem !important;
    color: #fff !important;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    padding: 2px 12px;
    transition: color 0.2s, background 0.2s;
    z-index: 10;
    box-shadow: none;
    line-height: 1;
  }
  .close:hover {
    color: #3498db !important;
    background: #232323;
  }

@media (min-width: 601px) {
  .modal-content {
    position: relative;
    padding: 38px 48px 32px 32px !important; /* сверху и справа больше места */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .close {
    position: absolute;
    top: 10px !important;
    right: 16px !important;
    font-size: 2.8rem !important;
    color: #fff !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    z-index: 10;
    box-shadow: none !important;
    line-height: 1;
    outline: none !important;
    transition: color 0.2s, background 0.2s, box-shadow 0s;
  }
  .close:hover {
    color: #3498db !important;
    background: none !important;
    box-shadow: none !important;
  }
}
@media (max-width: 600px) {
  .product-hero-info,
  .product-hero-meta,
  .product-hero-desc,
  .product-hero-specs,
  .product-hero-info > h1,
  .product-hero-info > button {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
  .product-hero-info {
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .product-hero-specs {
    padding-left: 0 !important;
  }
}
@media (max-width: 600px) {
  .product-gallery,
  .product-main-image,
  .product-main-image img {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    text-align: center !important;
  }
  .product-main-image img {
    max-width: 90vw !important;
    height: auto !important;
  }
}
.product-main-image {
  background: none !important; /* убираем серый фон */
  border-radius: 24px !important;
  box-shadow: 0 6px 32px #0003, 0 1.5px 8px #2222;
  overflow: hidden !important;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 18px auto;
  height: auto;
  min-height: 0;
}

.product-main-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 420px !important;
  object-fit: cover !important;
  border-radius: 24px !important;
  background: none !important;
  display: block;
  margin: 0 auto;
  box-shadow: none !important;
}
@media (max-width: 600px) {
  .product-main-image {
    max-width: 98vw;
    border-radius: 40px !important;
    overflow: hidden;
  }
  .product-main-image img {
    max-width: 90vw !important;
    height: auto !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    display: block;
  }
}
@media (max-width: 600px) {
  .product-main-image {
    width: 100% !important;
    max-width: 98vw !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #222 !important;
    box-shadow: 0 6px 32px #0003, 0 1.5px 8px #2222;
    margin: 0 auto 18px auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
  }
  .product-main-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 320px !important;
    border-radius: 18px !important;
    object-fit: cover !important;
    background: #222 !important;
    display: block !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    background: none !important;
  }
}
@media (min-width: 601px) {
.product-main-image { position: relative; }
}
@media (max-width: 600px) {
  .product-main-image {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .product-main-image img {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
  }
}
.lightbox img {
  max-width: 70vw !important;
  max-height: 70vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  display: block !important;
  border-radius: 18px !important;
}

@media (max-width: 600px) {
  .lightbox img {
    max-width: 100vw !important;
    max-height: 1000vh !important;
    border-radius: 14px !important;
    margin-left: 23vw !important; /* сдвигаем чуть правее */
  }
}
.product-thumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px; /* расстояние между миниатюрами, можно изменить */
  margin-top: 12px; /* отступ сверху, если нужно */
}

.product-thumbs img {
  display: block;
  margin: 0;
}
@media (min-width: 601px) {
  .lightbox.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .lightbox.active img {
    display: block !important;
    margin: 0 auto !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    position: absolute !important;
    max-width: 70vw !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    border-radius: 18px !important;
    background: none !important;
    box-shadow: 0 4px 32px #0003;
  }
}
@media (min-width: 601px) {
  .contacts-modal .modal-content {
    max-width: 380px !important;
    width: 94vw !important;
    max-height: 90vh !important;
    padding: 32px 24px 24px 24px !important;
    background: #181818 !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 32px #000a, 0 2px 12px #2224;
    color: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 3000 !important;
  }
}

@media (min-width: 601px) {
  /* Только для модалки с картинкой на главной */
  .modal:not(.contacts-modal) .modal-content {
    background: #181818 !important;
    border-radius: 22px !important;
    box-shadow: 0 8px 32px #000a, 0 2px 12px #2224;
    padding: 16px !important; /* одинаковый паддинг со всех сторон */
    max-width: 90vw !important;
    max-height: 90vh !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }
}
  .modal:not(.contacts-modal) .modal-image {
    max-width: 80vw !important;
    max-height: 75vh !important;
    width: auto !important;
    height: auto !important;
    border-radius: 18px !important;
    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
    background: #232323 !important;
    box-shadow: 0 2px 16px #3498db22;
  }
  .modal:not(.contacts-modal) .modal-title {
    font-size: 1.15rem !important;
    color: #fff !important;
    text-align: center;
    margin: 18px 0 10px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #3498db44, 0 1px 2px #000;
  }
  .modal:not(.contacts-modal) .close {
    position: absolute !important;
    top: 12px !important;
    right: 18px !important;
    font-size: 2.8rem !important;
    color: #fff !important;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    padding: 2px 12px;
    transition: color 0.2s, background 0.2s;
    z-index: 10;
    box-shadow: none;
    line-height: 1;
  }
  .modal:not(.contacts-modal) .close:hover {
    color: #3498db !important;
    background: #232323;
  }
  @media (min-width: 601px) {
  .modal:not(.contacts-modal) .modal-content {
    background: #181818 !important;
    border-radius: 22px !important;
    box-shadow: 0 8px 32px #000a, 0 2px 12px #2224;
    padding: 16px !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    /* ВАЖНО: никаких left/top/transform/position! */
  }
  .modal:not(.contacts-modal) .modal-image {
    max-width: 80vw !important;
    max-height: 75vh !important;
    width: auto !important;
    height: auto !important;
    border-radius: 18px !important;
    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
    background: #232323 !important;
    box-shadow: 0 2px 16px #3498db22;
  }
}
@media (max-width: 600px) {
  .product-main-image {
    max-width: 98vw;
    margin-left: auto;
    margin-right: auto;
  }
  .product-main-image img {
    width: auto;
    max-width: 100%;
    height: 220px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    object-fit: contain;
  }
}