:root {
  --blue: #0047ff;
  --blue-dark: #0036c7;
  --ink: #161c31;
  --muted: #747b8d;
  --line: #e4e7ed;
  --soft: #f5f6f8;
  --white: #fff;
  --green: #1aac68;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.header {
  position: absolute;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  background: transparent;
}
.header__inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  display: block;
  width: auto;
  height: 28px;
}
.logo--footer img {
  height: 22px;
  filter: brightness(0) invert(1);
}
.header__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  color: #5f6880;
  font-size: 10px;
  font-weight: 600;
}
.header__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(26, 172, 104, 0.12);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header__actions a {
  color: #2b3350;
  font-size: 13px;
  font-weight: 700;
}
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.button:hover { transform: translateY(-1px); }
.button--ghost {
  min-height: 34px;
  color: #243056;
  border: 1px solid rgba(36, 48, 86, 0.16);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}
.button--primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(0, 71, 255, 0.18);
}
.button--primary:hover { background: var(--blue-dark); }
.button--outline {
  color: var(--blue);
  border: 1px solid var(--blue);
  background: transparent;
}
.button--outline:hover {
  color: var(--blue-dark);
  border-color: var(--blue-dark);
  background: #f0f4ff;
}
.button--full { width: 100%; }
.button--row {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
  box-shadow: none;
}

.map-hero {
  position: relative;
  overflow: hidden;
  height: min(860px, 100vh);
  min-height: 760px;
  background:
    radial-gradient(circle at 50% 48%, #eef3ff 0%, #e8edf7 42%, #dce3ef 100%);
}
#russia-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}
.leaflet-container {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: transparent !important;
  cursor: grab;
}
.leaflet-container:active,
.leaflet-dragging .leaflet-container {
  cursor: grabbing;
}
.leaflet-control-container {
  display: block;
}
.leaflet-bottom.leaflet-right {
  display: none;
}
.map-zoom-slot .leaflet-control-zoom {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.42) !important;
  box-shadow: 0 8px 22px rgba(30, 42, 78, 0.08) !important;
  backdrop-filter: blur(8px);
  opacity: 0.72;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.map-zoom-slot .leaflet-control-zoom:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.7) !important;
}
.map-zoom-slot .leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  color: #243056 !important;
  border-bottom: 0 !important;
  border-right: 1px solid rgba(215, 220, 232, 0.7) !important;
  background: transparent !important;
  line-height: 36px !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  float: none !important;
}
.map-zoom-slot .leaflet-control-zoom a:last-child {
  border-right: 0 !important;
}
.map-zoom-slot .leaflet-control-zoom a:hover {
  color: var(--blue) !important;
  background: rgba(244, 247, 255, 0.75) !important;
}
.map-zoom-slot .leaflet-control-zoom a.leaflet-disabled {
  color: #b0b6c4 !important;
  background: transparent !important;
}
.leaflet-overlay-pane svg {
  overflow: visible;
  filter: drop-shadow(0 18px 14px rgba(40, 55, 95, 0.18));
}
.russia-shape {
  fill: #f9fbff;
  fill-rule: nonzero;
  stroke: #c7d2e5;
  stroke-width: 1.1px;
}
.russia-shape-shadow {
  fill: #b8c3d7;
  fill-rule: nonzero;
  stroke: #b8c3d7;
}
.map-hero__mesh {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: radial-gradient(#8e9ab3 0.65px, transparent 0.65px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, transparent 16%, #000 78%);
}
.map-hero::after {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 90px;
  content: "";
  pointer-events: none;
  background: linear-gradient(transparent, rgba(222, 228, 239, 0.95));
}
.map-hero__heading {
  position: absolute;
  z-index: 500;
  top: 88px;
  left: 50%;
  width: min(760px, calc(100% - 28px));
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.map-hero__heading > * { pointer-events: none; }
.hero-search,
.ai-result,
.map-cue,
.map-zoom-slot { pointer-events: auto; }
.overline {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  line-height: 1.45;
}
.map-hero h1 {
  margin: 0;
  color: #121a35;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -2.6px;
  line-height: 1.05;
}
.map-hero h1 span { color: var(--blue); }

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(520px, 100%);
  margin: 18px auto 0;
  padding: 6px 6px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(30, 42, 78, 0.1);
  backdrop-filter: blur(14px);
}
.hero-search__icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  color: var(--blue);
  border-radius: 8px;
  background: #edf1ff;
  font-size: 13px;
}
.hero-search__field {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.hero-search input {
  width: 100%;
  height: 34px;
  padding: 0;
  color: var(--ink);
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
}
.typing-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  color: #9aa2b4;
  pointer-events: none;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}
