:root {
  --navy: #0F1E2E; --navy2: #1A2D42; --gold: #D9BE85; --gold-dark: #8A6A2E; --ivory: #F7F4EE;
  --bg: #F7F4EE; --line: #E6E0D4; --muted: #5A6472; --green: #1E7A45; --wa: #1F8F4E;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--navy); font-family: Cairo, "Segoe UI", Tahoma, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
[dir=ltr] { unicode-bidi: isolate; }

.top { background: var(--navy); color: var(--ivory); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.logo .word { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 21px; letter-spacing: 2px; line-height: 1; }
.logo .tag { font-size: 9px; letter-spacing: 3px; color: var(--gold); }
.links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.links a { text-decoration: none; color: #D5DCE4; font-weight: 600; }
.links a:hover { color: var(--gold); }
.links .call { border: 1px solid var(--gold); color: var(--gold); padding: 6px 14px; border-radius: 999px; }

.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: #E3F1E8; color: var(--green); font-weight: 600; }
.flash.error { background: #FBE9E7; color: #A1281E; }

.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%); color: var(--ivory); padding: 56px 0 44px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 8px; font-weight: 800; }
.hero p { max-width: 640px; color: #C9D1DB; margin: 0 0 24px; font-size: 17px; }
.hero-count { margin-top: 14px; color: var(--gold); font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; background: #fff; padding: 14px; border-radius: 16px; box-shadow: 0 8px 30px rgba(15,30,46,.12); color: var(--navy); margin-bottom: 14px; }
.filters label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; font-size: 13px; color: var(--muted); }
.filters select, .filters input { font: inherit; color: var(--navy); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filters button, .req button { font: inherit; font-weight: 700; background: var(--gold); color: var(--navy); border: 0; border-radius: 10px; padding: 11px 26px; cursor: pointer; }
.filters button:hover, .req button:hover { background: #E6CD97; }

.block { padding: 36px 0 8px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0 14px; }
.block-head h2, .about h2, .ask h2 { margin: 0; font-size: 24px; }
.block-head a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.page-h { font-size: 30px; margin: 0 0 14px; }
.muted { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 28px; text-align: center; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.ucard { background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.ucard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,30,46,.12); }
.ucard .ph { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #E9E2D3, #D8CFBC); }
.ucard .ph img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; right: 10px; background: var(--navy); color: var(--ivory); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge.static { position: static; display: inline-block; }
.star { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ucard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.ucard .price { font-weight: 800; font-size: 18px; color: var(--gold-dark); }
.ucard .ttl { font-weight: 700; }
.place { color: var(--muted); font-size: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.facts span { font-size: 12px; background: var(--bg); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.ucard .code { margin-top: 8px; font-size: 12px; color: var(--muted); }

.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 26px 0; }
.pager a { min-width: 38px; text-align: center; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.pager a.on { background: var(--navy); color: var(--ivory); border-color: var(--navy); }

.about p { white-space: pre-line; max-width: 820px; font-size: 17px; }
.ask { background: var(--navy); color: var(--ivory); border-radius: 20px; padding: 26px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: center; margin: 18px 0 30px; }
.ask p { color: #C9D1DB; margin: 6px 0 0; }
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.req label.wide, .req button { grid-column: 1 / -1; }
.req input, .req textarea { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--navy); background: #fff; }
.ask .req label span { color: #C9D1DB; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
html, body { overflow-x: hidden; }
.req { position: relative; }

.unit .back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; }
.unit-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 22px; align-items: start; margin-bottom: 24px; }
.gallery { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; }
.gallery #main-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs img { width: 92px; height: 68px; object-fit: cover; border-radius: 8px; cursor: pointer; flex: 0 0 auto; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.panel h2 { margin: 0 0 12px; font-size: 20px; }
.panel h3 { margin: 18px 0 10px; font-size: 16px; }
.sticky { position: sticky; top: 84px; }
.unit-h { font-size: 24px; margin: 10px 0 2px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.specs div, .prices div { display: flex; flex-direction: column; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.specs span, .prices span { font-size: 12px; color: var(--muted); }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 10px; }
.prices strong { color: var(--gold-dark); font-size: 17px; }
.code-line { font-size: 14px; color: var(--muted); }
.cta { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn-wa, .btn-call { flex: 1; text-align: center; font-weight: 700; text-decoration: none; padding: 12px 18px; border-radius: 12px; display: inline-block; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-call { background: var(--navy); color: var(--ivory); }
.panel .req { grid-template-columns: 1fr; }
.panel .req button { background: var(--gold); }

.gone { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; text-align: center; margin-bottom: 20px; }
.gone h1 { margin: 0 0 8px; }
.gone p { color: var(--muted); max-width: 620px; margin: 0 auto 18px; }

.foot { background: var(--navy); color: var(--ivory); margin-top: 40px; padding: 34px 0 16px; }
.foot-in { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 24px; }
.foot-brand { font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; letter-spacing: 2px; }
.muted-light { color: #AEB8C4; }
.foot-list { display: flex; flex-direction: column; gap: 6px; }
.foot a { color: var(--ivory); }
.social { display: flex; gap: 14px; flex-wrap: wrap; align-content: start; }
.social a { color: var(--gold); text-decoration: none; font-weight: 600; }
.copy { border-top: 1px solid rgba(247,244,238,.12); margin-top: 22px; padding-top: 12px; font-size: 13px; color: #AEB8C4; }

.wa-float { position: fixed; bottom: 18px; left: 18px; background: var(--wa); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.2); z-index: 30; }

@media (max-width: 860px) {
  .unit-grid, .ask, .foot-in { grid-template-columns: 1fr; }
  .unit-grid > div { display: contents; }
  .unit-grid .gallery { order: 1; margin-bottom: 0; }
  .unit-grid aside { order: 2; }
  .unit-grid > div > .panel { order: 3; }
  .specs { grid-template-columns: 1fr 1fr; }
  .wa-float { bottom: 12px; left: 12px; padding: 10px 16px; }
  .sticky { position: static; }
  .links { gap: 12px; font-size: 14px; }
  .req { grid-template-columns: 1fr; }
}
