* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  font-size: 1.8rem;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  scroll-behavior: smooth;
}

._main-container {
  width: 70%;
  margin: 0 auto;
}

/* Секция 1: Главный блок (hero-block) */
.hero-block {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.background-video::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
}

video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content {
  /* position: relative; */
  z-index: 1;
  opacity: 0;
  transform: translateY(5rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.content.active {
  opacity: 1;
  transform: translateY(0);
}

.main-title {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  animation: fadeIn 1s forwards;
}

.product-image {
  width: 20%;
  height: auto;
  margin: 2rem 0;
}

.product-image.zoomIn {
  animation: zoomIn 1s forwards;
}

.main-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.product-features li {
  margin: 1rem 0;
  animation: slideInLeft 1s forwards;
}

.order-button {
  display: inline-block;
  padding: 1rem 2rem;
  margin-top: 1rem;
  background-color: #4b0082;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  border: none;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.order-button:hover {
  background-color: #6a0dad;
}

/* Секция 2 (composition-block) */
.composition-block {
  background: linear-gradient(135deg, #4b0082 0%, #c38e04 100%);
  padding: 5rem 2rem;
  text-align: center;
}

.composition-content {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-bottom: 2%;
}

.ingredients-left,
.ingredients-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ingredient {
  margin: 1rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
  color: #e6e6fa;
}

.ingredient img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: #672b62;
  display: flex;
}

.product-center {
  max-width: 100%;
  height: auto;
  margin: 0 2rem;
}

/* Секция 3 (reviews-block) */

.reviews-block {
  background: linear-gradient(45deg, #e0a822, #d19a06, #c38e04, #6a0dad, #8b008b, #d19a06, #f0b610);

  padding: 5rem 2rem;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-carousel {
  display: flex;
  align-items: center;
  transition: transform 0.5s ease-in-out;

  position: relative;
  overflow: hidden;

  width: 35rem;
  height: 35rem;
}

.review {
  max-width: 30rem;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin: 0 2rem;
  padding: 3rem 2rem;

  position: absolute;
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease-in-out, box-shadow 0.3s ease-in-out;
}

.review:hover {
  transform: scale(1.05);
  box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.3);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: linear-gradient(45deg, #4b0082, #6a0dad);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  z-index: 1;

  border-radius: 50%;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  background: linear-gradient(45deg, #6a0dad, #4b0082);
}

#prev {
  left: 30%;
}

#next {
  right: 30%;
}

.review img {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background-color: #ebca60;
  display: flex;
}

.reviewer-name {
  font-weight: bold;
}

/* Секция 4 (highlight-block) */

.highlight-block {
  background: linear-gradient(135deg, #3b007a 0%, #c38e04 100%);
  color: #e6e6fa;
  padding: 5rem 2rem;
  justify-content: center;
  align-items: center;
}

.highlight-block.active {
  display: flex;
  animation: fadeIn 1s ease-out;
}

.highlight-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.highlight-image {
  max-width: 30rem;
  height: auto;
  margin-right: 2rem;
  animation: fadeInRight 1s ease-out;
}

.highlight-description {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  opacity: 0;
  transition: all 0.8s ease;
}

.highlight-description.animate {
  opacity: 1;
  transform: translateX(0);
  animation: fadeInLeft 1s forwards;
}

.highlight-features {
  list-style: none;
  padding: 0;
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out;
}

.highlight-features li {
  margin: 0 1rem;
}

/* Секция 5 (order-block) */

.order-block {
  background: linear-gradient(135deg, #c38e04 0%, #ffd700 50%, #8b6508 100%);
  padding: 5rem 2rem;
  text-align: center;
}

.order-content {
  margin: 0 auto;
}

.timer {
  font-size: 3rem;
  margin: 2rem 0;
}

.inner {
  display: flex;
  justify-content: space-around;
}

.price {
  margin: 2rem 0;
}

.old-price {
  text-decoration: line-through;
  margin-right: 1rem;
}

.new-price {
  font-size: 3rem;
  animation: priceBlink 1s infinite ease-in-out;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-group {
  position: relative;
  margin: 2rem 0;
  width: 100%;
  text-align: left;
}

label {
  margin-left: 1rem;
}

input {
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
  border: 0.2rem solid #c38e04;
  border-radius: 0.5rem;
  font-size: 1.6rem;
  transition: border-color 0.3s ease-in-out;
}

input:focus {
  border-color: #4b0082;
  outline: none;
}

.tooltip {
  position: absolute;
  top: -2rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.5rem;
  border-radius: 0.3rem;
  display: none;
}

input:focus + .tooltip {
  display: block;
}

.product-image-order {
  width: 70%;
}

/* Анимации */

@keyframes priceBlink {
  0%,
  100% {
    color: red;
  }
  50% {
    color: orange;
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(4.5rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-5rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(5rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(5rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(0.8);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Медиа-запросы */

@media (max-width: 1000px) {
  .main-section {
    flex-direction: column;
  }

  #prev {
    left: 2rem;
  }

  #next {
    right: 2rem;
  }

  .highlight-description {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 1rem;
  }

  .highlight-features {
    align-items: center;
  }

  .inner {
    flex-direction: column-reverse;
  }

  .product-image-order {
    width: 30%;
  }
}

@media (max-width: 768px) {
  .composition-content {
    flex-direction: column;
  }

  .product-center {
    margin: 2rem 0;
  }

  .highlight-content {
    flex-direction: column;
  }

  .highlight-image,
  .highlight-description {
    max-width: 100%;
    text-align: center;
    margin: 0;
  }

  .highlight-features {
    flex-direction: column;
  }

  .highlight-features li {
    margin: 1rem 0;
  }
}

@media (max-width: 768px) {
  .product-image {
    width: 40%;
  }
}

@media (max-width: 370px) {
  .review {
    max-width: 90%;
  }
  #prev {
    left: 1rem;
  }

  #next {
    right: 1rem;
  }
}
