/* MP3 Книги — the app's typeface and the colours of its icon. */

@font-face { font-family: 'NunitoSans'; font-weight: 400; font-display: swap; src: url('../fonts/NunitoSans-Regular.ttf') format('truetype'); }
@font-face { font-family: 'NunitoSans'; font-weight: 500; font-display: swap; src: url('../fonts/NunitoSans-Medium.ttf') format('truetype'); }

:root {
  --bg: #110d18;
  --ink: #fff;
  --ink2: rgba(255, 255, 255, .74);
  --ink3: rgba(255, 255, 255, .58);
  --line: rgba(255, 255, 255, .1);
  --accent: #e7a6d6;
  --pink: rgba(194, 65, 143, .40);
  --violet: rgba(76, 40, 140, .55);
  --font: 'Avenir Next', 'NunitoSans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; line-height: 1.45;
  position: relative; overflow-x: hidden;
}
/* The soft glow behind the hero, from the icon's gradient. */
body::before {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: -260px; width: min(1300px, 100%); height: 900px; margin: 0 auto;
  background:
    radial-gradient(closest-side at 38% 46%, var(--pink), transparent 70%),
    radial-gradient(closest-side at 64% 52%, var(--violet), transparent 72%);
  pointer-events: none;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 500; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 56px; }

/* ---------- Header ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav .links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--ink2); }
.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px; font-size: 13px; font-weight: 500; }
.lang a, .lang span { padding: 3px 10px; border-radius: 999px; }
.lang span { background: #fff; color: #17171c; }
.lang a { color: var(--ink2); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 34px; }
.hero .icon { width: 116px; height: 116px; border-radius: 27px; box-shadow: 0 18px 50px rgba(160, 50, 140, .55), 0 0 0 1px rgba(255, 255, 255, .12); }
.hero h1 { font-size: 56px; line-height: 1.1; margin: 26px 0 14px; letter-spacing: -.5px; }
.hero p { font-size: 21px; color: var(--ink2); max-width: 640px; margin: 0 auto 30px; }

.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.badge {
  height: 52px; min-width: 172px; padding: 0 18px 0 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .28); transition: border-color .15s;
}
.badge:hover { border-color: rgba(255, 255, 255, .6); }
.badge img { flex: none; }
.badge small { display: block; font-size: 10.5px; opacity: .8; line-height: 1.1; }
.badge b { display: block; font-weight: 500; font-size: 18px; line-height: 1.15; }

/* ---------- Screenshots ---------- */
.shots { display: flex; justify-content: center; align-items: flex-end; gap: 34px; padding: 64px 0 10px; }
.shots .mid { transform: translateY(-26px); }
.phone {
  width: 270px; flex: none; border-radius: 42px; border: 7px solid #050506; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1.5px #4a4a52, 0 26px 60px rgba(0, 0, 0, .45);
}
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 603 / 1311; }

/* ---------- Features ---------- */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; max-width: 1000px; padding: 56px 40px 72px; margin: 0 auto; list-style: none; text-align: center; }
.feats svg { display: block; margin: 0 auto 12px; stroke: var(--accent); }
.feats b { display: block; font-weight: 500; font-size: 17px; margin-bottom: 4px; }
.feats span { font-size: 14.5px; color: var(--ink3); }
.note { text-align: center; color: var(--ink3); font-size: 14px; margin: -40px 0 56px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; padding-bottom: 30px; font-size: 14px; color: var(--ink3); }
.foot .links { display: flex; gap: 26px; }
.foot .links a { color: rgba(255, 255, 255, .85); }

/* ---------- Privacy policy ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 24px 80px; }
.doc .back { font-size: 15px; color: var(--ink3); }
.doc h1 { font-size: 42px; line-height: 1.15; margin: 14px 0 8px; }
.doc .date { color: var(--ink3); font-size: 15px; margin: 0 0 34px; }
.doc .tldr { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .9); margin-bottom: 10px; }
.doc h2 { font-size: 22px; margin: 38px 0 10px; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.65; color: var(--ink2); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--accent); }
.doc b { font-weight: 500; color: var(--ink); }
.doc p a, .doc li a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(231, 166, 214, .4); text-underline-offset: 3px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav { padding-top: 18px; padding-bottom: 18px; }
  .nav .links > a { display: none; }
  .hero { padding-top: 20px; }
  .hero .icon { width: 88px; height: 88px; border-radius: 20px; }
  .hero h1 { font-size: 38px; margin: 20px 0 10px; }
  .hero p { font-size: 17px; margin-bottom: 24px; }
  .badge { width: 210px; }
  /* Screenshots scroll sideways, one at a time. */
  .shots {
    justify-content: flex-start; align-items: stretch; gap: 18px; padding: 40px 20px 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots .mid { transform: none; }
  .phone { width: 240px; scroll-snap-align: center; border-radius: 38px; }
  .feats { gap: 26px 20px; padding: 40px 20px 48px; }
  .feats b { font-size: 15.5px; }
  .feats span { font-size: 13.5px; }
  .note { margin: -20px 0 40px; }
  .foot .wrap { flex-direction: column-reverse; gap: 14px; text-align: center; }
  .foot .links { flex-direction: column; align-items: center; gap: 10px; }
  .doc { padding: 10px 20px 60px; }
  .doc h1 { font-size: 32px; }
  .doc p, .doc li { font-size: 16px; }
}
