:root {
  --bg: #fafaf8;
  --navy: #0f1f3d;
  --gold: #c9a961;
  --gold-deep: #a68545;
  --ink: #0f1f3d;
  --muted: #5c6778;
  --line: #e5e2da;
  --soft: #f1eee6;
  --white: #ffffff;
  --danger: #8a3b32;
  --ok: #24532a;
  --header: 76px;
  --shadow: 0 16px 40px rgba(15, 31, 61, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
::selection { background: #efe4cc; color: var(--navy); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: #fff;
  padding: 8px 12px;
}
.skip:focus { top: 12px; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}
.narrow { width: min(760px, 100%); }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 248, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo i { width: 3px; height: 18px; background: var(--gold); display: block; flex: 0 0 3px; }
.logo.light { color: #fff; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a.active, .nav a[aria-current="page"] { color: var(--gold-deep); }
.nav form { margin: 0; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #18315f; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-small { min-height: 40px; padding: 0 12px; font-size: 14px; }
.btn-danger { border-color: #e4c7c2; color: var(--danger); background: #fff; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hero { padding: 28px 0 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #8a8172;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow i { width: 36px; height: 1px; background: var(--gold); display: block; flex: 0 0 36px; }
.hero h1, .page-title {
  margin: 18px 0 18px;
  font-size: clamp(38px, 4.6vw, 62px);
  color: var(--navy);
}
.hero h1 em, .page-title em, .gold { font-style: normal; color: var(--gold); }
.lead { max-width: 480px; color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-width: 280px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 540px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-stats strong { display: block; font-size: 20px; font-weight: 600; }
.hero-stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.hero-photo { position: relative; min-width: 0; }
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.hero-note {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: min(230px, calc(100% - 40px));
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(15, 31, 61, 0.12);
}
.hero-note strong { display: block; font-size: 14px; line-height: 1.35; }
.hero-note span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }

.section { padding: 92px 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-soft { background: var(--soft); }
.section h2 { font-size: clamp(32px, 4vw, 48px); max-width: 560px; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}
.section-head p, .intro { color: var(--muted); max-width: 520px; }
.section-dark .section-head p { color: #b8c2d4; justify-self: end; }

.service-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service {
  min-width: 0;
  min-height: 340px;
  padding: 12px 28px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service + .service { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.12); }
.service h3 { font-size: 22px; letter-spacing: -0.02em; }
.service p { color: #b7c0d0; font-size: 15px; }
.service .more { margin-top: auto; padding-top: 18px; }
.link-gold {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.link-gold:hover { color: #e3cb8d; }

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 169, 97, 0.75);
  color: var(--gold);
  flex: 0 0 56px;
}
.icon-circle svg { width: 22px; height: 22px; display: block; }
.icon-plain { border-color: transparent; background: #f4f1ea; color: var(--navy); }

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}
.why-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.why-item h3 { font-size: 20px; margin-bottom: 6px; }
.why-item p { color: var(--muted); }

.process-intro { max-width: 640px; margin-bottom: 32px; }
.process-intro p { margin-top: 14px; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step {
  background: #fff;
  min-height: 280px;
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(15, 31, 61, 0.04);
}
.step-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
.step-top b { color: var(--gold); font-size: 28px; font-weight: 600; line-height: 1; }
.step .icon-circle { width: 44px; height: 44px; flex-basis: 44px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

.section-head.stack, .stack-head { display: block; }
.stack-head p { margin-top: 12px; }
.count { color: var(--gold-deep); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid #e8e4dc;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: calc(100% - 24px); }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  background: #fff;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-dark { background: var(--navy); color: #fff; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.district { color: var(--gold-deep); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.card h3 { font-size: 20px; letter-spacing: -0.02em; }
.card h3 a:hover { color: var(--gold-deep); }
.meta { color: var(--muted); font-size: 14px; }
.prices { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.price { font-size: 18px; font-weight: 700; white-space: nowrap; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.card .btn { margin-top: auto; align-self: stretch; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
  margin: 22px 0 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 160px; }
.field-label { font-size: 13px; font-weight: 600; color: #3d4a5c; }
.filters-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 220px; }
.filters-actions .btn { flex: 1 1 120px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--navy); flex: 0 0 auto; }
input[type="file"] { width: 100%; padding: 10px 0; }
.field-error { color: var(--danger); font-size: 13px; }
.hint, .note { color: var(--muted); font-size: 14px; }
.result-line { margin: 8px 0 18px; color: var(--muted); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.crumbs a:hover { color: var(--navy); }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  grid-template-areas:
    "gallery side"
    "head side"
    "copy side";
  gap: 28px;
  align-items: start;
}
.property-gallery { grid-area: gallery; min-width: 0; }
.property-head { grid-area: head; min-width: 0; }
.property-copy { grid-area: copy; min-width: 0; }
.detail > .inquiry-card { grid-area: side; }
.gallery-main-wrap { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); position: relative; }
.gallery-main { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button {
  flex: 0 0 88px;
  width: 88px;
  height: 66px;
  padding: 0;
  border: 2px solid transparent;
  background: var(--soft);
  cursor: pointer;
}
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active { border-color: var(--gold); }
.property-copy { margin-top: 22px; }
.property-copy h1 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 10px; }
.address { color: var(--muted); overflow-wrap: anywhere; }
.address a { text-decoration: underline; text-underline-offset: 3px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 20px 0; }
.spec { background: #fff; border: 1px solid var(--line); padding: 12px 14px; min-width: 0; }
.spec b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.spec span { color: var(--muted); font-size: 13px; }
.prose { color: #334155; }
.prose p + p { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 14px; }
.inquiry-card {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
}
.inquiry-card h2 { font-size: 26px; margin-bottom: 8px; }
.form { display: grid; gap: 14px; position: relative; }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  min-width: 0;
}
.contact-link:hover { border-color: var(--navy); }
.contact-link strong { display: block; }
.contact-link em { display: block; font-style: normal; color: var(--muted); overflow-wrap: anywhere; }
.contact-link span:last-child { min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); padding: 22px; }
.panel h2, .panel h3 { margin-bottom: 8px; }

.footer { background: var(--navy); color: #d5dbe6; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 28px; }
.footer p { max-width: 420px; margin-top: 14px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #b8c2d4; }

.flash-wrap { padding-top: 18px; }
.alert { padding: 14px 16px; background: #f3f7f2; border: 1px solid #d5e4d2; color: var(--ok); }
.alert-error { background: #fbf4f2; border-color: #efd2cb; color: var(--danger); }
.page-bare main { min-height: calc(100vh - 76px); display: flex; align-items: center; padding: 32px 0 64px; }
.login-card { width: min(440px, 100%); margin: 0 auto; }
.login-card .btn { width: 100%; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}
.page-head h1 { font-size: clamp(30px, 4vw, 42px); }
.admin-main { padding-bottom: 72px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.thumb { width: 72px; height: 54px; object-fit: cover; background: var(--soft); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: #eef4ea; color: var(--ok); }
.pill-off { background: #f3f1ec; color: #6b7280; }
.pill-sample { background: #f8f1de; color: #7a6232; }
.admin-cards { display: none; }
.admin-card { background: #fff; border: 1px solid var(--line); padding: 14px; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
.admin-card img { width: 88px; height: 72px; object-fit: cover; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 14px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.35; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-check { width: 140px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.photo-check img { width: 140px; height: 96px; object-fit: cover; background: var(--soft); }
.empty { background: #fff; border: 1px dashed var(--line); padding: 28px 20px; color: var(--muted); }
.sample-note { margin-top: 16px; padding: 12px 14px; background: #f8f1de; color: #5c4a28; font-size: 14px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header { border-bottom-color: var(--line); }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    z-index: 30;
  }
  .nav.open { display: flex; }
  .nav a, .nav .btn, .nav form { width: 100%; }
  .nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid #eeeae3; }
  .nav .btn { margin-top: 8px; }
  .hero-grid, .section-head, .why-grid, .contact-grid, .detail, .footer-grid, .admin-form, .pay-grid {
    grid-template-columns: 1fr;
  }
  .section-dark .section-head p { justify-self: start; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .service { min-height: 0; padding: 24px 16px; }
  .service + .service { box-shadow: none; }
  .service:nth-child(even) { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.12); }
  .service:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .process-grid, .cards { grid-template-columns: 1fr 1fr; }
  .inquiry-card { position: static; }
  .detail {
    grid-template-areas:
      "gallery"
      "head"
      "side"
      "copy";
  }
  .hero-photo img { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .container { width: min(1160px, calc(100% - 32px)); }
  .section { padding: 64px 0; }
  .hero { padding: 18px 0 56px; }
  .hero-actions { max-width: none; }
  .service-list, .process-grid, .cards, .form-row { grid-template-columns: 1fr; }
  .service { box-shadow: none !important; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-left: 0; padding-right: 0; }
  .service:first-child { border-top: 0; }
  .hero-stats { grid-template-columns: 1fr; max-width: none; }
  .filters .field, .filters-actions { flex: 1 1 100%; }
  .table-wrap { display: none; }
  .admin-cards { display: grid; gap: 12px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn, .page-head .btn, .page-head form, .page-head form .btn { width: 100%; }
  .step { min-height: 0; }
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.mode-switch legend { grid-column: 1 / -1; padding: 0; }
.mode-switch label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.mode-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.mode-switch label:has(input:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.date-row input { min-width: 0; }
.quote { background: var(--soft); padding: 12px 14px; }
.quote .price { white-space: normal; }
.quote .price[hidden] { display: none; }
#booking { scroll-margin-top: 96px; }
.pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: start;
}
.pay-actions { display: flex; flex-direction: column; gap: 10px; }
.pay-actions .btn { width: 100%; }

@media (max-width: 380px) {
  .logo span { font-size: 14px; }
  .price { white-space: normal; }
  .date-row, .mode-switch { grid-template-columns: 1fr; }
}