.typing-hint__prefix {
  flex: 0 0 auto;
  color: #9aa2b4;
}
.typing-hint i {
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-left: 2px;
  background: var(--blue);
  animation: blink 0.8s infinite;
}
.hero-search.is-filled .typing-hint,
.hero-search:focus-within .typing-hint { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.send-button {
  position: relative;
  display: grid;
  height: 34px;
  flex: none;
  place-items: center;
  padding: 0 12px;
  color: #fff;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.send-button__label {
  line-height: 1;
  transition: opacity 0.15s ease;
}
.send-button__spinner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.send-button.is-loading {
  cursor: wait;
  pointer-events: none;
}
.send-button.is-loading .send-button__label { opacity: 0; }
.send-button.is-loading .send-button__spinner {
  opacity: 1;
  animation: send-spin 0.7s linear infinite;
}
@keyframes send-spin {
  to { transform: rotate(360deg); }
}
.ai-result {
  display: none;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  margin: 8px auto 0;
  padding: 10px 12px;
  color: #fff;
  border-radius: 10px;
  background: var(--blue);
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 71, 255, 0.22);
}
.ai-result.is-visible { display: flex; }
.ai-result > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}
.ai-result > div { display: flex; flex-direction: column; gap: 2px; }
.ai-result strong { font-size: 11px; }
.ai-result small { color: rgba(255, 255, 255, 0.72); font-size: 9px; }
.ai-result button {
  margin-left: auto;
  color: #fff;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.map-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 7px 12px;
  color: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 22px rgba(30, 42, 78, 0.1);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
  white-space: nowrap;
}
.map-cue__arrow {
  width: 14px;
  height: 20px;
  flex: none;
  animation: cue-nudge-mobile 1.9s ease-in-out infinite;
}
@keyframes cue-nudge-mobile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.map-zoom-slot {
  position: absolute;
  z-index: 500;
  bottom: 96px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}
.map-unlock {
  display: none;
  height: 36px;
  padding: 0 12px;
  color: #243056;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 22px rgba(30, 42, 78, 0.08);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  white-space: nowrap;
  cursor: pointer;
}
.map-hero.map-is-interactive .map-unlock {
  color: #fff;
  border-color: #0047ff;
  background: #0047ff;
  box-shadow: 0 8px 22px rgba(0, 71, 255, 0.28);
}
.map-hero.map-is-locked #russia-map,
.map-hero.map-is-locked .leaflet-container {
  touch-action: pan-y !important;
  cursor: default;
}
.map-hero.map-is-interactive #russia-map,
.map-hero.map-is-interactive .leaflet-container {
  touch-action: none;
}
@media (pointer: coarse) {
  .map-unlock { display: inline-flex; align-items: center; }
}
body.touch-map .map-unlock { display: inline-flex; align-items: center; }
.map-counter {
  position: absolute;
  z-index: 500;
  bottom: 36px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 28px rgba(39, 52, 88, 0.1);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}
.map-counter strong {
  color: var(--blue);
  font-size: 22px;
  letter-spacing: -1px;
}
.map-counter span {
  padding-left: 10px;
  color: #6c7489;
  border-left: 1px solid #d9deea;
  font-size: 9px;
  line-height: 1.45;
}

