/*
 * SpasAvto24 · catalog design — production stylesheet
 * Self-contained: no build step, no framework. Scope everything under .sa24-catalog.
 * Font: Montserrat (Cyrillic, 400–700) — load via <link> on the site; falls back to system sans.
 */

.sa24-catalog {
  --sa24-bg: #f4f7fb;
  --sa24-text: #30445c;
  --sa24-head: #102846;
  --sa24-nav: #14365d;
  --sa24-footer: #0a1d35;
  --sa24-accent: #f56a0a;
  --sa24-accent-strong: #b74600; /* orange text on white: 5.6:1 */
  --sa24-accent-btn: #d95300;   /* white bold text on it: ~3.9:1, used for large/bold labels */
  --sa24-accent-btn-hover: #b74600;
  --sa24-accent-soft: #fff1e6;
  --sa24-panel: #ffffff;
  --sa24-line: #dde5ef;
  --sa24-muted: #5a6b80;
  --sa24-focus: #f56a0a;
  --sa24-radius: 12px;
  --sa24-radius-sm: 8px;
  --sa24-shadow: 0 1px 2px rgba(16, 40, 70, .06), 0 6px 20px -12px rgba(16, 40, 70, .25);
  --sa24-wrap: 1180px;

  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--sa24-text);
  background: var(--sa24-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.sa24-catalog *, .sa24-catalog *::before, .sa24-catalog *::after { box-sizing: border-box; }
.sa24-catalog main { flex: 1; }
.sa24-catalog h1, .sa24-catalog h2, .sa24-catalog h3 {
  color: var(--sa24-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em;
}
.sa24-catalog h1 { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem); }
.sa24-catalog h2 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.65rem); }
.sa24-catalog h3 { font-size: 1.05rem; }
.sa24-catalog p { margin: 0 0 1em; }
.sa24-catalog a { color: var(--sa24-accent-strong); text-underline-offset: 3px; }
.sa24-catalog a:hover { color: var(--sa24-head); }
.sa24-catalog img { max-width: 100%; height: auto; display: block; }

/* Focus */
.sa24-catalog :focus { outline: none; }
.sa24-catalog :focus-visible {
  outline: 3px solid var(--sa24-focus); outline-offset: 2px; border-radius: 6px;
  box-shadow: 0 0 0 5px rgba(245, 106, 10, .18);
}
.sa24-skip { position: absolute; left: -999px; top: 8px; background: var(--sa24-head); color: #fff !important; padding: 8px 14px; z-index: 50; border-radius: 6px; }
.sa24-skip:focus { left: 8px; }
.sa24-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.sa24-wrap { width: 100%; max-width: var(--sa24-wrap); margin: 0 auto; padding: 0 20px; }
.sa24-section { padding: 40px 0; }
.sa24-section--tight { padding: 24px 0; }
.sa24-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sa24-section-head h2 { margin: 0; }
.sa24-section-head p { margin: 4px 0 0; color: var(--sa24-muted); font-size: .95rem; }
.sa24-section-head a { font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 4px; }

/* Icons */
.sa24-icon { width: 1.15em; height: 1.15em; flex: none; stroke-width: 2; vertical-align: -0.2em; }
.sa24-icon--lg { width: 22px; height: 22px; }
.sa24-icon-badge {
  width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; flex: none;
  background: var(--sa24-accent-soft); color: var(--sa24-accent-strong);
}

/* Header */
.sa24-header { background: #fff; border-bottom: 1px solid var(--sa24-line); position: sticky; top: 0; z-index: 20; }
.sa24-header .sa24-wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.sa24-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--sa24-head) !important; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; }
.sa24-brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--sa24-accent); color: #fff; display: grid; place-items: center; }
.sa24-brand b { color: var(--sa24-accent-strong); font-weight: 700; }
.sa24-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.sa24-nav a { color: var(--sa24-nav); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 8px; }
.sa24-nav a:hover, .sa24-nav a[aria-current="page"] { background: var(--sa24-bg); color: var(--sa24-accent-strong); }
.sa24-nav .sa24-nav-cta { border: 1.5px solid var(--sa24-accent); color: var(--sa24-accent-strong); }
.sa24-nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--sa24-line); border-radius: 8px; padding: 8px 10px; color: var(--sa24-nav); font: inherit; font-weight: 600; cursor: pointer; align-items: center; gap: 6px; }

