@font-face {
  font-family: Rubik;
  src: url("/rubik-cyrillic.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Rubik;
  src: url("/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+0300-0301, U+2000-206F,
    U+20AC, U+2122, U+2190-2199, U+2212, U+2215;
}
:root {
  color-scheme: dark;
  --bg: #101016;
  --panel: #1d1c25;
  --line: #34323f;
  --text: #f5f3f7;
  --muted: #b4b1c0;
  --iris: #c9b7ff;
  --nav-offset: max(
    env(safe-area-inset-bottom),
    var(--tg-content-safe-area-inset-bottom, 0px)
  );
  font:
    16px/1.45 Rubik,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-top: max(
    env(safe-area-inset-top),
    var(--tg-content-safe-area-inset-top, 0px)
  );
  min-height: 100dvh;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
a {
  color: var(--iris);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--iris);
  outline-offset: 4px;
}
button:hover,
a:hover {
  filter: brightness(1.1);
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.top-in,
main {
  max-width: 1256px;
  margin: auto;
  padding-left: clamp(20px, 4vw, 58px);
  padding-right: clamp(20px, 4vw, 58px);
}
#top {
  border-bottom: 1px solid #ffffff12;
}
.top-in {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.6px;
}
.brand img {
  width: 32px;
  height: 32px;
}
.desktop-nav {
  display: flex;
  gap: 8px;
}
.navitem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
}
.navitem[aria-current="page"] {
  color: var(--iris);
  background: #282332;
}
.navitem .icon {
  width: 17px;
  height: 17px;
}
.language,
.filters {
  border: 1px solid var(--line);
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 13px;
  min-height: 38px;
}
.language .icon,
.filters .icon {
  width: 16px;
  height: 16px;
}
main {
  padding-top: 28px;
  padding-bottom: 60px;
}
#dock {
  display: none;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 315px;
  border-radius: 24px;
  background: #191522;
  box-shadow: inset 0 0 0 1px #ffffff12;
}
.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-art {
  left: auto;
  width: 72%;
  object-fit: cover;
  object-position: 50% 51%;
  filter: saturate(1.06);
}
.hero-shade {
  background:
    linear-gradient(
      90deg,
      #1b1726 0%,
      #1b1726 23%,
      #1b1726e0 35%,
      #1b172666 52%,
      transparent 73%
    ),
    linear-gradient(0deg, #0b091c77, transparent 48%);
}
.hero-copy {
  position: relative;
  padding: 38px clamp(25px, 4vw, 60px);
  max-width: 58%;
}
.pick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #c9b7ff14;
  border: 1px solid #c9b7ff43;
  color: #dacdff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
}
.pick .icon {
  height: 14px;
  width: 14px;
}
.hero h1 {
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.01;
  margin: 20px 0 12px;
  text-wrap: balance;
}
.hero p {
  font-size: 15px;
  color: #d4cddd;
  margin: 0 0 22px;
  max-width: 330px;
}
.white-cta,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 12px;
  padding: 12px 17px;
  color: #19151f;
  background: #f3edf9;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}
.white-cta .icon {
  width: 17px;
}
.pager {
  position: absolute;
  right: 19px;
  bottom: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.pager span {
  background: #16131dda;
  border-radius: 14px;
  padding: 4px 8px;
}
.round,
.heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff30;
  background: #16131fcc;
  border-radius: 50%;
  width: 39px;
  height: 39px;
  color: #fff;
}
.pager .round {
  width: 32px;
  height: 32px;
}
.pager .icon {
  width: 15px;
  height: 15px;
}
.catalog {
  margin: 35px 0 0;
}
.catalog:first-child {
  margin-top: 10px;
}
.section-title,
.section-title > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 560;
}
.section-title #count {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  background: #26242e;
  color: #c6c2d1;
  padding: 2px 8px;
  border-radius: 8px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow: auto;
  scrollbar-width: none;
  padding: 2px 1px;
  margin: 18px 0;
}
.chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  color: #cbc8d3;
  border-radius: 25px;
  font-size: 13px;
  padding: 7px 14px;
  min-height: 35px;
}
.chip[aria-pressed="true"] {
  border-color: var(--iris);
  background: var(--iris);
  color: #211932;
  font-weight: 550;
}
.filter-panel {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 16px 0 22px;
}
.filter-panel[hidden] {
  display: none;
}
.filter-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.filter-panel select,
.query {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: var(--panel);
  font-size: 14px;
  color: var(--text);
}
.text-btn {
  font-size: 13px;
  padding: 10px 0;
  color: var(--iris);
}
.query {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 14px;
}
.query input {
  border: none;
  background: transparent;
  flex: 1;
  min-width: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}
