@font-face {
  font-family: seawave;
  src: url("../fonts/seawave.otf") format("opentype");
  src: url("../fonts/stseawave.otf") format("opentype");
}

@font-face {
  font-family: bickham;
  src: url("../fonts/BIKHAM\ CYR\ SCRIPT.TTF") format("opentype");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: seawave;
  margin: 0;
  padding: 0;
  background-color: #fffbfb;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

.banner {
  background: #000;
  padding: 16px;
  border-radius: 32px;
  margin: 24px 0;
}

.banner-audio-box {
  position: relative;
  width: 100%;
  height: auto;
}

.banner-audio-logo {
  position: relative;
  width: 100%;
}

.banner-audio-logo img {
  position: absolute;
  top: 4%;
  right: 4%;
  width: 100px;
  z-index: 1000;
}

.save-title {
  text-align: center;
  font-size: 32px;
  margin-top: 40px;
  text-transform: uppercase;
  color: #fff;
}

.banner-title {
  text-align: center;
  font-size: 48px;
  color: #fff;
  letter-spacing: 1.2px;
  font-family: seawave;
  line-height: 48px;
}

#play,
#pause {
  position: absolute;
  top: 4%;
  left: 4%;
  width: 120px;
  z-index: 1000;
}

#play:hover,
#pause:hover {
  cursor: pointer;
}

#pause {
  display: none;
}

.banner-image {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  border-radius: 16px;
  padding: 32px 0;
}

.banner-image img {
  width: 100%;
  border: 2px solid #fff;
}

.wrapper {
  margin: 56px 0;
}

.wrapper-title {
  font-family: bickham;
  font-size: 96px;
  text-align: center;
  margin: 16px 0;
}

.wrapper-description {
  font-size: 24px;
  margin: 24px 0;
  text-align: center;
}

.time-box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
}

.time-box-item {
  width: calc(20% - 16px);
  border-radius: 16px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  position: relative;
}

