:root {
  --ink: #17202a;
  --muted: #5d6877;
  --line: #dbe2ea;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --blue: #1f66d8;
  --blue-dark: #174fa8;
  --green: #0e8f74;
  --red: #c04455;
  --amber: #a76d12;
  --violet: #7057d5;
  --shadow: 0 18px 45px rgba(28, 42, 61, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 176px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
}

.nav a.active,
.nav a:hover {
  color: var(--ink);
}

.nav-link-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-left: 0;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--blue);
  background: #edf4ff;
  font-weight: 750;
  line-height: 1;
  text-align: center;
}

.nav-link-soft:hover {
  background: #dfeeff;
}

.noscript-note {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #eef6ff;
  color: var(--muted);
  font-weight: 700;
}

.mobile-active-filter-bar {
  display: none;
}

.service-actions a,
.hero-actions a,
.finder button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.service-actions a:hover,
.hero-actions a:hover,
.finder button:hover {
  background: var(--blue-dark);
}

.search-band {
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px) 28px;
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.08), rgba(14, 143, 116, 0.08)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions a + a {
  color: var(--blue);
  background: #edf4ff;
}

.hero-actions a + a:hover {
  color: #fff;
  background: var(--blue-dark);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.content-band {
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px);
  background: #fff;
}

.content-band.muted {
  background: var(--soft);
}

.section-head,
.results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto 22px;
}

.section-head > a {
  color: var(--blue);
  font-weight: 750;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.category-card {
  display: grid;
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(28, 42, 61, 0.06);
}

.category-card span {
  align-self: start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-card b {
  align-self: center;
  font-size: 21px;
  line-height: 1.2;
}

.category-card small {
  align-self: end;
  color: var(--muted);
}

.accent-health {
  border-top: 5px solid var(--red);
}

.accent-home {
  border-top: 5px solid var(--green);
}

.accent-docs {
  border-top: 5px solid var(--blue);
}

.accent-move {
  border-top: 5px solid var(--amber);
}

.cards-list {
  display: grid;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  min-width: 0;
}

.cards-list.compact {
  grid-template-columns: repeat(3, 1fr);
}

.pro-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 240px);
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(28, 42, 61, 0.07);
}

.pro-card > * {
  min-width: 0;
}

.compact .pro-card {
  grid-template-columns: 1fr;
}

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
}

