:root {
  color-scheme: dark;
  --bg: #07110f;
  --bg-elevated: #0b1715;
  --surface: #111d1a;
  --surface-soft: #172723;
  --surface-strong: #213833;
  --ink: #f3faf7;
  --muted: #a8b8b2;
  --line: rgba(226, 244, 239, 0.14);
  --primary: #2dd4bf;
  --primary-dark: #14b8a6;
  --accent: #fbbf24;
  --accent-soft: rgba(251, 191, 36, 0.16);
  --green-soft: rgba(34, 197, 94, 0.18);
  --blue-soft: rgba(59, 130, 246, 0.18);
  --red-soft: rgba(248, 113, 113, 0.18);
  --violet-soft: rgba(139, 92, 246, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --radius-sm: 6px;
  --page: min(1180px, calc(100vw - 32px));
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.light {
  color-scheme: light;
  --bg: #f5f7f4;
  --bg-elevated: #eef5f1;
  --surface: #ffffff;
  --surface-soft: #edf4f1;
  --surface-strong: #dcebe6;
  --ink: #15211f;
  --muted: #63716e;
  --line: rgba(21, 33, 31, 0.12);
  --primary: #0f766e;
  --primary-dark: #0b5e59;
  --accent: #d97706;
  --accent-soft: #fff1d6;
  --green-soft: #dff4e7;
  --blue-soft: #dbeafe;
  --red-soft: #fee2e2;
  --violet-soft: #ede9fe;
  --shadow: 0 20px 60px rgba(18, 34, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--bg) 0, var(--bg-elevated) 48%, var(--bg) 100%);
  color: var(--ink);
  min-width: 320px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  min-height: 100dvh;
  padding-bottom: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: var(--page);
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.topbar::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  z-index: -1;
  height: 74px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav,
.top-actions,
.hero-actions,
.quick-chips,
.search-row,
.section-heading,
.panel-top,
.price-row,
.page-head,
.billing-toggle,
.mobile-nav {
  display: flex;
  align-items: center;
}

.desktop-nav {
  gap: 4px;
  padding: 4px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-link,
.mobile-nav button,
.segmented button,
.billing-toggle button,
.quick-chips button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.nav-link.is-active,
.nav-link:hover,
.segmented button.is-active,
.billing-toggle button.is-active {
  background: var(--surface-strong);
  color: var(--ink);
}

.top-actions {
  gap: 8px;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 40px;
  transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button {
  gap: 8px;
  padding: 0 14px;
  font-weight: 700;
  text-decoration: none;
}

.button-large {
  min-height: 48px;
  padding-inline: 18px;
}

.button-primary {
  background: var(--primary);
  color: #052a27;
  border-color: color-mix(in srgb, var(--primary) 88%, #000);
}

body.light .button-primary {
  color: #fff;
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-light {
  background: rgba(255, 255, 255, 0.9);
  color: #17211e;
  border-color: rgba(255, 255, 255, 0.4);
}

.button-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.icon-button {
  width: 40px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

main {
  width: var(--page);
  margin: 0 auto;
  padding: 26px 0 80px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 0;
  background: #14201e;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s ease, transform 7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-photo-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(7, 17, 15, 0.58);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 13, 12, 0.9), rgba(6, 18, 16, 0.58) 46%, rgba(6, 18, 16, 0.18)),
    linear-gradient(0deg, rgba(4, 13, 12, 0.54), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: end;
  gap: 32px;
  min-height: 620px;
  padding: clamp(28px, 5vw, 56px);
}

.hero-copy {
  max-width: 650px;
  padding-bottom: 22px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fbbf24;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 36px;
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.search-panel {
  align-self: end;
  padding: 18px;
  background: rgba(7, 17, 15, 0.82);
  color: #f3faf7;
  border: 1px solid rgba(226, 244, 239, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: rgba(243, 250, 247, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.search-row {
  gap: 10px;
  min-height: 52px;
  padding: 6px 6px 6px 14px;
  border: 1px solid rgba(226, 244, 239, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.search-row input,
.input-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
}

.search-row input::placeholder,
.input-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 82%, transparent);
}

.quick-chips {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-chips button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(243, 250, 247, 0.88);
  font-weight: 700;
}

body.light .search-panel {
  background: rgba(255, 255, 255, 0.92);
  color: #15211f;
  border-color: rgba(255, 255, 255, 0.5);
}

body.light .search-panel label {
  color: #3d4a47;
}

body.light .search-row {
  border-color: #d5dfdb;
  background: #fff;
}

body.light .quick-chips button {
  background: #eef6f3;
  color: #31514c;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.metrics-strip article {
  padding: 22px;
  background: var(--surface);
}

.metrics-strip strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.metrics-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.content-band {
  padding: 34px 0;
}

.compact-band {
  padding-top: 18px;
}

.service-band {
  padding-bottom: 18px;
}

.section-heading,
.page-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading h2,
.page-head h1 {
  margin-bottom: 0;
}

.page-head {
  align-items: flex-end;
  padding: 34px 0 12px;
}

.page-head p {
  max-width: 680px;
  margin: 12px 0 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr;
  gap: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 78%, transparent), var(--surface)),
    var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.service-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.service-card .button {
  margin-top: auto;
}

.service-primary {
  grid-column: span 2;
  background:
    linear-gradient(160deg, rgba(45, 212, 191, 0.92), rgba(20, 83, 76, 0.94)),
    var(--surface);
  color: #fff;
}

.service-primary p {
  color: rgba(255, 255, 255, 0.82);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--primary);
}

.service-primary .service-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.highlight-panel,
.sales-panel,
.feed-card,
.company-card,
.event-card,
.job-card,
.price-card,
.filter-panel,
.map-card,
.timeline article,
.workflow-panel,
.lead-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.highlight-panel {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.96), rgba(19, 78, 74, 0.94)),
    var(--surface);
  color: #fff;
}

.highlight-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.panel-top {
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge-green {
  background: var(--green-soft);
  color: #86efac;
}

.badge-blue {
  background: var(--blue-soft);
  color: #93c5fd;
}

.badge-amber {
  background: var(--accent-soft);
  color: #fde68a;
}

.badge-red {
  background: var(--red-soft);
  color: #fca5a5;
}

body.light .badge-green {
  color: #047857;
}

body.light .badge-blue {
  color: #1d4ed8;
}

body.light .badge-amber {
  color: #92400e;
}

body.light .badge-red {
  color: #b91c1c;
}

.feed-list,
.jobs-list {
  display: grid;
  gap: 12px;
}

.feed-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.feed-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--primary);
}

.feed-card h3,
.company-card h3,
.event-card h3,
.job-card h3,
.price-card h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.feed-card p,
.company-card p,
.event-card p,
.job-card p,
.price-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.sales-panel {
  padding: 22px;
}

.price-row {
  gap: 8px;
  margin: 22px 0;
}

.price-row strong {
  font-size: 28px;
}

.price-row span {
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.input-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.segmented,
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.segmented {
  overflow-x: auto;
}

.segmented button,
.billing-toggle button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.filter-panel h2 {
  font-size: 20px;
}

.switch-row,
.range-field,
.lead-form label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 700;
}

.switch-row {
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.range-field input {
  width: 100%;
}

.saved-box {
  margin-top: 22px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.saved-box strong {
  display: block;
  font-size: 30px;
}

.saved-box span {
  color: var(--muted);
}

.cards-grid,
.event-board,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.company-card,
.event-card,
.job-card,
.price-card {
  padding: 18px;
}

.company-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
}

.company-meta,
.event-meta,
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.company-actions,
.event-actions,
.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 800;
}

.event-board {
  grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
}

.event-card.featured {
  grid-row: span 2;
  min-height: 420px;
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.92), rgba(15, 23, 42, 0.88)),
    var(--surface);
  color: #fff;
}

.event-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.news-toolbar {
  grid-template-columns: minmax(260px, 0.85fr) 1fr;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.15fr) 310px;
  gap: 18px;
  align-items: start;
}

.news-feature,
.news-card,
.city-brief,
.brief-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.news-feature {
  position: sticky;
  top: 92px;
  overflow: hidden;
  min-height: 520px;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(20, 184, 166, 0.88), rgba(8, 47, 42, 0.94)),
    var(--surface);
  color: #fff;
}

.news-feature p,
.news-feature .news-meta {
  color: rgba(255, 255, 255, 0.78);
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
}

.news-card h3,
.news-feature h3 {
  margin-bottom: 8px;
}

.news-card p,
.news-feature p {
  margin-bottom: 0;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.news-card .icon-button {
  align-self: start;
}

.city-brief {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.brief-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.brief-list article {
  padding: 14px;
  background: var(--surface-soft);
}

.brief-list strong,
.brief-list span {
  display: block;
}

.brief-list span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.brief-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.map-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.map-workspace {
  position: relative;
  min-height: 560px;
}

.real-map,
.map-fallback {
  position: absolute;
  inset: 0;
}

.real-map {
  z-index: 1;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.map-fallback {
  z-index: 0;
}

.map-workspace.has-real-map .real-map {
  opacity: 1;
  pointer-events: auto;
}

.map-workspace.has-real-map .map-fallback {
  display: none;
}

.map-toolbar-panel {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.map-toolbar-panel > * {
  pointer-events: auto;
}

.map-search-field {
  min-height: 44px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.map-category-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.map-category-row button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.map-category-row button.is-active,
.map-category-row button:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.map-status {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  max-width: min(460px, calc(100% - 28px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.map-status[data-tone="success"] {
  color: #86efac;
}

.map-status[data-tone="warning"] {
  color: #fde68a;
}

.map-workspace.is-loading .map-status,
.map-workspace.is-searching .map-status {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}

.map-workspace.is-searching .map-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 50%, transparent);
  animation: pulse-dot 1.2s ease-out infinite;
}

.map-canvas {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, transparent 48%, rgba(15, 118, 110, 0.08) 48% 52%, transparent 52%),
    repeating-linear-gradient(28deg, transparent 0 46px, rgba(21, 33, 31, 0.06) 47px 49px),
    var(--surface-soft);
}

.map-water {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 4%;
  height: 26%;
  border-radius: 60% 45% 0 0;
  background: rgba(14, 165, 233, 0.16);
}

.map-road {
  position: absolute;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 0 0 1px rgba(21, 33, 31, 0.08);
}

.road-one {
  left: 12%;
  top: 18%;
  width: 78%;
  height: 18px;
  transform: rotate(19deg);
}

.road-two {
  left: 38%;
  top: 5%;
  width: 18px;
  height: 88%;
  transform: rotate(-13deg);
}

.road-three {
  left: 9%;
  top: 55%;
  width: 72%;
  height: 14px;
  transform: rotate(-7deg);
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.pin-food {
  background: #d97706;
}

.pin-health {
  background: #dc2626;
}

.pin-kids {
  background: #7c3aed;
}

.pin-auto {
  background: #2563eb;
}

.map-card {
  align-self: start;
  padding: 22px;
}

.map-result-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  max-height: 430px;
  overflow: auto;
  padding-right: 2px;
}

.map-result-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 6px 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.map-result-item span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #052a27;
  font-weight: 900;
}

body.light .map-result-item span {
  color: #fff;
}

.map-result-item strong,
.map-result-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-result-item small {
  color: var(--muted);
}

.map-result-item.is-active,
.map-result-item:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  background: var(--surface-strong);
}

.dgis-marker {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid #fff;
  border-radius: 999px 999px 999px 0;
  background: var(--primary);
  color: #052a27;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  transform: rotate(-45deg);
}

.dgis-marker span {
  display: block;
  transform: rotate(45deg);
}

.source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-weight: 800;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 48%, transparent);
  }

  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
}

.price-card.recommended {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 0 18px 46px rgba(15, 118, 110, 0.16);
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 18px;
  color: var(--muted);
}

.price-card .button {
  margin-top: auto;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.timeline article {
  padding: 18px;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.cabinet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ops-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 22px;
}

.ops-strip article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ops-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-strip strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.compact-heading {
  margin-bottom: 12px;
}

.lead-list {
  display: grid;
  gap: 12px;
}

.lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
}

.lead-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.lead-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.lead-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.workflow-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.workflow-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.workflow-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.workflow-list span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--primary);
  font-weight: 900;
}