.parking-marker-wrap {
  background: transparent !important;
  border: 0 !important;
}
.leaflet-tooltip.parking-tip {
  padding: 5px 8px;
  color: #243056;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(30, 42, 78, 0.14);
  font-size: 10px;
  font-weight: 700;
  pointer-events: auto;
  cursor: pointer;
}
.leaflet-tooltip.parking-tip::before {
  display: none;
}
.leaflet-tooltip.parking-tip--major {
  color: #1a2548;
  background: rgba(255, 255, 255, 0.97);
  font-size: 11px;
  font-weight: 800;
}
.leaflet-tooltip.parking-tip--minor {
  padding: 0 !important;
  color: rgba(36, 48, 86, 0.9) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 7px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
#russia-map[data-label-scale="1"] .leaflet-tooltip.parking-tip--minor {
  font-size: 7px !important;
}
#russia-map[data-label-scale="2"] .leaflet-tooltip.parking-tip--minor {
  font-size: 9px !important;
}
#russia-map[data-label-scale="3"] .leaflet-tooltip.parking-tip--minor {
  font-size: 11px !important;
  font-weight: 600 !important;
}
#russia-map[data-label-scale="4"] .leaflet-tooltip.parking-tip--minor {
  font-size: 13px !important;
  font-weight: 700 !important;
}
#russia-map[data-label-scale="2"] .leaflet-tooltip.parking-tip--major {
  font-size: 12px;
}
#russia-map[data-label-scale="3"] .leaflet-tooltip.parking-tip--major {
  font-size: 13px;
}
#russia-map[data-label-scale="4"] .leaflet-tooltip.parking-tip--major {
  font-size: 15px;
}
.leaflet-tooltip.parking-tip.is-spotlight {
  color: #0047ff !important;
  opacity: 1 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #d7e2ff !important;
  box-shadow: 0 8px 20px rgba(0, 71, 255, 0.16) !important;
  padding: 4px 8px !important;
}
.leaflet-tooltip.parking-tip.is-spotlight::before {
  display: none;
}
.parking-spotlight-ring {
  animation: parking-pulse 1.1s ease-out infinite;
}
@keyframes parking-pulse {
  0% { opacity: 0.55; }
  70% { opacity: 0.12; }
  100% { opacity: 0; }
}

.button--load {
  display: flex;
  min-width: 180px;
  margin: 18px auto 0;
  color: #343b50;
  border: 1px solid #d7dae2;
  background: #fff;
}
.button--load[hidden] {
  display: none !important;
}

.parking-preview {
  position: absolute;
  z-index: 600;
  top: 50%;
  right: 28px;
  width: 260px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(31, 43, 77, 0.16);
  pointer-events: none;
  backdrop-filter: blur(15px);
  transition: opacity 0.25s, transform 0.25s;
  transform: translate(16px, -45%);
}
.parking-preview.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}
.parking-preview__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  color: #687085;
  border: 0;
  border-radius: 7px;
  background: #f0f2f6;
}
.parking-preview__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-right: 22px;
}
.parking-preview__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--blue);
  border-radius: 8px;
  background: #edf1ff;
  font-size: 9px;
}
.parking-preview__top > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #188e59;
  font-size: 9px;
}
.parking-preview__top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.parking-preview > small {
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.parking-preview h2 {
  margin: 4px 0 6px;
  font-size: 22px;
  letter-spacing: -0.8px;
}
.parking-preview > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.parking-preview__count {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}
.parking-preview__count strong {
  color: var(--blue);
  font-size: 26px;
}
.parking-preview__count span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.workspace {
  position: relative;
  z-index: 5;
  padding: 28px 0 18px;
  background: #fff;
}
.filters {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.filters-ai {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #fff;
  background: var(--blue);
}
.filters-ai__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
}
.filters-ai__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
}
.filters-ai__copy strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.filters-ai__copy small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}
.filters-ai__field {
  display: flex;
  flex: 1;
  min-width: 180px;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 12px;
  border-radius: 10px;
  background: #fff;
}
.filters-ai input,
.filters-ai input:focus {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}
.filters-ai input::placeholder {
  color: #9aa2b4;
}
.filters-ai .send-button {
  height: 32px;
  padding: 0 14px;
  background: var(--blue-dark);
}
.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.filters__head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filters__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--blue);
  border-radius: 8px;
  background: #eef1ff;
}
.filters__head > div > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.filters__head strong { font-size: 12px; }
.filters__head small {
  color: #9399a7;
  font-size: 10px;
}
.filters__head > button {
  color: #8a90a0;
  border: 0;
  background: transparent;
  font-size: 11px;
}
.filters__fields {
  display: grid;
  align-items: end;
  gap: 8px;
  padding: 14px;
  grid-template-columns: 0.95fr 0.85fr 0.9fr 0.75fr 1fr 1.15fr 0.7fr;
}
.filters label > span,
.lead-modal label > span {
  display: block;
  margin-bottom: 6px;
  color: #767d8e;
  font-size: 10px;
  font-weight: 700;
}
#filters select,
#filters input,
.lead-modal input,
.lead-modal textarea {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  color: #353c50;
  border: 1px solid #dfe2e9;
  border-radius: 7px;
  outline: none;
  background: #fff;
  font-size: 12px;
}
#filters select:focus,
#filters input:focus,
.lead-modal input:focus,
.lead-modal textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 71, 255, 0.08);
}
.price-field > div {
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr 1fr;
}
.filter-submit { min-height: 38px; }

