/* Home-page Premium banner, scaled from Figma frames 84:42 and 89:32. */
html body #catalog > .home-premium-banner {
  position: relative;
  display: block;
  container-type: inline-size;
  box-sizing: border-box;
  width: calc(100% - 88px);
  max-width: 1512px;
  aspect-ratio: 1920 / 434;
  height: auto;
  min-height: 0;
  margin: 0 auto 36px;
  overflow: hidden;
  border-radius: 22px;
  background: #0b0b0b;
  color: #fff;
  font-family: "Unbounded", sans-serif;
  isolation: isolate;
}

html body #catalog > .home-premium-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/premium-banner-texture.png") center / cover no-repeat;
}

.home-premium-banner__character {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 83.385cqw;
  width: 21.979cqw;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.home-premium-banner__character img {
  position: absolute;
  top: 0;
  left: -83.41%;
  display: block;
  width: 183.41%;
  height: 100%;
  max-width: none;
}

.home-premium-banner__title,
.home-premium-banner__copy,
.home-premium-banner__guardian,
.home-premium-banner__perks,
.home-premium-banner__cta,
.home-premium-banner__progress {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
}

html body #catalog .home-premium-banner__title {
  top: 3.1cqw;
  left: 4.479cqw;
  width: 72cqw;
  margin: 0;
  font-family: "Unbounded", sans-serif !important;
  font-size: 3.333cqw;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -.045em !important;
  white-space: nowrap;
  color: #fff;
}

.home-premium-banner__copy {
  top: 8.281cqw;
  left: 4.479cqw;
  width: 44.063cqw;
  font-size: 1.25cqw;
  font-weight: 300;
  color: #fff;
}

.home-premium-banner__copy p {
  margin: 0;
  line-height: 1.21;
}

.home-premium-banner__copy p + p {
  margin-top: .833cqw;
  line-height: 1.5;
}

.home-premium-banner__perks {
  top: 9.427cqw;
  left: 54.583cqw;
  display: flex;
  align-items: center;
  gap: .417cqw;
}

.home-premium-banner__guardian {
  top: 3.25cqw;
  left: 54.583cqw;
  width: 13.8cqw;
  height: 4.65cqw;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.home-premium-banner__guardian img {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
}

.home-premium-banner__guardian span {
  position: relative;
  top: 4px;
  z-index: 1;
  width: 70%;
  color: #d58cff;
  font-family: "Unbounded", sans-serif;
  font-size: .78cqw;
  font-weight: 540;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 1px 3px #080808;
}
.home-premium-banner__guardian[hidden] { display: none; }

.home-premium-banner__perk {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 3.333cqw;
  gap: .78cqw;
  padding: .313cqw;
  border: 1px solid #fff;
  border-radius: .417cqw;
  font-size: 1.042cqw;
  font-weight: 400;
  line-height: 1.17;
  color: #fff;
}

.home-premium-banner__perk--status { width: 11.302cqw; }
.home-premium-banner__perk--status img { display: block; width: 2.083cqw; height: 2.083cqw; flex: none; }
.home-premium-banner__perk--discount { width: 16.302cqw; gap: .833cqw; }
.home-premium-banner__perk--discount strong { font-size: 1.25cqw; font-weight: 500; }
.home-premium-banner__perk--discount span { white-space: nowrap; }

html body #catalog .home-premium-banner__cta {
  top: 14.01cqw;
  left: 54.583cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23.958cqw;
  height: 2.813cqw;
  gap: .417cqw;
  border-radius: .417cqw;
  background: #fff;
  color: #0a0a0a;
  font-size: 1.25cqw;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, translate .2s ease, box-shadow .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-premium-banner__cta:hover {
    background: #e9e9e9;
    translate: 0 -3px;
    box-shadow: 0 8px 24px rgba(255, 255, 255, .22);
  }
}
.home-premium-banner__cta:focus-visible { outline: 3px solid #ff956a; outline-offset: 3px; }
.home-premium-banner__cta svg { width: 1.979cqw; height: 1.458cqw; flex: none; }

.home-premium-banner__progress {
  top: 18.646cqw;
  left: 4.479cqw;
  width: 41.667cqw;
}

.home-premium-banner__progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .625cqw;
  font-size: 1.042cqw;
  font-weight: 200;
  line-height: 1.25;
  white-space: nowrap;
}

.home-premium-banner__progress-labels span:last-child { font-size: .833cqw; font-weight: 400; }
.home-premium-banner__progress-bar { position: relative; height: 5px; }
.home-premium-banner__progress-bar img { position: absolute; top: 0; left: 0; display: block; height: 5px; }
.home-premium-banner__progress-track { width: 100%; }
.home-premium-banner__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: 0;
  height: 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.45);
}

.home-premium-banner__guardian,
.home-premium-banner__perk,
.home-premium-banner__cta {
  opacity: 0;
  transform: translateY(-28px) scale(.94);
}
.home-premium-banner.is-revealed .home-premium-banner__guardian,
.home-premium-banner.is-revealed .home-premium-banner__perk,
.home-premium-banner.is-revealed .home-premium-banner__cta {
  animation: premium-perk-drop .65s cubic-bezier(.22,1.35,.5,1) forwards;
}
.home-premium-banner.is-revealed .home-premium-banner__guardian { animation-delay: .12s; }
.home-premium-banner.is-revealed .home-premium-banner__perk--status { animation-delay: .3s; }
.home-premium-banner.is-revealed .home-premium-banner__perk--discount { animation-delay: .42s; }
.home-premium-banner.is-revealed .home-premium-banner__cta { animation-delay: .56s; }
@keyframes premium-perk-drop {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 761px) and (max-width: 1199px) {
  html body #catalog > .home-premium-banner { height: 350px; aspect-ratio: auto; }
  html body #catalog .home-premium-banner__title { top: 25px; width: 89%; font-size: clamp(26px, 3vw, 39px); }
  .home-premium-banner__copy { top: 102px; width: 48%; font-size: clamp(12px, 1.45vw, 16px); }
  .home-premium-banner__copy p + p { margin-top: 10px; }
  .home-premium-banner__perks { top: 125px; left: 55%; gap: 5px; }
  .home-premium-banner__guardian { top: 53px; left: 55%; width: 165px; height: 58px; }
  .home-premium-banner__guardian span { font-size: 10px; }
  .home-premium-banner__perk { width: auto; height: 40px; gap: 6px; padding: 4px; border-radius: 6px; font-size: 11px; }
  .home-premium-banner__perk--status { width: 125px; }
  .home-premium-banner__perk--status img { width: 24px; height: 24px; }
  .home-premium-banner__perk--discount { width: 166px; }
  .home-premium-banner__perk--discount strong { font-size: 13px; }
  html body #catalog .home-premium-banner__cta { top: 191px; left: 55%; width: 293px; height: 43px; font-size: 14px; border-radius: 6px; }
  .home-premium-banner__cta svg { width: 26px; height: 20px; }
  .home-premium-banner__progress { top: auto; bottom: 35px; width: 45%; }
  .home-premium-banner__progress-labels { margin-bottom: 10px; font-size: 12px; }
  .home-premium-banner__progress-labels span:last-child { font-size: 11px; }
}

