.main-banner__offer {
  position: absolute;
  bottom: 110px;
  right: 0;
  width: 440px;
  max-width: 95%;
  padding: 22px;
  color: var(--color-white);
  background-color: var(--color-coral);
  z-index: 6;
}

.main-banner__offer-inner {
  display: flex;
  gap: 23px;
}

.main-banner__offer-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.main-banner__offer-type {
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.main-banner__offer-link {
  flex-shrink: 0;
}

.main-banner__offer-link div {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 47px;
  height: 47px;
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  transition: color 0.15s linear, background-color 0.15s linear, border-color 0.15s linear;
}

.main-banner__offer-link div svg {
  width: 23px;
  height: 7px;
}

.main-banner__offer-title div:first-child {
  font-family: var(--font-family-wremena);
  font-size: 36px;
  font-weight: 400;
  line-height: 78%;
}

.main-banner__offer-title div:last-child {
  font-size: 30px;
  font-weight: 400;
  line-height: 102%;
}

.main-banner__offer a {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.main-banner__offer:hover .main-banner__offer-link div {
  color: var(--color-coral);
  background-color: var(--color-white);
}

.details-dialog {
  position: fixed;
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 950px;
  margin-right: auto;
  margin-left: auto;
  padding: 54px 52px;
  border: none;
}

body:has(.details-dialog[open]) {
  overflow: hidden;
}

.details-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.65);
}

.details-dialog .page-title {
  padding-top: 0;
  padding-bottom: 32px;
  order: 2;
}

.details-dialog .container {
  padding-right: 0;
  padding-left: 0;
}

.details-dialog__close {
  width: 51px;
  height: 50px;
  margin-bottom: 32px;
  margin-left: auto;
  padding: 0;
  color: inherit;
  background-color: transparent;
  border: none;
  cursor: pointer;
  order: 1;
  outline: none;
  transition: color 0.15s linear;
}

.details-dialog__close:hover {
  color: var(--color-coral);
}

.details-dialog__content {
  order: 3;
}

@media (min-width: 992px) {
  .details-dialog {
    display: block;
  }

  .details-dialog .page-title {
    padding-right: 100px;
    padding-bottom: 90px;
  }

  .details-dialog__close {
    position: absolute;
    top: 54px;
    right: 50px;
  }
}

@media (min-width: 1400px) {
  .main-banner__offer {
    bottom: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-banner__offer-link div {
    transition: none;
  }
}