.results {
  padding: 18px 0 56px;
  background: #f5f6f8;
}
.results__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.results h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -1.2px;
}
.results__meta {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #858b99;
  font-size: 12px;
}
.results__meta strong { color: var(--ink); }
.results__meta label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #858b99;
}
.results__meta label > span {
  font-size: 11px;
  font-weight: 600;
}
.results__meta select {
  min-height: 30px;
  padding: 4px 8px;
  color: var(--ink);
  border: 1px solid #e2e6ef;
  border-radius: 7px;
  outline: none;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.results__meta select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 71, 255, 0.08);
}
.result-list {
  overflow: hidden;
  max-width: 100%;
  border: 1px solid #dfe2e8;
  border-radius: 12px;
  background: #fff;
}
.stock-row {
  display: grid;
  min-height: 96px;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  transition: background 0.2s;
  grid-template-columns: 56px minmax(220px, 1fr) 150px 140px minmax(160px, auto);
}
.stock-row__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 148px;
}
.stock-row__cta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stock-row__links {
  display: flex;
  gap: 6px;
}
.market-link {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 8px;
  color: #3a4258;
  border: 1px solid #e2e6ef;
  border-radius: 7px;
  background: #f7f8fb;
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.market-link img {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
}
.market-link:hover {
  color: var(--blue);
  border-color: #c9d4f0;
  background: #f0f4ff;
}
.stock-row + .stock-row { border-top: 1px solid var(--line); }
.stock-row:hover { background: #fafbff; }
.stock-row.is-target {
  background: #eef3ff;
  box-shadow: inset 3px 0 0 var(--blue);
}
.stock-row.is-hidden { display: none; }
.machine-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #e5e9f1;
  border-radius: 12px;
  background: #f4f6fb;
  color: #243056;
}
.machine-icon::before {
  content: "";
  width: 26px;
  height: 26px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.machine-icon--truck {
  --icon: url("assets/icons/truck.svg");
  color: #243056;
  background: #f3f5fa;
}
.machine-icon--dump {
  --icon: url("assets/icons/dump.svg");
  color: #243056;
  background: #f3f5fa;
}
.machine-icon--special,
.machine-icon--excavator {
  color: #9a6208;
  background: #fff7ea;
}
.machine-icon--special { --icon: url("assets/icons/loader.svg"); }
.machine-icon--excavator { --icon: url("assets/icons/excavator.svg"); }
.machine-icon--car {
  --icon: url("assets/icons/car.svg");
  color: var(--blue);
  background: #eef2ff;
}
.machine-icon--equipment {
  --icon: url("assets/icons/equipment.svg");
  color: #157a54;
  background: #eefaf4;
}
.stock-row__labels {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stock-row__labels span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.9px;
}
.stock-row__labels em {
  padding: 3px 6px;
  color: #5e6577;
  border-radius: 4px;
  background: #eff1f4;
  font-size: 9px;
  font-style: normal;
}
.stock-row h3 {
  margin: 5px 0 7px;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.stock-row__specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #757c8d;
  font-size: 11px;
}
.stock-row__specs i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #b3b7c1;
}
.stock-row__place,
.stock-row__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stock-row__place small,
.stock-row__price small {
  color: #9a9fab;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.stock-row__place span {
  color: #51596e;
  font-size: 12px;
}
.stock-row__place span i {
  margin-right: 4px;
  color: var(--blue);
  font-size: 8px;
  font-style: normal;
}
.stock-row__place a {
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}
.stock-row__price strong {
  font-size: 15px;
  letter-spacing: -0.2px;
}
.stock-row__price span {
  color: var(--blue);
  font-size: 11px;
}
.empty-state {
  display: none;
  padding: 42px 20px;
  text-align: center;
}
.empty-state.is-visible { display: block; }
.empty-state > span {
  color: #a4aaba;
  font-size: 28px;
}
.empty-state h3 {
  margin: 8px 0 4px;
  font-size: 16px;
}
.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

footer {
  padding: 24px 0 28px;
  color: #929bb6;
  background: #111a37;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.footer__inner > a:last-child {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.footer__legal {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__legal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  line-height: 1.55;
}
.footer__legal p + p { margin-top: 10px; }
.footer__legal a,
.footer__legal-link {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__legal-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.footer__legal-sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.32);
}

