:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #efe9dc;
  --ink: #1b2620;
  --muted: #5d685f;
  --line: #e2dbcb;
  --brand: #1f5136;
  --brand-2: #2b6a48;
  --accent: #e0a23a;
  --accent-ink: #2a1c05;
  --wa: #1fa855;
  --wa-ink: #ffffff;
  --dark: #13281d;
  --dark-ink: #eef3ee;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 30, 20, .06), 0 6px 24px rgba(20, 30, 20, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101612; --surface: #18211b; --surface-2: #1e2a22; --ink: #e8eee9; --muted: #9aa89e;
    --line: #2a372e; --brand: #3f8f62; --brand-2: #4fa574; --dark: #0b130e; --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101612; --surface: #18211b; --surface-2: #1e2a22; --ink: #e8eee9; --muted: #9aa89e;
  --line: #2a372e; --brand: #3f8f62; --brand-2: #4fa574; --dark: #0b130e; --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brand-2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.2em; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .1s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(4px); }
.btn-ghost { background: transparent; color: var(--brand-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-2); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { filter: brightness(1.05); }
.btn-wa svg { flex: none; width: 22px; height: 22px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; margin-right: auto; }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { background: var(--surface-2); }
.nav .nav-cta { background: var(--brand); color: #fff; }
.nav .nav-cta:hover { background: var(--brand-2); }
.nav.open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px;
  background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow);
}
.nav.open a { padding: 14px 12px; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; font-weight: 700; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 48px; text-align: center; }
.langs summary::-webkit-details-marker { display: none; }
.langs-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 160px; display: grid; }
.langs-menu a { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.langs-menu a:hover, .langs-menu a[aria-current] { background: var(--surface-2); font-weight: 700; }
.burger { width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (min-width: 960px) {
  .nav { display: flex; gap: 4px; align-items: center; }
  .burger { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(86vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--dark); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 12, .25) 0%, rgba(8, 20, 12, .55) 45%, rgba(8, 20, 12, .88) 100%); }
.hero-inner { position: relative; padding-top: 96px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(1.9rem, 6.2vw, 3.4rem); font-weight: 800; max-width: 22ch; margin-bottom: .4em; }
.hero .lead { font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 52ch; opacity: .92; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.kicker.dark { color: var(--brand-2); }
.hero-price { display: inline-flex; align-items: baseline; gap: .5em; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: .5em .9em; border-radius: 12px; margin: .4em 0 1.2em; backdrop-filter: blur(4px); }
.hero-price strong { font-size: 1.5rem; color: var(--accent); }
.hero-cta { display: grid; gap: 10px; }
@media (min-width: 560px) { .hero-cta { display: flex; } }

/* ---------- advantages ---------- */
.adv { background: var(--surface); border-bottom: 1px solid var(--line); }
.adv-grid { display: grid; gap: 4px; padding-top: 16px; padding-bottom: 16px; }
.adv-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.adv-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.adv-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-content: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-2); font-weight: 800; }
@media (min-width: 700px) { .adv-grid { grid-template-columns: 1fr 1fr; gap: 8px 24px; } }
@media (min-width: 1040px) { .adv-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark p { color: color-mix(in srgb, var(--dark-ink) 75%, transparent); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.link-more { font-weight: 700; text-decoration: none; }
.page-top { padding-top: 24px; }
.page-title { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 800; }
@media (min-width: 900px) { .section { padding: 72px 0; } }

/* ---------- batch cards ---------- */
.batch-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.batch { overflow: hidden; display: flex; flex-direction: column; }
.batch-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); }
.batch-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 10px; top: 10px; background: rgba(15, 30, 20, .78); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-video { left: auto; right: 10px; background: var(--accent); color: var(--accent-ink); }
.batch-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.batch-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.batch-head h3 { margin: 0; }
.batch-head h3 a { color: inherit; text-decoration: none; }
.stock { font-weight: 700; color: var(--brand-2); white-space: nowrap; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 0; }
.specs div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.specs dt { font-size: .75rem; color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }
.batch-price strong { font-size: 1.3rem; }
.batch .btn { margin-top: auto; }

