.article-context-offer {
  grid-area: offer;
  min-width: 0;
}

.article-context-offer__sticky {
  position: sticky;
  top: 106px;
}

.article-context-offer__card {
  overflow: hidden;
  border: 1px solid #dce8ed;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(69, 76, 82, 0.1);
}

.article-context-offer__media {
  position: relative;
  display: block;
  box-sizing: border-box;
  aspect-ratio: 16 / 9;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: 15px;
  background: #e8f0f4;
}

.article-context-offer__media-label {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: clamp(62px, 23%, 84px);
  padding: 8px;
  background: linear-gradient(90deg, rgba(237, 243, 247, 0.74), rgba(237, 243, 247, 0.94));
  color: #315f6d;
  font: 700 12px / 1.2 "PT Sans", sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.article-context-offer__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transition: transform 0.25s ease;
}

.article-context-offer__media:hover img {
  transform: scale(1.03);
}

.article-context-offer__body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.article-context-offer__eyebrow,
.article-context-offer__title,
.article-context-offer__text {
  margin: 0;
}

.article-context-offer__eyebrow,
.article-context-offer__eyebrow a,
.article-context-offer__eyebrow a:hover,
.article-context-offer__eyebrow a:focus-visible {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ukcr-action-color, #3f7484);
}

.article-context-offer__title {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  color: #454c52;
  text-wrap: balance;
}

.article-context-offer__text {
  font-size: 16px;
  line-height: 1.55;
  color: #626d74;
}

.article-context-offer__actions {
  display: grid;
  gap: 10px;
}

.article-offer-modal__close:focus-visible,
.article-offer-form input:focus-visible,
.article-offer-form textarea:focus-visible,
.article-offer-form__submit:focus-visible {
  outline: 3px solid rgba(90, 154, 174, 0.35);
  outline-offset: 2px;
}

.article-offer-modal[hidden] {
  display: none !important;
}

.article-offer-modal {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.article-offer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 44, 49, 0.72);
  backdrop-filter: blur(3px);
}

.article-offer-modal__dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(22, 30, 34, 0.3);
}

.article-offer-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  color: #454c52;
  background: #f2f6fb;
  cursor: pointer;
}

.article-offer-modal__eyebrow {
  margin: 0 52px 8px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ukcr-action-color, #3f7484);
}

.article-offer-modal__title {
  margin: 0 52px 10px 0 !important;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.15;
  color: #454c52;
}

.article-offer-modal__description {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.5;
  color: #626d74;
}

.article-offer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.article-offer-form__field {
  display: grid;
  gap: 7px;
}

.article-offer-form__field:nth-of-type(4),
.article-offer-form__consent,
.article-offer-form__submit,
.article-offer-form__status {
  grid-column: 1 / -1;
}

.article-offer-form label {
  font-size: 14px;
  font-weight: 600;
  color: #454c52;
}

.article-offer-form input:not([type="checkbox"]),
.article-offer-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cad9df;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  color: #454c52;
  background: #ffffff;
}

.article-offer-form textarea {
  min-height: 96px;
  resize: vertical;
}

.article-offer-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45;
}

.article-offer-form__consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.article-offer-form__consent a {
  color: #3f7484;
  text-decoration: underline;
}

.article-offer-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.article-offer-form__submit {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
}

.article-offer-form__submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.article-offer-form__status {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #626d74;
}

.article-offer-form__status.is-error {
  color: #a23a32;
}

.article-offer-form__status.is-success {
  color: #2e7251;
}

body.article-offer-modal-open {
  overflow: hidden;
}

@media (max-width: 990px) {
  .article-context-offer__sticky {
    position: static;
  }
}

@media (max-width: 600px) {
  .article-context-offer__body {
    padding: 20px 16px;
  }

  .article-offer-modal {
    align-items: end;
    padding: 12px;
  }

  .article-offer-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 26px 16px 20px;
    border-radius: 16px;
  }

  .article-offer-form {
    grid-template-columns: 1fr;
  }

  .article-offer-form__field,
  .article-offer-form__consent,
  .article-offer-form__submit,
  .article-offer-form__status {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-context-offer__media img,
  .article-context-offer__link,
  .article-context-offer__button {
    transition: none;
  }
}

.article-context-offer__media {
  display: flex;
  border: 1px solid #dfe9ef;
  background: #fff;
}

.article-context-offer__media-label {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 62px;
  height: 100%;
  flex: 0 0 62px;
  background: #fff;
  border-right: 1px solid #dfe9ef;
  color: #315f6d;
  font-size: 11px;
}

.article-context-offer__media img {
  display: block;
  flex: 1 1 auto;
  width: calc(100% - 62px);
  min-width: 0;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: none;
}

.article-context-offer__media:hover img {
  transform: none;
}

@media (max-width: 899px) {
  .article-context-offer__media {
    aspect-ratio: auto;
    height: 250px;
  }
}


@media (min-width: 576px) and (max-width: 899px) {
  .article-context-offer__media {
    height: clamp(300px, 50vw, 390px);
  }

  .article-context-offer__media img,
  .article-context-offer__media:hover img {
    object-position: right top;
    transform: scale(1.28);
    transform-origin: right top;
  }
}
