:root {
  --teal: #0b7a7f;
  --teal-dark: #075a5e;
  --teal-tint: #e6f5f5;
  --orange: #d94f00;          /* buttons + price text (passes contrast on white) */
  --orange-bright: #ff7a1a;   /* decoration only */
  --orange-tint: #fff1e7;
  --bg: #f3f5f6;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #667380;
  --line: #e4e8eb;
  --ok: #17803d;
  --bad: #c62828;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 30, 40, 0.06), 0 4px 14px rgba(15, 30, 40, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --teal-tint: #12383a;
    --orange-tint: #3a2314;
    --bg: #101517;
    --card: #182023;
    --text: #e9eef0;
    --muted: #9aa8b1;
    --line: #2a3438;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Roboto, -apple-system, "Segoe UI", system-ui, Arial, sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ico { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 2px; }

/* ---------- header ---------- */
.topbar { background: var(--teal-dark); color: #d7eeee; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; align-items: center; }
.topbar a { color: #fff; text-decoration: none; margin-left: 16px; }
.topbar a:hover { text-decoration: underline; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }

.mainbar { background: linear-gradient(90deg, var(--teal) 0%, #0f9aa0 100%); color: #fff; }
.mainbar-in { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -.3px; }
.logo-mark { width: 38px; height: 38px; }
.search { flex: 1; display: flex; background: #fff; border-radius: 8px; overflow: hidden; max-width: 760px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.search input { flex: 1; border: 0; padding: 12px 14px; font-size: 15px; background: #fff; color: #1f2933; min-width: 0; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px var(--orange-bright); }
.search button { border: 0; background: var(--orange); color: #fff; padding: 0 20px; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: #b84300; }
.hdr-link { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; text-decoration: none; font-size: 12px; }

.catbar { background: var(--card); border-bottom: 1px solid var(--line); }
.cats { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats li { flex: none; }
.cat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; padding: 6px 4px; text-decoration: none; color: var(--text); font-size: 12.5px; text-align: center; border-radius: 10px; }
.cat-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); }
.cat.on { font-weight: 600; }
.cat.on .cat-ico { background: var(--teal); color: #fff; }
.cat.soon { opacity: .6; cursor: default; }
.cat em { position: absolute; top: 2px; right: 10px; font-style: normal; font-size: 10px; background: var(--orange-tint); color: var(--orange); padding: 1px 6px; border-radius: 99px; font-weight: 700; }
a.cat:hover .cat-ico { background: var(--teal-dark); color: #fff; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin: 16px auto; }
.banner {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; padding: 36px 40px; min-height: 280px;
  background: radial-gradient(900px 300px at 85% 30%, rgba(255,122,26,.45), transparent 60%), linear-gradient(120deg, var(--teal-dark) 0%, var(--teal) 55%, #12a3a8 100%);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.banner h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; max-width: 16em; margin: 0; }
.banner p { margin: 0; font-size: 17px; color: #e3f6f6; max-width: 28em; }
.banner .pill { align-self: flex-start; background: var(--orange-bright); color: #1b1b1b; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 99px; letter-spacing: .3px; }
.banner .banner-art { position: absolute; right: 18px; bottom: -10px; width: 280px; opacity: .95; pointer-events: none; }
.side-tiles { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.tile { border-radius: var(--radius); padding: 20px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; gap: 4px; text-decoration: none; color: var(--text); }
.tile b { font-size: 18px; }
.tile span { color: var(--muted); font-size: 14px; }
.tile .ico { color: var(--orange); margin-bottom: 4px; }
.tile.alt { background: var(--orange-tint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--orange); color: #fff; font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 8px; min-height: 44px;
}
.btn:hover { background: #b84300; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.14); }
.btn.teal { background: var(--teal); }
.btn.teal:hover { background: var(--teal-dark); }
.btn.block { width: 100%; font-size: 17px; padding: 14px; }
.banner .btn { align-self: flex-start; margin-top: 8px; }

.section { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin: 16px auto; padding: 18px 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; margin: 0; }
.section-head .tag { color: var(--orange); font-weight: 700; font-size: 14px; }
.deal-head h2 { color: var(--orange); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
a.card:hover { box-shadow: 0 6px 20px rgba(15,30,40,.14); transform: translateY(-2px); }
.card-img { aspect-ratio: 1 / 1; background: var(--teal-tint); display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.price { color: var(--orange); font-size: 22px; font-weight: 800; }
.price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.from { font-size: 12.5px; color: var(--muted); }
.badge { position: absolute; top: 8px; left: 8px; background: var(--orange); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.badge.new { background: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--teal-tint); color: var(--teal); font-weight: 600; }
.card.soon { opacity: .75; border-style: dashed; }
.card.soon .card-img { background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 10px, var(--card) 10px, var(--card) 20px); color: var(--muted); }
.deal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.deal { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 34px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--orange-tint); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.deal:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,30,40,.14); }
.deal .badge { top: 8px; left: 8px; }
.deal-len { font-weight: 700; font-size: 15px; }
.deal .price { font-size: 20px; }
.empty { color: var(--muted); padding: 24px 8px; text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 6px; }
.step .num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step h3 { font-size: 16px; margin: 0 0 2px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- footer ---------- */
.trust-strip { background: var(--card); border-top: 1px solid var(--line); margin-top: 28px; }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.trust-in > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.trust-in .ico { grid-row: span 2; color: var(--teal); width: 30px; height: 30px; }
.trust-in b { font-size: 14.5px; }
.trust-in span { font-size: 13px; color: var(--muted); }
.footer { background: #0f2326; color: #cfe3e4; padding: 30px 0 18px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer a { display: block; color: #cfe3e4; text-decoration: none; padding: 3px 0; font-size: 14px; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer .brand-foot { display: inline-flex; font-size: 22px; margin-bottom: 8px; padding: 0; }
.muted-light { color: #9fbbbd; font-size: 14px; margin: 0; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chips span { background: #fff; color: #1f2933; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.copy { margin-top: 22px; font-size: 13px; color: #8fb0b2; border-top: 1px solid #1f3a3d; padding-top: 14px; }

.chat-fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; background: var(--teal); color: #fff; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; padding: 12px 18px; border-radius: 99px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* ---------- item page ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.item-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin: 12px auto 16px; align-items: start; }
.gallery { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.gallery-main { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--teal-tint); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: 8px; background: var(--card); overflow: hidden; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel h1 { font-size: 24px; margin-bottom: 6px; }
.price-box { background: var(--orange-tint); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.price-box .price { font-size: 30px; }
.price-box .sub { color: var(--muted); font-size: 14px; }
.ladder { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 4px; }
.ladder th, .ladder td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.ladder th { color: var(--muted); font-weight: 600; font-size: 13px; }
.ladder td:last-child, .ladder th:last-child { text-align: right; }
.ladder tr.hit { background: var(--teal-tint); font-weight: 700; }
.ladder-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.feat { margin: 10px 0 0; padding: 0; list-style: none; }
.feat li { display: flex; gap: 10px; padding: 4px 0; align-items: flex-start; }
.feat .ico { color: var(--ok); margin-top: 2px; }

.book { grid-column: 1 / -1; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.book h2 { font-size: 20px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #c4ccd2; border-radius: 8px; font: inherit; background: var(--card); color: var(--text); min-height: 44px;
}
.field textarea { min-height: 70px; resize: vertical; }
.field small { color: var(--muted); font-size: 12.5px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.opt { position: relative; border: 2px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; display: block; }
.opt input { position: absolute; opacity: 0; }
.opt b { display: block; font-size: 14.5px; }
.opt span { font-size: 12.5px; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); }
.opt:has(input:focus-visible) { outline: 3px solid var(--orange-bright); }

.cal { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 16px; }
.cal-head button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font-size: 18px; }
.cal-head button:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dow { font-size: 12px; color: var(--muted); padding: 4px 0; font-weight: 600; }
.cal-day { aspect-ratio: 1/1; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; border-radius: 8px; min-height: 38px; }
.cal-day:hover:not(:disabled) { background: var(--teal-tint); }
.cal-day:disabled { color: #a3adb5; cursor: not-allowed; }
.cal-day.taken { text-decoration: line-through; background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(0,0,0,.05) 4px, rgba(0,0,0,.05) 8px); }
.cal-day.in { background: var(--teal-tint); border-radius: 0; }
.cal-day.edge, .cal-day.edge:hover:not(:disabled) { background: var(--teal); color: #fff; font-weight: 700; }
.cal-day.edge.s { border-radius: 8px 0 0 8px; }
.cal-day.edge.e { border-radius: 0 8px 8px 0; }
.cal-day.edge.s.e { border-radius: 8px; }
.cal-legend { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.range-out { font-weight: 700; margin: 4px 0 12px; min-height: 1.5em; }

.summary { background: var(--bg); border-radius: 10px; padding: 14px; margin: 6px 0 14px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14.5px; }
.summary .row.total { border-top: 1px dashed #b8c2c9; margin-top: 6px; padding-top: 10px; font-size: 18px; font-weight: 800; }
.summary .row.total span:last-child { color: var(--orange); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 8px 0 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.err { color: var(--bad); font-weight: 600; margin: 8px 0; min-height: 1.4em; }
.note { background: var(--teal-tint); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.note.warn { background: #fff4e5; color: #6b3b00; }

.sticky-cta { display: none; }

/* ---------- content pages ---------- */
.doc { max-width: 820px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin: 16px auto; }
.doc h1 { font-size: 28px; }
.doc h2 { font-size: 20px; margin-top: 1.4em; }
.doc details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.doc summary { font-weight: 700; cursor: pointer; }
.doc details p { margin: 8px 0 0; color: var(--muted); }

.status-card { max-width: 640px; margin: 24px auto; text-align: center; }
.status-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: var(--teal-tint); color: var(--teal); }
.status-icon.ok { background: #e3f5ea; color: var(--ok); }
.status-icon.wait { background: var(--orange-tint); color: var(--orange); }
.kv { text-align: left; background: var(--bg); border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; }
.kv b { text-align: right; }
.ref { font-size: 22px; font-weight: 800; letter-spacing: 1px; }

/* ---------- admin ---------- */
.table-wrap { overflow-x: auto; }
table.t { border-collapse: collapse; width: 100%; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.st { font-weight: 700; padding: 2px 8px; border-radius: 99px; font-size: 12px; white-space: nowrap; }
.st.paid, .st.confirmed { background: #e3f5ea; color: var(--ok); }
.st.pending, .st.requested { background: var(--orange-tint); color: var(--orange); }
.st.returned { background: var(--teal-tint); color: var(--teal); }
.st.cancelled { background: #f3e3e3; color: var(--bad); }
.mini { padding: 6px 10px; min-height: 0; font-size: 13px; margin: 2px 2px 2px 0; }

/* ---------- phones & tablets ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .side-tiles { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .banner { padding: 26px 22px; min-height: 240px; }
  .banner .banner-art { width: 150px; right: -6px; opacity: .5; }
  .item-layout, .book-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .deal-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar nav { display: none; }
  .mainbar-in { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 21px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hdr-link { margin-left: auto; }
  .side-tiles { grid-template-columns: 1fr; }
  .banner .banner-art { display: none; }
  .deal-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .section { padding: 14px; border-radius: 0; margin-left: -16px; margin-right: -16px; width: auto; }
  .panel, .gallery, .doc { border-radius: 10px; padding: 16px; }
  .opts { grid-template-columns: 1fr; }
  .trust-in { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 14px; bottom: 76px; }
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; gap: 12px; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px; box-shadow: 0 -4px 14px rgba(0,0,0,.1); }
  .sticky-cta .price { font-size: 20px; flex: 1; line-height: 1.1; }
  .sticky-cta .btn { flex: none; }
  body.has-sticky { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
