@font-face {
  font-family: "YSMusic Headline";
  src: url("media/YSMusic-HeadlineBold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #080808;
  --text: #f6f6f6;
  --muted: #b6b6b6;
  --border: #343434;
  --panel: #121212;
  --headline: "YSMusic Headline", system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - clamp(32px, 8vw, 112px))); margin-inline: auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
}
.header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 -18px;
  pointer-events: none;
  /* Web equivalent of the feathered top glass in Android's «Моя волна». */
  background: linear-gradient(#08080870, #08080842 58%, #08080818 78%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  mask-image: linear-gradient(#000, rgb(0 0 0 / 92%) 25%, rgb(0 0 0 / 58%) 50%, rgb(0 0 0 / 16%) 75%, rgb(0 0 0 / 2%) 92%, transparent);
}
.top, .footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 1.06rem var(--headline); white-space: nowrap; }
.brand img { border-radius: 12px; }
.navigation, .footer nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.navigation a, .footer nav a { color: var(--muted); font-size: .94rem; }
.navigation a:hover, .footer nav a:hover { color: var(--text); }

.pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #424242;
  border-radius: 999px;
  padding: 10px 19px;
  font-weight: 650;
  text-align: center;
}
.glass { background: linear-gradient(180deg, #242424, #101010 85%); box-shadow: inset 0 1px 5px #ffffff18; }
.glass:hover { border-color: #9c9c9c; }
.primary { background: #f2f2f2; border-color: #f2f2f2; color: #080808; }
.primary:hover { background: #d7d7d7; border-color: #d7d7d7; }

body { isolation: isolate; }

.wave-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #080808 url("media/wave-playing-wide.webp") center / cover no-repeat;
  pointer-events: none;
}
.wave-backdrop canvas { display: block; width: 100%; height: 100%; }
.wave-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #080808c7, #080808a6 56%, #08080885);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding-block: clamp(38px, 6vw, 86px);
}
.eyebrow { color: var(--muted); font-size: .92rem; font-weight: 650; margin-bottom: 17px; }
h1, h2, h3 { font-family: var(--headline); font-weight: 700; }
h1 { font-size: clamp(3rem, 6vw, 6.2rem); line-height: .96; letter-spacing: -.052em; }
h1 em { color: #c4c4c4; font-style: normal; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.23rem); line-height: 1.55; max-width: 430px; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.screens {
  width: min(100%, 550px);
  justify-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: clamp(16px, 3vw, 36px);
  isolation: isolate;
}
.screens figure { grid-area: 1 / 1; }
.screens .screen-collection {
  width: 52%;
  justify-self: center;
  z-index: 1;
}
.screens .screen-wave, .screens .screen-search {
  width: 41%;
  margin-top: 9%;
}
.screens .screen-wave { justify-self: start; transform: rotate(-9deg); }
.screens .screen-search { justify-self: end; transform: rotate(9deg); }
.screen-collection img { box-shadow: 0 8px 26px #000b; }
.screens img { display: block; border-radius: clamp(12px, 2vw, 23px); }
.screens img { width: 100%; height: auto; border: 1px solid #565656; pointer-events: none; }
figcaption { margin-top: 9px; color: var(--muted); font-size: .9rem; text-align: center; }

.section { padding-block: clamp(34px, 5.2vw, 67px); }
h2 { font-size: clamp(2.15rem, 4.7vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 24px; }
h3 { font-size: clamp(1.42rem, 3vw, 2rem); line-height: 1.1; }
.features { text-align: center; }
.carousel { display: grid; justify-items: center; }
.feature-stage {
  --frame-width: clamp(145px, 27vw, 265px);
  --step: clamp(90px, 18vw, 205px);
  width: 100%;
  height: calc(var(--frame-width) * 2.06 + 16px);
  isolation: isolate;
  position: relative;
  overflow: clip;
  display: grid;
  justify-items: center;
  padding-top: 4px;
}
.feature-slide {
  grid-area: 1 / 1;
  align-self: start;
  position: relative;
  border-radius: clamp(16px, 2.8vw, 28px);
  overflow: hidden;
  border: 2px solid #414141;
  width: var(--frame-width);
  aspect-ratio: 1 / 2.04;
  background: black;
  transition: opacity .32s ease, transform .32s ease;
}
.feature-slide img, .feature-slide video { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-slide[data-position="0"] { z-index: 3; border-color: #d5d5d5; }
.feature-slide[data-position="-1"], .feature-slide[data-position="1"] { z-index: 2; opacity: .69; }
.feature-slide[data-position="-2"], .feature-slide[data-position="2"] { z-index: 1; opacity: .38; }
.feature-slide[data-position="-1"] { transform: translateX(calc(-1 * var(--step))) scale(.84); }
.feature-slide[data-position="1"] { transform: translateX(var(--step)) scale(.84); }
.feature-slide[data-position="-2"] { transform: translateX(calc(-1.85 * var(--step))) scale(.67); }
.feature-slide[data-position="2"] { transform: translateX(calc(1.85 * var(--step))) scale(.67); }
.feature-slide[data-position="off"] { visibility: hidden; opacity: 0; }
.slide-control { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; }
.slide-control:focus-visible { outline-offset: -6px; }

.carousel-dots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-width: 100%; border: 1px solid var(--border); border-radius: 22px; padding: 4px; background: #111; }
.carousel-dot { min-height: 44px; padding: 6px clamp(5px, 1.6vw, 17px); border: 0; border-radius: 17px; background: transparent; color: var(--muted); font-size: clamp(.78rem, 2.8vw, 1rem); cursor: pointer; }
.carousel-dot:hover { background: #232323; color: white; }
.carousel-dot[aria-pressed="true"] { background: #e7e7e7; color: #080808; }
.carousel-dot:focus-visible { outline-offset: -3px; }
.feature-captions { margin-top: 18px; min-height: 100px; }
.feature-captions p { color: var(--muted); margin-top: 8px; line-height: 1.55; }

.download { padding: clamp(14px, 3vw, 30px); border: 1px solid var(--border); border-radius: 25px; background: var(--panel); }
.download { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; gap: 20px; padding: clamp(23px, 4vw, 48px); }
.download h2 { margin-bottom: 8px; }
.download p, details p { color: var(--muted); line-height: 1.58; }
#local-downloads { display: grid; gap: 9px; }
select { width: 100%; padding: 12px; border-radius: 14px; border: 1px solid #555; background: #181818; color: var(--text); }
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; }
details { border-bottom: 1px solid var(--border); }
summary { padding: 15px 0; cursor: pointer; font-weight: 650; }
details p { padding-bottom: 15px; }
.footer { min-height: 82px; border-top: 1px solid var(--border); }

.legal { width: min(760px, calc(100% - 34px)); padding-block: 46px 62px; }
.legal h1 { font-size: clamp(2rem, 6vw, 4rem); overflow-wrap: anywhere; margin-bottom: 23px; }
.legal h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 32px 0 12px; }
.legal h3 { font-size: 1.15rem; margin: 22px 0 9px; }
.legal p, .legal li { line-height: 1.68; overflow-wrap: anywhere; }
.legal p, .legal ul, .legal ol { margin: 0 0 13px; }
.legal .pill { margin-top: 18px; }

@media (max-width: 760px) {
  .wave-backdrop { background-image: url("media/wave-playing-narrow.webp"); }
  .wave-backdrop::after { background: #080808ba; }
  .top { min-height: 64px; }
  .navigation { display: none; }
  .hero, .download, .faq { grid-template-columns: 1fr; }
  .hero { gap: 28px; }
  .screens { justify-self: center; }
  .footer { align-items: flex-start; flex-direction: column; padding-block: 20px; }
  .footer nav { flex-wrap: wrap; gap: 12px 20px; }
}
@media (max-width: 490px) {
  .top, .brand { gap: 7px; }
  .brand img { width: 34px; height: 34px; }
  .telegram { font-size: .85rem; padding-inline: 9px; white-space: nowrap; }
  h1 { font-size: clamp(2.5rem, 11vw, 3rem); }
  .hero-actions .pill { min-height: 44px; padding-inline: 12px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #080808c9, #131313f0);
  padding-block: clamp(17px, 3vw, 26px) 14px;
}
.site-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(125px, 180px));
  gap: clamp(10px, 3vw, 32px);
  padding-bottom: 13px;
}
.site-footer-about p {
  max-width: 380px;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
  font-size: .875rem;
}
.site-footer-links h2 {
  margin-bottom: 3px;
  font: 650 .8rem system-ui, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.site-footer-links ul { list-style: none; padding: 0; margin: 0; }
.site-footer-links a, .site-footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: var(--muted);
  font-size: .875rem;
}
.site-footer a:hover { color: var(--text); }
.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  color: var(--muted);
  font-size: .875rem;
}
.site-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 2px 20px; }

@media (max-width: 680px) {
  .site-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 12px; }
  .site-footer-about { grid-column: 1 / -1; }
  .site-footer-bottom { align-items: flex-start; flex-direction: column; }
}


#ios-open, .ios-dialog button { cursor: pointer; color: var(--text); }
.ios-dialog {
  width: min(460px, calc(100% - 32px));
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  color: var(--text);
}
.ios-dialog::backdrop { background: #000a; }
.ios-dialog h2 { font-size: clamp(1.65rem, 5vw, 2.25rem); margin-bottom: 12px; }
.ios-dialog p { color: var(--muted); line-height: 1.55; }
.ios-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.legal-card {
  padding: clamp(20px, 6vw, 52px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #202020;
  box-shadow: 0 18px 48px #0005;
}
.legal-heading { text-align: center; margin-bottom: clamp(26px, 5vw, 42px); }
.legal-heading img { border-radius: 18px; vertical-align: middle; }
.legal .legal-heading h1 {
  margin: 16px 0 12px;
  font-size: clamp(1.65rem, 5vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.legal-heading p { color: var(--muted); font-weight: 650; }
.legal-copy { color: #d3d3d3; }
.legal-copy h2 {
  padding-top: 24px;
  border-top: 1px solid #494949;
  color: var(--text);
}
.legal-menu { display: grid; gap: 10px; }
.legal-menu a { padding: 14px 16px; border: 1px solid #494949; border-radius: 13px; }
.legal-menu a:hover { background: #292929; }
.legal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.legal .legal-actions .pill { margin-top: 0; }

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.hero-benefits li {
  padding: 5px 10px;
  border: 1px solid #ffffff3d;
  border-radius: 999px;
  background: #101010c9;
  color: #e5e5e5;
  font-size: .9rem;
  font-weight: 650;
}
.feature-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}
.feature-overview article {
  padding: clamp(17px, 3vw, 27px);
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--panel);
}
.feature-overview h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); }
.feature-overview p { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.feature-overview a { display: inline-block; margin-top: 10px; text-decoration: underline; text-underline-offset: 3px; }
.apk-links { display: grid; gap: 9px; }
.faq ol { margin: 0 0 13px; padding-left: 22px; color: var(--muted); line-height: 1.6; }
.faq li + li { margin-top: 7px; }
.apk-verification dl { margin: 0 0 16px; }
.apk-verification dt { margin-top: 8px; font-weight: 650; }
.apk-verification dd { margin: 3px 0; overflow-wrap: anywhere; color: var(--muted); }
@media (max-width: 550px) {
  .feature-overview { grid-template-columns: 1fr; }
}

.apk-size { margin-left: .35em; color: #414141; white-space: nowrap; font-size: .875em; font-weight: 600; }
