
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --border-gradient: linear-gradient(
    0deg,
    transparent,
    var(--color-text),
    var(--color-text)
  );
  --color1-animation: #9e7923e6; /* #ff2770f0; */
  --color2-animation: #ff45dfdb; /* #45f3fff0; */
  --time-animation: 8s;
  --scale-video: 2;

  --sliderSize: clamp(1.8em, calc(0.61em + 2.46vw), 2.97em);
  --sliderFontSize: clamp(0.94em, calc(0.54em + 0.82vw), 1.33em);
  --sliderTransform: calc(-1 * var(--sliderSize) / 2); /* -20px; */
  --sliderColor: rgba(240, 240, 240, 0.7);
  --width-box-wrape: 30vw;
  --color-cli: #e7b605;
}


.logo {
  opacity: 0.8;
  aspect-ratio: 1;
  width: clamp(120px, 12.1vw, 140px);
  filter: invert(100%);
  mix-blend-mode: screen;
}

.banner-title {
  width: 100%;
  margin: 20px auto 10px;
  line-height: 1;
  font-family: var(--font-title);
  font-size: clamp(50px, 12.1vw, 140px);
  letter-spacing: 0.2em;
  pointer-events: none;
  background: linear-gradient(45deg, red, yellow, red, yellow, red);
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(0, 0, 0, 0.1);
  text-shadow: 6px 6px 6px rgba(0, 0, 0, 0.5);
  background-size: 150% 150%;
  animation: backInDown 8s cubic-bezier(0.4, 0, 0.01, 0.99) forwards,
    gradientShift 10s linear infinite;
}

.video-buttons {
  margin-top: 30px;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;

}
/* ========  animation =========*/
@keyframes animateScale {
  from {
    transform: scale(0.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes scaleTeatre {
  0% {
    transform: scale(0.7);
    opacity: 0.3;
  }
  30% {
    transform: scale(1.3);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes backInDown {
  0% {
    transform: translateY(-600px) scale(0.7);
    opacity: 0.7;
  }

  50% {
    transform: translateY(0px) scale(0.7);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/*! ".video-button" ==========*/
@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes rotating {
  to {
    --a: 360deg;
  }
}
.video-button {
  position: relative;
  height: 190px;
  aspect-ratio: 1.78;
  display: flex;
  align-items: center;
  border-radius: 20px;
  filter: drop-shadow(0 5px 10px #000);

  animation: animateScale 8s cubic-bezier(0.42, 0.24, 0.22, 0.82) forwards;
}

.video-button::before,
.video-button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  transition: all 0.3s ease-in;
}

.video-button::before {
  background: repeating-conic-gradient(
    from calc(var(--a) + 50deg),
    var(--color1-animation) 0%,
    var(--color1-animation) 5%,
    transparent 5%,
    transparent 40%,
    var(--color1-animation) 50%
  );
  animation: rotating var(--time-animation) linear infinite;
  /* animation-play-state: paused; */
}

.video-button::after {
  background: repeating-conic-gradient(
    from calc(var(--a) + 50deg),
    var(--color2-animation) 0%,
    var(--color2-animation) 5%,
    transparent 5%,
    transparent 40%,
    var(--color2-animation) 50%
  );
  animation: rotating var(--time-animation) linear infinite;
  animation-delay: calc(var(--time-animation) / 4);
  /* animation-play-state: paused; */
}

.video-button .image-container {
  position: absolute;
  inset: 2px; /** Отступы */
  background: transparent;
  background-size: cover; /** Заполняет контейнер без искажений */
  background-position: center; /** Центрирует изображение */
  background-repeat: no-repeat; /** Убирает повторение */
  border-radius: 15px;
  z-index: 1; /** Размещаем выше градиентов */
}

.video-button:hover::before,
.video-button:hover::after {
  animation-play-state: running;
}

.video-button h4,
.video-button span {
  position: absolute;
  font-family: var(--font-text);
  bottom: 10px;
  font-weight: 700;
  color: #eda86c;
  writing-mode: vertical-rl; /** Вертикальный текст, сверху вниз */
  text-orientation: upright; /** Выравнивание букв вертикально */
  z-index: 10;
}

.video-button h4 {
  right: 7px;
  font-size: 0.75em;
}

.video-button span {
  left: 7px;
  font-size: 0.95em;
}

.video-button:hover {
  /* scale: 1.1; */
  cursor: pointer;
}
/* ========== /.video-button */
.video-buttons .btn-container:nth-child(1) .image-container {
  background-image: url("../img/image_hello.jpg");
}
.video-buttons .btn-container:nth-child(2) .image-container {
  background-image: none;
}
.video-button .image-container--video {
  overflow: hidden;
  padding: 0;
}
.video-button .cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: block;
  pointer-events: none;
}
.video-buttons .btn-container:nth-child(2) .video-button::after,
.video-buttons .btn-container:nth-child(2) .video-button::before {
  filter: hue-rotate(310deg);
}
/*TODO: ".about" ======================================== */
/* ! Pinterest layout style */
.foto-gallery {
  width: calc(100% - 40px);
  margin: 20px auto;
  column-width: 300px; /** Браузер подберет оптимальное число колонок */
  column-gap: 20px;
}

.foto-gallery .foto-box {
  max-width: 400px;
  margin-bottom: 15px;
  break-inside: avoid;
}

.foto-gallery .foto-box img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.5);
}


/* TODO:  @media (max-width: 600px) ============================ */
@media (max-width: 600px) {
  .testimonials .content {
    grid-template-columns: 1fr;
  }

  .testimonials .content .box-wrape:nth-child(1) {
    grid-row: auto; /* сбрасываем растяжение */
  }
}
