:root {
  --ink: #1c1916;
  --ink-soft: #4e463d;
  --muted: #74695d;
  --cream: #f4efe6;
  --paper: #fbf8f3;
  --card: #fffcf8;
  --line: rgba(28, 25, 22, 0.12);
  --forest: #1f4d3a;
  --forest-deep: #17382b;
  --brass: #c6a15b;
  --brass-deep: #8d6d32;
  --clay: #a84b34;
  --wa: #1aa85a;
  --shadow: 0 18px 40px rgba(28, 25, 22, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(198, 161, 91, 0.18), transparent 55%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.5;
}
body.is-admin { display: block; background: #f3efe7; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
}
p { margin: 0; }
::selection { background: #ead7ae; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 80;
  border-radius: 10px;
}
.skip:focus { top: 12px; }
:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
}

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.wrap.narrow { width: min(760px, calc(100% - 32px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-banner {
  display: block;
  width: min(408px, calc(100vw - 48px));
  aspect-ratio: 408 / 78;
  flex: none;
}
.logo-banner img,
.logo-banner-slot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.logo-banner-slot {
  border: 1px dashed rgba(28, 25, 22, 0.22);
  border-radius: 10px;
  background: rgba(255, 252, 248, 0.4);
}
.banner-preview {
  display: block;
  width: min(408px, 100%);
  aspect-ratio: 408 / 78;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-mark, .logo-img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex: none;
}
.logo-mark {
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.35rem;
}
.logo-img { object-fit: cover; }
.logo-word strong { display: block; font-size: 1.05rem; letter-spacing: -0.03em; }
.logo-word small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  max-width: 11rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-cats {
  display: flex;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: auto;
  scrollbar-width: none;
}
.nav-cats::-webkit-scrollbar { display: none; }
.nav-cats a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.95rem;
}
.nav-cats a:hover, .nav-cats a.is-on { background: rgba(31, 77, 58, 0.08); color: var(--forest); }
.bar-actions { margin-left: auto; display: flex; gap: 8px; flex: none; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex: none;
}
.nav-toggle span:not(.sr-only) { width: 16px; height: 1.6px; background: var(--ink); display: block; }
.mobile-panel { padding: 4px 16px 16px; }
.mobile-panel[hidden] { display: none; }
.mobile-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mobile-cats a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 16px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 580;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: white; }
.btn-wa { background: var(--wa); color: white; }
.btn-wa:hover { background: #148a49; }
.btn-danger { background: transparent; color: var(--clay); border-color: rgba(168, 75, 52, 0.35); }
.btn-text { background: transparent; padding-inline: 8px; color: var(--forest); }
.btn-block { width: 100%; }

.kicker {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lead { color: var(--ink-soft); font-size: 1.12rem; max-width: 42rem; }

.hero { padding: 42px 0 18px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.1rem, 6.4vw, 5.5rem);
  font-weight: 560;
}
.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 520;
  color: var(--forest);
}
.hero .lead { margin-top: 16px; }
.search, .filters {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.search input, .filters input, .filters select {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 12px;
}
.search input:focus, .filters input:focus, .filters select:focus { outline: none; }
.filters { flex-wrap: wrap; box-shadow: none; background: rgba(255, 252, 248, 0.7); }
.filters label { flex: 1; min-width: 140px; display: flex; }
.hero-stats {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
}
.hero-stats span { color: var(--muted); font-size: 0.88rem; }
.hero-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}
.float-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.float-card:first-child { transform: rotate(-3.5deg); }
.float-card:nth-child(2) { transform: rotate(3.5deg); margin-top: 36px; }
.float-media { display: block; aspect-ratio: 4/3; background: linear-gradient(160deg, #e7efe9, #f4ead4); position: relative; }
.float-media img, .ph { width: 100%; height: 100%; object-fit: cover; }
.ph {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 4rem;
  color: rgba(31, 77, 58, 0.35);
}
.float-copy { display: block; padding: 14px 16px 16px; }
.float-copy small { color: var(--forest); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
.float-copy strong { display: block; margin-top: 4px; font-size: 1.05rem; }
.float-copy em { display: block; margin-top: 6px; font-style: normal; color: var(--brass-deep); font-family: var(--serif); }
.float-card.is-empty { padding: 8px; background: rgba(255, 252, 248, 0.8); }
.float-card.is-empty .float-copy strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 520; line-height: 1.15; }

.section { padding: 34px 0; }
.board { padding-top: 18px; }
.seo-top { padding: 22px 0 0; }
.seo-lead textarea { min-height: 140px; }
.seo-lead textarea { min-height: 140px; }
.seo-top h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.seo-top h1 em { font-style: italic; color: var(--forest); }
.keyword-rank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  counter-reset: kw;
}
.keyword-rank li {
  counter-increment: kw;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.keyword-rank li::before {
  content: counter(kw) ". ";
  color: var(--forest);
  font-weight: 700;
}
.section.tight { padding-top: 8px; }
.section-head, .admin-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2, .admin-head h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head a { color: var(--forest); font-weight: 650; text-decoration: none; }
.cat-grid, .card-grid, .stat-grid, .steps-grid {
  display: grid;
  gap: 14px;
}
.cat-grid { grid-template-columns: repeat(4, 1fr); }
.cat-card {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.cat-card:hover { border-color: rgba(31, 77, 58, 0.35); }
.cat-card strong, .cat-card small { display: block; }
.cat-card small { color: var(--muted); }
.cat-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  flex: none;
}
.cat-card:nth-child(7n + 1) .cat-mark { background: var(--forest); color: var(--cream); }
.cat-card:nth-child(7n + 2) .cat-mark { background: var(--brass); color: var(--ink); }
.cat-card:nth-child(7n + 3) .cat-mark { background: #eadfce; color: var(--forest); }
.cat-card:nth-child(7n + 4) .cat-mark { background: #2b3330; color: var(--cream); }
.cat-card:nth-child(7n + 5) .cat-mark { background: #efe2d2; color: var(--clay); }
.cat-card:nth-child(7n + 6) .cat-mark { background: #dfe8e2; color: var(--forest-deep); }
.cat-card:nth-child(7n + 7) .cat-mark { background: #f3e7c8; color: #6d5420; }

.card-grid { grid-template-columns: repeat(4, 1fr); }
.card-place { margin: 0; color: var(--muted); font-size: 0.86rem; }
.card-place a { color: var(--forest); text-decoration: none; font-weight: 650; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 10px 30px rgba(28, 23, 18, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-blank:hover { transform: none; box-shadow: 0 10px 30px rgba(28, 23, 18, 0.04); }
.card-media { position: relative; display: block; aspect-ratio: 3/4; background: linear-gradient(160deg, #e7efe9, #f6f1e7 55%, #efe2c8); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .ph { position: absolute; inset: 0; }
.ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--forest);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 9px;
}
.ribbon-new { background: var(--brass); color: var(--ink); }
.slot-no {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(251, 248, 243, 0.94);
  font-weight: 700;
}
.bar-login { color: var(--forest); font-weight: 700; text-decoration: none; padding: 8px 4px; }
.owner-wrap { width: min(820px, calc(100% - 32px)); }
.login-pass { margin-bottom: 16px; }
.theme-colors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.theme-colors input[type="color"] { width: 100%; height: 48px; padding: 0; border: 0; background: transparent; }
.theme-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.panel-form { display: flex; flex-direction: column; gap: 14px; }
.price-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(251, 248, 243, 0.94);
  border-radius: 999px;
  padding: 7px 11px;
  font-family: var(--serif);
}
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 0.86rem; }
.card-meta a { color: var(--forest); text-decoration: none; font-weight: 650; }
.card h3 { font-size: 1.12rem; }
.card h3 a { text-decoration: none; }
.who { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-soft); font-size: 0.92rem; }
.who strong { color: var(--ink); }
.card-phone { color: var(--forest); font-weight: 650; text-decoration: none; }
.card-excerpt {
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-note { color: var(--forest); }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; padding-top: 6px; }
.card-actions .btn { padding: 8px 12px; }

.steps { padding: 10px 0 40px; }
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.steps article {
  padding: 22px;
  border-top: 1px solid var(--line);
}
.steps span {
  font-family: var(--serif);
  color: var(--brass-deep);
  font-size: 1.3rem;
}
.steps h2 { font-size: 1.7rem; margin: 8px 0; }
.steps p { color: var(--ink-soft); }
.seo-band { padding: 10px 0 54px; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-soft); margin: 0 0 12px; }
.detail-copy { margin-top: 18px; font-size: 1.06rem; }

.page-hero { padding: 28px 0 10px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-top: 8px; }
.result-count { color: var(--muted); margin-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.crumbs a { color: var(--forest); text-decoration: none; }

.detail { padding: 22px 0 36px; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 0.7fr; gap: 22px; align-items: start; }
.gallery-main, .gallery-fallback {
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #e7efe9, #f4ead4);
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-fallback { display: grid; place-items: center; cursor: default; }
.gallery-fallback span { font-family: var(--serif); font-size: 6rem; color: rgba(31, 77, 58, 0.35); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow: auto; }
.thumbs button {
  width: 84px;
  height: 68px;
  padding: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #efe8dc;
  flex: none;
}
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .is-on { border-color: var(--forest); }
.detail-title { margin-top: 18px; }
.detail-title h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 8px 0; }
.detail-price, .contact-price { font-family: var(--serif); font-size: 1.8rem; color: var(--forest); }
.contact-card {
  position: sticky;
  top: 92px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.contact-card h2 { font-size: 1.7rem; margin-bottom: 6px; }
.contact-actions { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.facts { margin: 8px 0 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }

.empty {
  background: rgba(255, 252, 248, 0.8);
  border: 1px dashed var(--line);
  border-radius: 24px;
  padding: 28px;
}
.empty h2, .empty h3 { margin-bottom: 8px; }
.empty p { color: var(--ink-soft); margin-bottom: 14px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pager a, .pager span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: white;
  padding: 0 12px;
}
.pager .is-on { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 18px; margin-top: 20px; background: #f7f2ea; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.footer-note { color: var(--ink-soft); margin-top: 12px; max-width: 36ch; }
.site-footer h2 { font-size: 1.15rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--forest); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-contact {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.35;
}
.site-contact a { color: var(--ink); text-decoration: none; font-weight: 650; }
.site-contact a:hover { color: var(--forest); }
.float-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(20, 120, 60, 0.28);
}
.float-wa svg { width: 22px; height: 22px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(20, 16, 12, 0.88);
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 88vh; border-radius: 12px; }
.lightbox button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: white;
  font-size: 1.6rem;
}
body.lightbox-open { overflow: hidden; }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.login-card h1 { font-size: 2.6rem; margin: 18px 0 8px; }

.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #241f1b;
  color: #f6f1e8;
}
.side .logo-word small { color: rgba(246, 241, 232, 0.62); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(246, 241, 232, 0.82);
}
.side-link.is-on, .side-link:hover { background: rgba(246, 241, 232, 0.08); color: white; }
.side-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.side-foot a, .side-foot button {
  color: inherit;
  background: transparent;
  border: 0;
  text-decoration: none;
  padding: 0;
}
.admin-main { padding: 28px 22px 60px; width: min(1080px, 100%); }
.stat-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.stat-grid article, .panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}
.stat-grid strong { display: block; font-family: var(--serif); font-size: 2rem; }
.stat-grid span, .hint, .field small { color: var(--muted); font-size: 0.88rem; }
.panel { margin-top: 14px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1.35fr 0.8fr; gap: 8px 18px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 0.9rem; font-weight: 650; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field textarea,
.field select,
.login-card input,
.panel > form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]) {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 13px;
}
textarea { min-height: 120px; resize: vertical; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split.three { grid-template-columns: 0.8fr 0.5fr 1.4fr auto; align-items: end; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-weight: 600; }
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 4px;
  min-height: 120px;
  border: 1.5px dashed rgba(31, 77, 58, 0.35);
  border-radius: 16px;
  background: #f7faf7;
  padding: 16px;
}
.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.dropzone.is-over { border-color: var(--forest); background: #eef6f1; }
.photo-px { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 1.7rem; letter-spacing: -0.03em; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.photo-tile { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; margin: 0; }
.photo-tile img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.photo-tile .opts { padding: 8px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}
.row-media, .row-media span {
  width: 74px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: #efe8dc;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
}
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-copy small, .admin-row small { display: block; color: var(--muted); }
.row-copy a, .admin-row strong a { text-decoration: none; }
.row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.row-actions a, .link-danger, .row-actions button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--forest);
  text-decoration: none;
  font-weight: 650;
}
.link-danger, .row-actions .link-danger { color: var(--clay); }
.pill { border-radius: 999px; padding: 4px 8px; background: #f1ebe3; font-size: 0.8rem; }
.pill.is-live { background: #e5f3ea; color: var(--forest); }
.stack { display: flex; flex-direction: column; }
.danger-row { margin-top: 14px; }
.serp { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 8px 0 14px; }
.serp-url { color: #1a6b43; font-size: 0.84rem; font-family: Arial, sans-serif; }
.serp-title { color: #1a0dab; font-size: 1.15rem; font-family: Arial, sans-serif; margin: 3px 0; }
.serp-desc { color: #4d5156; font-size: 0.9rem; font-family: Arial, sans-serif; }
.count { font-style: normal; color: var(--muted); font-weight: 500; margin-left: 6px; }
.count.is-over { color: var(--clay); }
.brand-preview { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.brand-preview.wide { width: 100%; height: 120px; }
.security { margin-top: 18px; }
.flash {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.flash-ok { background: #e7f2ec; color: #1f4d3a; }
.flash-err { background: #fde8e2; color: #8a3b28; }

@media (max-width: 980px) {
  .hero-grid, .detail-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .hero-stage { min-height: 0; }
  .contact-card { position: static; }
  .split.three { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: none; }
  .hero-stage { grid-template-columns: 1fr; }
  .float-card:first-child, .float-card:nth-child(2) { transform: none; margin: 0 0 14px; }
  .nav-cats, .bar-actions .btn-ghost { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; height: auto; z-index: 30; }
  .side-nav { flex-direction: row; overflow: auto; }
  .side-link { white-space: nowrap; }
  .side-foot { display: none; }
  .admin-row { grid-template-columns: 74px 1fr; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 12px); }
  .cat-grid, .stat-grid, .steps-grid, .split { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .card { border-radius: 10px; }
  .card-body { padding: 6px 6px 8px; gap: 3px; }
  .card h3 { font-size: 0.72rem; line-height: 1.15; }
  .who, .card-excerpt, .card-phone { font-size: 0.62rem; }
  .card-actions { gap: 3px; }
  .card-actions .btn { padding: 4px 5px; font-size: 0.6rem; }
  .slot-no { top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 3px; font-size: 0.62rem; }
  .ribbon { top: 4px; left: 4px; font-size: 0.55rem; padding: 2px 4px; }
  .theme-colors { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 22px; }
  .hero h1 { font-size: 3rem; }
  .search, .filters { flex-direction: column; align-items: stretch; }
  .footer-bottom { flex-direction: column; }
  body.has-contact { padding-bottom: 72px; }
  .hero-stage { grid-template-columns: 1fr; }
  .float-card:first-child, .float-card:nth-child(2) { transform: none; margin: 0 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
