/* Onetapp — design tokens (Figma: Onetapp Promo, тёмный вариант) */
:root {
  --bg: #0B0C15;
  --surface: rgb(16 17 30 / 0.8);          /* #10111E @ 80% — стекло */
  --surface-solid: #10111E;
  --line: rgb(255 255 255 / 0.10);         /* тонкая стекло-кромка */
  --line-strong: rgb(255 255 255 / 0.18);
  --text: #FFFFFF;
  --muted: rgb(255 255 255 / 0.6);
  --dim: rgb(255 255 255 / 0.4);           /* вторая часть двухцветных заголовков */
  --faint: rgb(255 255 255 / 0.24);
  --accent: #8A2BE1;
  --accent-hover: #A64DFF;
  --accent-soft-bg: rgb(138 43 225 / 0.12);
  --accent-soft-line: rgb(138 43 225 / 0.32);
  --on-accent: #FFFFFF;
  --radius-card: 52px;
  --radius-card-mobile: 32px;
  --radius-panel: 40px;
  --radius-ctl: 12px;                      /* кнопки / чипы */
  --radius-pill: 40px;                     /* пилюли */
  --font-display: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: var(--accent); text-decoration: none; transition: color 180ms ease-out; }
a:hover { color: var(--accent-hover); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  flex: none;
}
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 26px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease-out;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav { gap: 16px; }
}

/* ---------- hero ---------- */
.hero { padding: 24px 0 48px; }
.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  background: var(--accent);
  border-radius: var(--radius-panel);
  padding: 64px 56px;
  overflow: hidden;
}
.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  pointer-events: none;
}
.hero-panel::before { width: 420px; height: 420px; top: -180px; right: -80px; }
.hero-panel::after { width: 260px; height: 260px; bottom: -140px; left: 32%; background: rgb(11 12 21 / 0.18); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 20px;
  color: #fff;
}
.hero p {
  color: rgb(255 255 255 / 0.85);
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.25;
  max-width: 26ch;
  margin: 0 0 32px;
}
.hero-visual { position: relative; z-index: 1; display: grid; place-items: center; }
.hero-phone {
  width: min(280px, 62vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 60px rgb(0 0 0 / 0.45));
}
@media (max-width: 860px) {
  .hero-panel { grid-template-columns: 1fr; padding: 48px 28px; }
  .hero-visual { order: -1; }
  .hero-phone { width: min(200px, 54vw); }
}

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-label {
  display: block;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 24px;
  max-width: 26ch;
}
.section-title .dim { color: var(--dim); }
.section-note {
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
}
.section-note strong { color: var(--text); font-weight: 600; }
.accent-text { color: var(--accent); }

/* ---------- cards grid ---------- */
.cards-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  padding: 24px 0 8px;
}
@media (min-width: 720px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cards-grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 220ms ease-out, border-color 220ms ease-out;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
@media (max-width: 719px) {
  .card { border-radius: var(--radius-card-mobile); padding: 24px; }
}

.card .glyph {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-ctl);
  background: var(--accent-soft-bg);
  border: 2px solid var(--accent-soft-line);
  color: var(--accent);
  flex: none;
}
.card .glyph svg { width: 22px; height: 22px; }

.card h2, .card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  margin: 0;
}
.card h3 { font-size: 24px; }
.card h2 .dim, .card h3 .dim { color: var(--muted); }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .card-foot { margin-top: auto; padding-top: 10px; }

