/* mappa.com.ru — design tokens: orange/red accent */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0a0b;
  --bg-alt: #131315;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --text-muted: #a3a3aa;
  --accent: #ff6a1a;
  --accent-dark: #b5340a;
  --accent-light: #ffa26b;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --maxw: 1200px;
  --header-h: 72px;
  --font: 'Inter', -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.42);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* subtle fixed grain for depth — never on scrolling containers */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.16; }
h3 { font-size: 1.28rem; letter-spacing: -0.01em; }

p { color: var(--text-muted); margin: 0 0 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- icons ---------- */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: block; }
.icon-lg { width: 26px; height: 26px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.logo svg { height: 26px; width: auto; filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--accent) 55%, transparent)); }

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #191008;
  font-weight: 800;
  font-size: 1.02rem;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent);
}

.nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.nav a {
  position: relative;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 0.15s var(--ease);
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transition: right 0.2s var(--ease);
  border-radius: 2px;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-right: 6px;
}
.lang-switcher a { color: var(--text-muted); transition: color 0.15s var(--ease); }
.lang-switcher a:hover { color: var(--text); }
.lang-switcher span.active { color: var(--accent-light); cursor: default; }
.lang-switcher .separator { color: rgba(255, 255, 255, 0.2); user-select: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text);
  width: 40px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-toggle:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--panel-border)); }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- mobile nav panel ---------- */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 24px 18px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 1.02rem; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 901px) {
  .nav { display: flex !important; position: static; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.96rem;
  border: 1.5px solid var(--accent);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.15s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 28%, transparent);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-solid {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-color: transparent;
  color: #191008;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn-solid:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 55%, transparent);
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* ---------- hero ---------- */
.hero-mesh {
  position: relative;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 640px 460px at 10% -8%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%),
    radial-gradient(ellipse 560px 480px at 96% 6%, color-mix(in srgb, var(--accent-dark) 38%, transparent), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 135%);
  overflow: hidden;
}

.hero { padding: 88px 0 96px; }
.hero .container { max-width: var(--maxw); }
.hero p.lead { font-size: 1.12rem; color: rgba(245, 245, 245, 0.82); max-width: 46ch; }
.hero .btn-row { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.page-hero { padding: 64px 0 76px; }
.page-hero .container { max-width: 720px; }

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { max-width: 560px; }

.hero-visual {
  position: relative;
  height: 380px;
  display: block;
}
.hero-visual .radar {
  position: absolute;
  top: 46%;
  left: 42%;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translate(-50%, -50%);
}
.hero-visual .radar::before,
.hero-visual .radar::after {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.hero-visual .radar::after { inset: -68px; border-color: color-mix(in srgb, var(--accent) 9%, transparent); }
.hero-visual .pin {
  position: absolute;
  top: 46%;
  left: 42%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 16%, transparent), 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #191008;
}
.hero-visual .pin svg { width: 22px; height: 22px; stroke: #191008; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--panel-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  max-width: 240px;
}
.float-card .icon-chip { width: 38px; height: 38px; flex: none; }
.float-card .fc-title { font-weight: 700; font-size: 0.92rem; color: var(--text); margin-bottom: 2px; }
.float-card .fc-sub { font-size: 0.8rem; color: var(--text-muted); }
.float-card--a { top: 4%; left: 0; }
.float-card--b { bottom: 4%; right: 2%; }
.float-card--c { top: 36%; right: 16%; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 0 24px;
}
.divider::before {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-border));
}
.divider::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 3px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--panel-border));
}
.card h3 { margin-bottom: 8px; }
.card .role { color: var(--accent-light); font-weight: 600; margin-bottom: 18px; display: block; }
.card .field-label { color: var(--text); font-weight: 700; margin: 18px 0 6px; }
.card ul { color: var(--text-muted); padding-left: 20px; margin: 0; }
.card ul li { margin-bottom: 6px; }

.card-empty {
  border-style: dashed;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.card-empty:hover { transform: none; border-color: var(--panel-border); box-shadow: none; }

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-light);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  margin-bottom: 16px;
}

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 1.01rem;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.feature-list li:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--panel-border));
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
}
.icon-chip {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-list li p, .feature-list li span.txt { padding-top: 4px; }

/* ---------- steps flow (process sections) ---------- */
.steps-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 8px;
}
.steps-flow::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-border) 12%, var(--panel-border) 88%, transparent);
}
.step-flow-item { position: relative; padding: 0 20px; }
.step-flow-item:first-child { padding-left: 0; }
.step-flow-item:last-child { padding-right: 0; }
.step-flow-item .step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  color: var(--accent-light);
  margin-bottom: 22px;
}
.step-flow-item h3 { margin-bottom: 8px; }

/* ---------- stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.stat {
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
}
.stat .num {
  display: block;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat .label { font-size: 0.84rem; color: var(--text-muted); }

/* ---------- roadmap timeline ---------- */
.roadmap { position: relative; padding-left: 28px; border-left: 2px solid var(--panel-border); display: grid; gap: 38px; }
.roadmap-item { position: relative; }
.roadmap-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--panel-border);
}
.roadmap-item .status {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}
.status-done { background: rgba(120, 220, 150, 0.15); color: #7ee0a0; }
.status-progress { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-light); }
.status-planned { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

/* ---------- forms ---------- */
.form-field {
  width: 100%;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.form-field::placeholder { color: #7c7c82; }
.form-field:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.06); }
textarea.form-field { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 52px 0 30px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 10px; font-size: 0.94rem; transition: color 0.15s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #7c7c82;
  font-size: 0.84rem;
}

/* ---------- help / policy pages ---------- */
.policy h2 { margin-top: 40px; }
.policy h3 { margin-top: 32px; font-size: 1.32rem; }
.policy h4 { margin-top: 24px; font-size: 1.12rem; color: var(--accent-light); }
.policy h5 { margin-top: 20px; font-size: 1.02rem; color: var(--text); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 24px 20px 62px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.steps li:hover { border-color: color-mix(in srgb, var(--accent) 32%, var(--panel-border)); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #191008;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.notice {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-muted);
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .btn-solid, .feature-list li { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; margin-top: 24px; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .steps-flow { grid-template-columns: 1fr; gap: 20px; }
  .steps-flow::before { display: none; }
  .step-flow-item { padding: 0 !important; }
  .site-header .container { gap: 16px; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .float-card { max-width: 200px; padding: 12px 14px; }
  .float-card--c { display: none; }
}
@media (max-width: 560px) {
  .site-header .btn { display: none; }
  .container { padding: 0 16px; }
  .logo { font-size: 1.12rem; }
  .hero-visual { height: 240px; }
}