/* ---------- calculator ---------- */
.calc { padding: 16px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 16px; }
.tabs button { min-height: 44px; border: 0; background: transparent; border-radius: 9px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.calc-grid { display: grid; gap: 20px; }
.calc-grid[hidden] { display: none; }
.fields { display: grid; gap: 14px; }
label, fieldset { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
fieldset { border: 0; padding: 0; margin: 0; grid-template-columns: 1fr 1fr; }
legend { padding: 0; margin-bottom: 6px; }
input, select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; font-weight: 500;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--brand-2) 60%, transparent); outline-offset: 1px; border-color: var(--brand-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.chips button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.result { background: var(--surface-2); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.total { font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 800; color: var(--brand-2); line-height: 1.1; overflow-wrap: anywhere; }
.formula { color: var(--muted); font-weight: 600; }
.note { font-size: .85rem; color: var(--muted); margin: 6px 0 10px; }
.budget-rows { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 8px; }
.budget-rows li { background: var(--surface); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.budget-rows b { font-size: 1.4rem; color: var(--brand-2); }
@media (min-width: 800px) {
  .calc { padding: 24px; }
  .calc-grid { grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
  .result { position: sticky; top: 84px; padding: 22px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields label:nth-child(3), .fields label:nth-child(4) { grid-column: span 1; }
}

/* ---------- breeds ---------- */
.breed-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.breed { overflow: hidden; display: flex; flex-direction: column; }
.breed img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.breed-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.breed-body p { color: var(--muted); font-size: .95rem; }
.breed-weight { font-size: .9rem; color: var(--ink) !important; font-weight: 600; }
.breed .btn { margin-top: auto; }

/* ---------- deliveries gallery ---------- */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.gallery-cell { position: relative; }
.gallery-cell .gallery-item { width: 100%; height: 100%; }
.gallery-item { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: #000; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; opacity: .92; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px; font-size: .8rem; font-weight: 600; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.gallery-item .play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%; display: grid; place-content: center; background: var(--accent); color: var(--accent-ink); font-size: 1.3rem; box-shadow: 0 4px 20px rgba(0, 0, 0, .4); }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .gallery-cell.is-video { grid-column: span 2; grid-row: span 2; }
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); width: 100%; color: #fff; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lb-body img, .lb-body video { max-height: 80vh; margin: 0 auto; border-radius: 10px; }
.lb-embed { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.lb-cap { text-align: center; margin-top: 10px; }
.lb-close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.8rem; cursor: pointer; }

/* ---------- request form ---------- */
.request { padding: 16px; display: grid; gap: 16px; }
@media (min-width: 640px) {
  .request { padding: 24px; }
  .request .fields { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
}

/* ---------- catalog page ---------- */
.filters { padding: 16px; display: grid; gap: 14px; margin-bottom: 16px; }
.filter-actions { display: flex; gap: 8px; align-items: end; }
.filter-actions .btn { flex: 1; }
@media (min-width: 700px) { .filters { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .filters { grid-template-columns: 1fr 1fr 1.3fr 1.3fr 1fr auto; align-items: end; } }
.found { margin: 0 0 12px; }
.empty { padding: 24px; text-align: center; }

/* ---------- batch page ---------- */
.back { display: inline-block; margin-bottom: 16px; text-decoration: none; font-weight: 600; }
.batch-detail { display: grid; gap: 24px; }
.main-photo { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; width: 100%; }
.main-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.batch-video, .embed { margin-top: 12px; border-radius: var(--radius); width: 100%; background: #000; }
.embed { aspect-ratio: 16 / 9; overflow: hidden; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.specs-lg { grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.specs-lg div { padding: 12px 14px; }
.specs-lg dd { font-size: 1.1rem; }
.specs-lg .span-2 { grid-column: span 2; }
.note-box { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.price-box { display: grid; gap: 8px; }
.price-box div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.price-box strong { font-size: 1.2rem; }
@media (min-width: 900px) { .batch-detail { grid-template-columns: 1.15fr 1fr; gap: 36px; } }

/* ---------- credits ---------- */
.credits { padding-left: 1.2em; display: grid; gap: 10px; }

/* ---------- footer ---------- */
.foot { background: var(--dark); color: var(--dark-ink); padding: 36px 0 96px; }
.foot a { color: var(--dark-ink); }
.foot .muted { color: color-mix(in srgb, var(--dark-ink) 65%, transparent); }
.foot h4 { margin-bottom: .6em; }
.brand-foot { color: var(--dark-ink); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1.4fr; } .foot { padding-bottom: 40px; } }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-content: center; background: var(--wa); color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- availability ---------- */
.badge-status { left: auto; right: 10px; background: #f4f1ea; color: #2a2a2a; }
.st-reserved .badge-status { background: var(--accent); color: var(--accent-ink); }
.st-coming .badge-status { background: #3d6fa8; color: #fff; }
.st-sold .badge-status { background: #8a2f2f; color: #fff; }
.batch.st-sold .batch-img img { filter: grayscale(.8); }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--surface-2); }
.status-pill.st-reserved { background: var(--accent); color: var(--accent-ink); }
.status-pill.st-coming { background: #3d6fa8; color: #fff; }
.status-pill.st-sold { background: #8a2f2f; color: #fff; }
.head-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
label.check { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; }
label.check input { width: 22px; height: 22px; min-height: 0; }

/* ---------- owner login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-box { width: min(420px, 100%); padding: 28px 22px; display: grid; gap: 16px; }
.login-box h1 { font-size: 1.4rem; margin: 0; }
.login-box form { display: grid; gap: 14px; }
.login-box small { font-weight: 500; }
.login-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fbe9e7; color: #8a2f2f; font-weight: 600; }