dialog { padding: 0; border: 0; }
dialog::backdrop {
  background: rgba(8, 14, 35, 0.62);
  backdrop-filter: blur(5px);
}
.lead-modal {
  width: min(420px, calc(100% - 28px));
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(5, 12, 35, 0.3);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #707789;
  border: 0;
  border-radius: 7px;
  background: #f1f2f5;
  font-size: 18px;
}
.lead-modal__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--blue);
  border-radius: 10px;
  background: #eef1ff;
  font-size: 18px;
}
.lead-modal h2 {
  margin: 14px 0 8px;
  font-size: 22px;
  letter-spacing: -0.8px;
}
.lead-modal > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.terms-modal {
  position: relative;
  width: min(760px, calc(100% - 28px));
  max-height: min(82vh, 840px);
  padding: 28px 28px 22px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(5, 12, 35, 0.3);
}
.terms-modal h2 {
  margin: 0 36px 14px 0;
  font-size: 22px;
  letter-spacing: -0.8px;
}
.terms-modal__body {
  max-height: calc(min(82vh, 840px) - 86px);
  overflow: auto;
  padding-right: 8px;
  color: #3a4258;
  font-size: 13px;
  line-height: 1.55;
}
.terms-modal__body h3 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 15px;
}
.terms-modal__body p { margin: 0 0 10px; }
.terms-modal--wide {
  width: min(1100px, calc(100% - 28px));
  max-height: min(88vh, 920px);
}
.privacy-modal__meta {
  margin: -6px 36px 10px 0;
  color: var(--muted);
  font-size: 12px;
}
.privacy-frame {
  display: block;
  width: 100%;
  height: calc(min(88vh, 920px) - 102px);
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.lead-modal .consent-check input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 3px;
  box-shadow: none;
  accent-color: #0047ff;
}
.consent-check button {
  padding: 0;
  border: 0;
  background: none;
  color: #0047ff;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.lead-modal form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lead-item-field[hidden] { display: none; }
.lead-item-field strong {
  display: block;
  min-height: 38px;
  padding: 10px 11px;
  color: #353c50;
  border: 1px solid #dfe2e9;
  border-radius: 7px;
  background: #f5f6f8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.lead-modal textarea {
  height: 72px;
  padding-top: 10px;
  resize: none;
}
.toast {
  position: fixed;
  z-index: 2000;
  right: 20px;
  bottom: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.toast.is-visible {
  opacity: 1;
}
.toast__card {
  display: flex;
  min-width: 260px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe5e2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(15, 29, 69, 0.17);
  transform: translateY(12px);
  transition: transform 0.25s;
}
.toast.is-visible .toast__card {
  transform: translateY(0);
}
.toast__card > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: #188e59;
  border-radius: 8px;
  background: #e9f8f1;
}
.toast__card > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toast strong { font-size: 12px; }
.toast small {
  color: var(--muted);
  font-size: 11px;
}
.toast.is-success {
  inset: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 22, 48, 0.42);
}
.toast.is-success .toast__card {
  min-width: min(420px, calc(100vw - 48px));
  max-width: 460px;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px 28px;
  text-align: center;
  border-radius: 18px;
  transform: translateY(16px) scale(0.96);
}
.toast.is-success.is-visible .toast__card {
  transform: translateY(0) scale(1);
}
.toast.is-success .toast__card > span {
  width: 56px;
  height: 56px;
  font-size: 26px;
  border-radius: 50%;
}
.toast.is-success strong {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.toast.is-success small {
  font-size: 16px;
  line-height: 1.4;
  color: #3d4a66;
}

@media (max-width: 1050px) {
  .stock-row {
    grid-template-columns: 52px minmax(180px, 1fr) 130px 130px auto;
    gap: 12px;
  }
  .filters__fields { grid-template-columns: 1fr 1fr; }
  .price-field { grid-column: span 2; }
  .filter-submit { grid-column: span 2; }
  .filters-ai {
    flex-wrap: wrap;
  }
  .filters-ai__field {
    flex: 1 1 100%;
    min-width: 0;
  }
}
@media (max-width: 800px) {
  .header__status { display: none; }
  .header__actions { margin-left: auto; }
  .map-hero { height: 780px; min-height: 720px; }
  .map-hero__heading {
    top: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .map-counter { bottom: 28px; }
  .map-zoom-slot { bottom: 88px; }
  .map-hero__heading .map-zoom-slot {
    position: static;
    transform: none;
    margin-top: 12px;
  }
  .map-unlock { display: inline-flex; align-items: center; }
  .parking-preview {
    top: auto;
    right: 14px;
    bottom: 70px;
    left: 14px;
    width: auto;
    transform: translateY(16px);
  }
  .parking-preview.is-open { transform: translateY(0); }
  .results__header {
    align-items: flex-start;
    flex-direction: column;
  }
  .stock-row {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "icon main main"
      ". place price"
      "actions actions actions";
    gap: 8px 12px;
    align-items: start;
    min-height: 0;
    padding: 12px 14px;
  }
  .stock-row .machine-icon { grid-area: icon; }
  .stock-row__main { grid-area: main; min-width: 0; }
  .stock-row__place { grid-area: place; }
  .stock-row__price { grid-area: price; }
  .stock-row__actions {
    grid-area: actions;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    margin-top: 2px;
  }
  .stock-row__links { flex: 1 1 auto; }
  .stock-row__cta {
    flex: 1 1 100%;
    flex-direction: row;
  }
  .stock-row .button--row {
    flex: 1 1 0;
    width: auto;
  }
  .stock-row h3 { margin: 3px 0 4px; }
  .stock-row__place,
  .stock-row__price { gap: 2px; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 28px); }
  .logo img { height: 22px; }
  .header__actions a { display: none; }
  .map-hero { min-height: 700px; height: 760px; }
  .map-hero h1 {
    font-size: 32px;
    letter-spacing: -1.8px;
  }
  .hero-search input,
  .typing-hint { font-size: 12px; }
  .hero-search { margin-top: 14px; }
  .send-button {
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }
  .map-cue {
    font-size: 11px;
    padding: 6px 10px;
  }
  .map-cue__arrow {
    width: 12px;
    height: 18px;
  }
  .filters__fields { grid-template-columns: 1fr; }
  .price-field { grid-column: auto; }
  .results { padding-top: 12px; }
  .results__meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .results__meta label > span { display: none; }
  .stock-row {
    padding: 10px 12px;
    gap: 6px 10px;
    grid-template-columns: 40px minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .machine-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .machine-icon::before {
    width: 22px;
    height: 22px;
  }
  .stock-row h3 { font-size: 14px; margin: 2px 0 3px; }
  .stock-row__specs { font-size: 10px; gap: 5px; }
  .stock-row__specs span:nth-of-type(n + 3),
  .stock-row__specs i:nth-of-type(n + 2) { display: none; }
  .stock-row__place span,
  .stock-row__price strong { font-size: 12px; }
  .stock-row__price span { font-size: 10px; }
  .stock-row__place small,
  .stock-row__price small {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  .button--row {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .footer__inner > span { display: none; }
  .footer__legal p { font-size: 10px; }
  .lead-modal { padding: 24px 18px; }
  .terms-modal { padding: 22px 16px 16px; }
  .terms-modal h2 { font-size: 18px; }
  .privacy-frame { height: calc(min(88vh, 920px) - 118px); }
}

/* =============================================================================
   WIDE LAYOUT
   Вкл: <body class="layout-wide">
   Выкл: убрать class — вернутся классические размеры выше.
   Можно удалить весь этот блок целиком.
   ============================================================================= */
body.layout-wide .container {
  width: min(1680px, calc(100% - 64px));
}
body.layout-wide .header__inner { min-height: 72px; }
body.layout-wide .logo img { height: 32px; }
body.layout-wide .header__status { font-size: 13px; }
body.layout-wide .header__actions a,
body.layout-wide .button--ghost { font-size: 13px; }

body.layout-wide .map-hero {
  height: min(940px, 100vh);
  min-height: 820px;
}
body.layout-wide .map-hero__heading {
  top: 96px;
  width: min(920px, calc(100% - 48px));
}
body.layout-wide .overline { font-size: 10px; letter-spacing: 1.4px; }
body.layout-wide .map-hero h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  letter-spacing: -2.4px;
}
body.layout-wide .hero-search,
body.layout-wide .ai-result {
  width: min(640px, 100%);
}
body.layout-wide .hero-search {
  margin-top: 22px;
  padding: 8px 8px 8px 12px;
  border-radius: 16px;
}
body.layout-wide .hero-search input,
body.layout-wide .typing-hint { font-size: 15px; }
body.layout-wide .send-button {
  height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 13px;
}
body.layout-wide .ai-result strong { font-size: 13px; }
body.layout-wide .ai-result small { font-size: 11px; }
body.layout-wide .map-cue { font-size: 13px; padding: 8px 14px; }
body.layout-wide .map-counter {
  bottom: 40px;
  padding: 12px 16px;
}
body.layout-wide .map-counter strong { font-size: 26px; }
body.layout-wide .map-counter span { font-size: 10px; }
body.layout-wide .map-zoom-slot { bottom: 108px; }

body.layout-wide .filters {
  border-radius: 14px;
}
body.layout-wide .filters-ai {
  gap: 14px;
  padding: 14px 18px;
}
body.layout-wide .filters-ai__copy strong { font-size: 14px; }
body.layout-wide .filters-ai__copy small { font-size: 11px; }
body.layout-wide .filters-ai input { height: 36px; font-size: 14px; }
body.layout-wide .filters-ai .send-button {
  height: 36px;
  font-size: 13px;
}
body.layout-wide .filters__head strong { font-size: 14px; }
body.layout-wide .filters__head small { font-size: 12px; }
body.layout-wide .filters__fields {
  gap: 12px;
  padding: 16px 18px;
  grid-template-columns: 1fr 0.9fr 1fr 0.85fr 1.1fr 1.2fr 0.75fr;
}
body.layout-wide .filters label > span { font-size: 11px; }
body.layout-wide #filters select,
body.layout-wide #filters input {
  height: 42px;
  font-size: 13px;
}
body.layout-wide .filter-submit { min-height: 42px; font-size: 13px; }

body.layout-wide .results { padding: 22px 0 64px; }
body.layout-wide .results h2 {
  font-size: clamp(28px, 2.8vw, 38px);
  letter-spacing: -1.4px;
}
body.layout-wide .results__meta { font-size: 13px; gap: 24px; }
body.layout-wide .results__meta select {
  min-height: 34px;
  font-size: 13px;
}

body.layout-wide .stock-row {
  min-height: 104px;
  gap: 20px;
  padding: 16px 20px;
  grid-template-columns: 60px minmax(260px, 1fr) 170px 160px minmax(170px, auto);
}
body.layout-wide .machine-icon {
  width: 56px;
  height: 56px;
}
body.layout-wide .stock-row__labels span { font-size: 10px; }
body.layout-wide .stock-row h3 {
  font-size: 18px;
  margin: 6px 0 8px;
}
body.layout-wide .stock-row__specs { font-size: 12px; }
body.layout-wide .stock-row__place span { font-size: 13px; }
body.layout-wide .stock-row__place a { font-size: 12px; }
body.layout-wide .stock-row__price strong { font-size: 17px; }
body.layout-wide .stock-row__price span { font-size: 12px; }
body.layout-wide .button--row {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
}
body.layout-wide .market-link {
  min-height: 32px;
  font-size: 12px;
}

@media (max-width: 1050px) {
  body.layout-wide .map-hero {
    height: 820px;
    min-height: 760px;
  }
  body.layout-wide .filters__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
  }
  body.layout-wide .filters__fields > * { min-width: 0; }
  body.layout-wide .price-field,
  body.layout-wide .filter-submit { grid-column: span 2; }

  body.layout-wide .stock-row {
    min-height: 0;
    gap: 12px;
    padding: 14px 16px;
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "icon main main"
      ". place price"
      "actions actions actions";
  }
  body.layout-wide .machine-icon {
    width: 44px;
    height: 44px;
  }
  body.layout-wide .machine-icon::before {
    width: 22px;
    height: 22px;
  }
  body.layout-wide .stock-row .machine-icon { grid-area: icon; }
  body.layout-wide .stock-row__main,
  body.layout-wide .stock-row__place,
  body.layout-wide .stock-row__price,
  body.layout-wide .stock-row__actions { min-width: 0; }
  body.layout-wide .stock-row__main { grid-area: main; }
  body.layout-wide .stock-row__place { grid-area: place; }
  body.layout-wide .stock-row__price { grid-area: price; }
  body.layout-wide .stock-row__actions {
    grid-area: actions;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  body.layout-wide .stock-row h3 { overflow-wrap: anywhere; }
}

@media (max-width: 800px) {
  body.layout-wide .map-hero {
    height: 820px;
    min-height: 760px;
  }
  body.layout-wide .map-hero__heading {
    width: min(920px, calc(100% - 28px));
  }
  body.layout-wide .map-hero__heading .map-zoom-slot,
  body.layout-wide .map-zoom-slot {
    position: static;
    bottom: auto;
    transform: none;
    margin-top: 12px;
  }
  body.layout-wide .hero-search,
  body.layout-wide .ai-result {
    width: min(640px, 100%);
  }
  body.layout-wide .container { width: calc(100% - 24px); }
  body.layout-wide .filters__fields {
    grid-template-columns: 1fr;
  }
  body.layout-wide .price-field,
  body.layout-wide .filter-submit { grid-column: auto; }
  body.layout-wide .filter-submit { width: 100%; }

  body.layout-wide .stock-row {
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas:
      "icon main"
      "place place"
      "price price"
      "actions actions";
    gap: 8px 14px;
    padding: 12px;
  }
  body.layout-wide .machine-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  body.layout-wide .machine-icon::before {
    width: 16px;
    height: 16px;
  }
  body.layout-wide .stock-row h3 {
    font-size: 15px;
    margin: 4px 0 6px;
  }
  body.layout-wide .stock-row__cta {
    flex: 1 1 100%;
    flex-direction: column;
    width: 100%;
  }
  body.layout-wide .stock-row .button--row {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    white-space: normal;
  }
  body.layout-wide .stock-row__links { width: 100%; }
  body.layout-wide .stock-row__price span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 620px) {
  body.layout-wide .container { width: calc(100% - 28px); }
  body.layout-wide .map-hero h1 { font-size: 34px; }
  body.layout-wide .hero-search input,
  body.layout-wide .typing-hint { font-size: 13px; }
  body.layout-wide .stock-row h3 { font-size: 15px; }
  body.layout-wide .stock-row__price strong { font-size: 16px; }
}