.workflow-list h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

.workflow-list p {
  margin-bottom: 0;
  font-size: 14px;
}

.modal {
  width: min(620px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(6, 14, 12, 0.64);
  backdrop-filter: blur(5px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.modal-inner,
.lead-form {
  padding: 28px;
}

.modal-inner p {
  margin-bottom: 18px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 80;
  max-width: min(380px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition: 0.22s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav {
  display: none;
}

@media (max-width: 1180px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-primary {
    grid-column: span 1;
  }

  .news-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  }

  .city-brief {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 980px) {
  :root {
    --page: min(100vw - 24px, 760px);
  }

  .desktop-nav {
    display: none;
  }

  .install-button {
    display: none;
  }

  .hero-content,
  .dashboard-grid,
  .catalog-layout,
  .map-layout,
  .news-layout,
  .cabinet-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .search-panel {
    max-width: 560px;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 32px;
  }

  .metrics-strip,
  .service-grid,
  .cards-grid,
  .event-board,
  .pricing-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .map-toolbar-panel {
    grid-template-columns: 1fr;
  }

  .segmented {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .filter-panel {
    position: static;
  }

  .news-feature,
  .city-brief,
  .workflow-panel {
    position: static;
    min-height: auto;
  }

  .ops-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --page: calc(100vw - 16px);
  }

  .topbar {
    gap: 8px;
    padding: 8px 0;
  }

  .topbar::before {
    height: 60px;
  }

  .brand small,
  .top-actions .button-primary {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    max-width: 180px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-actions {
    gap: 6px;
  }

  .icon-button {
    width: 42px;
    min-height: 42px;
  }

  main {
    padding-top: 10px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: auto;
    padding: 22px 16px;
  }

  .hero-slide {
    object-position: 58% center;
  }

  .hero-photo-label {
    right: 12px;
    bottom: 12px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.02;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 19px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions,
  .search-row,
  .page-head,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search-row .button {
    width: 100%;
  }

  .hero-actions .button,
  .company-actions .button,
  .event-actions .button,
  .job-actions .button,
  .cabinet-actions .button,
  .brief-actions .button {
    width: 100%;
  }

  .metrics-strip,
  .service-grid,
  .cards-grid,
  .event-board,
  .pricing-grid,
  .timeline,
  .ops-strip {
    grid-template-columns: 1fr;
  }

  .metrics-strip article,
  .ops-strip article,
  .service-card,
  .company-card,
  .event-card,
  .job-card,
  .price-card,
  .sales-panel,
  .highlight-panel,
  .workflow-panel {
    padding: 16px;
  }

  .service-card,
  .company-card,
  .price-card {
    min-height: auto;
  }

  .feed-card,
  .news-card,
  .lead-card {
    grid-template-columns: 1fr;
  }

  .feed-card {
    align-items: start;
  }

  .feed-icon {
    width: 40px;
    height: 40px;
  }

  .news-card .icon-button,
  .lead-card .icon-button {
    width: 100%;
  }

  .event-card.featured {
    min-height: 320px;
  }

  .map-canvas {
    min-height: 360px;
  }

  .map-workspace,
  .real-map {
    min-height: 430px;
  }

  .map-toolbar-panel {
    top: 10px;
    right: 10px;
    left: 10px;
    gap: 8px;
  }

  .map-category-row {
    padding-bottom: 6px;
  }

  .map-status {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .map-result-list {
    max-height: none;
  }

  .map-head-actions {
    width: 100%;
  }

  .map-head-actions .button {
    width: 100%;
  }

  .map-pin {
    width: 46px;
    height: 46px;
  }

  .modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 24px);
  }

  .modal-inner,
  .lead-form {
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 22px 16px;
  }

  .mobile-nav {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .mobile-nav button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 56px;
    border-radius: var(--radius-sm);
    font-size: 10px;
  }

  .mobile-nav button.is-active {
    background: var(--surface-strong);
    color: var(--ink);
  }
}

@media (max-width: 430px) {
  .brand strong {
    max-width: 145px;
  }

  .topbar .icon-button {
    width: 40px;
    min-height: 40px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }

  .hero-content {
    padding: 18px 14px;
  }

  .search-panel {
    padding: 14px;
  }

  .segmented button,
  .billing-toggle button {
    min-height: 40px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .mobile-nav {
    right: 6px;
    left: 6px;
    gap: 2px;
  }

  .mobile-nav button span {
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
