.page-carousel {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  height: clamp(175px, 23vw, 300px);
  margin: 20px auto 28px;
  overflow: hidden;
  border-radius: 20px;
  background: #e8e7e4;
  color: #17191c;
  isolation: isolate;
}
.page-carousel-panel { position: absolute; inset: 0; display: block; color: inherit; }
.page-carousel-panel[hidden] { display: none; }
.page-carousel-panel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-carousel-overlay { position: absolute; inset: auto 14px 14px; max-width: 1092px; margin-inline: auto; }
.page-carousel-overlay .km-content-tags { margin: 5px 0 0; }
.page-carousel-caption {
  border: 1px solid #fff9; border-radius: 13px;
  padding: 9px 14px; background: rgb(255 255 255 / 78%);
  overflow-wrap: anywhere;
}
.page-carousel-caption strong, .page-carousel-caption time { display: block; }
.page-carousel-caption strong { line-height: 1.3; }
.page-carousel-caption time { font-size: 12px; margin-top: 3px; }
.page-carousel button { cursor: pointer; }
.page-carousel-arrow {
  z-index: 1;
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: #ffffffe0; color: #17191c;
  backdrop-filter: blur(10px); font-size: 25px; line-height: 1;
  padding: 0; box-sizing: border-box; align-content: center;
}
.page-carousel-arrow svg { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.page-carousel-arrow.previous { left: 14px; }
.page-carousel-arrow.next { right: 14px; }
.page-carousel-dots { position: absolute; z-index: 1; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; max-width: 62%; overflow-x: auto; }
.page-carousel-dots button { display: grid; place-items: center; min-width: 12px; height: 24px; padding: 0 2px; border: 0; background: transparent; }
.page-carousel-dots button::before { content: ''; display: block; width: 11px; height: 5px; background: #fffc; border-radius: 8px; box-shadow: 0 0 4px #0005; }
.page-carousel-dots button[aria-current=true]::before { width: 20px; background: #8b73df; }
.page-carousel :focus-visible, .page-carousel:focus-visible { outline: 2px solid #8b73df; outline-offset: -2px; }
@media(max-width: 480px) {
  .page-carousel { width: calc(100% - 20px); border-radius: 14px; }
  .page-carousel-arrow { width: 34px; height: 34px; }
  .page-carousel-overlay { inset: auto 10px 10px; }
  .page-carousel-caption { padding: 7px 10px; font-size: 13px; }
}

.page-carousel[data-carousel-page="courses"] { width:100%; margin-top:0; }
.page-carousel:is([data-carousel-page="shop"], [data-carousel-page="esim"]) {
  width:min(1376px, calc(100% - 4rem));
  margin-top:18px;
}
@media(max-width:767px) {
  .page-carousel:is([data-carousel-page="shop"], [data-carousel-page="esim"]) {
    width:calc(100% - 2rem);
  }
}
@media(max-width:640px) {
  .page-carousel[data-carousel-page="courses"] { width:min(100%,420px); }
  .page-carousel:is([data-carousel-page="shop"], [data-carousel-page="esim"]) {
    width:min(420px, calc(100% - 2rem));
  }
}
@media(min-width:641px) and (max-width:1152px) {
  .page-carousel-overlay { width:calc(100vw - 60px); max-width:calc(100% - 28px); }
}@media(min-width:641px) and (max-width:1023px) {
  .page-carousel:is([data-carousel-page="shop"], [data-carousel-page="esim"]) {
    margin-top:66px;
  }
}

@media(max-width:767px){.page-carousel:is([data-carousel-page="shop"],[data-carousel-page="esim"]){width:calc(100% - 24px);max-width:none;margin-inline:auto;border-radius:20px}.page-carousel[data-carousel-page="courses"]{width:100%;max-width:none;margin-inline:auto;border-radius:20px}.page-carousel .page-carousel-arrow{display:none}}
