/* Local Cyrillic+Latin fonts (Manrope & Plus Jakarta Sans) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/manrope-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/manrope-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/manrope-4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/manrope-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/manrope-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/manrope-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/manrope-4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/manrope-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/jakarta-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/jakarta-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/jakarta-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/jakarta-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/jakarta-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/jakarta-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cyrillic heading fallback to Manrope instead of Arial */
.hero h1,
.section-heading h2,
.feature-panel__top h3,
.ribbon h2,
.seo-block h2,
.page-intro h1,
.device-details h1,
.detail-head h1,
.download-box strong,
.side-card h3,
.prose h2,
.footer strong {
  font-family: "Plus Jakarta Sans", Manrope, Arial, sans-serif;
}

/* Prevent horizontal overflow in flex/grid children */
.app-card__head > div,
.mini-app > div,
.side-item > div,
.detail-head > div {
  min-width: 0;
  flex: 1;
}

/* Real app icons, device photos, and screenshot gallery */
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.game-card .app-icon {
  display: block;
}
.game-card .app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-game .app-icon {
  display: block;
}
.featured-game__name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot {
  display: block;
}
.shot--has-img {
  background: #eef2ff;
  border: 1px solid var(--line);
}
.shot--has-img:after {
  display: none;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.device-phone--photo {
  width: 150px;
  height: 220px;
  padding: 10px;
  background: #fff;
  transform: rotate(-4deg);
}
.device-phone--photo:after {
  display: none;
}
.device-phone--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  display: block;
}

/* SVG icons (stars, arrows, chevrons, view toggle) */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
  letter-spacing: 0;
}
.stars svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  display: block;
}
.hero-bubble svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  color: var(--amber);
}
.breadcrumbs {
  flex-wrap: wrap;
  row-gap: 4px;
}
.breadcrumbs svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: .72;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.section-link svg,
.btn svg,
.model-links a svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.view-toggle button {
  display: grid;
  place-items: center;
}
.view-toggle button.is-active {
  background: #f4f0ff;
  border-color: #c9beff;
  color: var(--violet);
}
.view-toggle button svg {
  width: 16px;
  height: 16px;
}

/* Topbar search drawer */
.topbar-search {
  display: none;
  padding: 0 0 14px;
}
.topbar-search.is-open {
  display: block;
}
.topbar-search__form {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 5px 5px 5px 14px;
  box-shadow: 0 10px 26px rgba(48, 48, 105, .08);
}
.topbar-search__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  height: 38px;
}
.topbar-search__form .btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
}

/* Links styled like UI-Kit filter-bar / tabs / sort-tabs */
.filter-bar a {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  color: #66708a;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
  transition: .2s;
}
.filter-bar a:hover {
  border-color: #c9beff;
  color: var(--violet);
}
.filter-bar a.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.filter-bar__search {
  flex: 1 1 220px;
  min-width: 180px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  outline: none;
}
.filter-bar__search:focus {
  border-color: var(--violet);
}

.tabs a {
  padding: 12px 14px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex: 0 0 auto;
}
.tabs a:hover,
.tabs a.is-active {
  color: var(--violet);
  border-color: var(--violet);
}
.tabs .tabs__more {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f4f0ff;
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  border-bottom: 0;
  align-self: center;
}

.genre-panel .chip-more {
  display: inline-flex;
}
.genre-panel__extra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.genre-panel__extra[hidden] {
  display: none;
}
.chip-nav--wrap {
  flex-wrap: wrap;
  overflow: visible;
}

/* List view toggle for .app-grid */
.app-grid.is-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.app-grid.is-list .app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.app-grid.is-list .app-card__head {
  flex: 1;
  min-width: 0;
}
.app-grid.is-list .app-card__bottom {
  margin-top: 0;
  flex: 0 0 auto;
}

/* Load more button */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.loadApps.btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(48, 48, 105, .07);
}
.loadApps.btn:hover {
  border-color: #c9beff;
  color: var(--violet);
}

/* Pagination */
.pagination span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.pagination span.is-active {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}
.pagination a svg {
  width: 14px;
  height: 14px;
}

/* Brand & device model cards */
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}
.brand-card__thumb {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #f5f6fb;
  border: 1px solid var(--line);
  padding: 4px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.model-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.model-links a:hover {
  background: #f4f0ff;
  color: var(--violet);
}

/* App detail: removed status, video, prose lists, comments */
.download-box--removed {
  background: linear-gradient(120deg, #334155, #475569);
  display: block;
}
.download-box--removed small {
  color: #e2e8f0;
}
.download-box__analogs {
  margin-top: 10px;
}
.download-box__analogs p {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.download-box__analogs ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
}
.download-box__analogs a {
  color: #dbeafe;
  text-decoration: underline;
}
.prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.prose li {
  margin-bottom: 5px;
}
.prose a {
  color: var(--blue);
  text-decoration: underline;
}
.compat a {
  padding: 8px 11px;
  border-radius: 10px;
  background: #f2f4ff;
  color: #5b50ba;
  font-weight: 800;
  font-size: 11px;
  display: inline-block;
}
.compat a:hover {
  background: #e5e8ff;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
  background: #0f172a;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.descrToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f4f0ff;
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 820px) {
  .descrSlice {
    display: none;
  }
  .descrSlice.is-expanded {
    display: block;
  }
  .app-grid.is-list {
    grid-template-columns: 1fr;
  }
}

/* Admitad banner slots inside UI-Kit .ad-slot containers */
.aa-banner-slot:empty {
  display: none;
}
.aa-banner-slot.aa-filled {
  display: block;
  width: 100%;
  margin: 0 auto;
}
.aa-banner {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.aa-banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.aa-banner-label {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.ad-slot:empty,
.ad-slot:not(:has(.aa-filled)) {
  display: none;
}
.ad-slot:has(.aa-filled) {
  height: auto;
  min-height: 0;
  padding: 10px;
  border-style: solid;
  border-color: var(--line);
  background: #fff;
}
@media (max-width: 991px) {
  .aa-banner-slot[data-aa-banner="detail-wide"],
  .ad-slot--wide {
    display: none;
  }
  .ad-slot--mobile {
    display: flex;
    height: auto;
    margin: 16px 0;
  }
}
@media (min-width: 992px) {
  .aa-banner-slot[data-aa-banner="mobile-source"],
  .ad-slot--mobile {
    display: none;
  }
}
@media (max-width: 560px) {
  .device-phone--photo {
    width: 128px;
    height: 176px;
  }
}
