/* Bank of Russia warning banner on the home page, release 26.10.16.
 * The banner is HTML/CSS so the text and CTA stay sharp at any scale.
 * Only the official seal is kept as a small raster asset already present in the project.
 */
.ajva-cbr-warning,
.ajva-cbr-warning * {
  box-sizing: border-box;
}

.ajva-cbr-warning {
  width: 100%;
  background: #fff;
  font-family: var(--ajva-font);
}

.ajva-cbr-warning__container {
  width: min(100% - 40px, 1140px);
  margin: 0 auto;
}

.ajva-cbr-warning__link {
  position: relative;
  display: grid;
  grid-template-columns: 28% 72%;
  width: 100%;
  aspect-ratio: 728 / 90;
  min-height: 90px;
  overflow: hidden;
  background:
    linear-gradient(132deg, transparent 0 61%, rgba(0,145,211,.26) 61% 74%, transparent 74%),
    linear-gradient(132deg, transparent 0 77%, rgba(0,155,224,.24) 77% 89%, transparent 89%),
    linear-gradient(90deg, #006891 0%, #0077ab 54%, #0086c8 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  -webkit-tap-highlight-color: transparent;
}

.ajva-cbr-warning__brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  min-width: 0;
  padding: clamp(12px, 1.9vw, 25px) clamp(18px, 2.4vw, 34px);
  padding-right: 17%;
  background: #8f96a3;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.ajva-cbr-warning__seal {
  flex: 0 0 auto;
  width: clamp(38px, 4.6vw, 58px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .98;
}

.ajva-cbr-warning__bank-name {
  white-space: nowrap;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(15px, 1.75vw, 25px);
  line-height: 1;
  letter-spacing: -.02em;
}

.ajva-cbr-warning__content {
  position: relative;
  display: block;
  min-width: 0;
  height: 100%;
}

.ajva-cbr-warning__copy {
  position: absolute;
  z-index: 2;
  top: 11%;
  left: 3.5%;
  right: 2%;
  display: flex;
  flex-direction: column;
  gap: clamp(1px, .2vw, 4px);
  line-height: 1.06;
}

.ajva-cbr-warning__title,
.ajva-cbr-warning__subtitle {
  display: block;
  white-space: nowrap;
}

.ajva-cbr-warning__title {
  color: #fff;
  font-size: clamp(17px, 2.25vw, 32px);
  font-weight: 800;
  letter-spacing: -.025em;
}

.ajva-cbr-warning__subtitle {
  color: #fff;
  font-size: clamp(11px, 1.47vw, 21px);
  font-weight: 700;
  letter-spacing: -.018em;
}

.ajva-cbr-warning__button {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 8.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44%;
  min-width: 235px;
  height: 25%;
  min-height: 28px;
  padding: 0 20px 0 7%;
  background: #e3012b;
  color: #fff;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  font-size: clamp(12px, 1.48vw, 21px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .025em;
  text-align: center;
  white-space: nowrap;
}

.ajva-cbr-warning__mobile-break {
  display: none;
}

.ajva-cbr-warning__link:focus-visible {
  outline: 3px solid #0086c8;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .ajva-cbr-warning__button {
    transition: filter .18s ease, transform .18s ease;
  }

  .ajva-cbr-warning__link:hover .ajva-cbr-warning__button {
    filter: brightness(.93);
  }
}

@media (min-width: 921px) {
  .ajva-cbr-warning {
    margin-top: -16px;
    padding-bottom: 2px;
  }
}

@media (max-width: 920px) {
  .ajva-cbr-warning__container {
    width: min(100% - 30px, 1140px);
  }

  .ajva-cbr-warning__link {
    grid-template-columns: 29% 71%;
  }

  .ajva-cbr-warning__brand {
    padding-left: clamp(12px, 2.3vw, 24px);
  }
}

@media (max-width: 767px) {
  .ajva-cbr-warning {
    margin-top: -8px;
  }

  .ajva-cbr-warning__container {
    width: min(100% - 30px, 360px);
  }

  /* Dedicated mobile composition based on the supplied 300x50 banner.
   * Do not shrink the desktop layout: the mobile original has a narrower
   * Bank of Russia panel, larger copy and a separate two-line subtitle.
   */
  .ajva-cbr-warning__link {
    grid-template-columns: 18.5% 81.5%;
    aspect-ratio: 6 / 1;
    min-height: 50px;
    background:
      linear-gradient(132deg, transparent 0 72%, rgba(0,145,211,.28) 72% 84%, transparent 84%),
      linear-gradient(132deg, transparent 0 86%, rgba(0,155,224,.24) 86% 96%, transparent 96%),
      linear-gradient(90deg, #006891 0%, #0077ab 54%, #0086c8 100%);
  }

  .ajva-cbr-warning__brand {
    justify-content: center;
    gap: 0;
    padding: 5px 13% 5px 5px;
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  }

  .ajva-cbr-warning__seal {
    width: clamp(25px, 8.35vw, 30px);
  }

  .ajva-cbr-warning__bank-name {
    display: none;
  }

  .ajva-cbr-warning__content {
    overflow: visible;
  }

  .ajva-cbr-warning__copy {
    top: 9%;
    left: 1.5%;
    right: 1.5%;
    gap: 0;
  }

  .ajva-cbr-warning__title {
    font-size: clamp(10.5px, 3.55vw, 12.8px);
    line-height: 1;
    letter-spacing: -.04em;
  }

  .ajva-cbr-warning__subtitle {
    max-width: 98%;
    margin-top: 1px;
    font-size: clamp(7px, 2.42vw, 8.7px);
    line-height: 1.02;
    letter-spacing: -.025em;
    white-space: normal;
  }

  .ajva-cbr-warning__mobile-break {
    display: inline;
  }

  .ajva-cbr-warning__button {
    right: 0;
    bottom: 6%;
    width: 43.5%;
    min-width: 0;
    height: 31%;
    min-height: 15px;
    padding: 0 5px 0 7.5%;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    font-size: clamp(7px, 2.35vw, 8.5px);
    letter-spacing: .01em;
  }
}

@media (max-width: 340px) {
  .ajva-cbr-warning__container {
    width: calc(100% - 20px);
  }

  .ajva-cbr-warning__title {
    font-size: 10.3px;
  }

  .ajva-cbr-warning__subtitle {
    font-size: 6.9px;
  }

  .ajva-cbr-warning__button {
    font-size: 6.9px;
  }
}
