@import url("fonts.css");
@import url("variables.css");
@import url("base.css");

/**--HEADER--**/

.header {
  padding: 20px 0 60px;
  color: #fff;
  background: url(../images/header__bg.webp) 50% 50% / cover no-repeat;
  overflow: hidden;
}

.header__content {
  position: relative;
}

.header__date-wrap {
  margin: 0 auto;
  max-width: 355px;
}

.header__date {
  display: flex;
  justify-content: center;
  gap: 20px;
  text-align: center;
  background: rgba(122, 122, 122, 0.1);
  padding: 24px 7px 24px;
  border-radius: 8px;
  border: 1px solid rgba(125, 125, 125, 0.4);
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  backdrop-filter: blur(15px);
}

.header__date-item {
  position: relative;
}

.header__date-item.border::before {
  content: "";
  position: absolute;
  top: 0;
  right: -14px;
  width: 1px;
  height: 100%;
  background: #7d7d7d;
}

.header_dn {
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 5px;
  color: #a9a9a9;
}

.header__date-day {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 11px;
}

.header__time-block {
  overflow: hidden;
  position: relative;
  margin: -20px auto 0;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 11px;
  color: var(--accent-color-r);
  max-width: 215px;
  width: 100%;
  background: #111e2db6;
  padding: 8px 15px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(125, 125, 125, 0.4);
}

.header__time-block p {
  position: relative;
  z-index: 2;
}

.header__time-block div {
  position: absolute;
  width: 100%;
  height: 0vh;
  z-index: 1;
  top: 0;
  left: 0;
  transition: all 0.6s;
  background: rgba(122, 122, 122, 0.1);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(30px);
}

.header__subtitle {
  color: var(--accent-color-p);
  font-family: "SFUIText-Bold", sans-serif;
  font-size: 12px;
  text-align: center;
  letter-spacing: 7px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.header__title {
  font-family: var(--font-title);
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  line-height: 120%;
  position: relative;
  z-index: 5;
}

.header__btn,
.header__btn:focus {
  max-width: 297px;
  margin: 0 auto 25px;
}

.header__btn-price {
  color: #56248b;
  margin-bottom: 10px;
  display: block;
}

.header__btn {
  padding: 20px 10px;
}

.header__btn,
.header__btn:focus {
  max-width: 355px;
  margin: 0 auto 25px;
  padding: 20px 10px;
}

.header__timer-text {
  text-align: center;
  font-family: var(--font-title);
  font-size: clamp(15px, 0.774rem + 0.54vw, 20px);
  margin-bottom: 10px;
}

.header__author-info {
  position: relative;
  max-width: 210px;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(125, 125, 125, 0.4);
  margin: -272px auto 48px;
}

.header__author-name {
  font-family: var(--font-title);
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.header__author-prof {
  font-family: "SFUIDisplay-Light", sans-serif;
  font-size: 12px;
  color: #9C9C9C;
}

.header__img {
  display: block;
  margin: 0 auto;
}

.header__timer-wrap {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 45px;
}

.timer__num {
  font-family: "SFUIText-Bold";
  font-size: 40px;
}

.timer__text {
  font-size: 16px;
}

.header__img2 {
  position: absolute;
  bottom: -60px;
  right: 0px;
  z-index: 1;
  display: none;
}

@media screen and (min-width: 768px) {
  .header {
    padding: 0 0 60px;
    background: url(../images/header__bg-d2.webp) 50% 50% / cover no-repeat;
  }

  .header__date-wrap {
    max-width: 355px;
    width: 100%;
    margin: 0 auto 40px;
  }

  .header__date {
    max-width: 355px;
    width: 100%;
    padding-left: 23px;
    padding-right: 23px;
    border-radius: 0 0 15px 15px;
    justify-content: space-between;
  }

  .header_dn {
    font-size: 12px;
  }

  .header__date-day {
    font-size: 14px;
  }

  .header__time-block {
    font-size: 15px;
  }

  .header__author-info {
    max-width: 280px;
    padding: 20px 30px;
    margin-bottom: 100px;
    z-index: 5;
  }

  .header__btn,
  .header__btn:focus {
    max-width: 355px;
    margin: 0 auto 25px;
  }

  .header__subtitle {
    font-size: 15px;
    letter-spacing: 15px;
    margin-bottom: 10px;
  }

  .header__title {
    font-size: 31px;
    margin-bottom: 25px;
  }

  .header__btn-wrap {
    position: relative;
    z-index: 10;
  }

  .header__author-name {
    font-size: 13px;
  }

  .header__author-prof {
    font-size: 15px;
  }

  .header__container {
    position: relative;
    z-index: 5;
  }
}

@media screen and (min-width: 1400px) {
  .header {
    padding: 0 0 60px;
  }

  .header__content {
    max-width: 643px;
    width: 100%;
  }

  .header__date-wrap {
    max-width: 464px;
    width: 100%;
    margin: 0 0 105px;
  }

  .header__date {
    max-width: 465px;
    width: 100%;
  }

  .header_dn {
    font-size: 16px;
  }

  .header__author-info {
    position: absolute;
    max-width: 365px;
    bottom: -5px;
    right: -410px;
  }

  .header__btn,
  .header__btn:focus {
    max-width: 402px;
    margin-bottom: 25px;
  }

  .header__date-day {
    font-size: 19px;
    color: #fff;
  }

  .header__time-block {
    font-size: 20px;
  }

  .header__subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: left;
  }

  .header__title {
    font-size: 47px;
    margin-bottom: 35px;
    text-align: left;
  }

  .header__btn-wrap {
    max-width: 402px;
  }

  .header__author-name {
    font-size: 17px;
  }

  .header__author-prof {
    font-size: 21px;
    font-family: "SFUIText-Medium", sans-serif;
    color: #ff3062;
  }

  .header__img2 {
    position: absolute;
    display: block;
    bottom: -145px;
    right: 110px;
    z-index: 1;
  }

  .header__img {
    display: none;
  }
}
