/* ============================================================
   LMN Drive — public site styles
   ============================================================ */

:root {
  --ink: #0B1524;
  --ink-soft: #16233A;
  --text: #101A2B;
  --muted: #5C6B80;
  --line: #E3E8F1;
  --wash: #F4F7FB;
  --accent: #2A6BF2;
  --accent-2: #1648B8;
  --accent-soft: #E9F0FF;
  --ok: #0E9F6E;
  --warn: #B26B00;
  --off: #7A8699;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  --wrap: 1180px;
  --r: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 2.6vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.micro { display: block; font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.ta-r { text-align: right; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------- header */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 40px; height: 68px; }

.brand { display: flex; align-items: baseline; gap: 7px; font-size: 21px; letter-spacing: -0.03em; }
.brand-mark { font-weight: 800; }
.brand-word { font-weight: 300; color: var(--muted); }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  position: relative; font-size: 14.5px; color: var(--muted); padding: 6px 0; transition: color .15s;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); font-weight: 550; }
.nav a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; background: var(--accent);
}

.head-tools { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang a { font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 6px 9px; color: var(--muted); }
.lang a.on { background: var(--ink); color: #fff; }

.burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 10px; }
.burger span { display: block; height: 1.5px; background: var(--ink); margin-bottom: 4px; }
.burger span:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 550; letter-spacing: -0.01em;
  transition: background .16s, border-color .16s, transform .16s, color .16s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: rgba(255,255,255,.24); color: #fff; }
.btn--ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.btn--sm { padding: 9px 15px; font-size: 13.5px; border-radius: 8px; }

.text-link { color: var(--accent); font-size: 14px; font-weight: 550; white-space: nowrap; }
.text-link:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.arrow-link {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
  transition: all .16s;
}
.arrow-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(42,107,242,.42), transparent 62%),
    radial-gradient(700px 380px at 8% 110%, rgba(14,159,110,.14), transparent 60%),
    linear-gradient(180deg, #0B1524 0%, #0E1B2F 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 0;
  padding: 92px 24px 78px; align-items: center;
}
.hero-copy { max-width: 1010px; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8FA3BF;
}
.kicker--dark { color: var(--muted); }
.kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(42,107,242,.18); }

