:root {
  --bg: #ffffff;
  --bg-tint: #f6f5ff;
  --accent: #3a46ea;
  --accent-hover: #2f3ad1;
  --violet: #5b4de0;
  --lavender: #b5a8fc;
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #4a4f7a;
  --muted: #667085;
  --line: #eaecf0;
  --line-2: #d8dbec;
  --card: #ffffff;
  --soft: #ece9fe;
  --radius: 24px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Background glow ellipses (QOS style, softened for light theme) */
.glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  background: var(--lavender); filter: blur(140px); opacity: 0.35; z-index: 0;
}
.glow--1 { width: 560px; height: 400px; left: -260px; top: -160px; }
.glow--2 { width: 520px; height: 380px; right: -260px; top: 360px; opacity: 0.25; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

/* Text logo */
.logo {
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
  font-weight: 700; font-size: 22px; letter-spacing: -0.03em; line-height: 1;
}
.logo__altyn { color: var(--accent); }
.logo__qr {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--violet));
  padding: 5px 7px 6px; border-radius: 8px; letter-spacing: 0;
}

.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.lang button {
  background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 13px;
  padding: 6px 10px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--soft); color: var(--accent); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero { position: relative; padding: 104px 0 96px; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2); color: var(--ink-3); font-size: 14px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; margin: 22px 0 20px; color: var(--ink); }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero__lead { color: var(--ink-2); font-size: 19px; max-width: 560px; }
.hero__cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.hero__panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 28px;
  box-shadow: 0 12px 32px -12px rgba(58, 70, 234, 0.18), 0 1px 3px rgba(16, 24, 40, 0.06);
}
.stat { display: flex; flex-direction: column; padding: 18px 0; border-bottom: 1px solid var(--line); gap: 4px; }
.stat:last-child { border-bottom: 0; }
.stat b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.stat span { color: var(--muted); font-size: 15px; }

/* Sections */
.section { position: relative; padding: 96px 0; scroll-margin-top: 72px; }
.section--light { background: var(--bg-tint); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 12px 0 14px; }
.section__head p { color: var(--ink-2); font-size: 18px; }

/* Cards grid */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
}
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; stroke: #fff; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: #fff; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; background: var(--soft);
  color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 14px; }

/* Industries / tech */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2);
  color: var(--ink-3); font-size: 15px; font-weight: 500;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.split h3 { font-size: 20px; margin-bottom: 18px; }

/* About / company */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.about__text p { color: var(--ink-2); font-size: 17px; margin-bottom: 16px; }
.details {
  background: var(--bg-tint); border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius); padding: 8px 28px;
}
.details dl { margin: 0; }
.details div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.details div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); font-size: 14px; }
.details dd { margin: 0; font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.details a { color: var(--accent); text-decoration: none; }

/* Contact */
.contact {
  position: relative; overflow: hidden; border-radius: 32px; padding: 56px; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
}
.contact h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin-bottom: 14px; }
.contact p { color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.contact__list { display: grid; gap: 14px; }
.contact__item {
  display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, 0.14);
  border-radius: 16px; padding: 16px 18px; text-decoration: none;
}
.contact__item svg { width: 22px; height: 22px; stroke: #fff; flex: none; }
.contact__item small { display: block; color: rgba(255, 255, 255, 0.72); font-size: 13px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.footer__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* Legal pages */
.legal { position: relative; padding: 72px 16px 96px; background: var(--bg-tint); }
.legal__card {
  position: relative; z-index: 1; max-width: 820px; margin: 0 auto; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 56px;
}
.legal h1 { font-size: clamp(26px, 6vw, 36px); margin-bottom: 8px; overflow-wrap: anywhere; hyphens: auto; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 32px 0 12px; }
.legal p, .legal li { color: #344054; font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }

/* i18n visibility */
html[lang="ru"] [lang="en"]:not(html),
html[lang="en"] [lang="ru"]:not(html) { display: none !important; }

/* Responsive */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 860px) {
  .hero { padding: 64px 0; }
  .hero__inner, .about, .split, .contact { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .contact { padding: 36px 24px; border-radius: 24px; }
  .section { padding: 72px 0; }
  .legal__card { padding: 32px 22px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .header__actions .btn { display: none; }
  .details div { grid-template-columns: 1fr; gap: 4px; }
  .hero__lead { font-size: 17px; }
}
