html[data-lang="en"] [data-l="ru"],
html[data-lang="ru"] [data-l="en"] { display: none; }

.hero {
  position: relative;
  width: min(100% - var(--gutter) * 2, 92rem);
  margin: 0 auto;
  padding: calc(var(--bar-h) + clamp(2.5rem, 9vh, 6rem)) 0 3rem;
  display: grid;
  justify-items: center;
  gap: clamp(2.5rem, 7vh, 4.5rem);
}

.hero__copy { display: grid; justify-items: center; text-align: center; padding: 0 .5rem; }

.release-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .8rem .35rem .45rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .82rem; color: var(--dim);
  transition: background .2s, color .2s;
}
.release-chip:hover { background: var(--surface-3); color: var(--text); }
.release-chip__ver {
  padding: .1rem .5rem; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--accent-font); font-size: .68rem; font-weight: 600;
}
.release-chip svg { width: .7rem; height: .7rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.hero__title {
  margin-top: 1.4rem;
  padding: 0 .08em .06em;
  font-size: min(clamp(3.8rem, 11vw, 9.5rem), 19vh);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .95;
  color: var(--text);
}
.hero__tagline {
  margin-top: .9rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--dim);
}
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; }
.hero__note { margin-top: 1.1rem; font-size: .85rem; color: var(--faint); }

.dl {
  position: relative;
  display: inline-flex;
  min-height: 3.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1.2rem 3rem -1.6rem rgba(0, 0, 0, .9);
  transition: transform .25s var(--ease-spring);
}
.dl:hover { background: #fff; }
.dl__main { display: flex; align-items: center; gap: .75rem; padding: .55rem 1.3rem .55rem 1.1rem; border-radius: 999px 0 0 999px; }
.dl__main:active { transform: scale(.97); }
.dl__os { width: 1.3rem; height: 1.3rem; flex: none; }
.dl__os svg { width: 100%; height: 100%; }
.dl__text { display: grid; text-align: left; }
.dl__title { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.dl__meta { font-size: .74rem; opacity: .62; }
.dl__more {
  width: 3rem;
  display: grid; place-items: center;
  border-left: 1px solid rgba(18, 19, 20, .14);
  border-radius: 0 999px 999px 0;
  transition: background .2s;
}
.dl__more:hover { background: rgba(18, 19, 20, .06); }
.dl__more svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-spring); }
.dl[data-open] .dl__more svg { transform: rotate(180deg); }

.hero__oss { min-height: 3.4rem; padding: 0 1.3rem; font-size: .92rem; }

.dl-menu {
  position: absolute; top: calc(100% + .6rem); left: 50%; z-index: 30;
  translate: -50% 0;
  width: max(100%, 20rem);
  padding: .4rem;
  border-radius: 1.4rem;
  border: 1px solid var(--line-strong);
  background: rgba(24, 25, 27, .94);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 1.6rem 3.6rem -1.4rem rgba(0, 0, 0, .9);
  color: var(--text);
  text-align: left;
  animation: menu-pop .28s var(--ease-out);
}
.dl-menu[hidden] { display: none; }
@keyframes menu-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.dl-menu__item, .dl-menu__soon {
  display: grid; grid-template-columns: 1.3rem 1fr auto; align-items: center; gap: .75rem;
  padding: .65rem .8rem; border-radius: 1rem;
  font-size: .92rem;
}
.dl-menu__item { transition: background .2s; }
.dl-menu__item:hover, .dl-menu__item:focus-visible { background: var(--surface-2); outline: none; }
.dl-menu__item[aria-current="true"] .dl-menu__name::after { content: ''; display: inline-block; width: .38rem; height: .38rem; margin-left: .5rem; border-radius: 50%; background: var(--live); vertical-align: middle; }
.dl-menu__soon { color: var(--faint); }
.dl-menu__glyph { width: 1.2rem; height: 1.2rem; color: var(--dim); }
.dl-menu__glyph svg { width: 100%; height: 100%; }
.dl-menu__meta { font-size: .76rem; color: var(--faint); }
.dl-menu__all { display: block; margin-top: .25rem; padding: .65rem .8rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--dim); }
.dl-menu__all:hover { color: var(--text); }

.hero__devices {
  position: relative;
  width: min(100%, 70rem);
  aspect-ratio: 1.75;
}
.hero-device { position: absolute; margin: 0; }
.hero-device__frame { position: relative; overflow: hidden; background: #0c0d0f; }
.hero-device__frame img { width: 100%; height: auto; }
.hero-device__glow { position: absolute; inset: -8%; z-index: -1; opacity: .4; filter: blur(3rem) saturate(1.2) brightness(1.2); }
.hero-device__glow img { width: 100%; height: 100%; object-fit: cover; }
.hero-device--desk { left: 15%; top: 0; width: 70%; z-index: 1; }
.hero-device--desk .hero-device__frame { border-radius: 1rem; border: 1px solid var(--line-strong); box-shadow: 0 3rem 6rem -2.5rem #000; }
.hero-device--compact { left: 0; top: 12%; width: 22%; z-index: 2; transform: perspective(1200px) rotateY(12deg); animation: drift 9s ease-in-out infinite alternate; }
.hero-device--compact .hero-device__frame { border-radius: .9rem; border: 1px solid var(--line-strong); box-shadow: 0 2.5rem 5rem -2rem #000; }
.hero-device--phone { right: 1%; top: 18%; width: 17%; z-index: 2; transform: perspective(1200px) rotateY(-12deg); animation: drift 8s ease-in-out -3s infinite alternate; }
.hero-device--phone .hero-device__frame { border-radius: 1.6rem; box-shadow: 0 0 0 .4rem #111214, 0 0 0 calc(.4rem + 1px) var(--line-strong), 0 2.5rem 5rem -2rem #000; }
@keyframes drift { to { translate: 0 -.6rem; } }
.hero-device__tag {
  position: absolute; left: 50%; bottom: -2.2rem;
  translate: -50% 0;
  font-size: .78rem; color: var(--faint); white-space: nowrap;
}

.hero__next {
  width: 2.8rem; height: 2.8rem;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--faint);
}
.hero__next:hover { color: var(--text); }
.hero__next svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(.3rem); } }

.get {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin: 0 auto;
  padding: clamp(4.5rem, 11vh, 8rem) 0 clamp(3.5rem, 8vh, 6rem);
}
.platforms {
  margin-top: 2.6rem;
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  background: rgba(20, 21, 23, .66);
  overflow: hidden;
}
.platforms__loading { text-align: center; color: var(--faint); font-size: .9rem; padding: 2.5rem 0; }
.prow {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 1rem 1.4rem;
  padding: 1.15rem 1.4rem;
  border-top: 1px solid var(--line);
}
.prow:first-child { border-top: 0; }
.prow[data-current] { background: rgba(255, 255, 255, .035); }
.prow__glyph { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 1rem; background: var(--surface-2); }
.prow__glyph svg { width: 1.4rem; height: 1.4rem; }
.prow__glyph--pair { display: flex; gap: .25rem; justify-content: center; }
.prow__glyph--pair svg { width: 1.05rem; height: 1.05rem; }
.prow__name { font-family: var(--display); font-size: 1.2rem; font-weight: 800; }
.prow__note { font-size: .82rem; color: var(--faint); }
.prow__files { display: flex; flex-wrap: wrap; gap: .4rem; }
.prow__files a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .75rem; border-radius: 999px;
  background: var(--surface); font-size: .8rem; color: var(--dim);
  transition: background .2s, color .2s;
}
.prow__files a:hover { background: var(--surface-3); color: var(--text); }
.prow__size { font-family: var(--mono); font-size: .7rem; color: var(--faint); }
.prow__get { min-width: 11rem; justify-content: space-between; }
.prow__get-meta { font-family: var(--mono); font-size: .7rem; font-weight: 500; opacity: .6; }
.prow__soon { padding: .45rem .9rem; border-radius: 999px; background: rgba(255, 212, 112, .1); color: var(--gold); font-size: .84rem; font-weight: 600; justify-self: end; }
.prow__mine { margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(82, 255, 182, .12); color: var(--live); font-family: var(--body); font-size: .68rem; font-weight: 600; vertical-align: middle; }

.oss {
  margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.4rem 1.6rem;
  border-radius: 1.6rem;
  background: rgba(20, 21, 23, .5);
  border: 1px solid var(--line);
}
.oss__copy { display: grid; gap: .3rem; max-width: 46ch; }
.oss h3 { font-size: 1.4rem; }
.oss p { color: var(--dim); font-size: .95rem; }
.oss__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 900px) {
  .hero__devices { aspect-ratio: 1.35; }
  .hero-device--desk { left: 4%; width: 92%; }
  .hero-device--compact { top: 34%; width: 30%; left: -2%; }
  .hero-device--phone { top: 30%; width: 24%; right: -2%; }
  .prow { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
  .prow__files { grid-column: 2 / -1; }
}

@media (max-width: 560px) {
  .hero__title { font-size: clamp(3.4rem, 19vw, 5rem); }
  .hero__cta { flex-direction: column; width: 100%; }
  .dl, .hero__oss { width: 100%; }
  .dl__main { flex: 1; justify-content: center; }
  .prow { grid-template-columns: 2.6rem minmax(0, 1fr); padding: 1rem; }
  .prow__get { grid-column: 1 / -1; justify-self: stretch; }
  .prow__soon { grid-column: 1 / -1; justify-self: start; }
  .prow__files { grid-column: 1 / -1; }
  .oss { padding: 1.2rem; }
  .oss__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-device--compact, .hero-device--phone, .hero__next svg { animation: none; }
}