.hero h1 { color: #fff; max-width: 23ch; }
.hero-sub { margin-top: 22px; max-width: 64ch; font-size: 17.5px; line-height: 1.62; color: #A9B6C9; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.stats { display: flex; gap: 46px; margin-top: 46px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.stat b { display: block; font-size: 21px; font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: #8294AE; }

.hero-panel {
  position: relative; padding: 20px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.panel-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #C6D2E4; }
.panel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(14,159,110,.2); }
.panel-tag { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: #7E8FA8; }

.panel-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0 22px; }
.qr-box { width: 148px; height: 148px; background: #fff; border-radius: 12px; padding: 10px; display: flex; align-items: center; justify-content: center; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-cap { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7E8FA8; }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.panel-grid .micro { color: #7E8FA8; margin-bottom: 3px; }
.panel-grid b { font-size: 13.5px; font-weight: 500; color: #E4EAF3; }
.panel-grid .ok { color: #4ADE9E; }

/* ---------------------------------------------------------- sections */

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--wash { background: var(--wash); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede { color: #A9B6C9; }
.section--dark .kicker { color: #8FA3BF; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-head h2 { margin-top: 14px; max-width: 20ch; }
.lede { margin-top: 14px; max-width: 62ch; font-size: 16.5px; line-height: 1.6; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

/* ---------------------------------------------------------- cards */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: #C9D6EC; box-shadow: 0 18px 40px -26px rgba(16,26,43,.35); }

.series-card { display: flex; flex-direction: column; min-height: 236px; }
.series-card:hover { transform: translateY(-2px); }
.series-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chip {
  display: inline-block; padding: 4px 9px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-2);
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
}
.chip--sm { background: var(--wash); color: var(--muted); font-size: 10.5px; }
.series-power { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.series-title { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 10px; }
.series-title a:hover { color: var(--accent); }
.series-sum { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-bottom: 22px; }
.series-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }

/* ---------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.step { padding: 34px 34px 8px 0; border-right: 1px solid rgba(255,255,255,.12); }
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 34px; }
.step-num { display: block; font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 16px; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 14.5px; line-height: 1.6; color: #9FB0C7; margin: 0; }

/* ---------------------------------------------------------- docs */

.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-row {
  display: grid; grid-template-columns: 104px 1fr 40px; align-items: center; gap: 18px;
  padding: 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .16s, box-shadow .16s;
}
.doc-row:hover { border-color: #C9D6EC; box-shadow: 0 10px 26px -20px rgba(16,26,43,.4); }
.doc-kind { font-size: 10.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kind-firmware { color: var(--accent); }
.kind-manual { color: #0E7C5A; }
.kind-cert { color: #8A5A00; }
.doc-title { font-size: 14.5px; font-weight: 550; line-height: 1.4; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.dot { color: #C3CCDA; }
.doc-dl {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .16s;
}
.doc-dl:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------------------------------------------------- page head */

.page-head { background: var(--wash); border-bottom: 1px solid var(--line); padding: 44px 0 46px; }
.page-head h1 { margin-top: 14px; max-width: 22ch; }
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs b { color: var(--text); font-weight: 550; }
.crumbs span { color: #B9C3D3; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pill { padding: 7px 13px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 13px; color: var(--muted); }
.pill b { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------- series page */

.series-hero { display: grid; grid-template-columns: 1fr .78fr; gap: 56px; align-items: center; margin-top: 10px; }

.plate {
  position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #12213A, #0A1526 70%);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 30px 60px -34px rgba(11,21,36,.6);
}
.plate--sm { aspect-ratio: 16 / 11; }
.plate-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
}
.plate::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,107,242,.4), transparent 68%);
  filter: blur(6px);
}
.plate-code { position: relative; font-family: var(--mono); font-size: 30px; color: #fff; letter-spacing: .02em; }
.plate-sub { position: relative; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #7E8FA8; }

.feature { padding: 26px; border-left: 2px solid var(--accent); background: #fff; border-radius: 0 12px 12px 0; }
.feature h3 { font-size: 15.5px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th {
  text-align: left; padding: 14px 18px; font-size: 10.5px; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: #FAFBFE;
}
.table td { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--wash); }
.model-code { font-family: var(--mono); font-size: 14.5px; font-weight: 600; }
.model-code:hover { color: var(--accent); }
.model-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-row dt { font-size: 13.5px; color: var(--muted); margin: 0; }
.spec-row dd { margin: 0; font-size: 14px; font-weight: 550; text-align: right; font-family: var(--mono); }

/* ---------------------------------------------------------- model page */

.model-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 22px; align-items: start; }
.card-h { font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.h1-code { font-size: .62em; letter-spacing: 0; color: var(--accent); }
.model-code-lg { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 12px; }

.kv { margin: 0; }
.kv-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv-row:last-child { border-bottom: 0; }
.kv-row dt { margin: 0; font-size: 13.5px; color: var(--muted); }
.kv-row dd { margin: 0; font-size: 14px; font-weight: 500; text-align: right; }
.kv-sep { height: 1px; background: var(--line); margin: 14px 0; }

.model-side { display: flex; flex-direction: column; gap: 16px; }
.stat-card { display: flex; flex-direction: column; gap: 6px; }
.stat-big { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.note-card { font-size: 14px; color: var(--muted); line-height: 1.6; }

.prose { max-width: 760px; font-size: 16.5px; line-height: 1.7; color: #263449; }
.prose h2, .prose h3 { margin: 1.4em 0 .6em; }
.prose p { margin-bottom: 1.1em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }

/* ---------------------------------------------------------- device page */

.device-hero {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(42,107,242,.35), transparent 60%),
    linear-gradient(180deg, #0B1524, #0F1D33);
  color: #fff; padding: 46px 0;
}
.device-hero-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.device-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(14,159,110,.14); border: 1px solid rgba(14,159,110,.32); font-size: 12px; color: #6FE3B4; margin-bottom: 22px; }
.ok-dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; }
.device-hero .micro { color: #7E8FA8; }
.serial { font-family: var(--mono); font-size: clamp(26px, 4vw, 40px); font-weight: 600; letter-spacing: .01em; margin: 6px 0 12px; }
.device-model { display: flex; align-items: baseline; gap: 12px; font-size: 15px; }
.device-model a { color: #7FB0FF; font-family: var(--mono); }
.device-model a:hover { text-decoration: underline; }
.device-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-box--inv { width: 132px; height: 132px; }
.device-qr .micro { color: #7E8FA8; font-family: var(--mono); letter-spacing: .1em; }

.device-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 550; }
.st-ok { background: rgba(14,159,110,.12); color: #0B7A55; }
.st-warn { background: rgba(178,107,0,.12); color: var(--warn); }
.st-off { background: var(--wash); color: var(--off); }

.mini-centers { list-style: none; margin: 16px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mini-centers li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mini-centers li:last-child { border-bottom: 0; }
.mini-centers b { font-weight: 550; font-size: 14px; }

/* ---------------------------------------------------------- service */

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.chip-btn { padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; color: var(--muted); transition: all .16s; }
.chip-btn:hover { border-color: #B9C9E4; color: var(--text); }
.chip-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count { margin-left: auto; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }

.service-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; align-items: start; }
.map-card { position: sticky; top: 88px; }
.map { height: 560px; border-radius: var(--r); border: 1px solid var(--line); background: #E9EEF6; z-index: 1; }
.centers { display: flex; flex-direction: column; gap: 12px; }
.center-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.center-card h3 { font-size: 18px; margin-top: 3px; }
.center-name { font-size: 13.5px; color: var(--text); margin: 0 0 4px; }
.center-card .muted { font-size: 13px; margin: 0 0 12px; }
.center-links { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.center-links a { color: var(--accent); }
.center-links a:hover { text-decoration: underline; }
.center-cta { margin-top: 32px; }

/* ---------------------------------------------------------- support / contacts */

.search { display: flex; gap: 10px; margin-top: 28px; max-width: 560px; }
.search input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,107,242,.14); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.contact-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact-list b { font-weight: 550; }
.contact-list a { color: var(--accent); font-size: 13px; }

.service-teaser { display: grid; grid-template-columns: 1fr .9fr; gap: 64px; align-items: center; }
.city-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.city-list li { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.city { display: block; font-weight: 550; font-size: 14.5px; margin-bottom: 2px; }

.page-head--404 { padding: 90px 0 110px; }
.err-code { font-size: 76px; font-weight: 700; color: #C9D6EC; letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; }

/* ---------------------------------------------------------- footer */

.site-foot { background: var(--ink); color: #93A1B5; padding: 64px 0 26px; margin-top: 0; }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.brand--foot { color: #fff; font-size: 20px; }
.brand--foot .brand-word { color: #6C7D96; }
.foot-note { margin: 16px 0 0; font-size: 13.5px; line-height: 1.6; max-width: 34ch; color: #7F8FA8; }
.foot-col h4 { font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 13.5px; color: #93A1B5; padding: 4px 0; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #6C7D96; flex-wrap: wrap; }
.foot-mono { font-family: var(--mono); }

/* ---------------------------------------------------------- map pins */

.map-pin span {
  display: block; width: 14px; height: 14px; margin: 3px;
  border-radius: 50%; background: var(--accent); border: 2.5px solid #fff;
  box-shadow: 0 0 0 3px rgba(42,107,242,.25), 0 2px 6px rgba(11,21,36,.35);
  transition: transform .15s;
}
.map-pin:hover span { transform: scale(1.15); }
.pin-pop { font-family: var(--font); font-size: 13px; line-height: 1.45; min-width: 160px; }
.pin-pop b { display: block; font-size: 14px; margin-bottom: 2px; }
.pin-name { color: var(--muted); font-size: 12.5px; margin-bottom: 3px; }
.pin-addr { color: #3C4A5E; margin-bottom: 6px; }
.pin-tel { color: var(--accent); font-weight: 550; }
.leaflet-container { font-family: var(--font); }
.center-card[data-id] { cursor: pointer; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding: 64px 24px 64px; }
  .hero-panel { max-width: 100%; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 26px 0; }
  .step:not(:first-child) { padding-left: 0; }
  .series-hero, .service-layout, .contact-grid, .model-grid, .device-grid, .service-teaser { grid-template-columns: 1fr; }
  .map-card { position: static; }
  .map { height: 420px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 32px; }
  .device-hero-in { flex-direction: column; align-items: flex-start; gap: 26px; }
}

@media (max-width: 760px) {
  .head-in { gap: 14px; }
  .hero-grid { padding: 44px 24px 48px; }
  .hero h1 { max-width: 100%; }
  .hero-sub { font-size: 16px; }
  .panel-grid { gap: 12px; }
  .stats { gap: 22px; flex-wrap: wrap; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.on::after { display: none; }
  .burger { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 30px; }
  .spec-grid { grid-template-columns: 1fr; }
  .doc-row { grid-template-columns: 1fr 40px; }
  .doc-kind { grid-column: 1 / -1; margin-bottom: -8px; }
  .serial { font-size: 26px; }
  .foot-in { grid-template-columns: 1fr; }
  .city-list { grid-template-columns: 1fr; }
  .stats { gap: 24px; flex-wrap: wrap; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* mobile stats: even 3-column row instead of a ragged wrap */
@media (max-width: 760px) {
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .stat span { font-size: 11px; line-height: 1.35; }
  .stat b { font-size: 19px; }
}
/* ---------------------------------------------------------- buy page */

.head-buy { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }

.buy-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; align-items: start; }
.buy-side { display: flex; flex-direction: column; gap: 16px; }

.buy-form .frm-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fld2 { display: flex; flex-direction: column; gap: 6px; }
.fld2 > span { font-size: 12.5px; font-weight: 550; color: #39465A; }
.fld2 > span i { color: #C4342B; font-style: normal; }
.fld2 input, .fld2 select, .fld2 textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14px; background: #fff; color: var(--text); width: 100%;
}
.fld2 input:focus, .fld2 select:focus, .fld2 textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,107,242,.13);
}
.fld2 textarea { resize: vertical; line-height: 1.5; }
.fld2--full { grid-column: 1 / -1; }
.fld2 input.bad, .fld2 textarea.bad, .fld2 select.bad { border-color: #E4B0AB; background: #FDF7F6; }
.captcha input { max-width: 170px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 4px 0 18px; cursor: pointer; }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); flex: 0 0 16px; }
.consent.bad span { color: #9E2B22; }

.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-errors {
  background: #FDF2F1; border: 1px solid #F0C8C4; color: #9E2B22; border-radius: 10px;
  padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px;
}

.ok-box { text-align: center; padding: 28px 12px; }
.ok-icon {
  width: 54px; height: 54px; border-radius: 50%; background: #EAF7F1; color: #0B7A55;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.ok-box h2 { font-size: 21px; margin-bottom: 8px; }
.ok-box p { color: var(--muted); margin-bottom: 22px; }

.how-list { counter-reset: h; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.how-list li { position: relative; padding-left: 34px; font-size: 14px; color: #33415A; line-height: 1.5; }
.how-list li::before {
  counter-increment: h; content: counter(h); position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2);
  font-size: 11.5px; font-weight: 650; display: flex; align-items: center; justify-content: center;
}

.contact-lines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-lines li { display: flex; flex-direction: column; gap: 2px; }
.contact-lines a { font-weight: 550; }
.contact-lines a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .buy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .buy-form .frm-2 { grid-template-columns: 1fr; }
  .head-buy { padding: 7px 11px; font-size: 13px; }
}
/* long values (e.g. encoder list) get their own line */
.kv-row--stack { display: block; padding: 12px 0; }
.kv-row--stack dt { margin-bottom: 5px; }
.kv-row--stack dd { text-align: left; font-size: 13.5px; line-height: 1.55; color: #263449; }
.partner-cta { margin: 20px 0 14px; }
.partner-cta .btn { width: 100%; }
/* device status flags (ГИСП и подобное) */
.device-flags { margin-top: 18px; }
.flag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  color: #CBD7E7; font-size: 12.5px; letter-spacing: .01em;
}
.flag-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #F5B544;
  box-shadow: 0 0 0 3px rgba(245,181,68,.18); flex: 0 0 6px;
}
/* clickable table rows (series -> model) */
tr.row-link { cursor: pointer; }
tr.row-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }