:root {
  --paper: #FFF8EE;
  --card: #FFFFFF;
  --ink: #2A2118;
  --ink-soft: #5E5246;
  --ink-faint: #8C7F70;
  --rule: #EADBC6;
  --berry: #B4235A;
  --berry-deep: #8E1745;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; min-height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 85% -120px, #FFE3EC 0%, rgba(255, 227, 236, 0) 70%),
    radial-gradient(900px 480px at -10% 10%, #FFF0D6 0%, rgba(255, 240, 214, 0) 70%),
    var(--paper);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

html[lang="en"] [lang="ru"],
html[lang="ru"] [lang="en"] { display: none !important; }

a { color: var(--berry); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--berry-deep); }

img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__word { height: 26px; width: auto; }

.lang { display: inline-flex; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 3px; }
.lang button {
  font: 600 13px/1 var(--body); letter-spacing: 0.04em; color: var(--ink-soft);
  background: none; border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.hero { padding: 48px 0 40px; max-width: 820px; }
.eyebrow {
  margin: 0 0 14px; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--berry);
}
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.02em;
}
.hero .lede { margin: 22px 0 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 680px; }

.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; padding-bottom: 72px; }

.app {
  --accent: var(--berry); --accent-soft: #FBE3EC;
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(42, 33, 24, .09), 0 18px 40px rgba(80, 50, 20, .10);
  scroll-margin-top: 24px;
}
.app--alias { --accent: #E67E0E; --accent-soft: #FFEBD2; }
.app--hat { --accent: #1F5B60; --accent-soft: #DCEEEC; }
.app--quiz { --accent: #3B3F8C; --accent-soft: #E4E5F6; }

.app__media { aspect-ratio: 1024 / 500; background: var(--accent-soft); }
.app__media img { width: 100%; height: 100%; }

.app__body { flex: 1; padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.app__head { display: flex; align-items: center; gap: 14px; }
.app__icon { width: 56px; height: 56px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(42, 33, 24, .08), 0 4px 12px rgba(42, 33, 24, .10); flex: none; }
.app h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: -0.01em; }
.app .tagline { margin: 6px 0 0; color: var(--accent); font-weight: 700; font-size: 15px; line-height: 1.35; }
.app p.desc { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li {
  font-size: 14px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 5px 12px;
}

.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.store {
  display: inline-flex; align-items: center; gap: 9px;
  width: 146px; height: 48px; padding: 0 10px; border-radius: 10px;
  background: #000; color: #fff; text-decoration: none;
  transition: transform .15s ease;
}
.store:hover { color: #fff; transform: translateY(-2px); }
.store__logo { width: 24px; height: 24px; object-fit: contain; flex: none; }
.store__logo--play { padding: 1.5px; }
.store__text { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.1; white-space: nowrap; }
.store__text small { padding-left: 0.75px; font-weight: 500; font-size: 10.5px; letter-spacing: .02em; opacity: .8; }
.soon {
  display: inline-flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 10px;
  border: 1.5px dashed var(--accent); color: var(--accent); font-weight: 700; font-size: 15px;
}

.foot { border-top: 1px solid var(--rule); padding: 30px 0 46px; color: var(--ink-faint); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot a { color: var(--ink-soft); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Privacy pages */
.doc { width: min(780px, 100% - 32px); margin: 8px auto 72px; }
.doc__card { background: var(--card); border-radius: var(--radius); padding: 40px 48px; box-shadow: 0 0 0 1px rgba(42, 33, 24, .09), 0 18px 40px rgba(80, 50, 20, .10); }
.doc__head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.doc__head img { width: 56px; height: 56px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(42, 33, 24, .08), 0 4px 12px rgba(42, 33, 24, .10); }
.doc h1 { margin: 0; font-family: var(--display); font-size: clamp(26px, 4vw, 34px); line-height: 1.15; letter-spacing: -0.01em; }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 34px 0 10px; letter-spacing: -0.005em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc li b, .doc p b { color: var(--ink); }
.back { display: inline-block; margin: 0 0 18px; font-weight: 600; text-decoration: none; }

@media (max-width: 1000px) {
  .apps { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .doc__card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
