@import url('/fonts.css');

/* ARTEX palette (stage 4 section 00.3), same tokens as the Mini App. */
:root {
  --bg: #f7f8fd; --card: #ffffff; --tint: #eef0fc; --line: #e3e5f3;
  --text: #17144a; --text-2: #55537f; --text-3: #6b6994;
  --accent: #4f46e5; --accent-ink: #4338ca; --on-accent: #ffffff; --accent-2: #a21caf;
  --hero-bg: #14122f; --hero-text: #d9d8f2; --hero-text-2: #9896c4;
  color-scheme: light dark;
  font: 17px/1.6 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171717; --card: #262626; --tint: #34306b; --line: #3a3a3a;
    --text: #ececec; --text-2: #a3a3a3; --text-3: #939393;
    --accent: #6760f2; --accent-ink: #a9a4ff; --accent-2: #d57bfd;
    --hero-bg: #1e1b45;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--accent-ink); }
h1, h2, h3 { font-family: 'Geologica', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.015em; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
header.site a.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 22px 'Geologica', system-ui, sans-serif; }
header.site a.logo img { width: 36px; height: 36px; border-radius: 10px; }
header.site .by { color: var(--text-2); text-decoration: none; font-size: 15px; }

/* The ARTEX gradient is used only here and in the logo (section 00.3). */
.hero {
  position: relative; overflow: hidden; margin: 8px 0 28px; padding: 64px 28px; border-radius: 28px;
  background: var(--hero-bg); color: #fff; text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.55;
  background: linear-gradient(135deg, #00109b 0%, #0158ea 22%, #4c25f0 45%, #32c9fc 68%, #48f6fd 82%, #c130fc 100%);
}
.hero > * { position: relative; }
.hero img.mascot { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.hero h1 { margin: 18px 0 0; font-size: clamp(52px, 12vw, 104px); line-height: 1; }
.hero .tagline { margin: 14px 0 4px; font: 600 clamp(20px, 4vw, 30px)/1.25 'Geologica', system-ui, sans-serif; }
.hero .tagline-ru { margin: 0 0 30px; color: #e8e7fb; font-size: 18px; }
.button { display: inline-block; padding: 15px 28px; border-radius: 999px; background: #fff; color: #17144a; font-weight: 700; text-decoration: none; }
.button:focus-visible { outline: 3px solid #a9a4ff; outline-offset: 3px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding-bottom: 48px; }
.features div { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text-2); }
.features strong { display: block; margin-bottom: 6px; color: var(--text); font-family: 'Geologica', system-ui, sans-serif; }
footer.site { padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
article.legal { padding: 8px 0 40px; }
article.legal h1 { font-size: 34px; line-height: 1.2; margin: 8px 0 4px; }
article.legal h2 { font-size: 21px; margin: 28px 0 8px; }
article.legal .meta { color: var(--text-2); font-size: 15px; }
article.legal .note { padding: 12px 14px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); font-size: 15px; }
.lang { font-size: 15px; }
