/* Промо-модалка Кейптаун по таймеру. Палитра как hm-keyptaun: navy #0B1425,
   золото #C19A5B, белый текст. z-index 85 - между cookie (70) и .modal (90). */

.keyptaun-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  opacity: 0;
  transition: opacity .2s ease, display .2s allow-discrete;
}

.keyptaun-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

@starting-style {
  .keyptaun-modal.is-open { opacity: 0; }
}

.keyptaun-modal__back {
  position: absolute;
  inset: 0;
  background: rgba(22, 35, 61, 0.88);
}

.keyptaun-modal__card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100vh - 2 * var(--gutter));
  overflow: hidden;
  border-radius: 20px;
  background: #0B1425;
  transform: translateY(18px);
  transition: transform .26s cubic-bezier(.2, .7, .3, 1);
}

.keyptaun-modal.is-open .keyptaun-modal__card {
  transform: none;
}

@starting-style {
  .keyptaun-modal.is-open .keyptaun-modal__card { transform: translateY(18px); }
}

.keyptaun-modal__bg {
  position: absolute;
  inset: 0;
}

.keyptaun-modal__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.keyptaun-modal__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 26, 0.35) 0%, rgba(8, 14, 26, 0.82) 55%, rgba(8, 14, 26, 0.94) 100%),
    linear-gradient(90deg, rgba(8, 14, 26, 0.72) 0%, rgba(8, 14, 26, 0.45) 100%);
}

.keyptaun-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 20, 37, 0.45);
  cursor: pointer;
}

.keyptaun-modal__close .ico {
  width: 20px;
  height: 20px;
  color: #fff;
}

.keyptaun-modal__body {
  position: relative;
  z-index: 1;
  padding: 48px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .keyptaun-modal__body {
    padding: 40px 24px 28px;
    min-height: 240px;
  }

  .keyptaun-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

.keyptaun-modal__kicker {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #C19A5B;
}

@media (max-width: 860px) {
  .keyptaun-modal__kicker {
    font-size: 11px;
    line-height: 13px;
  }
}

.keyptaun-modal__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -1px;
  color: #fff;
}

@media (max-width: 860px) {
  .keyptaun-modal__title {
    font-size: 26px;
    line-height: 29px;
    letter-spacing: -0.7px;
  }
}

.keyptaun-modal__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 27px;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 860px) {
  .keyptaun-modal__text {
    font-size: 14px;
    line-height: 25px;
  }
}

.keyptaun-modal__btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 17px 30px;
  font-size: 15px;
  line-height: 18px;
}