/* Общий стиль сайта. Палитра совпадает с приложением: человек, пришедший
   из стора, должен узнать то же самое место. */

:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: #12151c;
  --surface2: #1a1e27;
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.14);
  --amber: #e8b84a;
  --amber-light: #f2c866;
  --text: #f5f7fa;
  --text2: #8a93a6;
  --text3: #5c6478;
  --up: #2ecc71;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--amber-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 90px;
}

/* ---- шапка со ссылками ---- */

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0 0;
  font-size: 14px;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topbar .brand:hover {
  text-decoration: none;
}

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

.topbar nav a {
  color: var(--text2);
  font-weight: 600;
}

/* ---- герой ---- */

header.hero {
  position: relative;
  padding: 62px 0 44px;
  overflow: hidden;
}

header.hero::before {
  content: '';
  position: absolute;
  top: -140px;
  left: -90px;
  width: 470px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 184, 74, 0.15), transparent 68%);
  pointer-events: none;
}

.mark {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: linear-gradient(160deg, #1e222c, #0b0d12);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 36px rgba(232, 184, 74, 0.12);
  overflow: hidden;
}

.mark img {
  width: 100%;
  height: 100%;
}

h1 {
  position: relative;
  font-size: clamp(29px, 5.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 26px 0 12px;
}

h2 {
  font-size: clamp(20px, 3.4vw, 24px);
  letter-spacing: -0.02em;
  margin: 52px 0 14px;
}

h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.lead {
  position: relative;
  font-size: 17.5px;
  color: var(--text2);
  margin: 0;
  max-width: 54ch;
}

p.body {
  color: var(--text2);
  font-size: 15.5px;
  max-width: 66ch;
}

.note {
  font-size: 13px;
  color: var(--text3);
  max-width: 60ch;
}

/* ---- карточки ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 14px;
  margin: 6px 0 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text2);
}

/* ---- карточка приложения на главной ---- */

.app-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  transition: border-color 0.15s;
}

a.app-card:hover {
  border-color: var(--border-hi);
  text-decoration: none;
}

.app-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex: none;
  border: 1px solid var(--border);
}

.app-card .meta {
  min-width: 0;
}

.app-card .name {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-card .desc {
  color: var(--text2);
  font-size: 14.5px;
  margin-top: 2px;
}

.badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-light);
  background: rgba(232, 184, 74, 0.12);
  border: 1px solid rgba(232, 184, 74, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
}

.arrow {
  margin-left: auto;
  color: var(--text3);
  flex: none;
  font-size: 20px;
}

/* ---- экраны приложения ---- */

.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.shots img {
  width: 208px;
  flex: none;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ---- текст политики ---- */

.doc h2 {
  font-size: 19px;
  margin: 36px 0 10px;
}

.doc p,
.doc li {
  color: var(--text2);
  font-size: 15px;
  max-width: 66ch;
}

.doc ul {
  padding-left: 20px;
}

.doc li {
  margin-bottom: 5px;
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- подвал ---- */

footer {
  border-top: 1px solid var(--border);
  margin-top: 54px;
  padding-top: 26px;
  font-size: 13.5px;
  color: var(--text3);
}

footer .links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-weight: 600;
}

.disclaimer {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text3);
  max-width: 58ch;
}