.pro-main h3 {
  margin-bottom: 4px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.specialty {
  margin-bottom: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.summary {
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.tag-row,
.seo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row button,
.tag-row span,
.seo-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: #344256;
  font-size: 13px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.card-meta span:first-child {
  color: var(--ink);
}

.tag-row {
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
}

.tag-row button,
.tag-row span {
  background: #f7f2e8;
  color: #65450f;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  border: 0;
}

.tag-row button {
  cursor: pointer;
}

.tag-row button:hover {
  background: #efe2c7;
}

.pro-side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 12px;
  min-width: 0;
}

.price {
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 260px;
}

.contact-actions button,
.contact-actions a,
.filter-tag,
.active-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.contact-actions a {
  color: var(--blue);
}

.contact-empty {
  max-width: 210px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.catalog-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px) 48px;
}

.embedded-catalog-shell {
  max-width: none;
  padding: 0;
}

.filters-panel {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 82px;
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.results-panel {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.filter-title h1 {
  margin-bottom: 4px;
  font-size: 26px;
  line-height: 1.1;
}

.filter-title h2 {
  margin-bottom: 4px;
  font-size: 22px;
  line-height: 1.1;
}

.filter-title span {
  color: var(--muted);
}

.active-filter-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: transparent;
  border: 1px solid #edf1f6;
  border-radius: 8px;
}

.active-filter-box > span,
.filter-group-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.active-tags,
.filter-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-tag {
  min-height: 28px;
  padding: 0 7px 0 9px;
  font-size: 12px;
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.active-tag b {
  margin-left: 6px;
  font-size: 14px;
  line-height: 1;
}

.active-tags-empty {
  color: var(--muted);
  font-size: 13px;
}

.filter-search {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(31, 102, 216, 0.28);
  border-radius: 8px;
  background: #eef6ff;
}

.filter-search label {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.filter-search-field {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(31, 102, 216, 0.36);
  border-radius: 8px;
  background: #fff;
}

.filter-search-field span {
  color: var(--blue);
  font-size: 16px;
  line-height: 1;
}

.filter-search input {
  width: 100%;
  min-height: 42px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.filter-search input::placeholder {
  color: rgba(93, 104, 119, 0.58);
}

.filter-search input:focus {
  outline: 0;
}

.filter-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 102, 216, 0.12);
}

.filter-suggestions {
  display: grid;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-suggestions[hidden] {
  display: none;
}

.filter-suggestions button,
.filter-suggestions span {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  text-align: left;
}

.filter-suggestions button {
  cursor: pointer;
}

.filter-suggestions button:hover {
  background: #edf4ff;
  color: var(--blue-dark);
}

.filter-suggestions span {
  color: var(--muted);
}

.filter-groups {
  display: grid;
  gap: 11px;
}

.filter-group {
  display: grid;
  gap: 7px;
}

.filter-tag {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  font-weight: 720;
  text-align: left;
}

.filter-more {
  justify-self: start;
  min-height: 28px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-submit:hover {
  background: var(--blue-dark);
}

.results-head {
  margin-bottom: 14px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.sort-control select {
  min-height: 40px;
}

.results-count {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.load-more:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.load-more[hidden] {
  display: none;
}

@media (max-width: 1500px) {
  .catalog-shell .pro-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .catalog-shell .pro-side {
    grid-column: 2;
    justify-items: start;
  }

  .catalog-shell .price {
    text-align: left;
  }

  .catalog-shell .contact-actions {
    justify-content: flex-start;
    max-width: 100%;
  }
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.service-hero > div {
  max-width: 760px;
}

#cityCanvas,
[data-city-map] {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.service-actions a + a {
  color: var(--blue);
  background: #eaf2ff;
}

.service-actions a + a:hover {
  color: #fff;
  background: var(--blue);
}

.seo-tabs {
  max-width: 1180px;
  margin: 0 auto 22px;
}

.seo-tabs a.active {
  color: #fff;
  background: var(--blue);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-layout.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.seo-hero {
  padding: clamp(28px, 6vw, 70px) clamp(16px, 4vw, 48px);
  background: linear-gradient(135deg, rgba(31, 102, 216, 0.1), rgba(14, 143, 116, 0.08)), #fff;
  border-bottom: 1px solid var(--line);
}

.seo-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(20px, 5vw, 64px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
}

.seo-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seo-card b,
.seo-card span {
  display: block;
}

.seo-card b {
  margin-bottom: 8px;
  font-size: 28px;
}

.seo-card span {
  color: var(--muted);
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 18px auto 0;
}

.seo-link-grid a {
  padding: 14px;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 1180px;
  margin: 18px auto 0;
}

.faq-list details {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.seo-copy,
.seo-note,
.faq-grid article {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seo-copy p:last-child,
.faq-grid p:last-child {
  margin-bottom: 0;
}

.seo-note {
  display: grid;
  align-content: start;
  gap: 8px;
  border-top: 5px solid var(--green);
}

.seo-note span,
.faq-grid p {
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 4vw, 48px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 720;
}

.footer-nav a:hover {
  color: var(--ink);
}

@media (max-width: 920px) {
  .topbar {
    gap: 12px;
  }

  .nav {
    display: none;
  }

  .nav-link-soft {
    margin-left: auto;
  }

  .search-layout,
  .catalog-shell,
  .service-hero,
  .service-layout,
  .seo-hero-inner,
  .seo-link-grid {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    grid-column: auto;
    grid-row: auto;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .results-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .category-grid,
  .cards-list.compact,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pro-card {
    grid-template-columns: auto 1fr;
  }

  .pro-side {
    grid-column: 1 / -1;
    justify-items: start;
    min-width: 0;
  }

  .price {
    text-align: left;
  }

  .contact-actions {
    justify-content: flex-start;
    max-width: 100%;
  }

  .contact-empty {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 58px;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
    object-fit: cover;
    object-position: left center;
  }

  .nav-link-soft {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .mobile-active-filter-bar {
    order: 10;
    display: none;
    width: 100%;
    max-width: 100%;
    gap: 6px;
    padding: 2px 0 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .mobile-active-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .topbar.has-mobile-active-tags .mobile-active-filter-bar {
    display: flex;
  }

  .mobile-active-filter-bar .active-tag {
    flex: 0 0 auto;
  }

  h1 {
    font-size: 34px;
  }

  .category-grid,
  .cards-list.compact,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .results-head,
  .footer {
    align-items: start;
    flex-direction: column;
  }

  .pro-card {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  .avatar {
    width: 48px;
    height: 48px;
  }
}