.time-box-item-text {
  content: "";
  background-color: transparent;
  background: linear-gradient(180deg, #00000030 56%, #000000 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 16px 12px;
  display: flex;
  align-items: flex-start;
  margin: 0;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 16px;
}

.time-box-group {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.time-box-group .left-box {
  width: 75%;
}

.time-box-group .right-box {
  width: 25%;
}

.time-box-group .right-box img {
  width: 100%;
}

.time-title {
  font-size: 14px;
  text-align: left;
  color: #05d3ce;
  font-weight: 600;
  margin-bottom: 4px;
}

.time-descr {
  font-size: 16px;
  text-align: left;
  color: #fff;
  font-family: seawave;
  font-weight: 400;
}

.time-phone {
  font-size: 16px;
  text-align: left;
  color: #05d3ce;
  font-family: seawave;
}

.footer-image img {
  width: 200px;
  margin-top: 24px;
}

.video-box {
  display: flex;
  justify-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.video-box .video {
  width: 25%;
  border-radius: 16px;
  margin: 0 auto;
}

.video-box .videosecond {
  width: calc(25% - 12px);
  border-radius: 16px;
}

video {
  width: 100%;
  border-radius: 16px;
}

.social-menu ul {
  display: flex;
  justify-content: center;
  margin: 24px 0;
  padding: 0;
}

.social-menu ul li {
  list-style: none;
  margin: 0 8px;
  padding: 8px;
}

.social-menu ul li .fab {
  font-size: 24px;
  line-height: 24px;
  transition: 0.3s;
  color: #000;
}

.social-menu ul li a {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  transition: 0.6s;
}

.fa-globe {
  font-size: 24px;
  color: #000;
}

.social-menu ul li a:hover {
  transform: translate(0, -10%);
}

li {
  font-size: 20px;
  border-radius: 8px;
}

.footer {
  background-color: #1b1b1b;
  color: #fff;
  padding: 24px 0;
  margin-top: 48px;
  overflow-x: hidden;
}

.img-fluid {
  border-radius: 16px;
}

.social-menu ul {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.social-menu ul li {
  list-style: none;
  margin: 0 8px;
}

.social-menu ul li .fab {
  font-size: 24px;
  line-height: 24px;
  transition: 0.3s;
  color: #000;
}

.social-menu ul li a {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  transition: 0.6s;
}

.fa-globe {
  font-size: 24px;
  color: #000;
}

.social-menu ul li a:hover {
  transform: translate(0, -10%);
}

li {
  font-size: 20px;
  background: #ffffff;
  border-radius: 8px;
}

/* Media Query for Tablets Ipads portrait mode */
@media (min-width: 720px) and (max-width: 1280px) {
  body {
    overflow-x: hidden;
  }

  .banner-title {
    font-size: 40px;
    line-height: 44px;
  }

  .banner-audio-logo img {
    width: 72px;
    z-index: 1000;
    margin-top: 4px;
    right: 0;
  }

  .time-box {
    width: 100%;
    gap: 12px;
  }

  .time-box-item {
    width: calc(25% - 12px);
  }

  #play,
  #pause {
    top: 3%;
    left: 0;
    width: 88px;
  }

  .wrapper {
    margin: 24px 0;
  }

  .wrapper-title {
    font-size: 48px;
    list-style: 52px;
  }

  .wrapper-description {
    font-size: 20px;
    line-height: 24px;
  }
}

/* Media Query for Mobile Devices */
@media (min-width: 280px) and (max-width: 719px) {
  body {
    overflow-x: hidden;
  }

  .banner {
    margin: -15px;
    border-radius: 0;
    padding-top: 16px;
  }

  .banner-image {
    padding: 32px 0;
  }

  .banner-title {
    font-size: 28px;
    line-height: 32px;
    margin-top: 8px;
  }

  .video-box .video {
    width: 64%;
    margin-top: 16px;
  }

  .video-box .videosecond {
    width: calc(50% - 8px);
  }

  .time-box {
    flex-wrap: wrap;
  }

  .time-box-item {
    width: calc(50% - 8px);
  }

  #play,
  #pause {
    width: 64px;
    left: 0;
  }

  .banner-audio-logo img {
    width: 56px;
    z-index: 1000;
    margin-top: 4px;
    right: 0;
  }

  .save-title {
    font-size: 20px;
    line-height: 24px;
  }

  .wrapper {
    margin: 24px 0;
  }

  .wrapper-title {
    font-size: 40px;
  }

  .wrapper-description {
    font-size: 16px;
    line-height: 20px;
  }
}

.time-box-item {
  position: relative;
  /* GPU acceleration */
  transform: translateZ(0);
  will-change: transform;
}

/* Skeleton Container */
.skeleton-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transform: translateZ(0);
}

.time-box-item.loaded .skeleton-container {
  display: none;
}

/* Simplified Skeleton */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #e8e8e8;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.video-skeleton {
  width: 100%;
  height: 220px;
  border-radius: 16px 16px 0 0;
}

.text-skeleton {
  height: 18px;
  margin: 10px 15px;
  border-radius: 4px;
}

.text-skeleton.title {
  height: 20px;
  width: 65%;
  margin-top: 12px;
}

.text-skeleton.price {
  width: 40%;
  margin-bottom: 12px;
}

/* Video fade in */
.time-box-item video {
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
  transform: translateZ(0);
}

.time-box-item.loaded video {
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .skeleton-container,
  .video-skeleton {
    border-radius: 12px;
  }

  .time-box {
    gap: 15px !important;
  }

  .time-box-item {
    min-height: 304px;
    transition: none;
  }

  .time-box-item:hover {
    transform: none;
  }
  .time-box-group .left-box {
    width: 100%;
  }
  .time-box-group {
    flex-direction: column-reverse;
    height: 100%;
    justify-content: space-between;
  }
  .time-title {
    font-size: 12px;
  }
  .time-descr,
  .time-phone {
    font-size: 13px;
  }
}
