* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
  }
  body {
    font-family: Roboto, sans-serif;
    background-color: #fff;
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10+ */
  }
  .breadcrumbs-top {
    display: none !important;
  }

  .tousfont {
    font-family: TOUS;
  }
  
  img {
    pointer-events: none;
    -webkit-user-drag: none; /* Safari/Chrome */
    -moz-user-select: none;  /* Firefox */
    user-select: none;       /* Standard */
  }

  .main-pict,
  .main-pict img {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: block;
  }

  .section {
    padding: 20px 0px;
    text-align: center;
  }
  .section h2 {
    font-size: 80px;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  .section p {
    font-size: 24px;
    margin-bottom: 40px;
  }
  .section video {
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .promo-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    padding: 20px 0px 40px 0px;
  }
 
  .promo-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 20px 0px 40px 0px;
  }

  @media (max-width: 768px) {
    .promo-rules-grid {
      grid-template-columns: repeat(1, 1fr);
      gap: 20px;
      padding: 0px 0px 20px 0px;
  }
    .promo-grid {
      gap: 20px;
      padding: 0px 0px 20px 0px;
    }
    
  }

  .promo-box {
    position: relative;
    overflow: hidden;
    background: none;
    border: none;
    padding: 0;
  }

  .promo-image p {
  line-height: 1.2;
}

  .promo-image {
    position: relative;
    width: 100%;
    display: inline-block;
    overflow: hidden;
  }

  .promo-grid .promo-image::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.4);
    z-index: 1;
    pointer-events: auto;
    border-radius: inherit;
    transition: background 0.3s ease;
  }

  .promo-grid .promo-image:hover::before {
    background: rgba(255,255,255,0.8);
  }
  .rules-2 .overlay::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.4);
    z-index: 1;
    pointer-events: auto;
    border-radius: inherit;
    transition: background 0.3s ease;
  }

  .rules-2 .overlay:hover::before {
    background: rgba(255,255,255,0.8);
  }

  .promo-paint-effect {
    position: relative;
    z-index: 2;
  }

  @media (max-width:768px) {
    .rules-2 .promo-paint-effect {
      font-size: 1.2rem;
    }
  }
  .promo-image img {
    width: 100%;
    height: 35vh;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    pointer-events: auto;
  }
  

  .presents img {
    height: clamp(500px, 67vh, 600px) !important;
    object-fit: contain !important;
    width: 100%;
    transition: transform 0.4s ease;
  }

