/* Shared look for every page under data/. Served with a 30-day cache (nginx.web.conf), so
   pages link it as /site.css?v=N — bump N on every change or returning visitors keep the old one. */

:root{
  --bg: #fefaf7;
  --paper: #fefdfc;
  --linen: #f6ede6;
  --ink: #1d2740;
  --muted: #5d6475;
  --line: #e3d5cb;
  --thread: #b0392e;
  --thread-soft: #f7e2de;
  --ring: rgba(29, 39, 64, .12);
  --shadow: 0 1px 2px rgba(29,39,64,.05), 0 12px 32px rgba(29,39,64,.07);
  --radius: 16px;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --dash: repeating-linear-gradient(90deg, var(--thread) 0 9px, transparent 9px 15px);
}

*{ box-sizing: border-box }
html{ -webkit-text-size-adjust: 100%; }
html, body{ margin: 0; }
body{
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.6 var(--font);
  background: var(--bg);
  overflow-x: hidden;
}
img{ max-width: 100%; }
a{ color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(29,39,64,.35); }
a:hover{ text-decoration-color: var(--thread); }
:focus-visible{ outline: 2px solid var(--thread); outline-offset: 3px; border-radius: 6px; }

/* Deleting a page's <noscript> block leaves these rules with nothing to switch them off, and a
   scripting-off browser gets a blank page. */
[data-lang-block]{ display: none }
html[data-lang="ru"] [data-lang-block="ru"],
html[data-lang="en"] [data-lang-block="en"]{ display: block }
html[data-lang="ru"] span[data-lang-block="ru"],
html[data-lang="en"] span[data-lang-block="en"]{ display: inline }

/* ---------- shared bits ---------- */

.brand{
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 600 21px/1 var(--serif);
}
.brand img{ width: 34px; height: 34px; border-radius: 9px; }

.langswitch{ display: inline-flex; gap: 4px; }
.langswitch button{
  appearance: none; border: 0; cursor: pointer;
  padding: 6px 10px; min-height: 36px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: 14px; line-height: 1;
  border-bottom: 1.5px solid transparent;
}
.langswitch button:hover{ color: var(--ink) }
.langswitch button[aria-pressed="true"]{ color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }

.stores{ display: flex; flex-wrap: wrap; gap: 12px; }
/* Official badges, used as supplied: Apple and Google both forbid restyling them. */
.store{ display: inline-flex; line-height: 0; border-radius: 9px; transition: transform .12s ease; }
.store:hover{ transform: translateY(-1px); }
.store img{ height: 48px; width: auto; }
html[data-platform="ios"] .store.android,
html[data-platform="android"] .store.ios{ display: none; }
html[data-platform="ios"] .store img,
html[data-platform="android"] .store img{ height: 56px; }

