/* astro-c.com homepage — shared by / (en) and /ru. No framework, no JS needed to render. */
:root {
  color-scheme: dark light;
  --bg: #0b0c12;
  --bg-2: #121318;
  --card: rgb(255 255 255 / .04);
  --line: rgb(255 255 255 / .09);
  --text: #f0f0f0;
  --muted: #a4a7b5;
  --accent: #a693ff;
  --accent-2: #ff8562;
  --on-accent: #0b0c12;
  --glow-1: rgb(130 100 255 / .35);
  --glow-2: rgb(255 133 98 / .18);
  --radius: 28px;
  --wrap: min(1160px, 100% - 32px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f3fb;
    --bg-2: #e0e9ed;
    --card: rgb(255 255 255 / .7);
    --line: rgb(18 19 24 / .08);
    --text: #121318;
    --muted: #55586a;
    --accent: #5b45e0;
    --on-accent: #fff;
    --glow-1: rgb(130 100 255 / .22);
    --glow-2: rgb(255 133 98 / .16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(16px, .3vw + 15px, 18px)/1.6 var(--sans);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 3.6vw + .8rem, 4rem); }
h2 { font-size: clamp(1.9rem, 3vw + .6rem, 3rem); }
p { margin: 0; text-wrap: pretty; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* starfield + glows: pure CSS, replaces ~600KB of background PNGs */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 85% -10%, var(--glow-1), transparent 60%),
    radial-gradient(50vmax 40vmax at -10% 40%, var(--glow-2), transparent 60%),
    var(--bg);
}
.sky::after {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 62%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 84%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 32%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%);
  background-size: 420px 420px;
}
@media (prefers-color-scheme: light) { .sky::after { opacity: 0; } }

/* header */
.nav {
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: .8rem; font-weight: 600; }
.lang a { text-decoration: none; padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current] { background: var(--text); color: var(--bg); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}

/* buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px; border-radius: 16px;
  text-decoration: none; font-weight: 600; line-height: 1.1;
  background: var(--text); color: var(--bg);
  transition: transform .2s, box-shadow .2s;
}
.btn small { display: block; font-size: .7rem; font-weight: 500; opacity: .7; }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--glow-1); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: 1.15fr .85fr; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: .85rem; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.hero h1 em { font-style: italic; color: var(--accent); }
.lead { margin-block: 24px 32px; max-width: 34em; color: var(--muted); font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem); }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-art .phones { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 40px 60px rgb(0 0 0 / .45)); }
.orb { position: absolute; pointer-events: none; animation: float 9s ease-in-out infinite; }
.orb.sun { width: 34%; top: -6%; right: -10%; }
.orb.purple { width: 30%; bottom: 4%; left: -16%; animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -14px; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .eyebrow, .hero .stores { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-art { width: min(80%, 340px); }
}


/* features */
.features { padding-block: clamp(32px, 5vw, 72px); display: grid; gap: clamp(20px, 3vw, 32px); }
.feature {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
}
.feature:nth-child(even) .feature-art { order: -1; }
.feature .num { font-size: .85rem; font-weight: 600; color: var(--accent-2); letter-spacing: .12em; }
.feature h2 { margin-block: 10px 18px; }
.feature p { color: var(--muted); }
.feature-art { position: relative; justify-self: center; width: min(100%, 360px); }
.feature-art img:first-child { position: relative; z-index: 1; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .4)); }
.feature-art .orb { width: 34%; top: -4%; right: -8%; z-index: 0; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-art { order: 0; }
  .feature-art { width: min(85%, 300px); }
}

/* scroll reveal: progressive, only where supported, off for reduced motion */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes reveal { from { opacity: 0; translate: 0 40px; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
}

/* CTA */
.cta {
  margin-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 112px);
  padding: clamp(36px, 6vw, 72px); border-radius: var(--radius); text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, var(--glow-1), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
}
.cta p { color: var(--muted); max-width: 36em; margin: 16px auto 28px; }
.cta .stores { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: .92rem; }
.foot { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.foot h3 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--text); opacity: .85; }
.foot a:hover { opacity: 1; color: var(--accent); }
.foot .brand { margin-bottom: 12px; }
.foot .muted { color: var(--muted); }
.legal { margin-top: 40px; color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
