.custom-banner-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: auto;
  gap: 20px;
}
.custom-banner-grid2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.left-column {
  display: grid;
  grid-template-rows: auto auto;
  gap: 20px;
}

.nested-top {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

.nested-bottom {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nested-bottom .product-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.right-column {
  display: flex;
  justify-content: center;
  align-items: start;
}

.right-column-element {
  background-color: var(--primary-color-green);
  padding: 20px;
  display: flex;
  flex-direction: column;
  background-color: #c6db1e;
  align-items: center;
  gap: 15px;
  box-sizing: border-box;
  border-radius: 8px; 
}

.right-column-element .text1 {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.right-column-element .text2 {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  text-align: center;
}

.right-column-element .element-photo {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.right-column-element .element-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--button-color, #fff);
  color: var(--button-text-color, #000);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
}
.my-banner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.my-banner-image img {
  width: 60%;
  height: auto;
  display: block;
}

.my-banner-text {
  flex: 1;
}

.my-banner-text h2 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .custom-banner-grid {
    grid-template-columns: 1fr;
  }

  .nested-top {
    flex-direction: column;
    align-items: stretch;
  }

  .nested-bottom .product-item {
    flex: 1 1 100%;
  }

  .my-banner {
    flex-direction: column;
    align-items: center;
  }

  .my-banner-image img {
    width: 100%;
  }

  .my-banner-text {
    width: 100%;
    text-align: center;
  }

  .right-column {
    justify-content: center;
    width: 100%;
  }

  .right-column-element {
    width: 100%;
    max-width: 400px;
  }
  .nested-bottom .product-item:nth-child(n+4) {
    display: none;
  }

}

.services-section .services-grid .service-card .overlay {
  transform: none !important;
  backface-visibility: visible !important;
  z-index: 2 !important; 
}
.services-section .services-grid .service-card .overlay {
  pointer-events: auto;
}

@media screen and (max-width: 768px) {
  .custom-banner-grid,
  .left-column,
  .nested-top,
  .product-banner,
  .banner-content,
  .custom-banner-grid2,
  .banner-text {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    flex-wrap: wrap !important;
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: auto !important;
  }

  .banner-text {
    padding: 10px 15px 15px !important;
    margin: 0 !important;
    text-align: center;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .banner-text h2 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    width: 100% !important;
  }

  .banner-text p {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    width: 100% !important;
  }

  .eshop-button {
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-block !important;
    padding: 12px 24px !important;
    font-size: 1.05rem !important;
  }

  .banner-top {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 15px !important;
    padding: 15px !important;
    justify-items: center !important;
    align-items: center !important;
    white-space: normal !important;
    animation: none !important;
  }

  .banner-top a {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .banner-top img {
    width: 80% !important;
    max-width: 120px !important;
    height: auto !important;
    margin: 0 !important;
  }

  .banner-image {
    width: 100% !important;
    max-width: 200px !important;
    margin: 0 auto 15px !important;
  }

  .banner-image img {
    width: 100% !important;
    height: auto !important;
  }

.left-column {
    display: flex !important;
    flex-direction: column !important;
  }

.custom-banner-grid2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}
.banner-text {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.banner-text h2,
.banner-text p {
  text-align: center !important;
  width: 100% !important;
}

.eshop-button {
  margin-left: auto !important;
  margin-right: auto !important;
  display: inline-block !important;
}