.btn{
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px;
  background: var(--ink); color: #fff;
  font: inherit; font-weight: 600; font-size: 17px; line-height: 1.2;
  transition: background-color .12s ease, transform .08s ease;
}
.btn:hover{ background: #283556; }
.btn:active{ transform: translateY(1px); }

/* The hamster sits behind the card and only its head clears the top edge, so the card
   needs an opaque background and the wrapper room above it. */
.qr-peek{ position: relative; max-width: 400px; margin-top: 84px; }
.qr-peek .peek{ position: absolute; width: 150px; height: auto; right: 20px; top: -54px; transform: rotate(6deg); }
.qr-card{
  position: relative; display: flex; gap: 16px; align-items: center;
  padding: 14px; border: 1px solid var(--line); background: var(--paper); border-radius: 14px;
}
.qr-card img{ width: 92px; height: 92px; flex: 0 0 92px; }
.qr-card p{ margin: 0; font-size: 15px; color: var(--muted); }
.qr-card strong{ color: var(--ink); }

.sitefoot{
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  color: var(--muted); font-size: 14px;
}
.sitefoot .in{
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between;
  padding: 26px 0 40px; border-top: 1px solid var(--line);
}
.sitefoot nav{ display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* nav sets its own display, which would otherwise outrank the generic language switch */
.sitefoot nav[data-lang-block]{ display: none; }
html[data-lang="ru"] .sitefoot nav[data-lang-block="ru"],
html[data-lang="en"] .sitefoot nav[data-lang-block="en"]{ display: flex; }
.sitefoot a{ color: var(--muted); text-decoration: none; }
.sitefoot a:hover{ color: var(--ink); }

/* ---------- landing (index, get) ---------- */

.landing .w{ max-width: 1120px; margin: 0 auto; padding: 0 24px; }

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

.hero{ display: grid; gap: 28px; align-items: center; padding: 8px 0 56px; border-bottom: 1px solid var(--line); }
.hero h1, .get h1{
  margin: 0 0 20px; font: 500 clamp(40px, 9vw, 68px)/1.04 var(--serif); letter-spacing: -.02em;
}
.hero h1 em, .get h1 em{ font-style: italic; position: relative; white-space: nowrap; }
.hero h1 em::after, .get h1 em::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: 3px; background: var(--dash);
}
.hero .lead{ margin: 0 0 28px; font-size: 19px; color: var(--muted); max-width: 30em; }
.hero .qr-peek{ display: none; }

.phones{ position: relative; height: 460px; }
.phone{
  position: absolute; width: 200px; padding: 7px; border-radius: 30px;
  background: #11151f; box-shadow: 0 30px 60px -20px rgba(29,39,64,.35);
}
.phone img{ display: block; width: 100%; height: auto; border-radius: 24px; }
.phone.a{ left: 3%; top: 26px; transform: rotate(-4deg); }
.phone.b{ right: 3%; top: 0; transform: rotate(3deg); }

.section{ padding: 56px 0; border-bottom: 1px solid var(--line); }
.section h2, .cta h2{
  margin: 0 0 32px; max-width: 18em;
  font: 500 clamp(30px, 6vw, 42px)/1.12 var(--serif); letter-spacing: -.01em;
}

.section.reports{
  display: grid; gap: 32px; align-items: center;
  margin: 56px 0; padding: 40px 22px 0; border: 0; border-radius: 24px;
  background: var(--linen); overflow: hidden;
}
.reports h2{ margin-bottom: 24px; }
.points{ display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; max-width: 30em; font-size: 19px; }
.points li{ position: relative; padding-left: 28px; }
.points li::before{ content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; border-radius: 1px; background: var(--thread); }
/* ul sets its own display, which would otherwise outrank the generic language switch */
.points[data-lang-block]{ display: none; }
html[data-lang="ru"] .points[data-lang-block="ru"],
html[data-lang="en"] .points[data-lang-block="en"]{ display: grid; }
.reports-phone{ position: relative; display: flex; justify-content: center; align-self: end; height: 440px; }
.reports-phone .phone{ position: relative; width: 250px; height: max-content; }
.notif{
  position: absolute; left: 50%; top: 14px; width: 270px; margin-left: -165px;
  padding: 12px 14px; border-radius: 18px; background: #fff;
  box-shadow: 0 14px 34px -10px rgba(29,39,64,.35);
  font: 14px/1.35 Roboto, var(--font); color: #1d1b20;
}
.notif-head{ display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; color: #6b6b72; }
.notif-head img{ width: 18px; height: 18px; border-radius: 5px; }
.notif b{ display: block; font-weight: 600; }
.notif span{ display: block; color: #49454f; }
.notif em{ display: inline-block; margin-top: 8px; font-style: normal; font-weight: 600; color: #6650a4; }

.cta{ padding: 80px 0; text-align: center; }
.cta h2{ margin: 0 auto 12px; }
.cta p{ margin: 0 0 28px; color: var(--muted); }
.cta .stores{ justify-content: center; }

@media (min-width: 760px){
  .section{ padding: 72px 0; }
}
@media (min-width: 900px){
  .topbar{ padding: 26px 0; }
  .hero{ grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 40px 0 72px; }
  .hero .qr-peek{ display: block; }
  .store img{ height: 52px; }
  .phones{ height: 600px; }
  .phone{ width: 270px; padding: 9px; border-radius: 38px; }
  .phone img{ border-radius: 30px; }
  .phone.a{ left: 0; top: 40px; }
  .phone.b{ right: 10px; }
  .cta{ padding: 90px 0; }
  .section.reports{ grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 56px 56px 0; }
  .reports > div:first-child{ padding-bottom: 56px; }
  .reports-phone{ height: 500px; }
  .reports-phone .phone{ width: 280px; }
  .notif{ margin-left: -175px; top: 16px; width: 290px; }
}

/* ---------- document pages (support, privacy, terms, csae, delete-account) ---------- */

.doc main{ max-width: 760px; padding: 32px 0 56px; }
.doc h1{ margin: 0; font: 500 clamp(36px, 7vw, 56px)/1.06 var(--serif); letter-spacing: -.02em; }
.doc .updated{ margin: 12px 0 32px; color: var(--muted); font-size: 15px; }
.doc h2{ margin: 44px 0 10px; font: 500 28px/1.2 var(--serif); }
.doc h3{ margin: 26px 0 6px; font-size: 18px; line-height: 1.3; font-weight: 600; }
.doc p{ margin: 10px 0; }
.doc ul{ margin: 10px 0 12px; padding-left: 0; list-style: none; }
.doc li{ position: relative; margin: 8px 0; padding-left: 24px; }
.doc li::before{ content: ""; position: absolute; left: 2px; top: .78em; width: 12px; height: 2px; border-radius: 1px; background: var(--thread); }
.doc code{ font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--linen); }
.doc .muted{ color: var(--muted); }
.doc .callout{ margin: 16px 0; padding: 12px 16px; background: var(--thread-soft); border-left: 2px solid var(--thread); font-size: 16px; }
.doc .callout strong{ color: var(--thread); }
.doc .contact{ margin: 20px 0; padding: 20px 22px; border-radius: 16px; background: var(--linen); }
.doc .contact .label{ margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.doc .contact .mail{ display: inline-block; margin: 4px 0; font: 500 clamp(22px, 5.5vw, 28px) var(--serif); word-break: break-all; }
.doc .contact .note{ margin: 4px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- analytics consent banner (injected by analytics.js) ---------- */
.consent{
  position: fixed; z-index: 20; right: 16px; left: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 6px 12px;
  padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 12px 32px -14px rgba(29,39,64,.3); font-size: 14px; line-height: 1.35;
}
.consent p{ flex: 1; margin: 0; color: var(--muted); }
.consent button{ appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 7px 12px; border-radius: 9px; white-space: nowrap; }
.consent-ok{ background: var(--ink); color: #fff; }
.consent-no{ background: transparent; color: var(--muted); }
.consent-no-text{ display: none; }
.consent-no{ padding: 7px 8px; font-size: 16px; line-height: 1; }
@media (min-width: 760px){
  .consent{ left: auto; right: 24px; bottom: 24px; max-width: 560px; }
  .consent-no-text{ display: inline; }
  .consent-no-x{ display: none; }
  .consent-no{ padding: 7px 12px; font-size: 14px; line-height: inherit; }
}
