/* Сайт GP — фирменная палитра как в приложении: голубой градиент, глубокий синий, светло-голубой фон */
:root {
  --bg: #ffffff;
  --bg-alt: #eef9fd;
  --surface: #ffffff;
  --surface-2: #e0f4fb;
  --text: #0f2a40;
  --muted: #5f7a8e;
  --line: #cfe8f3;
  --brand-1: #2bb1df;
  --brand-2: #4bc7ea;
  --brand-3: #ade8f7;
  --accent: #0d89bf;
  --accent-ink: #ffffff;
  --deep: #0b4f7a;
  --ok: #0d89bf;
  --warn: #b45309;
  --warn-soft: #fdf1e2;
  --bad: #c0352b;
  --bad-soft: #fbe7e5;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(13, 60, 90, .05), 0 12px 32px rgba(13, 110, 160, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07161f; --bg-alt: #0b1e2a; --surface: #0e2230; --surface-2: #133042; --text: #e6f4fa; --muted: #8fb0c2;
    --line: #1c3c50; --brand-1: #137fae; --brand-2: #1f9fd0; --brand-3: #2a6f93; --accent: #4bc7ea; --accent-ink: #04202e;
    --deep: #ade8f7; --ok: #4bc7ea; --warn: #f0a24a; --warn-soft: #33250f; --bad: #ff7a6e; --bad-soft: #3a1a17;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07161f; --bg-alt: #0b1e2a; --surface: #0e2230; --surface-2: #133042; --text: #e6f4fa; --muted: #8fb0c2;
  --line: #1c3c50; --brand-1: #137fae; --brand-2: #1f9fd0; --brand-3: #2a6f93; --accent: #4bc7ea; --accent-ink: #04202e;
  --deep: #ade8f7; --ok: #4bc7ea; --warn: #f0a24a; --warn-soft: #33250f; --bad: #ff7a6e; --bad-soft: #3a1a17;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 15px 26px; border-radius: 16px; font: inherit; font-weight: 700; text-decoration: none;
  background: linear-gradient(100deg, var(--brand-1), var(--accent)); color: var(--accent-ink);
  box-shadow: 0 6px 18px rgba(13, 137, 191, .28); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(13, 137, 191, .32); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { padding: 10px 18px; font-size: 15px; border-radius: 12px; }
.btn-light { background: #fff; color: #0b4f7a; box-shadow: 0 8px 22px rgba(8, 70, 110, .2); }
.btn-ghost { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }

/* шапка */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo img { border-radius: 11px; }
.logo b { display: block; font-size: 22px; line-height: 1; font-weight: 800; }
.logo small { display: block; font-size: 12px; color: var(--muted); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover { color: var(--accent); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* главный экран */
.hero { position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% 0%, rgba(255, 255, 255, .35), transparent 60%),
              linear-gradient(105deg, var(--brand-1), var(--brand-2) 50%, var(--brand-3)); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 120px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; background: rgba(255, 255, 255, .22); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 800; text-shadow: 0 2px 18px rgba(8, 70, 110, .18); }
.hero-lead { font-size: 19px; max-width: 560px; margin: 18px 0 28px; opacity: .96; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, auto); gap: 12px 32px; margin: 40px 0 0; justify-content: start; }
.kpis div { min-width: 0; }
.kpis dt { font-size: 13px; opacity: .9; }
.kpis dd { margin: 2px 0 0; font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.phone { justify-self: center; width: 320px; height: 650px; border-radius: 46px; padding: 12px; background: #0f2a40; box-shadow: 0 30px 60px rgba(8, 60, 100, .35); }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #eef9fd; }
.phone iframe { width: 100%; height: 100%; border: 0; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; }
.hero-wave path { fill: var(--bg); }
.hero-wave .ln { fill: none; stroke: #2a6f9a; stroke-width: 1.5; opacity: .5; }

/* секции */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 12px 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* карта */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters button { border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { border-color: var(--accent); background: var(--surface-2); color: var(--accent); }
.data-note { margin-left: auto; font-size: 13px; color: var(--warn); }
.map-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; height: 560px; }
.map { border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.st-list { overflow-y: auto; display: grid; gap: 10px; align-content: start; padding-right: 4px; }
.st { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s; }
.st:hover, .st.on { border-color: var(--accent); }
.st-top { display: flex; justify-content: space-between; gap: 10px; }
.st h3 { font-size: 17px; }
.st .addr { color: var(--muted); font-size: 14px; }
.st .pr { font-weight: 800; white-space: nowrap; }
.st .pr small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; background: var(--surface-2); color: var(--muted); }
.chip.ok { color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-actions { display: flex; gap: 8px; }
.st-actions a { font-size: 14px; font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 10px; }
.st-actions .go { background: var(--accent); color: var(--accent-ink); }
.st-actions .route { background: var(--surface-2); color: var(--text); }
.leaflet-popup-content { font: 14px/1.4 Manrope, system-ui, sans-serif; }
.leaflet-popup-content a { font-weight: 700; color: #0d89bf; }

/* шаги */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.steps .n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--accent)); margin-bottom: 18px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* тарифы */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tariff { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.tariff.featured { border: 2px solid var(--accent); }
.tariff h3 { font-size: 21px; margin-bottom: 8px; }
.tariff .muted { font-size: 15px; margin: 0; }
.tariff .price { margin: 22px 0 6px; font-size: 22px; }
.tariff .price b { font-size: 52px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.tariff .price > span { font-size: 15px; color: var(--muted); }
.note { text-align: center; color: var(--muted); margin: 24px 0 0; }
.pay-methods { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pay-methods li { padding: 18px 20px; border-radius: 16px; background: var(--bg-alt); }
.pay-methods b { display: block; }
.pay-methods span { font-size: 14px; color: var(--muted); }

/* разъёмы */
.plugs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plug { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.plug svg { width: 76px; height: 76px; fill: none; stroke: var(--accent); stroke-width: 2.5; margin-bottom: 10px; }
.plug h3 { font-size: 20px; margin-bottom: 6px; }
.plug p { margin: 0; font-size: 15px; color: var(--muted); }

/* приложение */
.app-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.features li { padding-left: 34px; position: relative; color: var(--muted); }
.features li b { color: var(--text); }
.features li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z' fill='%230d89bf'/%3E%3C/svg%3E") center/14px no-repeat; }
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 14px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 700; }
.store svg { width: 28px; height: 28px; fill: currentColor; }
.store small { display: block; font-weight: 500; font-size: 12px; opacity: .8; }
.app-shot { justify-self: center; max-width: 340px; }
.app-shot img { border-radius: 36px; box-shadow: var(--shadow), 0 30px 60px rgba(8, 60, 100, .18); border: 8px solid #0f2a40; }

/* бизнесу */
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.biz article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.biz h3 { font-size: 20px; margin-bottom: 8px; }
.biz p { margin: 0; color: var(--muted); font-size: 15px; }
.lead { padding: 32px; display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.lead h3 { font-size: 24px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.lead input, .lead select, .lead textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.lead .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.lead .check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.lead .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--bad); }

/* вопросы */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; padding: 18px 40px 18px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 28px; font-weight: 400; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); }

/* подвал */
.footer { background: #0f2a40; color: #cfe3ee; padding: 56px 0 28px; }
.footer .logo { color: #fff; }
.footer .logo small, .footer .muted { color: #8fb0c2; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; }
.footer nav, .contacts { display: grid; gap: 8px; align-content: start; }
.footer a { color: #cfe3ee; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid #1e4058; font-size: 14px; color: #8fb0c2; }

/* адаптив */
@media (max-width: 1040px) {
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; font-size: 17px; }
  .burger { display: block; }
  .nav-cta { margin-left: auto; }
  .burger { margin-left: 0; }
  .hero-in { grid-template-columns: 1fr; padding-bottom: 100px; }
  .phone { display: none; }
  .steps, .plugs, .pay-methods { grid-template-columns: repeat(2, 1fr); }
  .tariffs, .biz { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr; height: auto; }
  .map { height: 420px; }
  .st-list { max-height: 520px; }
  .app-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav-cta { display: none; }
  .burger { margin-left: auto; }
  .hero-in { padding-top: 40px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
  .kpis dd { font-size: 26px; }
  .section { padding: 60px 0; }
  .steps, .plugs, .pay-methods, .grid2, .foot-in { grid-template-columns: 1fr; }
  .lead { padding: 22px 18px; }
  .lead .btn { justify-self: stretch; }
  .data-note { margin-left: 0; width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
