.open-lesson__button.mobile-button {
  display: none;
}

.text-white {
  color: #fff;
}

.BG-black {
  background-color: #000;
}

@font-face {
  font-family: 'HalvarBreit-Bd';
  font-style: normal;
  font-weight: 700;
  src: url('./../fonts/HalvarBreit-Bd.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'MabryPro';
  font-style: normal;
  font-weight: 300;
  src: url('./../fonts/MabryPro-Light.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'MabryPro';
  font-style: normal;
  font-weight: 400;
  src: url('./../fonts/MabryPro-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'MabryPro';
  font-style: normal;
  font-weight: 500;
  src: url('./../fonts/MabryPro-Medium.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'MabryPro';
  font-style: normal;
  font-weight: 700;
  src: url('./../fonts/MabryPro-Bold.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Unica';
  font-style: normal;
  font-weight: 400;
  src: url('./../fonts/NeueHaasUnica-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Unica';
  font-style: normal;
  font-weight: 800;
  src: url('./../fonts/NeueHaasUnica-ExtraBold.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Spaceland-Ten';
  font-style: normal;
  font-weight: 400;
  src: url('./../fonts/Spaceland-Ten.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('./../fonts/Inter-Medium.woff2') format('woff2');
  font-display: swap;
}

.open-lesson {
  position: fixed;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.open-lesson.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.open-lesson__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 110px;
  color: #000000;
}

.open-lesson__decor {
  width: 19px;
  height: 16px;
  align-self: stretch;
  background-size: 100% 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
}

.open-lesson__decor.top-left {
  top: 9px;
  left: 17px;
}

.open-lesson__decor.top-right {
  top: 9px;
  right: 17px;
  transform: rotate(90deg);
  z-index: 10;
}

.open-lesson__decor.bottom-left {
  bottom: 9px;
  left: 17px;
  transform: rotate(270deg);
}

.open-lesson__decor.bottom-right {
  bottom: 9px;
  right: 17px;
  transform: rotate(180deg);
  z-index: 10;
}

.open-lesson__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  width: 100%;
  height: 100%;
  flex-grow: 1;
}

.open-lesson__left-part {
  display: flex;
  justify-content: space-between;
  height: 100% !important;
  align-items: center;
  flex-grow: 1;
  margin-right: 0px;
  gap: 10px;
}

.open-lesson__title-block {
  display: flex;
  gap: 14px;
  flex-direction: row;
  color: #FFD605;
  height: 100%;
  padding-top: 17px;
  padding-bottom: 14px;
}

.open-lesson__title {
  display: flex;
  gap: 12px;
  border-radius: 14px;
  border: 0.5px solid #FFD605;
  padding: 1px 11px 1px 9px;
  align-items: center;
  width: max-content;
}

.open-lesson__title .open-lesson__title-decor {
  width: 22px;
  height: 22px;
}

.open-lesson__title .open-lesson__title-decor img {
  width: 22px;
  height: 22px;
}

.open-lesson__title .open-lesson__title-decor.giveaway-decor img {
  width: 24px;
  height: 26px;
}

.open-lesson__title .open-lesson__title-text {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

.open-lesson__title .giveaway-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.open-lesson__title .giveaway-text br {
  display: none;
}

.open-lesson__title-main {
  font-family: "HalvarBreit-Bd";
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 100%;
  text-wrap: nowrap;
}

.date-info-mobile {
  font-weight: 400 !important;
}

.date-info-mobile span {
  text-transform: none;
}

.open-lesson__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "HalvarBreit-Bd";
  font-size: 18px;
  font-weight: 800;
  line-height: 95%;
  text-transform: uppercase;
  color: #FFFFFF;
  position: relative;
  z-index: 1;
  text-wrap: nowrap;
}

.open-lesson-image-part {
  height: 110px !important;
  margin-left: -26px;
  margin-right: -20px;
  margin-bottom: -20px;
}

.open-lesson-image-part img {
  max-width: 300px;
  object-fit: cover;
  z-index: -1;
  height: 100px;
  width: auto;
  transform: scale(0.9);
}

.open-lesson__right-part {
  display: flex;
  gap: 30px;
  height: 100%;
  background-image: url("../img/open-lesson-bg-image.webp");
  background-size: cover;
  background-position: -290px center;
  background-repeat: no-repeat;
  align-items: center;
}

.open-lesson__date-info {
  border-radius: 16px;
  display: flex;
  height: 67px;
  align-items: center;
  background: #000000;
  color: #FFFFFF;
  padding: 9px 16px;
  position: relative;
  gap: 20px;
}

.open-lesson__date-info::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.27) 0%, rgba(102, 102, 102, 0.27) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.open-lesson__date-info-icon img {
  width: 32px;
  height: 32px;
}

.open-lesson__date-info-decor {
  height: 47.9012107849px;
  width: 1px;
  background-color: #949494;
}

.open-lesson__date-info-text {
  display: flex;
  flex-direction: column;
  text-wrap: nowrap;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
}

.open-lesson__date-info-text span:first-child {
  color: #FFD605;
}

.open-lesson__date-info-text span:last-child {
  color: #FDFDFC;
}

.open-lesson__button {
  border-radius: 16px;
  height: 54px;
  padding-block: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background-color: #FFD605;
  color: #000000;
  font-family: "MabryPro";
  font-size: 18.79px;
  font-weight: 500;
  line-height: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0px 0px 10px 0px #FFD605;
  padding-inline: 20px;
  position: relative;
  overflow: hidden;
  max-width: 203px;
}

.open-lesson__button::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/bg-button-image.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  mix-blend-mode: color-burn;
  pointer-events: none;
}

.open-lesson__button:hover {
  background-color: rgb(209, 174.724, 0);
}

.open-lesson__button-text {
  font-size: 14px;
  font-weight: 500;
}

.open-lesson__button-icon {
  width: 16px;
  height: 16px;
}

.open-lesson__title-main {
  position: relative;
}

.open-lesson__title-main .date-info-mobile {
  display: none;
}

@media (max-width: 1680px) {
  .open-lesson__right-part {
    gap: 20px;
  }

  .open-lesson__left-part {
    gap: 12px;
    margin-right: 100px;
  }

  .open-lesson__title-block {
    margin-right: 6px;
  }

  .open-lesson__title-text {
    font-size: 22px;
    line-height: 26px;
  }

  .open-lesson__title-main {
    font-size: 28px;
  }

  .open-lesson__text {
    font-size: 20px;
  }

  .open-lesson-image-part img {
    max-width: 300px;
    margin-left: -65px;
    margin-right: -38px;
  }
}

@media (max-width: 1630px) {
  .open-lesson__left-part {
    margin-right: 0px;
  }

  .open-lesson__button-text {
    text-wrap: wrap;
    text-align: center;
  }
}

@media (max-width: 1440px) {
  .open-lesson__left-part {
    margin-right: 0px;
  }

  .open-lesson__right-part {
    background-position: -275px center;
  }
}

@media (max-width: 1460px) {
  .open-lesson__content {
    padding: 0 36px;
  }

  .open-lesson__left-part {
    flex-direction: row;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    flex-grow: 4;
  }

  .open-lesson__right-part {
    gap: 10px;
    flex-grow: 1;
    justify-content: end;
  }

  .open-lesson__title-text {
    font-size: 14px;
  }

  .open-lesson__text {
    font-size: 16px;
    line-height: 18px;
    flex-direction: column;
    gap: 2px;
  }

  .open-lesson-image-part {
    position: absolute;
    top: 0;
    right: -70px;
  }

  .open-lesson-image-part img {
    margin: 0 auto;
  }

  .open-lesson__decor.top-left {
    top: 4.5px;
    left: 10px;
  }

  .open-lesson__decor.top-right {
    top: 4.5px;
    right: 10px;
    transform: rotate(90deg);
  }

  .open-lesson__decor.bottom-left {
    bottom: 4.5px;
    left: 10px;
    transform: rotate(270deg);
  }

  .open-lesson__decor.bottom-right {
    bottom: 4.5px;
    right: 10px;
    transform: rotate(180deg);
  }
}

@media (max-width: 1330px) {
  .open-lesson__content {
    padding: 0 26px;
  }

  .open-lesson__left-part {
    flex-grow: 30;
    align-items: flex-start;
  }

  .open-lesson__title-block {
    z-index: 2;
    margin-right: 0px;
  }

  .open-lesson__title-block {
    flex-direction: column;
    justify-content: space-between;
  }

  .open-lesson__title .open-lesson__title-text {
    font-size: 14px;
    line-height: 15px;
  }

  .open-lesson__title .open-lesson__title-text br.line-break {
    display: none;
  }

  .open-lesson__title-text.giveaway-text {
    display: block;
  }

  .open-lesson__title-text.giveaway-text br.line-break {
    display: block;
  }

  .open-lesson__text {
    height: 100%;
  }
}

@media (max-width: 1190px) {

  .open-lesson__title .open-lesson__title-decor,
  .open-lesson__title .open-lesson__title-decor img {
    width: 18px;
    height: 18px;
  }

  .open-lesson__title .open-lesson__title-decor.giveaway-decor,
  .open-lesson__title .open-lesson__title-decor.giveaway-decor img {
    width: 24px;
    height: 26px;
  }

  .open-lesson__date-info {
    display: none;
  }

  .date-info-mobile {
    display: flex !important;
    position: absolute;
    top: -1px;
    left: calc(100% + 12px);
    align-items: center;
    gap: 4px;
    font-size: 16px;
    line-height: 20px;
    font-family: "HalvarBreit-Bd", sans-serif;
    border-radius: 14px;
    border: 0.5px solid #FFD605;
    padding: 1px 16px 1px 12px;
    align-items: center;
    width: max-content;
  }

  .date-info-mobile .open-lesson__date-info-icon {
    height: 20px;
  }

  .date-info-mobile .open-lesson__date-info-icon img {
    width: 16px;
    height: 16px;
  }

  .open-lesson__text {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 10px;
    gap: 0px;
  }
}

@media (max-width: 1024px) {
  .open-lesson__wrapper {
    align-items: stretch;
    height: 115px;
  }

  .open-lesson__button.mobile-button {
    display: flex;
  }

  .open-lesson__right-part {
    display: none;
  }

  .open-lesson__content {
    height: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .open-lesson__left-part {
    flex: 1;
    height: auto !important;
  }

  .open-lesson__content {
    flex-direction: column;
    align-items: start;
    padding: 4px 32px;
    position: relative;
    height: 100%;
  }

  .open-lesson__left-part {
    gap: 0px;
    position: static;
  }

  .open-lesson__right-part {
    background-image: none;
  }

  .open-lesson__title-giveaway {
    height: 26px;
  }

  .open-lesson__title-block {
    align-items: start;
    padding-block: 2px;
    height: 100%;
  }

  .open-lesson__title .open-lesson__title-text,
  .date-info-mobile {
    font-size: 12px;
    line-height: 20px;
  }

  .giveaway-text__third-line {
    display: block;
    margin-top: -6px;
  }

  .open-lesson__title-text .giveaway-text {
    margin-top: -4px;
  }

  .open-lesson__title .open-lesson__title-decor.giveaway-decor,
  .open-lesson__title .open-lesson__title-decor.giveaway-decor img {
    width: 15px;
    height: 16px;
  }

  .open-lesson__title .open-lesson__title-decor img,
  .open-lesson__title .open-lesson__title-decor {
    width: 16px;
    height: 16px;
  }

  .giveaway-text .giveaway-text__first-line,
  .giveaway-text .giveaway-text__second-line {
    font-size: 9px;
    line-height: 12px;
  }

  .giveaway-text .giveaway-text__third-line {
    font-size: 8px;
    line-height: 10px;
  }

  .open-lesson__title {
    padding-inline: 8px;
    gap: 4px;
  }

  .open-lesson__title-main {
    font-size: 16px;
    line-height: 18px;
  }

  .open-lesson__text {
    font-size: 14px;
    line-height: 16px;
    gap: 0px;
    position: absolute;
    top: -27px;
  }

  .open-lesson__date-info {
    padding: 6px 8px;
    height: 24px;
    gap: 4px;
  }

  .open-lesson__date-info .open-lesson__date-info-decor {
    display: none;
  }

  .open-lesson__date-info .open-lesson__date-info-text {
    flex-direction: row;
    font-size: 10px;
    line-height: 10px;
  }

  .open-lesson__date-info-icon img {
    width: 12px;
    height: 12px;
  }

  .open-lesson__button {
    height: 24px;
    max-width: 203px;
    position: absolute;
    right: 20px;
    bottom: 10px;
  }

  .open-lesson__button-text {
    font-size: 10px;
    text-wrap: nowrap;
  }

  .open-lesson__button-icon,
  .open-lesson__button-icon img {
    width: 10px;
    height: 10px;
  }

  .open-lesson-image-part {
    right: 16px !important;
    left: unset !important;
    width: 203px !important;
    bottom: 0;
    overflow: hidden !important;
    height: 110px !important;
  }

  .open-lesson-image-part img {
    width: 203px !important;
    height: 110px !important;
    max-width: none !important;
    object-fit: fill !important;
    object-position: center -10px;
  }
}

@media (max-width: 768px) {
  .open-lesson__content {
    padding: 4px 16px 4px;
  }

  .open-lesson-image-part {
    margin-right: -14px;
  }
}

@media (max-width: 670px) {
  .open-lesson-image-part img {
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .open-lesson-image-part {
    right: 0px;
  }

  .open-lesson__date-info .open-lesson__date-info-text {
    padding-top: 1px;
  }
}

@media (max-width: 522px) {

  .open-lesson__title .open-lesson__title-text,
  .date-info-mobile {
    font-size: 8px;
  }

  .open-lesson__title-block,
  .open-lesson__left-part {
    margin-right: 4px;
  }

  .date-info-mobile {
    left: calc(100% + 4px);
    padding: 1px 4px;
    align-items: center;
  }

  .open-lesson__title-main {
    padding: 1px 4px;
  }

  .open-lesson__text {
    font-size: 12px;
    line-height: 14px;
  }
}

@media (max-width: 390px) {
  .open-lesson__button {
    padding-inline: 8px;
    padding-top: 1px;
  }
}

@media (max-width: 767px) {
  .open-lesson {
    cursor: pointer;
  }

  .open-lesson__button.mobile-button {
    padding-top: 8px;
  }

  .open-lesson__button {
    pointer-events: none;
  }

  .open-lesson-image-part img {
    object-position: 20px -10px;
  }

  .open-lesson__decor.top-left {
    top: 3px;
    left: 6px;
  }

  .open-lesson__decor.top-right {
    top: 3px;
    right: 6px;
    transform: rotate(90deg);
  }

  .open-lesson__decor.bottom-left {
    bottom: 3px;
    left: 6px;
    transform: rotate(270deg);
  }

  .open-lesson__decor.bottom-right {
    bottom: 3px;
    right: 6px;
    transform: rotate(180deg);
  }
}

#bingc-phone-button {
  transition: bottom 0.3s ease;
}

body:has(.open-lesson.hidden) #bingc-phone-button {
  bottom: 7% !important;
}

body:has(.open-lesson) #bingc-phone-button {
  bottom: 22% !important;
}

@media (max-width: 1280px) {
  body:has(.open-lesson) #bingc-phone-button {
    bottom: 25% !important;
  }
}

@media (max-width: 768px) {
  body:has(.open-lesson) #bingc-phone-button {
    bottom: 160px !important;
  }
}

.giveaway-text__first-line,
.giveaway-text__second-line {
  font-size: 16px;
  text-transform: uppercase;
  color: #fff;
  font-family: "HalvarBreit-Bd";
}

.giveaway-text__second-line {
  color: var(--color-yellow);
}

.giveaway-text__third-line {
  font-size: 16px;
  color: #fff;
}

@media (max-width: 1024px) {
  .open-lesson__text {
    left: 33%;
    top: -15px !important;
  }
}

@media (max-width: 784px) {
  .open-lesson__text {
    top: -27px !important;
    left: unset !important;
  }
}

@media (max-width: 480px) {
  .open-lesson-image-part {
    margin-right: -30px;
  }

  .open-lesson-image-part img {
    scale: 0.8;
  }
}

.open-lesson-spacer {
  width: 100%;
  transition: height 0.3s ease;
}
