.tab-history {
  margin-bottom: 80px;
}

.tab-pane .title {
  margin: 64px 0 56px;
  text-align: center;
  font-size: 48px;
  font-weight: 500;
  font-family: 'Cy Grotesk Key';
}

.tab-history .description {
  max-width: 800px;
  margin: 0 auto 120px;
  font-size: 21px;
  line-height: 31px;
  font-weight: 600;
  text-align: center;
}

.tab-history .text-block {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1080px;
  margin: 0 auto;
}

.tab-history .text-block .text {
  max-width: 500px;
}

.tab-history .text-block div.h2 {
  margin: 0 0 56px;
  font-family: 'Cy Grotesk Key';
  font-size: 28px;
  line-height: 30px;
  font-weight: 500;
}

.tab-history .text-block div.h2 + p {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}


.tab-history .text-block img {
  border-radius: 24px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  max-width: 486px;
}

.tab-history .text-block:last-child {
  margin-top: 80px;
}

#product_info .image-block.vertical-scroll {
  display: grid;
  grid-template-areas: 
    "bubble1 image bubble3"
    "bubble2 image bubble4";
  justify-content: center;
  gap: 48px;
  margin: 0 auto 120px;
}

#product_info .image-block img {
  grid-area: image;
  align-self: center;
  height: auto;
  border-radius: 80px;
  overflow: hidden;
}

#product_info .image-block .bubble1 {
  grid-area: bubble1;
  align-self: end;
  transform: rotate(-3deg);
}

#product_info .image-block .bubble2 {
  grid-area: bubble2;
  transform: rotate(3deg);
}

#product_info .image-block .bubble3 {
  grid-area: bubble3;
  align-self: end;
  transform: rotate(-3deg);
}

#product_info .image-block .bubble4 {
  grid-area: bubble4;
  transform: rotate(3deg);
}

#product_info .image-block .bubble span {
  display: block;
  max-width: 330px;
  padding: 42px;
  background-color: #fefefe;
  border-radius: 40px;
  font-size: 21px;
  line-height: 31px;
  text-align: center;
  font-weight: 600;
  
}

@media (max-width: 1200px) {
  #product_info .image-block.vertical-scroll {
    grid-template-areas: 
      "image image"
      "bubble1 bubble2"
      "bubble3 bubble4";
  }

  #product_info .image-block.vertical-scroll img {
    margin: 0 auto;
  }

  .tab-history .text-block .text {
    max-width: 300px;
  }
}

@media (max-width: 991px) {
  .tab-history .text-block .text {
    max-width: 250px;
  }
}

@media (max-width: 600px) {
  .tab-history {
    margin-bottom: 0;
  }

  .tab-pane .title {
    margin: 32px 0;
    font-size: 32px;
    line-height: 35px;
    text-align: start;
  }

  .tab-history .description {
    font-size: 16px;
    line-height: 22px;
    text-align: start;
  }

  #product_info .image-block.vertical-scroll,
  .tab-history .description {
    margin: 0 auto 64px;
  }

  .tab-history .text-block  {
    flex-direction: column;
    gap: 32px;
  }

  .tab-history .text-block .text {
    max-width: unset;
  }

  .tab-history .text-block div.h2 {
    margin-bottom: 32px;
    font-size: 24px;
    line-height: 26px;
  }

  .tab-history .text-block div.h2 + p {
    font-size: 14px;
    line-height: 21px;
  }

  .tab-history .text-block .image-block {
    width: 100%;
  }

  .tab-history .text-block img {
    max-width: unset;
  }

  #product_info .image-block img {
    border-radius: 64px;
  }

  .tab-history .text-block:last-child {
    margin-top: 64px;
  }

  .tab-history .text-block:last-child .image-block {
    order: 1;
  }

  #product_info .image-block.vertical-scroll {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  #product_info .image-block.vertical-scroll img {
    max-width: 100%;
    height: auto;
  }

  #product_info .image-block .bubble span {
    font-size: 16px;
    line-height: 22px;
  }

  #product_info .image-block .bubble1 {
    align-self: center;
    transform: rotate(-3deg);
  }
  
  #product_info .image-block .bubble2 {
    align-self: center;
    transform: rotate(-3deg);
  }
  
  #product_info .image-block .bubble3 {
    align-self: center;
    transform: rotate(3deg);
  }
  
  #product_info .image-block .bubble4 {
    align-self: center;
    transform: rotate(3deg);
  }

}