/* 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: #0b0b0c;
  --bg-alt: #141416;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-border: rgba(255, 255, 255, 0.13);
  --text: #f5f5f5;
  --text-muted: #aeaeb4;
  --accent: #ff6a1a;
  --accent-dark: #b5340a;
  --accent-light: #ffa26b;
  --radius: 18px;
  --maxw: 1200px;
  --font: 'Inter', -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.38);
}

* { 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;
}

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

.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.5rem, 5vw, 4.2rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.15; }
h3 { font-size: 1.32rem; 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.82rem;
  color: var(--accent-light);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-bottom: 13px solid var(--accent);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent));
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.logo svg { height: 28px; 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: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #191008;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent);
}

.nav {
  display: flex;
  gap: 30px;
  margin-right: auto;
}
.nav a {
  position: relative;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.15s;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transition: right 0.2s 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: 20px; }
.lang-switch { color: var(--text-muted); font-size: 0.9rem; text-decoration: underline; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text);
  width: 42px;
  height: 38px;
  font-size: 1.2rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 27px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid var(--accent);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s, border-color 0.18s;
  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) 30%, transparent);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }
.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 {
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 55%, transparent);
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* ---------- hero / mesh background ---------- */
.hero-mesh {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(11, 11, 12, 0.35) 0%, rgba(11, 11, 12, 0.55) 55%, var(--bg) 100%),
    url('../img/mesh.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero {
  padding: 104px 0 116px;
}
.hero .container { max-width: 780px; }
.hero p.lead { font-size: 1.16rem; color: rgba(245, 245, 245, 0.85); }
.hero .btn-row { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.page-hero {
  padding: 68px 0 84px;
}

/* ---------- sections ---------- */
section { padding: 92px 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: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.divider::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.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);
  padding: 32px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 35%, 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; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 1.02rem;
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-list li:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--accent) 35%, 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) 16%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
}
.feature-list li p, .feature-list li span.txt { padding-top: 4px; }

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

/* ---------- roadmap timeline ---------- */
.roadmap { position: relative; padding-left: 28px; border-left: 2px solid var(--panel-border); display: grid; gap: 40px; }
.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.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  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: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.15s, background 0.15s;
}
.form-field::placeholder { color: #77777c; }
.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.08);
  padding: 56px 0 32px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.95rem; 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.95rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #77777c;
  font-size: 0.85rem;
}

/* ---------- help / policy pages ---------- */
.policy h2 { margin-top: 40px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 24px 20px 62px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  color: var(--text);
  transition: border-color 0.2s ease;
}
.steps li:hover { border-color: color-mix(in srgb, var(--accent) 35%, 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 14px 14px 0;
  color: var(--text-muted);
}

/* ---------- responsive ---------- */
@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; }
}
@media (max-width: 720px) {
  .nav, .lang-switch { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 72px; }
}
