:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #1a2230;
  --muted: #5b6675;
  --line: #e2e7ee;
  --brand: #0a7d5a;
  --brand-ink: #ffffff;
  --accent: #eaf6f1;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
}

* { box-sizing: border-box; }

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

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark { color: var(--brand); display: block; }
.logo-word { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ad slots */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin: 16px 0;
  border: 1px dashed #c7cfda;
  border-radius: var(--radius);
  color: #97a1b0;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: repeating-linear-gradient(
    45deg,
    #fbfcfe,
    #fbfcfe 10px,
    #f5f7fa 10px,
    #f5f7fa 20px
  );
}

/* search form */
.search {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 8px;
}
.field { display: block; margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
input[type="text"],
select {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
input[type="text"]:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 125, 90, 0.15);
}

/* address autocomplete */
.ac-wrap { position: relative; }
.ac {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 264px;
  overflow: auto;
}
.ac-item {
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.active { background: var(--accent); }

.types {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.types legend {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0;
}
.types label {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.controls .radius { flex: 0 0 120px; margin-bottom: 0; }
.btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--brand);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: #096a4d; }

/* CPA lead-gen CTA */
.cta { margin: 12px 0 2px; }
.btn-cta {
  display: inline-block;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: 10px;
  text-decoration: none;
}
.btn-cta:hover { background: #096a4d; }

/* status */
.status {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  background: var(--accent);
  color: #0a5a42;
}
.status-error { background: #fdecec; color: #a12626; }
.status-loading { background: var(--accent); color: #0a5a42; }

/* results */
.results-block { margin-top: 22px; }
.results-block h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
.cards { display: grid; gap: 10px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.card-title { font-weight: 600; font-size: 16px; }
.card-addr { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card-meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.card-phone { margin-top: 6px; font-size: 14px; }
.card-phone a, .card-link a { color: var(--brand); text-decoration: none; }
.card-phone a:hover, .card-link a:hover { text-decoration: underline; }
.card-link { margin-top: 4px; font-size: 14px; }
.empty {
  color: var(--muted);
  font-size: 14px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0;
}
.note {
  color: #7a5a12;
  font-size: 13px;
  background: #fff7e8;
  border: 1px solid #f2e2c2;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 0 0 10px;
}
.official { margin: 12px 0 0; }
.official a {
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.official a:hover { text-decoration: underline; }

/* when a real РСЯ block renders, drop the placeholder chrome */
.ad-slot.ad-live {
  border: 0;
  background: none;
  min-height: 0;
  padding: 0;
  text-transform: none;
}

/* SEO pages */
.nav { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 14px; }
.nav a { color: var(--brand); text-decoration: none; font-size: 14px; }
.nav a:hover { text-decoration: underline; }
main h1 { font-size: 22px; margin: 8px 0 10px; }
.linklist { line-height: 1.9; padding-left: 18px; margin: 0; }
.linklist.cols { column-width: 240px; column-gap: 24px; }
.addr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.addr-table th, .addr-table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.addr-table th { color: var(--muted); font-weight: 600; }

/* footer */
.site-footer {
  margin-top: 32px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-footer .container { padding-top: 16px; }
.foot-links {
  text-align: center;
  font-size: 13px;
  margin: 0 0 6px;
}
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.disclaimer {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin: 8px 0 0;
}

@media (max-width: 520px) {
  .controls { flex-direction: column; align-items: stretch; }
  .controls .radius { flex: none; }
}