@media (max-width: 760px) {
  html body #catalog > .home-premium-banner {
    width: calc(100% - 28px);
    max-width: 520px;
    aspect-ratio: 375 / 590;
    height: auto;
    margin: 0 auto 30px;
    border-radius: 16px;
  }

  .home-premium-banner__character {
    top: 33.6cqw;
    left: 31.733cqw;
    width: 112.533cqw;
    height: 116cqw;
    opacity: .27;
  }

  html body #catalog .home-premium-banner__title {
    top: 13.3cqw;
    left: 0;
    width: 100%;
    font-size: 8.533cqw;
    line-height: 1.25;
    letter-spacing: -.055em !important;
    text-align: center;
  }

  .home-premium-banner__title span { display: block; }

  .home-premium-banner__copy {
    top: 40.267cqw;
    left: 5.333cqw;
    width: 89.333cqw;
    font-size: 3.2cqw;
  }

  .home-premium-banner__copy p { line-height: 1.21; }
  .home-premium-banner__copy p + p { margin-top: 2.133cqw; line-height: 1.5; }

  .home-premium-banner__perks {
    top: 99cqw;
    left: 5.333cqw;
    gap: 2.133cqw;
  }

  .home-premium-banner__guardian {
    top: 77cqw;
    left: 5.333cqw;
    width: 40cqw;
    height: 15cqw;
  }
  .home-premium-banner__guardian span { top: 2px; font-size: 2.5cqw; }

  .home-premium-banner__perk {
    height: 11.733cqw;
    gap: 4cqw;
    padding: 1.6cqw;
    border-radius: 2.133cqw;
    font-size: 3.2cqw;
  }

  .home-premium-banner__perk--status { width: 36.8cqw; }
  .home-premium-banner__perk--status img { width: 5.333cqw; height: 5.333cqw; }
  .home-premium-banner__perk--discount { width: 53.067cqw; gap: 4.267cqw; }
  .home-premium-banner__perk--discount strong { font-size: 3.733cqw; }

  html body #catalog .home-premium-banner__cta {
    top: 116cqw;
    left: 5.067cqw;
    width: 90.133cqw;
    height: 13.867cqw;
    gap: 2.133cqw;
    border-radius: 2.133cqw;
    font-size: 4.267cqw;
  }

  .home-premium-banner__cta svg { width: 10.133cqw; height: 7.467cqw; }

  .home-premium-banner__progress {
    top: 139cqw;
    left: 5.067cqw;
    width: 90.133cqw;
  }

  .home-premium-banner__progress-labels {
    margin-bottom: 3.2cqw;
    font-size: 3.2cqw;
  }

  .home-premium-banner__progress-labels span:last-child { font-size: 3.2cqw; }
}

@media (prefers-reduced-motion: reduce) {
  .home-premium-banner__guardian,
  .home-premium-banner__perk,
  .home-premium-banner__cta { opacity: 1; transform: none; }
  .home-premium-banner.is-revealed .home-premium-banner__guardian,
  .home-premium-banner.is-revealed .home-premium-banner__perk,
.home-premium-banner.is-revealed .home-premium-banner__cta { animation: none; }
}

.home-premium-banner__guardian span {
  font-size:var(--guardian-desktop-font-size,12px);
  font-weight:500;
  letter-spacing:.005em;
  white-space:nowrap;
  -webkit-text-size-adjust:none;
  text-size-adjust:none;
}
@media(max-width:700px) {
  .home-premium-banner__guardian span {
    font-size:var(--guardian-mobile-font-size,8px);
  }
}

.premium-old-price{font-size:.75em;color:#909098;font-weight:400}.premium-sale-price{color:#ff7373}.premium-plan-card .premium-plan-price{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.premium-plan-card .premium-plan-rub{font-size:16px}

/* Keep each payment currency on its own line. The older grid rule placed both
   secondary prices in the same cell and enlarged their nested strong tags. */
html body #premiumPage .premium-plan-card .premium-plan-price {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
html body #premiumPage .premium-plan-price > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  max-width: 100%;
}
html body #premiumPage .premium-plan-price > div:first-child strong {
  font: 800 clamp(36px, 2.4vw, 48px)/1 var(--font-heading);
  letter-spacing: -.04em;
  white-space: nowrap;
}
html body #premiumPage .premium-plan-card--best .premium-plan-price > div:first-child .premium-old-price {
  display: none;
}
html body #premiumPage .premium-plan-price > .premium-plan-rub {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  grid-column: auto;
  grid-row: auto;
  white-space: normal;
}
html body #premiumPage .premium-plan-price > .premium-plan-rub strong {
  font: 700 15px/1.25 var(--font-heading);
  letter-spacing: 0;
}
html body #premiumPage .premium-plan-price > .premium-plan-rub s {
  font: 400 12px/1.25 var(--font-heading);
  letter-spacing: 0;
}