@media (max-width:768px) {
  .presents img {
    height: clamp(500px, 67vh, 600px) !important;
    object-fit: cover !important;
  }
}

  .promo-rules-grid .promo-image img {
    width: 100%;
    height: 35vh;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
  }

  .promo-image .promo-paint-effect {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  .promo-image .pink-paint-effect {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .promo-paint-effect {
    display: inline-block;
    padding: 20px 40px;
    color: white;
    background-image: url('/upload/custom/td2025/brush_line-3.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-weight: bold;
    font-size: 3rem;
    text-wrap: nowrap;
  }

  .pink-paint-effect {
    text-align: center;
    display: inline-block;
    padding: 20px 45px;
    color: white;
    background-image: url('/upload/custom/td2025/brush_line-pink.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    line-height: 1em;
    font-weight: bold;
    font-size: 2.6rem;
    text-wrap: nowrap;
  }

@media (max-width: 768px) {
  .promo-paint-effect {
    font-size: 2rem;
  }
  .pink-paint-effect {
    font-size: 1.3rem;
  }
  
  .gems-online-style {
    padding: 8px 16px;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    border-radius: 6px;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    letter-spacing: 2px;
    font-weight: 500;
    border: none;
  }
}

  .promo-flex {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .promo-flex-image,
  .promo-flex-content {
    flex: 1;
    min-width: 0; /* важно для вложенных flex-потомков */
  }

  @media (max-width: 768px) {
    .promo-flex {
      flex-direction: column;
    }
  }

  .promo-image p {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    width: 100%;
    padding: 10px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    
  }

  /* Текстовые блоки без изображения */
  .promo-text-only {
    padding: 30px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .promo-image img,
  .products-grid img,
  .section video,
  .main-pict {
    border-radius: 4px;
  }

  .promo-text-only .promo-text-header {
    text-align: center;
    padding: 20px;
    font-size: 1.4rem;
    color: #252525;
    font-weight: bold;
  }

  .promo-text-description {
    text-align: left;
    margin: 10px 0;
    font-size: 1.0rem;
    color: #252525;
    font-weight: 400;
    line-height: 1.5em;
  }

  .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
  }
  
  .products-grid .image-box {
    aspect-ratio: 1;
    height: auto;
  }
  
  .products-grid .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .products-grid div {
    position: relative;
    overflow: hidden;
  }
  .products-grid img {
    width: 100%;
    height: auto;
    display: block;
  }
  .products-grid p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
    
  }

  .slideVideoContainer {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    overflow: hidden;
    z-index: 1;
  }

  .slideVideo {
    width: 100vw !important;
    height: auto;
    display: block;
    object-fit: cover;
  }

  .image-box {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    border: 0.75px solid rgb(214, 213, 213);
    box-shadow: 3px 3px 3px rgba(190, 190, 190, 15%);
    border-radius: 15px;
  }

  .image-box img {
    display: block;
    width: 100%;
    height: 40vh;
    transition: transform 0.4s ease;
    object-fit: cover;
  }

  .image-box:hover img {
    transform: scale(1.15);
  }

  .image-box .paint-effect {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .paint-effect {
    display: inline-block;
    padding: 10px 40px;
    color: white;
    background-image: url('/upload/custom/td2025/brush_line.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-weight: bold;
    font-size: 3rem;
  }

  /* Новый стиль как у gems-online */
  .gems-online-style {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
    border: none;
    transition: all 0.3s ease;
  }


  .gems-online-style:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: #333;
  }

  .online-block {
    display: inline-block;
    padding: 0px clamp(10px, 2vw, 15px);
    border-radius: 4px;
    border: 1px solid#dc4588;
    transition: all 0.2s ease;
    text-decoration: none;
    background-color: #dc4588;
    /* font-family: Roboto, sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 4.2vw, 2.2rem); */
    color: white;
    text-align: center;
    line-height: clamp(1em, 1.4em, 1.6em);
    white-space: nowrap;
  }

  .presents-description {
    font-size: 1.5rem;
    line-height: 1em;
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  
@media (max-width: 768px) {
    .presents-description {
      font-size: 1.2rem;
      }
  }

  .subsubh2 {
      font-size: 4.5rem !important;
    }
  .online-subh2 {
      font-size: 3rem !important;
    }

  @media (max-width: 768px) {
    .section h2 {
      font-size: 4rem !important;
    }
    .subh2 {
      font-size: 2.3rem !important;
    }
    .subsubh2 {
      font-size: 1.9rem !important;
    }
    .products-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid .image-box {
      aspect-ratio: 1;
      height: auto;
    }
    
    .products-grid .image-box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .promo-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 480px) {
    .products-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      padding: 5px;
    }
  }

  .fade-in-left, .fade-in-right {
    opacity: 0;
    transform: translateX(50px); /* по умолчанию вправо */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .fade-in-left {
    transform: translateX(-50px); /* влево */
  }

  .fade-in-visible {
    opacity: 1;
    transform: translateX(0);
  }

  
@media (max-width: 768px) {
  .main-pict,
  .main-pict img,
  .slideVideoContainer,
  .slideVideo {
    display: block;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  body.page-tous .limiter,
  .tous-landing .limiter,
  .limiter.tous-fix {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
  .td-button {
    display: inline-block;
    padding: clamp(8px, 2vw, 14px) clamp(20px, 4vw, 40px);
    border-radius: 4px;
    border: 1px solid #252525;
    transition: all 0.2s ease;
    text-decoration: none;
    background-color: #252525;
    font-family: Roboto, sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 4.2vw, 2.2rem);
    color: white;
    text-align: center;
    line-height: 2em;
    white-space: nowrap;
  }

  .td-button:hover {
    background-color: #dc4588;
    border-color: #dc4588;
    border-radius: 40px;
    color: #252525;
  }

  .divider {
    width: 80%;
    height: 1px;
    background-color: rgba(128, 128, 128, 0.3);
    margin: 20px auto;
    border: none;
  }

.desktop-only {
    display: block;
  }
  .mobile-only {
    display: none;
  }

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}

.anchor {
  text-decoration:underline;
  color:#252525;
  font-weight:bold;

}

.discount-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 10;
  position: relative;
}

.center-block {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 20px 0px;
}




/* Lab Gems Section Styles */
.lab-gems-section {
  position: relative;
  width: 100vw;
  height: 80vh;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px 0px;
}


.gems-title {
  color: #fff;
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: bold;
  text-align: center;
  margin: 0;
  text-shadow: 
    2px 2px 6px rgba(255, 136, 0, 0.752);
  letter-spacing: 2px;
  z-index: 3;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
} 

.gems-sub-title {
  color: #fff;
  font-size: clamp(3.0rem, 4.5vw, 4.5rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 
    2px 2px 6px rgba(241, 65, 12, 0.931);
  letter-spacing: 2px;
  z-index: 3;
  position: relative;
  /* transform: translate(-50%, -50%); */
  /* white-space: nowrap; */
  text-transform: uppercase;
} 

.gems-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 1080px;
}

.gems-online {
  position: absolute;
  top: 15%;
  right: 15%;
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 
    0 4px 15px rgba(255, 71, 87, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 4;
  transform: rotate(-8deg);
  animation: pulse-glow 2s ease-in-out infinite;
}

.gems-online::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #ffaa3b, #ff6b35);
  border-radius: 27px;
  z-index: -1;
  animation: rotate-border 3s linear infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 
      0 4px 15px rgba(255, 71, 87, 0.4),
      0 0 0 3px rgba(255, 255, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 
      0 6px 20px rgba(255, 71, 87, 0.6),
      0 0 0 5px rgba(255, 255, 255, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

  .gems-cta {
    margin: 0 auto;
    z-index: 3;
    position: relative;
  }

/* Вторая секция - грид картинка-описание */
.lab-gems-section-2 {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(135deg, #ffefe5 0%, #ffffff 100%);

  overflow: hidden;
  padding: 40px 0px;
}

/* Третья секция - грид картинка-описание с белым фоном */
.lab-gems-section-3 {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #ffffff;
  overflow: hidden;
  padding: 20px 0;
}

/* Стили для горизонтальной цепи */
.chain-horizontal {
  width: 100vw;
  max-height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: calc(-50vw + 50%);
  position: relative;
  opacity: 0;
  transform: translateX(100vw);
  animation: slideInFromRight 1s ease-out 0.5s forwards;
}

.chain-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Анимация выезда цепочки справа */
@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(90vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.floating-necklace {
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.floating-necklace img {
  width: 1400px;
  height: auto;
  object-fit: cover;
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.2));
}

.section-title {
  color: #333;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 80px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 95vw;
  margin: 0 auto;
}

/* Скрытие рекламных iframe и блоков */
/* .gems-grid iframe,
.gems-grid [id*="medium"],
.gems-grid [id*="imedium"],
.lab-gems-section-2 iframe,
.lab-gems-section-2 [id*="medium"],
.lab-gems-section-2 [id*="imedium"],
div[id*="medium-r-"],
iframe[id*="imedium-fr-"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
  left: -9999px !important;
} */

.gems-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(255, 255, 255, 0); */
  border-radius: 15px;
  /* border: 1px solid rgba(127, 127, 127, 0.2); */
  padding: 0;
  /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  min-height: 350px;
}

.gems-item:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 15px 40px rgba(0,0,0,0.15); */
}

.gems-item:hover .gems-image img {
  transform: scale(1.05);
}

.gems-item:hover .gems-description {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Убираем row-reverse, так как теперь используем абсолютное позиционирование */


.gems-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-align: center;
  filter: 
          drop-shadow(0 4px 15px rgba(158, 116, 155, 0.2))
          drop-shadow(0 2px 8px rgba(158, 116, 155, 0.1));
  transition: filter 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.gems-image:hover {
  filter: 
          drop-shadow(0 6px 20px rgba(158, 116, 155, 0.3))
          drop-shadow(0 3px 12px rgba(158, 116, 155, 0.2));
  transform: translateY(-2px);
}

.gems-image img {
  width: 100%;
  height: 100%;
  max-width: 600px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.gems-description {
  position: relative;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 25px;
  margin: 20px;
  color: #000;
  max-width: 400px;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.gems-description h3 {
  color: #333;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

.gems-description p {
  color: #666;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  margin: 0;
}



.gems-button {
  background: linear-gradient(45deg, #dc4588, #ff6b9d);
  border: none;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(220, 69, 136, 0.3);
  transition: all 0.3s ease;
}

.gems-button:hover {
  background: linear-gradient(45deg, #ff6b9d, #dc4588);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 69, 136, 0.4);
}

.gem-item {
  position: absolute;
  transition: all 0.3s ease;
  z-index: 2;
  opacity: 0;
}

.gem-item.gem-visible {
  opacity: 1;
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Начальные позиции для анимации въезда */
.gem-1 { transform: translateY(-200px); } /* сверху */
.gem-2 { transform: translateY(-200px); } /* сверху */
.gem-3 { transform: translateY(-200px); } /* сверху */
.gem-4 { transform: translateX(200px); } /* справа */
.gem-5 { transform: translateX(200px); } /* справа */
.gem-6 { transform: translateY(200px); } /* снизу */
.gem-7 { transform: translateY(200px); } /* снизу */
.gem-8 { transform: translateY(-200px); } /* сверху */
.gem-9 { transform: translateY(200px); } /* снизу */
.gem-10 { transform: translateX(-200px); } /* слева */
.gem-11 { transform: translateX(-200px); } /* слева */
.gem-12 { transform: translateX(-200px); } /* слева */

/* Финальные позиции после анимации */
.gem-1.gem-visible { transform: translateY(0); }
.gem-2.gem-visible { transform: translateY(0); }
.gem-3.gem-visible { transform: translateY(0); }
.gem-4.gem-visible { transform: translateX(0); }
.gem-5.gem-visible { transform: translateX(0); }
.gem-6.gem-visible { transform: translateY(0); }
.gem-7.gem-visible { transform: translateY(0); }
.gem-8.gem-visible { transform: translateY(0); }
.gem-9.gem-visible { transform: translateY(0); }
.gem-10.gem-visible { transform: translateX(0); }
.gem-11.gem-visible { transform: translateX(0); }
.gem-12.gem-visible { transform: translateX(0); }

/* Анимации для второй секции - въезд снизу */
.gem-2-1 { transform: translateY(200px); }
.gem-2-2 { transform: translateY(200px); }
.gem-3-3 { transform: translateY(200px); }

.gem-2-1.gem-visible { transform: translateY(0); }
.gem-2-2.gem-visible { transform: translateY(0); }
.gem-3-3.gem-visible { transform: translateY(0); }

.gem-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gem-item:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4)) brightness(1.1);
}

/* Позиционирование украшений с увеличенными размерами */
.gem-1 {
  top: -25%;
  left: 35%;
  height: 400px;
}

.gem-2 {
  top: -30%;
  left: 52%;
  height: 520px;
}

.gem-3 {
  top: -30%;
  right: 25%;
  height: 400px;
}

.gem-4 {
  top: 25%;
  right: -5%;
  width: 300px;

}

.gem-5 {
  top: 45%;
  right:-5%;
  width: 500px;
  
}

.gem-6 {
  top: 72%;
  right: -5%;
  width: 400px;
  
}

.gem-7 {
  bottom: -15%;
  right: 35%;
  height: 260px;
}

.gem-8 {
  bottom: -35%;
  right: 45%;
  height: 580px;
}

.gem-9 {
  bottom: -30%;
  right: 60%;
  height: 420px;
}

.gem-10 {
  top: 60%;
  left: -2%;
  width: 220px;
}

.gem-11 {
  top: 25%;
  left: -5%;
  width: 400px;
}

.gem-12 {
  top: 10%;
  left: -5%;
  width: 480px;
}

/* Позиционирование под украшениями 6, 7, 8 */
.gem-2-1 {
  transform: rotate(180deg);
  top: -15%;
  right: 60%;
  height: 420px;
}

.gem-2-2 {
  top: -35%;
  right: 45%;
  height: 580px;
}

.gem-2-3 {
  top: -30%;
  right: 35%;
  height: 260px;
}



/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .lab-gems-section {
    height: 60vh;
  }
  
  .gems-title {
    top: 50%;
    font-size: clamp(2.8rem, 4vw, 3.0rem);
    text-shadow: 
    2px 2px 6px rgba(255, 136, 0, 0.752);
  }

  .gems-sub-title {
    font-size: clamp(2.8rem, 4vw, 3.0rem);
    text-shadow: 
    2px 2px 6px rgba(241, 65, 12, 0.931);
  }
  
  .gems-online {
    top: 10%;
    right: 10%;
    padding: 8px 16px;
    font-size: clamp(1.0rem, 1.5vw, 1.2rem);
    transform: rotate(-6deg);
  }
  
  /* Адаптированное расположение для планшетов */
  .gem-1 { top: -25%; left: 25%; height: 240px; }
  .gem-2 { top: -30%; left: 47%; height: 380px; }
  .gem-3 { top: -15%; right: 20%; height: 240px; }
  .gem-4 { top: 20%; right: 0%; width: 180px; }
  .gem-5 { top: 40%; right: 0%; width: 300px; }
  .gem-6 { top: 68%; right: 0%; width: 240px; }
  .gem-7 { bottom: -6%; right: 35%; height: 156px; }
  .gem-8 { bottom: -9%; right: 45%; height: 348px; }
  .gem-9 { bottom: -6%; left: 35%; height: 252px; }
  .gem-10 { top: 55%; left: 0%; width: 132px; }
  .gem-11 { top: 30%; left: -5%; width: 240px; }
  .gem-12 { top: 15%; left: -5%; width: 288px; }
  
  /* Вторая секция для планшетов */
  .lab-gems-section-2 {
    padding: 20px 0;
  }
  
  .chain-horizontal img {
    object-fit: cover;
  }

  /* Третья секция для планшетов */
  .lab-gems-section-3 {
    padding: 20px 0;
  }
  
  .floating-necklace img {
    width: 80vw;
  }
  
  .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
  }
  
  .gems-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .gems-item {
    min-height: 300px;
    padding: 0;
  }
  
  .gems-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .gems-image img {
    object-fit: cover;
  }
  
  .gems-description {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px;
    margin: 15px;
    max-width: none;
    width: calc(100% - 30px);
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 480px) {
  /* Дополнительные улучшения для кнопок на очень маленьких экранах */
  .item.product .addCartContainer .addCart,
  .item.product .btn-simple.add-cart.addCart2,
  .product .addCartContainer .addCart,
  .product .btn-simple.add-cart.addCart2 {
    padding: 8px 24px !important;
    border-radius: 8px !important;
    min-width: 120px !important;
    width: auto !important;
    text-align: center !important;
  }
  
  /* Увеличиваем высоту контейнера productColText на мобильных */
  .product .productColText {
    min-height: 140px !important;
    padding-bottom: 8px !important;
  }
  
  
  .lab-gems-section {
    height: 70vh;
  }
  
  .gems-title {
    top: 45%;
    font-size: clamp(2.5rem, 3.5vw, 2.6rem);
    text-shadow: 
    2px 2px 6px rgba(255, 136, 0, 0.752);
  }

  .gems-sub-title {
    margin-top: 30px;
    font-size: clamp(2.1rem, 3.2vw, 2.4rem);
    text-shadow: 
    2px 2px 6px rgba(241, 65, 12, 0.931);
  }
  
  .gems-online {
    top: 8%;
    right: 5%;
    padding: 6px 12px;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    transform: rotate(-5deg);
    border-radius: 15px;
  }
  
  .gems-online-style {
    padding: 6px 12px;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    border-radius: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    letter-spacing: 2px;
    font-weight: 500;
    border: none;
  }
  .gem-1 { top: -35%; left: 12%; height: 160; }
  .gem-2 { top: -10%; left: 23%; height: 208px; }
  .gem-3 { top: -25%; left: 55%; height: 160px; }
  .gem-4 { top: 20%; right: -20%; width: 120px; }
  .gem-5 { top: 40%; right: -20%; width: 200px; }
  .gem-6 { top: 68%; right: -20%; width: 160px; }
  .gem-7 { bottom: -20%; right: 3%; height: 150px; }
  .gem-8 { bottom: -30%; right: 15%; height: 232px; }
  .gem-9 { bottom: -20%; left: 25%; height: 220px; }
  .gem-10 { top: 65%; left: -2%; width: 88px; }
  .gem-11 { top: 35%; left: -15%; width: 160px; }
  .gem-12 { top: 15%; left: -25%; width: 192px; }
  
  /* Вторая секция для мобильных */
  .lab-gems-section-2 {
    padding: 0;
  }
  
  /* Третья секция для мобильных */
  .lab-gems-section-3 {
    padding: 20px 0;
  }
  
  .chain-horizontal {
    height: 40px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .chain-horizontal img {
    height: 40px;
    object-fit: cover;
  }
  
  .floating-necklace {
    top: -250px;
    
  }
  
  .floating-necklace img {
    width: 1200px;
  }
  
  .section-title {
    font-size: clamp(2.3rem, 3.5vw, 2.5rem);
    margin-top: 20px;
  }
  
  .gems-grid {
    margin-top: 50px;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .gems-item {
    min-height: 250px;
    padding: 0;
  }
  
  .gems-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .gems-image img {
    object-fit: cover;
  }
  
  .gems-description {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    margin: 10px;
    max-width: none;
    width: calc(100% - 20px);
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .gems-description h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 5px;
    margin-top: 0;
  }
  
  .gems-description p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin: 0;
    line-height: 1.4;
  }
}


@media (max-width: 768px) {
  /* Отображение 2 товаров в строке на мобильных устройствах ТОЛЬКО для страницы lab-gems */
  body.page-lab-gems .product {
    width: 50% !important;
  }
  
  body.page-lab-gems #catalog .product {
    width: 50% !important;
  }
  
  /* Улучшенные стили для кнопок "В корзину" на странице lab-gems */
  .item.product .addCartContainer .addCart,
  .item.product .btn-simple.add-cart.addCart2,
  .product .addCartContainer .addCart,
  .product .btn-simple.add-cart.addCart2 {
    padding: 12px 30px !important;
    border-radius: 10px !important;
    font-size: clamp(1rem, 2vw, 1.2rem);
    min-width: 140px !important;
    width: auto !important;
    text-align: center !important;
  }
  
  
  /* Увеличиваем высоту контейнера productColText для предотвращения сдвигов */
  .product .productColText {
    min-height: 140px !important;
    padding-bottom: 10px !important;
  }
  
}

@media (min-width:769px) {
.topBtnLeft {
  display:none !important;
}
.topBtnRight {
  display:none !important;
}
.product .middle {
  font-size:16px;
}
}