.card {
  position: relative;
  min-width: 0;
}
.tile {
  display: block;
  overflow: hidden;
  position: relative;
  background: var(--panel);
  border-radius: 15px;
  width: 100%;
  aspect-ratio: 4/5;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: #15131caa;
  border-color: #ffffff33;
}
.heart .icon {
  width: 17px;
  height: 17px;
}
.marked .icon {
  fill: var(--iris);
  stroke: var(--iris);
}
.caption {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
  gap: 3px;
  padding: 10px 2px 0;
}
.caption strong {
  font-size: 16px;
  font-weight: 520;
  letter-spacing: -0.025em;
}
.caption span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aaa;
}
.color-violet {
  background: #ac93cf;
}
.color-orange {
  background: #eba06c;
}
.color-green {
  background: #90b998;
}
.color-teal {
  background: #71c6c2;
}
.color-blue {
  background: #7397dd;
}
.color-pink {
  background: #d989ad;
}
.color-white {
  background: #ebe9e8;
}
.color-black {
  background: #585769;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 55px 12px;
}
.empty > .icon {
  color: var(--iris);
  width: 30px;
  height: 30px;
}
.empty h3 {
  font-size: 22px;
  margin: 12px;
}
.empty p,
.credit {
  color: var(--muted);
}
.modal-open {
  overflow: hidden;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #1b1922;
  color: var(--text);
  width: min(800px, 94vw);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #090811cf;
  backdrop-filter: blur(6px);
}
.detail-layout {
  display: grid;
  grid-template-columns: 42% 1fr;
}
.preview-wrap {
  display: grid;
  place-items: center;
  background: #100f16;
  padding: 18px;
}
.device {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.device img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mode-plain {
  aspect-ratio: 1200/2600;
  max-height: 66dvh;
  width: auto;
  max-width: 100%;
}
.mode-plain img {
  object-fit: contain;
}
.mode-ios,
.mode-android {
  border: 5px solid #37353b;
  border-radius: 32px;
  aspect-ratio: 9/19.5;
  width: auto;
  height: min(60dvh, 520px);
  max-width: 100%;
}
.mode-android {
  aspect-ratio: 9/20;
  border-radius: 22px;
}
.clock {
  position: absolute;
  inset: 8% 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
  color: white;
  text-shadow: 0 1px 10px #0009;
}
.clock .icon {
  width: 13px;
  height: 13px;
  margin-bottom: 10px;
}
.clock small {
  font-size: 12px;
}
.clock b {
  font-size: clamp(32px, 5vw, 68px);
  letter-spacing: -0.06em;
  line-height: 1.05;
}
.mode-android .clock b {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.9;
  margin-top: 12px;
}
.home-line {
  position: absolute;
  bottom: 8px;
  left: 34%;
  width: 32%;
  height: 3px;
  background: white;
  border-radius: 4px;
}
.detail-copy {
  padding: 40px 28px;
  position: relative;
  align-self: center;
}
.detail-close {
  position: absolute;
  right: 12px;
  top: 8px;
}
.detail-copy .chips {
  margin: 0 0 13px;
}
.detail-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0;
}
.detail-copy p,
.spec {
  color: var(--muted);
  font-size: 14px;
}
.spec span {
  padding: 0 6px;
  color: #73717e;
}
.detail-copy h3 {
  font-size: 15px;
  margin: 28px 0 9px;
}
.segments {
  display: inline-flex;
  gap: 2px;
  background: #121118;
  border-radius: 9px;
  padding: 3px;
}
.segments button {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.segments [aria-pressed="true"] {
  background: #3c344d;
  color: #e4d9ff;
}
.actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}
.primary {
  background: var(--iris);
  gap: 8px;
}
.credit {
  font-size: 12px;
}
.credit,
.caption strong,
.detail-copy h2 {
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--nav-offset));
  transform: translateX(-50%);
  background: #eee8fb;
  color: #241d2c;
  border-radius: 10px;
  padding: 10px 16px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  font-size: 14px;
}
#toast.on {
  opacity: 1;
}
.loading {
  color: var(--muted);
}
.dialog-message {
  display: block;
  color: var(--iris);
  padding-top: 8px;
}
.dialog-message:not(.on) {
  display: none;
}
@media (min-width: 651px) {
  .hero-art {
    mask-image: linear-gradient(90deg, transparent, black 18%);
  }
}
@media (min-width: 1350px) {
  .hero {
    min-height: 342px;
  }
}
@media (max-width: 850px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-copy {
    max-width: 64%;
  }
}
@media (max-width: 650px) {
  .top-in,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .top-in {
    height: 56px;
  }
  .brand {
    font-size: 24px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .desktop-nav {
    display: none;
  }
  main {
    padding-top: 16px;
    padding-bottom: calc(92px + var(--nav-offset));
  }
  #dock {
    position: fixed;
    display: flex;
    justify-content: space-around;
    background: #17161ff5;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 12px calc(5px + var(--nav-offset));
    z-index: 3;
  }
  .navitem {
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    min-width: 76px;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 9px;
  }
  .navitem .icon {
    width: 20px;
    height: 20px;
  }
  .navitem[aria-current="page"] {
    background: transparent;
  }
  .hero {
    min-height: 285px;
    align-items: end;
    border-radius: 17px;
  }
  .hero-art {
    width: 100%;
    object-position: 50% 50%;
    height: 125%;
    top: -17%;
  }
  .hero-shade {
    background:
      linear-gradient(
        0deg,
        #171322 1%,
        #171322c9 25%,
        #17132225 70%,
        transparent
      ),
      linear-gradient(90deg, #19152288, transparent 74%);
  }
  .hero-copy {
    padding: 18px;
    max-width: 88%;
  }
  .hero-copy .pick {
    font-size: 10px;
    padding: 3px 8px;
  }
  .hero h1 {
    font-size: 38px;
    margin: 8px 0;
  }
  .hero p {
    font-size: 12px;
    line-height: 1.3;
    margin: 0 0 14px;
    max-width: 200px;
  }
  .white-cta {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 9px;
  }
  .pager {
    right: 12px;
    bottom: 15px;
    gap: 5px;
  }
  .pager .round {
    width: 26px;
    height: 26px;
  }
  .pager span {
    font-size: 9px;
  }
  .catalog {
    margin-top: 25px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }
  .tile {
    border-radius: 12px;
    aspect-ratio: 3/4;
  }
  .caption strong {
    font-size: 14px;
  }
  .caption span {
    font-size: 11px;
  }
  .heart {
    top: 7px;
    right: 7px;
    width: 31px;
    height: 31px;
  }
  .filters {
    min-height: 33px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .chip {
    padding: 6px 12px;
  }
  .chips {
    margin: 12px 0;
    gap: 6px;
  }
  .filter-panel {
    gap: 9px;
    flex-wrap: wrap;
  }
  .filter-panel select {
    max-width: 145px;
  }
  .detail-layout {
    display: flex;
    flex-direction: column;
  }
  .detail-copy {
    align-self: stretch;
    padding: 16px 19px;
  }
  .preview-wrap {
    padding: 12px;
  }
  .device {
    max-height: 41dvh;
  }
  .mode-plain img {
    max-height: 41dvh;
    width: auto;
    margin: auto;
  }
  .mode-plain {
    width: auto;
  }
  .detail-copy h3 {
    margin: 15px 0 7px;
  }
  .actions {
    margin: 14px 0 7px;
  }
  .detail-close {
    position: fixed;
    top: auto;
    right: auto;
    align-self: end;
  }
  .detail-copy .detail-close {
    position: absolute;
    right: 9px;
    top: 8px;
  }
  .detail-copy p {
    margin: 8px 0;
  }
  .detail-copy h2 {
    max-width: 90%;
  }
  .segments button {
    min-height: 34px;
  }
  .clock b {
    font-size: 34px;
  }
  .mode-android .clock b {
    font-size: 44px;
  }
}
