/* Compass: Find Way Back — стили раздела /compass/ (свои, независимые от site.css).
   Палитра приложения: белый/чёрный, один оранжевый акцент, серые поверхности,
   системный шрифт. Тёмные блоки = тёмная тема приложения. */

:root {
  --bg: #ffffff;
  --text: #000000;
  --text-2: #6e6e73;
  --text-3: #8e8e93;
  --surface: #f2f2f7;
  --border: rgba(0, 0, 0, .08);
  --accent: #ff6a13;
  --accent-deep: #c24e00;
  --chip-bg: #fff0e6;
  --north: #ff3b30;
  --dark: #000000;
  --dark-surface: #1c1c1e;
  --dark-text: #ffffff;
  --dark-2: #98989f;
  --dark-3: #8e8e93;
  --dark-border: rgba(255, 255, 255, .12);
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: inline-block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { padding: 88px 0; }
.ico { width: 1em; height: 1em; vertical-align: -.15em; fill: currentColor; }

/* ── шапка ── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: var(--text); line-height: 1.05; }
.brand svg { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.nav a { font-weight: 600; font-size: 16px; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; }
.nav a:hover { color: var(--text); }
.nav a .ico { width: 17px; height: 17px; }
.lang { display: flex; gap: 4px; align-items: center; }
.lang a { font-weight: 700; font-size: 13px; color: var(--text-3); padding: 5px 9px; border-radius: 9px; }
.lang a:hover { color: var(--text); }
.lang a.active { background: var(--surface); color: var(--text); }

/* ── герой (тёмный, как тёмная тема приложения) ── */
.hero { background: var(--dark); color: var(--dark-text); overflow: hidden; padding: 0; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.compass-hero-icon { width: 72px; height: 72px; border-radius: 18px; display: block; margin-bottom: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); color: var(--dark-2); font-weight: 600; font-size: 15px; padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 5.6vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { font-size: 20px; color: var(--dark-2); margin: 22px 0 30px; max-width: 32em; }
.hero .stores { margin-bottom: 26px; }
.hero .facts { display: flex; gap: 28px; flex-wrap: wrap; }
.fact { display: flex; flex-direction: column; }
.fact b { font-size: 26px; font-weight: 800; color: var(--dark-text); letter-spacing: -.01em; }
.fact span { font-size: 14px; color: var(--dark-2); }
.from { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--dark-2); font-size: 15px; }
.from .ico { width: 20px; height: 20px; color: var(--accent); flex: none; }
.from a { color: var(--dark-text); font-weight: 600; }

/* кнопки сторов */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px 0 16px; border-radius: 18px; background: var(--dark-text); color: var(--dark); font-weight: 600; transition: transform .15s ease, box-shadow .15s ease; }
.store:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.store svg { width: 28px; height: 28px; flex: none; }
.store > span { display: flex; flex-direction: column; align-items: flex-start; }
.store .s-top { font-size: 12px; font-weight: 500; letter-spacing: .02em; opacity: .7; line-height: 1.25; }
.store .s-big { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.store.is-soon { background: var(--dark-surface); color: var(--dark-text); border: 1px solid var(--dark-border); cursor: default; }
.store.is-soon:hover { transform: none; box-shadow: none; }
.store.is-soon svg { opacity: .55; }

/* мок телефона */
.phone { justify-self: center; width: 300px; height: 620px; border-radius: 46px; background: #0a0a0a; padding: 12px; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 2px rgba(255, 255, 255, .08); }
.phone .screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.compass-screen { background: var(--dark); color: var(--dark-text); align-items: center; padding: 40px 20px 22px; }
.compass-screen .chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: #2e1a0e; color: #ff8a44; font-weight: 600; font-size: 13px; }
.compass-screen .saved { font-size: 11px; color: var(--dark-3); margin-top: 6px; }
.compass-screen .dial { width: 200px; height: 200px; margin: 22px 0 18px; }
.compass-screen .dist { font-size: 52px; font-weight: 600; letter-spacing: -1.5px; line-height: 1; font-variant-numeric: tabular-nums; }
.compass-screen .walk { font-size: 14px; color: var(--dark-2); margin-top: 6px; }
.compass-screen .meta { font-size: 11px; color: var(--dark-3); margin-top: 10px; font-variant-numeric: tabular-nums; }
.compass-screen .end { margin-top: auto; width: 100%; height: 40px; border-radius: 20px; background: var(--dark-text); color: var(--dark); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.compass-screen .pl-title { align-self: flex-start; font-size: 26px; font-weight: 700; letter-spacing: -.4px; }
.compass-screen .pl-list { width: 100%; margin-top: 16px; display: grid; gap: 10px; }
.compass-screen .pl-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--dark-surface); }
.compass-screen .pl-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.compass-screen .pl-name { font-size: 15px; font-weight: 600; }
.compass-screen .pl-sub { font-size: 12px; color: var(--dark-2); margin-top: 2px; }
.compass-screen .pl-dist { font-size: 15px; font-weight: 600; }
.compass-screen .pl-foot { margin-top: auto; font-size: 11px; color: var(--dark-3); }
/* мок на светлом фоне (секция Pro) — светлая тема приложения */
.premium .phone { background: #e5e5ea; box-shadow: 0 30px 70px rgba(0, 0, 0, .18), 0 0 0 2px rgba(0, 0, 0, .04); }
.premium .compass-screen { background: var(--bg); color: var(--text); }
.premium .compass-screen .pl-row { background: var(--surface); }
.premium .compass-screen .pl-sub, .premium .compass-screen .pl-foot { color: var(--text-2); }

/* ── шаги (светлый) ── */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--text); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border-radius: 22px; padding: 32px 28px; }
.step .num { width: 46px; height: 46px; border-radius: 14px; background: var(--dark); color: var(--dark-text); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { color: var(--text-2); font-size: 16px; }

/* ── фичи (тёмный) ── */
.features { background: var(--dark); color: var(--dark-text); }
.features .section-head h2 { color: var(--dark-text); }
.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.feat { background: var(--dark-surface); border: 1px solid var(--dark-border); border-radius: 20px; padding: 28px; }
.feat .ic { font-size: 30px; margin-bottom: 12px; }
.feat h3 { color: var(--dark-text); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.feat p { color: var(--dark-2); font-size: 16px; }

/* ── Pro (светлый) ── */
.premium .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.premium .badge { display: inline-block; background: var(--chip-bg); color: var(--accent-deep); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.premium h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.premium > .container > div > p { color: var(--text-2); margin: 16px 0 24px; font-size: 18px; }
.plist { list-style: none; margin: 0 0 26px; display: grid; gap: 12px; }
.plist li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.plist li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.price span { color: var(--text-2); font-size: 16px; }

/* ── CTA (тёмный) ── */
.cta { text-align: center; background: var(--dark); color: var(--dark-text); }
.cta h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.cta p { color: var(--dark-2); font-size: 19px; margin: 18px auto 30px; max-width: 34em; }
.cta p a { color: var(--dark-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta .stores { justify-content: center; }
.cta .store .ico { width: 26px; height: 26px; color: var(--accent); }

.legal-links { text-align: center; color: var(--text-2); font-size: 15px; }
.legal-links a { margin: 0 6px; text-decoration: underline; text-underline-offset: 3px; }
section.legal { padding: 0 0 48px; }

/* ── футер ── */
.site-footer { background: var(--dark); color: var(--dark-3); border-top: 1px solid var(--dark-border); }
.site-footer .container { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.site-footer .f-brand { font-weight: 600; font-size: 16px; color: var(--dark-3); }
.site-footer nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.site-footer nav a { font-weight: 500; font-size: 15px; color: var(--dark-3); display: inline-flex; align-items: center; gap: 6px; }
.site-footer nav a:hover { color: var(--dark-text); }
.site-footer nav a .ico { width: 15px; height: 15px; }
.site-footer .lang a { color: var(--dark-3); }
.site-footer .lang a.active { background: rgba(255, 255, 255, .14); color: var(--dark-text); }

/* ── юр-страницы ── */
.prose-wrap { max-width: 780px; margin: 0 auto; padding: 56px 32px 64px; }
.prose h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.prose .updated { color: var(--text-3); font-size: 15px; margin-bottom: 36px; }
.prose h2 { font-size: 23px; font-weight: 700; margin: 34px 0 12px; letter-spacing: -.01em; }
.prose p, .prose li { color: #3a3a3c; font-size: 17px; line-height: 1.65; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.back-home { display: inline-block; margin-bottom: 28px; font-weight: 600; color: var(--accent-deep); }

/* ── cookie-баннер (та же логика, что на сайте: analytics.js + класс mt-consented) ── */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border-radius: 18px; background: var(--bg); color: var(--text); border: 1px solid var(--border); box-shadow: 0 16px 48px rgba(0, 0, 0, .18); }
.cookie-banner p { flex: 1 1 320px; font-size: 14px; color: var(--text-2); }
.cookie-banner p a { text-decoration: underline; }
.cookie-banner .actions { display: flex; gap: 10px; margin-left: auto; }
.cookie-banner button { font: inherit; font-weight: 600; font-size: 14px; height: 40px; padding: 0 16px; border-radius: 20px; border: 0; cursor: pointer; }
.cookie-decline { background: var(--surface); color: var(--text); }
.cookie-accept { background: var(--dark); color: var(--dark-text); }
html.mt-consented .cookie-banner { display: none; }

@media (max-width: 900px) {
  .hero .container, .premium .container { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .phone { display: none; }
  .nav { gap: 16px; }
  .nav a { font-size: 15px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .grid4 { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .nav a:not(.lang a) .label { display: none; }
  .site-footer nav { margin-left: 0; }
}
