:root {
  --ink: #14161a;
  --paper: #ffffff;
  --muted: #f4f5f7;
  --muted-text: #5c6370;
  --accent: #ff5c1a;
  --brand: #1e3a8a;
  --line: #e6e8ec;
  --max: 1120px;
  --sans: "Inter", "Segoe UI", sans-serif;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --header: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.45em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.9rem, 4.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10000; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.wrap-narrow { width: min(760px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.bar {
  min-height: var(--header);
  display: flex; align-items: center; flex-wrap: nowrap; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1 1 auto;
  color: var(--ink); text-decoration: none; font-family: var(--display);
  font-weight: 800; letter-spacing: -0.03em;
}
.brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
img.mark { width: 36px; height: 36px; max-width: none; border-radius: 8px; flex: 0 0 auto; }
.brand.has-logo span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
img.brand-logo, img.footer-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  flex: 0 0 auto;
}
.footer-brand { display: inline-block; margin-bottom: 10px; line-height: 0; }
.primary { display: flex; flex-wrap: nowrap; gap: 16px; margin-left: auto; flex: 0 0 auto; }
.primary a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.primary a:hover { color: var(--brand); }
.bar-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.bar-cta .phone, .site-footer a.phone, .aside-card .phone {
  font-family: var(--display); font-weight: 800; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.bar-cta .phone { font-size: 1.05rem; }
.site-footer a.phone, .aside-card .phone { font-size: 1.35rem; }
.prose a.phone, .lede a.phone, .cta a.phone { font-weight: 800; text-decoration: underline; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  border: 0; border-radius: 8px; padding: 12px 16px;
  font-weight: 700; font-family: var(--sans); cursor: pointer;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: var(--ink); color: #fff; }
.prose p .btn { vertical-align: middle; margin: 2px 0; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 8px; padding: 8px 12px; font-weight: 700; cursor: pointer;
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav:not([hidden]) {
  display: grid; gap: 4px; padding: 8px 16px 16px;
  border-top: 1px solid var(--line); background: #fff;
}
.mobile-nav a {
  color: var(--ink); font-weight: 700; text-decoration: none;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
}

.hero { padding: 28px 0 20px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 4.3rem); }
.kicker {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 12px;
}
.accent { color: var(--accent); }
.lede { font-size: 1.08rem; color: var(--muted-text); max-width: 42rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.stats { display: flex; flex-wrap: wrap; gap: 22px 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.stats strong { display: block; font-family: var(--display); font-size: 1.25rem; }
.stats span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-text); }
.frame, .split > img {
  border-radius: 12px; object-fit: cover; width: 100%;
}
.frame { aspect-ratio: 4/5; max-height: 640px; }
.split > img { max-height: 520px; }

.band { background: var(--ink); color: #fff; padding: 56px 0; }
.band h2, .band h3, .cta h2 { color: #fff; }
.band a { color: var(--accent); }
.band-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.band-head h2, .band-head h3 { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,0.16); border-radius: 8px; overflow: hidden; }
.card-ink { background: var(--ink); padding: 22px; min-width: 0; }
.card-ink span { color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 0.8rem; }
.card-ink p { color: rgba(255,255,255,0.78); }
.card-ink a { font-weight: 700; }

.section { padding: 56px 0; }
.section.alt { background: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2rem; }
.chip {
  background: var(--muted); color: var(--ink); text-decoration: none;
  border-radius: 8px; padding: 8px 12px; font-weight: 600; font-size: 0.92rem;
}
.section.alt .chip, .aside-card .chip { background: #fff; }
a.chip:hover { color: var(--brand); background: #e7ebf6; }

.post-grid, .service-grid, .city-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.tile {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; background: #fff; color: inherit; text-decoration: none;
}
.tile:hover { border-color: var(--brand); }
.tile h2, .tile h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 0.4em; }
.tile .cat { color: var(--brand); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.tile p { color: var(--muted-text); font-size: 0.95rem; margin-top: auto; }
.tile img { border-radius: 8px; margin: 0 0 12px; width: 100%; height: 170px; object-fit: cover; }

.page-hero { padding: 28px 0 8px; }
.page-hero h1 { font-size: clamp(1.85rem, 3.2vw, 3.1rem); }
.crumbs { font-size: 0.85rem; color: var(--muted-text); margin-bottom: 14px; overflow-wrap: anywhere; }
.crumbs a { color: var(--muted-text); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.prose { min-width: 0; max-width: 72ch; }
.layout .prose,
.wrap > .prose,
.wrap > .prose p,
.wrap > .prose li { max-width: none; }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { margin-top: 1.35em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose img { border-radius: 12px; margin: 1rem 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.faq summary::marker, .faq summary::-webkit-details-marker { color: var(--accent); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 32px; align-items: start; }
.aside-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--muted);
  position: sticky; top: calc(var(--header) + 16px);
}
.admin-bar .aside-card { top: calc(var(--header) + 48px); }
.map { border: 0; width: 100%; height: 280px; border-radius: 12px; background: var(--muted); }

.cta { background: var(--ink); color: #fff; padding: 40px 0; }
.cta-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.cta p { color: rgba(255,255,255,0.78); margin-bottom: 0; }
.cta .kicker { color: var(--accent); }

.form { position: relative; display: grid; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; min-width: 0; }
input, select, textarea {
  font: inherit; padding: 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; width: 100%; max-width: 100%; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.honey {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; line-height: 1.4; }
.check input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; min-width: 1.15rem;
  padding: 0; margin-top: 0.15rem; flex: 0 0 auto;
}
.form .btn { width: 100%; }
.form-panel { width: min(var(--max), calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px;
}
.notice { padding: 12px 14px; border-radius: 8px; }
.notice-bad { background: #fde8e4; }
.pager { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; min-height: 42px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; font-weight: 700; background: #fff; color: var(--ink);
}
.page-numbers.current, .page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.site-footer { background: var(--muted); padding: 48px 0 24px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.site-footer h2 { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 4px 0; color: var(--muted-text); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.brand-name { display: block; font-family: var(--display); font-size: 1.2rem; margin-bottom: 8px; }
.fine, .legal-line { color: var(--muted-text); font-size: 0.85rem; }
.legal-line { margin-top: 28px; }

.hls-tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.hls-tabbar a {
  flex: 1; min-width: 0; text-align: center; text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 0.78rem; padding: 10px 4px 8px;
  display: flex; align-items: center; justify-content: center;
}
.hls-tabbar a.call {
  color: #fff; background: var(--accent); flex: 1.45;
  flex-direction: column; line-height: 1.15; gap: 2px;
}
.hls-tabbar a.call strong {
  font-size: 0.68rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap;
}
.hls-tabbar a.is-active { color: var(--brand); }

@media (max-width: 1180px) {
  .primary { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 980px) {
  .hero-grid, .split, .layout { grid-template-columns: 1fr; }
  .frame, .split > img { aspect-ratio: 16/9; max-height: 280px; }
  .post-grid, .service-grid, .city-grid, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .aside-card { position: static; }
}
@media (max-width: 860px) {
  .bar-cta .phone, .bar-cta .btn { display: none; }
  .hls-tabbar { display: flex; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: 28px; }
  img.brand-logo, img.footer-logo { height: 40px; max-width: 140px; }
}
@media (max-width: 700px) {
  .section, .band { padding: 40px 0; }
  .post-grid, .service-grid, .city-grid, .cards, .footer-grid, .form-grid, .cta-row {
    grid-template-columns: 1fr;
  }
  .cta-row .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 160px; }
}
@media (max-width: 782px) {
  .admin-bar .aside-card { top: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
