:root {
  --red: #EB1122;
  --red-dark: #C40E1C;
  --blue: #0050A5;
  --navy: #012C5F;
  --ink: #142033;
  --muted: #5C6B80;
  --line: #E1E7F0;
  --bg: #F4F6FA;
  --card: #fff;
  --ok: #0E5B32;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(1, 44, 95, 0.08);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h1 { font-size: 1.7rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.8rem; }
.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 8px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0 42%, var(--blue) 42%);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}
.brand { flex: none; }
.brand img { height: 64px; width: auto; max-width: min(280px, 62vw); display: block; object-fit: contain; }
.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
}
.nav { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.nav a, .linkish {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav a.btn-primary { background: var(--red); color: #fff; }
.nav a.btn-primary:hover { background: var(--red-dark); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: #C9D3E3; }
.btn-whatsapp { background: #128C7E; color: #fff; }
.btn-block { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
main { padding: 22px 0 48px; }
.hero {
  background: linear-gradient(135deg, var(--navy), var(--blue) 78%);
  color: #fff;
  border-radius: 18px;
  padding: 22px 16px 18px;
  margin-bottom: 22px;
}
.hero h1, .hero p { color: #fff; }
.hero-copy p { color: #D7E6F8; max-width: 40rem; }
.search, .filters {
  display: grid;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px;
}
.search label, .lbl, .choice legend, fieldset legend {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #C9D3E3;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.is-invalid { border-color: var(--red); }
.field-error { color: #9B0D18; font-size: 0.88rem; margin: 4px 0 0; }
.help, .ad-meta { color: var(--muted); font-size: 0.9rem; }
.trust { margin: 12px 2px 0; color: #D7E6F8; font-size: 0.92rem; }
.section { margin: 26px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.section-title { margin: 0 0 12px; font-size: 1.3rem; }
.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--red);
}
.cat-grid, .featured-row, .ad-list, .account-list { display: grid; gap: 10px; }
.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.visually-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.cat {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  text-decoration: none;
  color: var(--navy);
  min-height: 74px;
}
.cat:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.cat strong { display: block; }
.cat span span, .cat .help { color: var(--muted); font-size: 0.82rem; }
.cat-ico, .ad-thumb-empty {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #E7F0FB;
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}
.ico { width: 24px; height: 24px; }
.ad, .account-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}
.ad-thumb {
  display: block;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #E8EEF6;
}
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-thumb-empty { width: 100%; height: 100%; }
.ad-title, .account-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ad-title a, .account-card h3 a { color: var(--navy); text-decoration: none; }
.ad-title a:hover, .account-card h3 a:hover { text-decoration: underline; }
.ad-price, .price { margin: 0 0 4px; color: var(--red); font-weight: 800; }
.price { font-size: 1.8rem; }
.badges { margin: 0 0 6px; }
.badge {
  display: inline-block;
  background: #FDECEE;
  color: #B10E1C;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 800;
}
.badge-top { background: #E7F0FB; color: var(--blue); }
.alert { padding: 12px 14px; border-radius: 10px; margin: 0 0 14px; }
.alert-ok { background: #E7F6EE; color: var(--ok); }
.alert-error { background: #FDECEE; color: #8E1020; }
.alert-info { background: #E7F0FB; color: var(--navy); }
.alert a { color: inherit; }
.empty { background: #fff; border: 1px dashed #C9D3E3; border-radius: var(--radius); padding: 16px; }
.page-head { margin-bottom: 14px; }
.filters { margin-bottom: 16px; }
.filter-actions { display: flex; gap: 8px; align-items: end; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.listing-layout { display: grid; gap: 16px; }
.gallery-main {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #EEF2F7;
  border-radius: 14px;
}
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumb-btn { border: 2px solid transparent; padding: 0; border-radius: 8px; background: none; cursor: pointer; }
.thumb-btn.is-active { border-color: var(--blue); }
.thumb-btn img { width: 72px; height: 72px; object-fit: cover; display: block; border-radius: 6px; }
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.specs div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.specs dt { color: var(--muted); font-size: 0.78rem; }
.specs dd { margin: 0; font-weight: 700; color: var(--navy); }
.description { background: #fff; border-radius: 14px; padding: 14px; border: 1px solid var(--line); }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.video-frame { position: relative; padding-top: 56.25%; margin-top: 14px; }
.video-frame iframe, .listing-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.listing-video { position: static; max-height: 420px; background: #000; }
.report { margin-top: 18px; background: #fff; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); }
.auth-card, .page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  max-width: 640px;
  margin: 0 auto;
}
.stack-form .btn { margin-top: 12px; }
.form-grid { display: grid; gap: 10px; }
.choice { border: 0; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.conditional { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 12px 0; background: #fff; }
html.js .conditional { display: none; }
html.js .conditional.is-on { display: block; }
.current-photos, .photo-preview { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px; }
.current-photos figure, .photo-preview img { width: 120px; }
.current-photos img, .photo-preview img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check input { width: auto; min-height: 0; }
.hp-wrap {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
.danger-zone { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.account-card { align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-grid article { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat-grid strong { display: block; font-size: 1.6rem; color: var(--navy); }
.stat-grid span { color: var(--muted); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; min-width: 720px; }
table.data th, table.data td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 0.78rem; color: var(--muted); }
.admin-nav { background: var(--navy); }
.admin-nav-inner { display: flex; gap: 14px; overflow-x: auto; }
.admin-nav a { color: #fff; text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.plan-list { list-style: none; padding: 0; }
.plan-list li { border-top: 1px solid var(--line); padding: 10px 0; }
.plan-list span { float: right; color: var(--red); font-weight: 800; }
.prose { background: #fff; border-radius: 16px; padding: 18px; border: 1px solid var(--line); }
.prose h2 { font-size: 1.15rem; }
.site-footer { background: var(--navy); color: #D5E2F2; padding: 28px 0 16px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 18px; }
.footer-heading { font-weight: 800; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer img { height: 48px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.legal { text-align: center; margin: 18px 0 0; font-size: 0.85rem; }
.narrow { margin-top: 24px; }
@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 14px;
    flex-direction: column;
    align-items: stretch;
    z-index: 40;
  }
  html:not(.js) .nav, body.nav-open .nav { display: flex; }
}
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .search { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; }
  .filters { grid-template-columns: 1.2fr 1fr 1fr 0.7fr 0.7fr auto; align-items: end; }
  .featured-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-feature { grid-template-columns: 1fr; }
  .ad-feature .ad-thumb { aspect-ratio: 4 / 3; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .brand img { height: 78px; max-width: 340px; }
  h1 { font-size: 2rem; }
}
@media (min-width: 980px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .listing-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .contact-card { position: sticky; top: 86px; }
  .ad { grid-template-columns: 128px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
