* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  color: #333;
  background-color: #f9f9f9;
  max-width: 1920px;
  margin: 0 auto;
}

.where {
  padding-left: 25px;
}

.container {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* Navbar */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  max-width: 1920px;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 42px;
  font-weight: bold;
  color: #c8102e;
}

.contact-header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.contact-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}

.contact-item a {
  color: #c8102e;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #a00d24;
}

.contact-icon {
  width: 20px;
  height: 20px;
  filter: invert(30%) sepia(80%) saturate(500%) hue-rotate(340deg) brightness(90%) contrast(95%);
}

.callback-btn {
  background-color: #c8102e;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.callback-btn:hover {
  background-color: #a00d24;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #c8102e;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s;
}

/* Banner */
.banner {
  width: 100%;
  max-height: 700px;
  height: 700px;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.slider {
  width: 100%;
  height: 100%;
}

.slide {
  width: 100%;
  height: 100%;
  max-height: 700px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.banner-text {
  position: absolute;
  bottom: 20%;
  left: 20px;
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 50%;
}

/* Advantages */
.advantages {
  padding: 60px 0;
  background-color: #fff;
}

.advantages h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  color: #c8102e;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.advantage-item {
  text-align: center;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 10px;
  transition: transform 0.3s;
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-item img {
  max-width: 150px;
  margin-bottom: 15px;
}

.advantage-item p {
  font-size: 24px;
}

/* Products */
.products {
  padding: 60px 0;
}

.products h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  color: #c8102e;
}

.collection {
  margin-bottom: 40px;
}

.collection-title {
  font-size: 28px;
  color: #c8102e;
  margin-bottom: 20px;
  text-align: left;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  text-align: center;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 15px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  width: 100%;
  height: 350px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-image img.active {
  opacity: 1;
}

.image-region {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 2;
}

.product-image:has(img.image-1:not(.image-2)) .image-region[data-image="1"] {
  width: 100%;
  left: 0;
}
.product-image:has(img.image-2:not(.image-3)) .image-region[data-image="1"] {
  width: 50%;
  left: 0;
}
.product-image:has(img.image-2:not(.image-3)) .image-region[data-image="2"] {
  width: 50%;
  left: 50%;
}
.product-image:has(img.image-3:not(.image-4)) .image-region[data-image="1"] {
  width: 33.33%;
  left: 0;
}
.product-image:has(img.image-3:not(.image-4)) .image-region[data-image="2"] {
  width: 33.33%;
  left: 33.33%;
}
.product-image:has(img.image-3:not(.image-4)) .image-region[data-image="3"] {
  width: 33.33%;
  left: 66.66%;
}
.product-image:has(img.image-4) .image-region[data-image="1"] {
  width: 25%;
  left: 0;
}
.product-image:has(img.image-4) .image-region[data-image="2"] {
  width: 25%;
  left: 25%;
}
.product-image:has(img.image-4) .image-region[data-image="3"] {
  width: 25%;
  left: 50%;
}
.product-image:has(img.image-4) .image-region[data-image="4"] {
  width: 25%;
  left: 75%;
}

.availability-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #28a745;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  z-index: 3;
}

.image-switcher {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 10px 0;
}

.image-switcher:has(.switch[data-image="1"]:not(.switch[data-image="2"])) .switch {
  width: 100%;
}
.image-switcher:has(.switch[data-image="2"]:not(.switch[data-image="3"])) .switch {
  width: 50%;
}
.image-switcher:has(.switch[data-image="3"]:not(.switch[data-image="4"])) .switch {
  width: 33.33%;
}
.image-switcher:has(.switch[data-image="4"]) .switch {
  width: 25%;
}

.image-switcher .switch {
  height: 5px;
  background-color: #e0e0e0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.image-switcher .switch.active {
  background-color: #c8102e;
}

.product-card h4 {
  padding: 15px 10px;
  font-size: 18px;
  color: #333;
}

span.itemprice {
  color: #c8102e;
  font-size: 22px;
  padding-left: 25px;
}

/* About */
.about {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.about h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  color: #c8102e;
}

.about p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about .highlight {
  color: #c8102e;
  font-weight: bold;
}

/* Contacts */
.contacts {
  padding: 60px 0;
}

.contacts-grid {
  display: flex;
  gap: 20px;
}

.map, .contacts-info {
  width: 50%;
}

.contacts-info h2 {
  font-size: 36px;
  color: #c8102e;
  margin-bottom: 20px;
}

.contacts-info p {
  font-size: 16px;
  margin-bottom: 10px;
}

/* Modal Form */
.modal-form {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-form.active {
  display: flex;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.modal-content h2 {
  font-size: 24px;
  color: #c8102e;
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 16px;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  background-color: #c8102e;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #a00d24;
}

.form-success {
  text-align: center;
  font-size: 16px;
  color: #28a745;
  margin-top: 10px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: none;
  }

  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    font-size: 32px;
  }

  .contact-header {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-item {
    font-size: 12px;
  }

  .contact-icon {
    width: 20px;
    height: 20px;
  }

  .callback-btn {
    width: 100%;
    padding: 10px;
    font-size: 12px;
  }

  .banner {
    max-height: 500px;
    height: 500px;
    margin-top: 120px;
  }

  .banner-text {
    font-size: 24px;
    max-width: 80%;
  }

  .slide {
    background-image: url('mob.jpg') !important;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .advantage-item img {
    width: 100vw;
    height: auto;
    margin-bottom: 10px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    flex-direction: column;
  }

  .map, .contacts-info {
    width: 100%;
  }

  .product-image {
    height: 250px;
  }

  .collection-title {
    font-size: 24px;
  }
}