.header__main__item.course .course-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  width: 100%;
  min-width: 0;
}

.header__main__item.course .course-hero__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.course-offer[hidden] {
  display: none !important;
}

.course-offer--ads {
  display: flex;
  flex-direction: column;
}

.course-offer__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
}

.course-offer__form-title {
  margin: 4px 0 28px;
  color: #1d4e89;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}

.course-offer__form input[type="text"],
.course-offer__form input[type="email"] {
  width: 100%;
  height: auto;
  margin: 0 0 8px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #d5dbe3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 16px;
}

.course-offer__form input::placeholder {
  color: #b0b7c0;
}

.course-offer__form input:focus {
  outline: none;
  border-bottom-color: #1d4e89;
}

.course-offer__form .btn {
  align-self: flex-start;
  margin-top: 22px;
  min-width: 190px;
}

.course-offer {
  position: relative;
  z-index: 5;
  flex: 0 0 392px;
  width: 392px;
  max-width: 100%;
  min-width: 0;
  margin-top: 6px;
  padding: 28px 28px 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 36px rgba(16, 74, 92, 0.1);
  font-family: "Geometria", sans-serif;
}

.course-offer__ribbon {
  position: absolute;
  top: 0;
  right: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  height: 102px;
  padding-top: 14px;
  background: #0f7d76;
  color: #fff;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
  filter: drop-shadow(0 8px 10px rgba(15, 90, 86, 0.16));
}

.course-offer__ribbon-pct {
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.course-offer__ribbon-off {
  margin-top: 3px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.course-offer__lead,
.course-offer__label,
.course-offer__seats {
  margin: 0;
  color: #7d8792;
}

.course-offer__headline {
  margin: 0;
  padding-right: 84px;
  color: #0c6b65;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

.course-offer__lead {
  margin-top: 8px;
  padding-right: 72px;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
}

.course-offer__inr,
.course-enrol-bar__inr {
  font-family: "Nirmala UI", "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-weight: 600;
}

.course-offer__label {
  margin-top: 22px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
}

.course-offer__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 4px 0 0;
}

.course-offer__now {
  color: #0c6b65;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.course-offer__was {
  color: #a0a8b0;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.course-offer__rule {
  height: 1px;
  margin: 20px 0 0;
  background: #e6edf2;
}

.course-offer__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #0f7d76;
  color: #fff;
  appearance: none;
  font-family: "Geometria", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.course-offer__btn:hover,
.course-offer__btn:focus {
  background: #0c6a64;
  color: #fff;
}

.course-offer__btn:focus-visible {
  outline: 2px solid #0c6b65;
  outline-offset: 3px;
}

.course-offer__arrow {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
}

.course-offer__seats {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

@media only screen and (min-width: 1200px) {
  .course-offer {
    margin-top: calc(-100px + 5vh);
  }
}

@media only screen and (max-width: 1199px) {
  .header__main__item.course .course-hero {
    flex-direction: column;
    gap: 28px;
  }

  .course-offer {
    flex: 0 1 auto;
    width: 100%;
    max-width: 420px;
    margin-top: 8px;
  }
}

@media only screen and (max-width: 559px) {
  .course-offer {
    max-width: 100%;
    padding: 24px 20px 16px;
  }

  .course-offer__headline {
    font-size: 20px;
  }

  .course-offer__now {
    font-size: 34px;
  }
}

.course-enrol-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  visibility: hidden;
  background: #fff;
  box-shadow: 0 -8px 28px rgba(16, 74, 92, 0.12);
  transform: translateY(110%);
  transition: transform 0.28s ease, visibility 0.28s ease;
}

.course-enrol-bar.is-visible {
  visibility: visible;
  transform: translateY(0);
}

.course-enrol-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px calc(16px + env(safe-area-inset-bottom));
}

.course-enrol-bar__item {
  min-width: 0;
}

.course-enrol-bar__label,
.course-enrol-bar__value,
.course-enrol-bar__prices {
  margin: 0;
  font-family: "Geometria", sans-serif;
}

.course-enrol-bar__label {
  color: #7d8792;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.course-enrol-bar__value {
  margin-top: 4px;
  color: #1c242b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.course-enrol-bar__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.course-enrol-bar__now {
  color: #0c6b65;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.course-enrol-bar__was {
  color: #a0a8b0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: line-through;
  white-space: nowrap;
}

.course-enrol-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 14px;
  min-width: 168px;
  height: 52px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: #0f7d76;
  color: #fff;
  appearance: none;
  font-family: "Geometria", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.course-enrol-bar__btn svg {
  width: 20px;
  height: 20px;
}

.course-enrol-bar__btn:hover,
.course-enrol-bar__btn:focus {
  background: #0c6a64;
  color: #fff;
}

.course-enrol-bar__btn:focus-visible {
  outline: 2px solid #0c6b65;
  outline-offset: 3px;
}

body.has-enrol-bar .cmls-call {
  bottom: calc(104px + env(safe-area-inset-bottom));
}

@media only screen and (max-width: 767px) {
  .course-offer--ads {
    display: none !important;
  }

  .course-enrol-bar__inner {
    gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .course-enrol-bar__item:not(.course-enrol-bar__item--cost) {
    display: none;
  }

  .course-enrol-bar__btn {
    min-width: 148px;
    height: 46px;
  }
}