/* Buttons */
.sa24-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 13px 22px; min-height: 48px; border-radius: var(--sa24-radius-sm);
  border: 0; cursor: pointer; text-decoration: none;
  background: var(--sa24-accent-btn); color: #fff !important;
  transition: background-color .15s;
}
.sa24-button:hover { background: var(--sa24-accent-btn-hover); }
.sa24-button--ghost { background: #fff; color: var(--sa24-nav) !important; border: 1.5px solid var(--sa24-line); }
.sa24-button--ghost:hover { background: var(--sa24-bg); border-color: var(--sa24-nav); }
.sa24-button--block { width: 100%; }

/* Eyebrow */
.sa24-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sa24-accent-strong); margin-bottom: 12px; }
.sa24-eyebrow .sa24-icon { color: var(--sa24-accent); }

/* Hero */
.sa24-hero { padding: 36px 0 28px; position: relative; overflow: hidden; }
.sa24-hero::after { /* quiet asphalt lane line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, rgba(245,106,10,.55) 0 36px, transparent 36px 64px);
  opacity: .5;
}
.sa24-hero .sa24-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }
.sa24-hero-copy h1 { max-width: 15ch; }
.sa24-hero-copy p.sa24-lead { font-size: 1.05rem; max-width: 46ch; }
.sa24-hero-media { border-radius: var(--sa24-radius); overflow: hidden; background: var(--sa24-nav); aspect-ratio: 4 / 3; box-shadow: var(--sa24-shadow); position: relative; }
.sa24-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.sa24-hero-points { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--sa24-muted); }
.sa24-hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.sa24-hero-points .sa24-icon { color: var(--sa24-accent); }

/* Search */
.sa24-search { background: var(--sa24-panel); border: 1px solid var(--sa24-line); border-radius: var(--sa24-radius); padding: 16px; box-shadow: var(--sa24-shadow); margin-top: 20px; }
.sa24-search label { display: block; font-weight: 700; color: var(--sa24-head); font-size: .9rem; margin-bottom: 6px; }
.sa24-search-row { display: flex; gap: 10px; }
.sa24-search-field { position: relative; flex: 1; }
.sa24-search-field .sa24-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--sa24-muted); pointer-events: none; }
.sa24-search input {
  width: 100%; min-height: 48px; font: inherit; font-size: 1rem; color: var(--sa24-head);
  padding: 12px 14px 12px 42px; border: 1.5px solid #b9c6d6; border-radius: var(--sa24-radius-sm); background: #fff;
}
.sa24-search input::placeholder { color: #6b7b8f; }
.sa24-search input:focus-visible { border-color: var(--sa24-accent); outline: 3px solid rgba(245,106,10,.35); outline-offset: 0; box-shadow: none; }
.sa24-search-hint { font-size: .82rem; color: var(--sa24-muted); margin: 8px 0 0; }
.sa24-search-error { font-size: .85rem; color: #a22f00; margin: 8px 0 0; font-weight: 600; }

/* City grid */
.sa24-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.sa24-city {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--sa24-panel);
  border: 1px solid var(--sa24-line); border-radius: var(--sa24-radius); text-decoration: none;
  color: var(--sa24-head) !important; font-weight: 600; transition: border-color .15s;
}
.sa24-city:hover { border-color: var(--sa24-accent); }
.sa24-city > .sa24-icon:first-child { color: var(--sa24-accent); }
.sa24-city small { display: block; font-weight: 400; color: var(--sa24-muted); font-size: .8rem; }
.sa24-city-arrow { margin-left: auto; color: var(--sa24-muted); }
.sa24-city:hover .sa24-city-arrow { color: var(--sa24-accent-strong); }

/* Compact links (region hub) */
.sa24-links { columns: 4 200px; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
.sa24-links li { break-inside: avoid; padding: 4px 0; }
.sa24-links a { text-decoration: none; color: var(--sa24-nav); font-weight: 500; }
.sa24-links a:hover { color: var(--sa24-accent-strong); text-decoration: underline; }
.sa24-region { background: var(--sa24-panel); border: 1px solid var(--sa24-line); border-radius: var(--sa24-radius); padding: 20px; margin-bottom: 14px; }
.sa24-region h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.sa24-alpha { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.sa24-alpha a { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border-radius: 8px; background: #fff; border: 1px solid var(--sa24-line); text-decoration: none; font-weight: 700; color: var(--sa24-nav); }
.sa24-alpha a:hover { border-color: var(--sa24-accent); color: var(--sa24-accent-strong); }

/* Cards */
.sa24-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.sa24-card { background: var(--sa24-panel); border: 1px solid var(--sa24-line); border-radius: var(--sa24-radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sa24-card-head { display: flex; gap: 12px; align-items: flex-start; }
.sa24-card h3 { margin: 0; }
.sa24-card h3 a { color: var(--sa24-head); text-decoration: none; }
.sa24-card h3 a:hover { color: var(--sa24-accent-strong); text-decoration: underline; }
.sa24-card-meta { font-size: .87rem; color: var(--sa24-muted); display: flex; align-items: center; gap: 6px; margin: 2px 0 0; }
.sa24-card-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.sa24-card-tags li { font-size: .78rem; font-weight: 600; padding: 4px 10px; background: var(--sa24-bg); border-radius: 999px; color: var(--sa24-nav); }
.sa24-card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.sa24-card-actions .sa24-button { flex: 1; padding: 11px 16px; min-height: 44px; font-size: .93rem; }
.sa24-label { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; width: fit-content; }
.sa24-label--sample { background: #eef2f7; color: var(--sa24-nav); border: 1px dashed #9fb0c4; }
.sa24-label--ref { background: #eef2f7; color: var(--sa24-nav); }
.sa24-label--verified { background: #e6f4ea; color: #1d5e2f; }

/* Advice strip */
.sa24-advice { background: var(--sa24-nav); color: #e3ebf5; border-radius: var(--sa24-radius); padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; overflow: hidden; }
.sa24-advice h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.sa24-advice p { margin: 0; font-size: .9rem; }
.sa24-advice-item { display: flex; gap: 12px; }
.sa24-advice .sa24-icon-badge { background: rgba(245,106,10,.18); color: #ffb47a; }

/* FAQ */
.sa24-faq { display: grid; gap: 10px; }
.sa24-faq details { background: var(--sa24-panel); border: 1px solid var(--sa24-line); border-radius: var(--sa24-radius); }
.sa24-faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; color: var(--sa24-head); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.sa24-faq summary::-webkit-details-marker { display: none; }
.sa24-faq summary .sa24-icon { transition: transform .15s; color: var(--sa24-accent-strong); }
.sa24-faq details[open] summary .sa24-icon { transform: rotate(180deg); }
.sa24-faq details > div { padding: 0 20px 16px; }
.sa24-faq details > div p:last-child { margin: 0; }

/* Breadcrumb */
.sa24-breadcrumb { font-size: .85rem; padding: 14px 0 0; }
.sa24-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; }
.sa24-breadcrumb li { display: inline-flex; align-items: center; gap: 4px; color: var(--sa24-muted); }
.sa24-breadcrumb a { color: var(--sa24-nav); text-decoration: none; }
.sa24-breadcrumb a:hover { text-decoration: underline; color: var(--sa24-accent-strong); }
.sa24-breadcrumb .sa24-icon { width: 14px; height: 14px; }

/* Page head (city/region/service) */
.sa24-pagehead { padding: 16px 0 24px; }
.sa24-pagehead p { max-width: 62ch; }
.sa24-panel { background: var(--sa24-panel); border: 1px solid var(--sa24-line); border-radius: var(--sa24-radius); padding: 20px; }
.sa24-notice { display: flex; gap: 10px; font-size: .88rem; background: var(--sa24-accent-soft); border-radius: var(--sa24-radius-sm); padding: 12px 14px; color: #6b3200; }

/* Service profile */
.sa24-profile { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.sa24-profile aside { position: sticky; top: 84px; }
.sa24-dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.sa24-dl dt { font-weight: 600; color: var(--sa24-head); }
.sa24-dl dd { margin: 0; }
.sa24-empty { color: var(--sa24-muted); font-style: italic; }
.sa24-callbar { display: none; }

/* Footer */
.sa24-footer { background: var(--sa24-footer); color: #b8c6d8; margin-top: 48px; font-size: .9rem; }
.sa24-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 44px 0 32px; }
.sa24-footer h2 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.sa24-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sa24-footer a { color: #dbe5f1; text-decoration: none; }
.sa24-footer a:hover { color: #ffb47a; text-decoration: underline; }
.sa24-footer .sa24-brand { color: #fff !important; margin-bottom: 10px; }
.sa24-footer .sa24-brand b { color: #ff8a3d; }
.sa24-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: .82rem; }
.sa24-footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sa24-catalog .sa24-footer :focus-visible { outline-color: #ffb47a; }

/* Responsive */
@media (max-width: 900px) {
  .sa24-hero .sa24-wrap { grid-template-columns: 1fr; gap: 20px; }
  .sa24-hero-media { aspect-ratio: 2 / 1; }
  .sa24-hero-copy h1 { max-width: none; }
  .sa24-advice { grid-template-columns: 1fr; }
  .sa24-profile { grid-template-columns: 1fr; }
  .sa24-profile aside { position: static; }
  .sa24-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .sa24-nav-toggle { display: inline-flex; }
  .sa24-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--sa24-line); flex-direction: column; align-items: stretch; padding: 8px 20px 16px; }
  .sa24-nav[data-open="true"] { display: flex; }
  .sa24-nav a { padding: 12px; }
  .sa24-header .sa24-wrap { position: relative; }
  .sa24-has-callbar .sa24-callbar {
    display: flex; gap: 8px; position: sticky; bottom: 0; z-index: 15; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--sa24-line); box-shadow: 0 -6px 20px -12px rgba(16,40,70,.35);
  }
  .sa24-has-callbar .sa24-callbar .sa24-button { flex: 1; }
}
@media (max-width: 480px) {
  .sa24-wrap { padding: 0 16px; }
  .sa24-hero { padding-top: 20px; }
  .sa24-catalog h1 { font-size: 1.55rem; }
  .sa24-search-row { flex-direction: column; }
  .sa24-search .sa24-button { width: 100%; }
  .sa24-card-grid { grid-template-columns: 1fr; }
  .sa24-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .sa24-dl { grid-template-columns: 1fr; gap: 2px; }
  .sa24-dl dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sa24-catalog * { transition: none !important; }
}

/* Integration of the Lovable catalog design with the live PHP and exported pages. */
@font-face {
  font-family: Montserrat;
  src: url("/catalog/design/montserrat-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Montserrat;
  src: url("/catalog/design/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

html:has(#sa24-catalog-design) body {
  margin: 0;
  background: #f4f7fb;
  color: #30445c;
  font-family: Montserrat, system-ui, sans-serif;
}
.sa24-catalog { --sa24-accent-btn: #b74600; --sa24-accent-btn-hover: #973a00; }
.sa24-catalog a { color: #14365d; }
.sa24-catalog a:hover { color: #b74600; }
.sa24-catalog :focus-visible, html:has(#sa24-catalog-design) body :focus-visible {
  outline: 3px solid #0d6aa4;
  outline-offset: 3px;
}
.sa24-icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.sa24-skip { z-index: 220; }
.sa24-header { position: relative; border-bottom: 0; background: linear-gradient(#fff 0 76%, #f4f7fb 76%); }
.sa24-header .sa24-header-row { min-height: 102px; justify-content: space-between; }
.sa24-header .sa24-brand { gap: 14px; line-height: 1.14; }
.sa24-header .sa24-brand-mark, html:has(#sa24-catalog-design) .site-header .brand-mark {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  flex: none; background: linear-gradient(150deg, #f56a0a, #b74600); color: #fff;
  box-shadow: 0 6px 18px #e15b002b; font-size: 18px; font-weight: 800;
}
.sa24-brand-text strong, .sa24-brand-text small { display: block; }
.sa24-brand-text strong { font-size: clamp(21px, 2.3vw, 27px); }
.sa24-brand-text small { font-size: 12px; margin-top: 5px; color: #55687d; font-weight: 500; }
.sa24-header .sa24-nav { display: flex; gap: 4px; }
.sa24-header .sa24-nav a { font-size: 12px; font-weight: 700; text-transform: uppercase; white-space: nowrap; padding: 9px; }
.sa24-header .sa24-catalog-nav {
  min-height: 46px; width: calc(100% - 32px); max-width: 1180px; padding: 8px 18px;
  background: #102846; color: #fff; justify-content: center; gap: 22px; flex-wrap: wrap;
  box-shadow: 0 8px 16px #10284619;
}
.sa24-header .sa24-catalog-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; }
.sa24-header .sa24-catalog-nav a:hover { color: #ffbc91; }
.sa24-mobile-menu { display: none; position: relative; flex: none; }
.sa24-mobile-menu summary {
  display: grid; place-items: center; cursor: pointer; list-style: none;
  width: 44px; height: 44px; border: 1px solid #d8e3ef; border-radius: 9px; color: #14365d;
}
.sa24-mobile-menu summary::-webkit-details-marker { display: none; }
.sa24-mobile-menu summary .sa24-icon { width: 24px; height: 24px; }
.sa24-mobile-menu nav {
  display: grid; position: absolute; z-index: 30; top: 52px; right: 0; width: min(270px, 84vw);
  padding: 8px; background: #fff; border: 1px solid #dbe3ef; border-radius: 12px;
  box-shadow: 0 10px 30px #10284626;
}
.sa24-mobile-menu:not([open]) nav { display: none; }
.sa24-mobile-menu nav a { padding: 9px 12px; font-weight: 600; text-decoration: none; }

.sa24-main { padding-top: 32px; }
.sa24-home .sa24-hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: stretch;
  padding: 0; gap: 0; background: #fff; border: 1px solid #dde5ef; border-radius: 22px;
  box-shadow: 0 12px 34px #1028460e;
}
.sa24-home .sa24-hero::after { display: none; }
.sa24-home .sa24-hero-copy { padding: clamp(24px, 4vw, 48px); min-width: 0; }
.sa24-home .sa24-hero h1 { max-width: 18ch; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; overflow-wrap: anywhere; }
.sa24-home .sa24-hero-copy > p { font-size: 15px; max-width: 52ch; }
.sa24-home .sa24-hero-copy > small { display: block; margin-top: 12px; font-size: 12px; color: #55687d; }
.sa24-home .sa24-hero-media {
  border-radius: 0; aspect-ratio: auto; box-shadow: none; min-height: 300px;
}
.sa24-home .sa24-hero-media img { position: absolute; inset: 0; height: 100%; width: 100%; object-position: 68% center; }
.sa24-home .sa24-search {
  display: flex; gap: 10px; align-items: end; margin-top: 20px;
  padding: 0; border: 0; background: transparent; box-shadow: none; scroll-margin-top: 24px;
}
.sa24-home .sa24-search label { min-width: 0; flex: 1; margin: 0; }
.sa24-home .sa24-search input { margin-top: 5px; padding-left: 12px; min-height: 48px; }
.sa24-home .sa24-search .sa24-button { white-space: nowrap; padding-inline: 14px; font-size: 14px; }
.sa24-home .sa24-section { padding-block: 27px; }
.sa24-home .sa24-section h2 { font-size: clamp(22px, 2.5vw, 30px); }
.sa24-home .sa24-city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sa24-home .sa24-city { min-height: 73px; min-width: 0; }
.sa24-city > span { min-width: 0; overflow-wrap: anywhere; }
.sa24-home .sa24-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sa24-home .sa24-card { min-width: 0; box-shadow: 0 3px 12px #10284608; }
.sa24-card-top { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.sa24-icon-tile {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 9px;
  background: #fff1e6; color: #b74600;
}
.sa24-home .sa24-card-location { font-size: 13px; color: #55687d; margin: 0; overflow-wrap: anywhere; }
.sa24-home .sa24-card-price { margin: auto 0 0; font-weight: 700; }
.sa24-home .sa24-phone { margin-top: 2px; font-size: 15px; }
.sa24-text-action { font-weight: 650; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.sa24-home .sa24-advice {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); padding: 0; gap: 0;
  margin: 26px 0 0; background: #102846; color: #eef4fb; border-radius: 18px;
}
.sa24-advice-copy { padding: clamp(20px, 3vw, 36px); }
.sa24-home .sa24-advice :is(h2, a) { color: #fff; }
.sa24-home .sa24-advice .sa24-eyebrow, .sa24-home .sa24-advice .sa24-eyebrow .sa24-icon { color: #ffb184; }
.sa24-home .sa24-advice img { height: 100%; width: 100%; min-height: 180px; object-fit: cover; }
.sa24-home .sa24-advice ol { margin: 12px 0 20px; padding-left: 20px; }
.sa24-home .sa24-advice li { margin-bottom: 8px; }
.sa24-home .sa24-faq summary::after { content: "+"; flex: none; font-size: 22px; color: #b74600; }
.sa24-home .sa24-faq details[open] summary::after { content: "−"; }
.sa24-home .sa24-faq details > p { padding: 0 20px 16px; margin: 0; }

.sa24-footer .sa24-footer-grid { padding: 44px 20px 28px; }
.sa24-footer .sa24-footer-bottom { padding: 18px 20px; }
.sa24-footer h2, .sa24-catalog .sa24-footer h2 { color: #fff; font-size: 17px; }
.sa24-footer a, .sa24-catalog .sa24-footer a { color: #edf4fc; overflow-wrap: anywhere; }
.sa24-catalog .sa24-footer a:hover { color: #ffbd92; }
.sa24-footer p { color: #c2d0df; margin: 10px 0; }

/* Existing city, region, company, and exported catalog templates. */
html:has(#sa24-catalog-design) body :is(.site-header, .header-inner) { background: #fff; color: #102846; }
html:has(#sa24-catalog-design) body .site-header { border-bottom: 1px solid #dce4ef; }
html:has(#sa24-catalog-design) body .site-header .brand { color: #102846; }
html:has(#sa24-catalog-design) body .site-header .brand small { color: #55687d; }
html:has(#sa24-catalog-design) body .site-header .desktop-nav a { color: #14365d; font-weight: 700; }
html:has(#sa24-catalog-design) body :is(.city-hero, .region-hero, .provider-hero, .page-hero) {
  background: #102846; color: #e5edf7;
}
html:has(#sa24-catalog-design) body :is(.city-hero, .region-hero, .provider-hero, .page-hero) :is(h1, h2) { color: #fff; }
html:has(#sa24-catalog-design) body :is(.city-hero, .region-hero, .provider-hero, .page-hero) :is(.eyebrow, .breadcrumbs, .breadcrumbs a) { color: #ffbc91; }
html:has(#sa24-catalog-design) body .contact-card { color: #102846; }
html:has(#sa24-catalog-design) body :is(.city-callout, .hero-stat-row > div) { color: #e5edf7; }
.sa24-inner .city-hero { padding-block: 30px 36px; }
.sa24-inner .city-callout { border-color: #f56a0a; }
html:has(#sa24-catalog-design) body .button-primary { background: #b74600; color: #fff; border-color: #b74600; }
html:has(#sa24-catalog-design) body .button-primary:hover { background: #973a00; color: #fff; }
html:has(#sa24-catalog-design) body .button-primary:disabled { cursor: not-allowed; }
html:has(#sa24-catalog-design) body :is(.provider-card, .city-card, .empty-state, .detail-block, .quality-card) { border-color: #dde5ef; border-radius: 16px; }
html:has(#sa24-catalog-design) body :is(.provider-card h3, .provider-card a, .provider-hero h1) { overflow-wrap: anywhere; }
html:has(#sa24-catalog-design) body .provider-photo-placeholder {
  background: linear-gradient(145deg, #e6edf5, #f7f9fc);
  color: #234463;
}
.sa24-inner .provider-photo-placeholder {
  min-height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 4px; padding: 16px 22px;
}
.sa24-catalog .provider-photo-placeholder .sa24-icon { width: 29px; height: 29px; color: #b74600; z-index: 1; }
html:has(#sa24-catalog-design) body .site-footer { background: #0a1d35; color: #c2d0df; }
html:has(#sa24-catalog-design) body .site-footer :is(a, h2, .footer-brand) { color: #edf4fc; }
.sa24-home .privacy-notice {
  position: fixed; z-index: 200; bottom: 12px; left: 12px; right: 12px;
  max-width: 760px; margin: auto; padding: 16px; border: 1px solid #b8c8db;
  border-radius: 14px; background: #fff; color: #102846; box-shadow: 0 10px 26px #10284633;
}
.sa24-home .privacy-notice[hidden] { display: none; }
.sa24-home .privacy-notice p { font-size: 13px; margin: 6px 0 10px; }
.sa24-home .privacy-notice button {
  font: inherit; font-weight: 700; cursor: pointer; padding: 9px 16px; min-height: 44px;
  border: 0; border-radius: 8px;
}
@media (max-width: 1020px) {
  .sa24-header .sa24-header-row { min-height: 78px; }
  .sa24-header .sa24-nav { display: none; }
  .sa24-mobile-menu { display: block; }
  .sa24-home .sa24-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa24-home .sa24-city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sa24-header .sa24-catalog-nav { width: 100%; gap: 8px 17px; justify-content: flex-start; }
  .sa24-header .sa24-catalog-nav a { font-size: 12px; }
  .sa24-main { padding-top: 20px; }
  .sa24-home .sa24-hero, .sa24-home .sa24-advice { grid-template-columns: 1fr; }
  .sa24-home .sa24-hero-media { min-height: 0; aspect-ratio: 2.25 / 1; }
  .sa24-home .sa24-hero-media img { object-position: 65% center; }
  .sa24-home .sa24-advice img { min-height: 0; aspect-ratio: 2 / 1; }
  .sa24-home .sa24-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa24-footer .sa24-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
}
@media (max-width: 510px) {
  .sa24-wrap { padding-inline: 15px; }
  .sa24-header .sa24-brand { gap: 9px; white-space: normal; }
  .sa24-header .sa24-brand-mark { width: 41px; height: 41px; border-radius: 12px; }
  .sa24-brand-text small { font-size: 10px; line-height: 1.25; }
  .sa24-home .sa24-hero-copy { padding: 21px 17px; }
  .sa24-home .sa24-search { align-items: stretch; flex-direction: column; }
  .sa24-home .sa24-search .sa24-button { width: 100%; }
  .sa24-home .sa24-card-grid { grid-template-columns: 1fr; }
  .sa24-home .sa24-city { padding: 10px; gap: 7px; }
  .sa24-home .sa24-city strong { font-size: 13px; }
  .sa24-home .sa24-city small { font-size: 11px; }
  .sa24-city-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sa24-catalog *, .sa24-catalog *::before, .sa24-catalog *::after { transition: none !important; animation: none !important; }
}

/* City and service layouts adapted from the Lovable page head, panel and profile. */
.sa24-header .sa24-catalog-nav a {
  display: inline-flex; align-items: center; gap: 5px;
}

html:has(#sa24-catalog-design) body :is(.city-hero, .provider-hero) {
  background: #f4f7fb;
  color: #30445c;
}
html:has(#sa24-catalog-design) body :is(.city-hero, .provider-hero) :is(h1, h2) {
  color: #102846;
}
html:has(#sa24-catalog-design) body :is(.city-hero, .provider-hero) :is(.breadcrumbs, .breadcrumbs a, .breadcrumbs span) {
  color: #4b627c;
}
html:has(#sa24-catalog-design) body :is(.city-hero, .provider-hero) .eyebrow {
  color: #b74600;
}
html:has(#sa24-catalog-design) body :is(.city-hero, .provider-hero) p {
  color: #30445c;
}
html:has(#sa24-catalog-design) body .city-callout :is(strong, span, small) {
  color: #102846;
}
html:has(#sa24-catalog-design) body :is(.region-hero, .page-hero) p {
  color: #e5edf7;
}
html:has(#sa24-catalog-design) body :is(.region-hero, .page-hero) .hero-stat-row :is(strong, span, small) {
  color: #e5edf7;
}

.sa24-catalog :is(.sa24-city-intro, .sa24-provider-intro) {
  padding: clamp(18px, 3vw, 30px) 0 0;
}
.sa24-catalog :is(.sa24-city-intro, .sa24-provider-intro) .breadcrumbs {
  padding: 0; margin: 0 0 15px; font-size: 13px;
}
.sa24-catalog :is(.sa24-city-panel, .sa24-provider-panel) {
  border: 1px solid #dde5ef; border-radius: 19px; background: #fff;
  box-shadow: 0 8px 26px #1028460a; padding: clamp(20px, 3vw, 36px);
  margin: 0; min-width: 0; gap: 24px;
}
.sa24-catalog .sa24-city-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 240px); align-items: center;
}
.sa24-catalog :is(.sa24-city-panel, .sa24-provider-panel) h1 {
  font-size: clamp(27px, 4vw, 43px); line-height: 1.16;
  letter-spacing: -.025em; margin: 6px 0 10px; overflow-wrap: anywhere;
}
.sa24-catalog :is(.sa24-city-panel, .sa24-provider-panel) p {
  font-size: clamp(14px, 1.6vw, 16px); line-height: 1.65; margin: 0;
}
.sa24-catalog .sa24-city-panel .sa24-button { margin-top: 15px; font-size: 14px; }
.sa24-catalog .sa24-city-panel .sa24-city-summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: 4px 10px; padding: 18px; min-width: 0; margin: 0;
  background: #eaf1f9; border: 1px solid #dbe6f2; border-left: 4px solid #f56a0a; border-radius: 12px;
}
.sa24-city-summary .sa24-icon { width: 21px; height: 21px; color: #b74600; }
.sa24-catalog .sa24-city-panel .sa24-city-summary strong { font-size: 32px; line-height: 1; }
.sa24-catalog .sa24-city-panel .sa24-city-summary span { grid-column: 1 / -1; font-size: 14px; }
.sa24-catalog .sa24-city-panel .sa24-city-summary small { grid-column: 1 / -1; font-size: 12px; font-weight: 500; }
.sa24-catalog .sa24-city-results { padding-block: 30px 48px; scroll-margin-top: 14px; }
.sa24-catalog .sa24-city-results .section-heading h2 { font-size: clamp(21px, 3vw, 32px); }

.sa24-catalog .sa24-provider-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  grid-template-areas: "heading contact" "description contact";
  align-items: start; gap: 14px 28px;
}
.sa24-provider-heading { grid-area: heading; min-width: 0; }
.sa24-provider-copy { grid-area: description; min-width: 0; }
.sa24-catalog .sa24-provider-panel .contact-card {
  grid-area: contact; min-width: 0; margin: 0; padding: 19px;
  border: 1px solid #dae4f0; border-radius: 13px; box-shadow: none; background: #edf3fa;
}
.sa24-catalog .sa24-provider-panel .contact-card :is(strong, span, small) { color: #102846; }
.sa24-catalog .sa24-provider-panel .contact-card strong {
  font-size: clamp(22px, 2.6vw, 28px); line-height: 1.14;
}
.sa24-catalog .sa24-provider-panel .contact-card .button {
  min-height: 46px; width: 100%; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding-inline: 8px; text-align: center; overflow-wrap: anywhere;
}
.sa24-catalog .sa24-provider-panel .contact-card .button-primary { color: #fff; }
.sa24-catalog .sa24-provider-panel .badge-dark { color: #14365d; background: #eaf1f9; }
.sa24-catalog .sa24-provider-panel .provider-badges { margin-bottom: 8px; }
.sa24-catalog .sa24-provider-panel .provider-claim-link { color: #14365d; }

@media (max-width: 760px) {
  .sa24-catalog .sa24-city-panel { grid-template-columns: 1fr; gap: 13px; }
  .sa24-catalog .sa24-city-panel .sa24-city-summary {
    grid-template-columns: auto auto minmax(0, 1fr); gap: 3px 8px;
    padding: 11px 12px; border-left-width: 3px;
  }
  .sa24-catalog .sa24-city-panel .sa24-city-summary strong { font-size: 24px; }
  .sa24-catalog .sa24-city-panel .sa24-city-summary span { grid-column: auto; font-size: 13px; }
  .sa24-catalog .sa24-city-panel .sa24-city-summary small { grid-column: 2 / -1; font-size: 11px; }
  .sa24-catalog .sa24-provider-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "contact" "description";
  }
  .sa24-catalog .sa24-provider-panel .contact-card { padding: 14px; }
  .sa24-catalog .sa24-city-results { padding-block: 22px 30px; }
}

html:has(#sa24-catalog-design) body :is(.city-hero, .provider-hero) span.eyebrow {
  color: #b74600;
}
.sa24-catalog .sa24-provider-panel .contact-card .sa24-call-label {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center;
  column-gap: 6px; row-gap: 1px; min-width: 0; color: #fff;
}
.sa24-catalog .sa24-provider-panel .contact-card .sa24-call-label span {
  color: inherit; margin: 0; line-height: 1.25;
}
.sa24-catalog .sa24-provider-panel .contact-card .sa24-call-number {
  white-space: nowrap; overflow-wrap: normal; font-size: .88em;
}
@media (max-width: 510px) {
  .sa24-catalog .sa24-provider-panel .contact-card .sa24-call-label { display: grid; }
}
