/* Публичная страница. Своя, отдельно от панели: у панели задача — чтобы было
   понятно, куда нажать; у этой — чтобы мастер за десять секунд понял, что ему
   предлагают, и поверил числам. Шрифты системные: страница ничего не тянет со
   стороны, кроме плиток карты (LND-1.6). */

:root {
  --ink: #10201c;
  --muted: #56655f;
  --paper: #f6f4ee;
  --surface: #ffffff;
  --line: #dcd8cc;
  --accent: #0f6b5b;
  --accent-deep: #0a4c41;
  --accent-soft: #e2efe9;
  --warm: #c2572a;
  --shadow: 0 18px 40px -22px rgba(16, 32, 28, .35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8efec;
    --muted: #9fb0aa;
    --paper: #0f1513;
    --surface: #17201d;
    --line: #2a3531;
    --accent: #4fb8a0;
    --accent-deep: #8fd8c6;
    --accent-soft: #16302a;
    --warm: #e2835a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.landing {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 780px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
a { color: var(--accent); }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; margin-bottom: 22px; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 12px; }
.fine { color: var(--muted); font-size: 14.5px; }
.sub { color: var(--muted); max-width: 62ch; }

/* шапка */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .row { min-height: 62px; }
.logo { font-weight: 800; letter-spacing: -.02em; font-size: 18px; }
.logo::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  background: var(--warm); margin-right: 8px; vertical-align: 1px; }
.topnav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topnav a { color: var(--ink); text-decoration: none; font-size: 15px; opacity: .8; }
.topnav a:hover { opacity: 1; }
.topnav a.signin { border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; opacity: 1; }

/* первый экран */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.kicker { color: var(--warm); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.lead { font-size: 19px; color: var(--muted); max-width: 58ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 14px; }
.cta {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--accent); color: #fff; border-radius: 12px; padding: 12px 20px;
  box-shadow: var(--shadow); transition: transform .12s ease, background .12s ease;
}
.cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.cta.big { font-size: 18px; padding: 15px 26px; }
.cta.light { background: #fff; color: var(--accent-deep); }
.ghost { display: inline-block; padding: 15px 22px; border-radius: 12px; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; }
.ghost:hover { border-color: var(--accent); }

/* пример карточки */
.card-demo {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 22px 18px; box-shadow: var(--shadow); max-width: 420px; justify-self: end;
  transform: rotate(-1.2deg);
}
.demo-tag { position: absolute; top: -11px; right: 18px; background: var(--warm); color: #fff;
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; text-transform: uppercase;
  letter-spacing: .05em; }
.demo-title { font-weight: 800; margin-bottom: 4px; }
.demo-meta { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.demo-text { font-size: 16px; background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; }
.demo-link { color: var(--accent); font-weight: 600; font-size: 15px; }
.demo-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.demo-buttons span { text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px;
  font-size: 14.5px; font-weight: 600; background: var(--paper); }

/* числа */
.numbers { padding: 26px 0 50px; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; }
.stat strong { display: block; font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em;
  color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }

/* как это работает */
.how, .why, .kinds, .plans, .faq, .map { padding: 56px 0; }
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--muted); }

/* почему */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.why-item p { color: var(--muted); margin: 0; }

/* карта */
.leaflet-box { height: 460px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.mpin { display: flex !important; align-items: center; justify-content: center; border-radius: 50%;
  color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 1px 4px rgba(0,0,0,.35); border: 2px solid #fff; }
.mpin.mpoint { background: #0f6b5b; }
.mpin.mcluster { background: #c2572a; }

/* виды работ */
.kind-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 16px; list-style: none; }
.kind-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-weight: 600; font-size: 15.5px; }

/* тарифы */
.plans { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 14px; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--paper);
  display: flex; flex-direction: column; }
.plan .price strong { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan .price span { color: var(--muted); }
.plan ul { padding: 0 0 0 18px; margin: 4px 0 20px; color: var(--muted); flex: 1; }
.plan .cta { text-align: center; }

/* вопросы */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* финал */
.final { padding: 64px 0; background: var(--accent-deep); color: #fff; text-align: center; }
.final h2 { color: #fff; }
.final .lead { color: rgba(255,255,255,.82); margin: 0 auto 24px; }
.foot { padding: 26px 0 40px; color: var(--muted); font-size: 14.5px; }
.foot a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding-top: 34px; }
  .hero-grid, .steps, .why-grid { grid-template-columns: 1fr; }
  .card-demo { justify-self: start; transform: none; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .topnav a:not(.signin) { display: none; }
}

/* для кого */
.who { padding: 56px 0; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.who-item { border-left: 3px solid var(--warm); padding: 4px 0 4px 16px; }
.who-item p { color: var(--muted); margin: 0; }

/* сравнение */
.compare { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cmp-scroll { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 640px; }
table.cmp th, table.cmp td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp th { font-size: 14px; color: var(--muted); font-weight: 700; }
table.cmp td:first-child { font-weight: 600; }
table.cmp .us { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
table.cmp th.us { color: var(--accent-deep); }
@media (max-width: 860px) { .who-grid { grid-template-columns: 1fr; } }

/* логотип */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo::before { content: none; }
.logo img { border-radius: 8px; }
.logo em { font-style: normal; color: var(--accent); }

/* статус */
.status { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 12px; font-size: 15px; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warm); display: inline-block; }
.status .dot.on { background: #2fa36b; box-shadow: 0 0 0 4px color-mix(in srgb, #2fa36b 25%, transparent);
  animation: pulse 2s ease-in-out infinite; }
.status .muted { color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, #2fa36b 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .status .dot.on { animation: none; } }

/* что просили */
.asked { padding: 48px 0 20px; }
.bars { display: grid; gap: 8px; max-width: 760px; margin-bottom: 12px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 12px; }
.bar-name { font-weight: 600; }
.bar { height: 14px; background: var(--accent-soft); border-radius: 7px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 7px; }
.bar-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

/* что умеет */
.features { padding: 56px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feat p { color: var(--muted); margin: 0; }

/* подключение */
.onboard { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.onboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.onboard-steps { padding-left: 22px; margin: 0 0 20px; }
.onboard-steps li { margin: 8px 0; color: var(--muted); }
.phone { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 22px 18px;
  max-width: 360px; justify-self: end; display: grid; gap: 10px; }
.phone .demo-tag { position: absolute; top: -11px; right: 18px; }
.msg { margin: 0; padding: 10px 13px; border-radius: 14px; font-size: 15px; max-width: 85%; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); justify-self: start; }
.msg.me { background: var(--accent); color: #fff; justify-self: end; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-row span { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 5px 9px; font-size: 13.5px; font-weight: 600; }

/* тарифы: что входит */
.included { display: flex; flex-wrap: wrap; gap: 6px 10px; background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 12px; padding: 12px 16px; margin: 4px 0 12px; font-size: 15px; }

/* поддержка */
.support { padding: 36px 0; }
.support-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.support-row p { color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .feat-grid, .onboard-grid { grid-template-columns: 1fr; }
  .phone { justify-self: start; }
  .bar-row { grid-template-columns: 110px 1fr 40px; }
}