/* ---------- products ---------- */
.product-visual {
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid rgb(255 255 255 / 0.12);
}
.product-visual span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: rgb(255 255 255 / 0.9);
  letter-spacing: 0;
}
.product-visual-img {
  overflow: hidden;
  background: radial-gradient(120% 120% at 70% 20%, rgb(138 43 225 / 0.25), rgb(16 17 30 / 0.6));
}
.product-visual-img img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.grad-1 { background: linear-gradient(135deg, #8A2BE1, #3D5BFF 90%); }
.grad-2 { background: linear-gradient(135deg, #5B2BE1, #2B9BE1 90%); }
.grad-3 { background: linear-gradient(135deg, #8A2BE1, #2B3FE1 70%, #10111E); }
.grad-4 { background: linear-gradient(135deg, #4A1B9E, #8A2BE1 60%, #3D5BFF); }
.product-tagline { color: var(--text) !important; font-size: 16px !important; }

/* ---------- stats ---------- */
.stats-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  padding: 24px 0 8px;
}
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card { justify-content: center; }
.stat-chart svg { width: 100%; height: 140px; display: block; }
.stat-years {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 14px;
}
.stat-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-features li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
  font-size: 16px;
}
.stat-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.stat-card.metric { align-items: flex-start; }
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.metric-label { color: var(--muted); font-size: 14px; }

/* ---------- services / careers ---------- */
.service-card h3, .job-card h3 { font-size: 22px; }
.resume-card { border-color: var(--accent-soft-line); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border: 2px solid var(--line);
  border-radius: var(--radius-ctl);
  padding: 4px 12px;
}

/* ---------- contact form ---------- */
.contact-card { border-radius: var(--radius-panel); padding: 48px 40px; }
@media (max-width: 719px) { .contact-card { padding: 28px 20px; } }
.contact-sub { max-width: 52ch; margin-bottom: 32px !important; }
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-row { grid-template-columns: 1fr 1fr; } }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--surface-solid);
  border: 2px solid var(--line);
  border-radius: var(--radius-ctl);
  padding: 12px 16px;
  outline: none;
  transition: border-color 180ms ease-out;
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.form-note { font-size: 13px; color: var(--faint) !important; }

/* ---------- buttons / pills ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-ctl);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease-out, filter 180ms ease-out;
  align-self: flex-start;
}
.cta:hover { color: var(--on-accent); filter: brightness(1.12); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.hero-panel .cta { background: #fff; color: var(--accent); }
.hero-panel .cta:hover { color: var(--accent); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: var(--radius-ctl);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
  border: 2px solid var(--line-strong);
  cursor: pointer;
  transition: border-color 180ms ease-out, color 180ms ease-out, background 180ms ease-out;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: var(--accent-soft-bg);
  border: 2px solid var(--accent-soft-line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.pill.soon { color: var(--muted); }
.pill.soon::before { background: var(--muted); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 180ms ease-out; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- job modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgb(0 0 0 / 0.32); }
.modal-card {
  position: relative;
  width: min(780px, 100%);
  max-height: min(84dvh, 900px);
  overflow-y: auto;
  background: var(--surface-solid);
  border: 2px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 719px) { .modal-card { padding: 28px 20px; border-radius: var(--radius-card-mobile); } }
.modal-card h2 { font-family: var(--font-display); font-size: 32px; font-weight: 400; margin: 0; }
.modal-body h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; color: var(--text); }
.modal-body ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.modal-body li { margin-bottom: 6px; }
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease-out, color 180ms ease-out;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- prose (legal/support pages) ---------- */
.page-head { padding: 56px 0 24px; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 12px;
}
.page-head .meta { color: var(--muted); font-size: 14px; margin: 0; }

.prose {
  max-width: 72ch;
  padding-bottom: 96px;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 44px 0 12px;
}
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose hr { border: none; border-top: 2px solid var(--line); margin: 40px 0 0; }

details.faq {
  border: 2px solid var(--line);
  border-radius: var(--radius-card-mobile);
  padding: 18px 22px;
  margin-bottom: 12px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  flex: none;
}
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 2px solid var(--line);
  padding: 40px 0 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.footer-info { max-width: 46ch; display: flex; flex-direction: column; gap: 10px; }
.footer-info p { margin: 0; }
.footer-made { color: var(--faint); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand { font-size: 16px; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 62dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(80px, 20vw, 160px);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: var(--accent);
}
.notfound p { color: var(--muted); margin: 12px 0 28px; }
.notfound .cta { align-self: center; }

/* ---------- reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 480ms ease-out, transform 480ms ease-out;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}
