:root {
  --navy: #0f2a47;
  --navy-2: #173a60;
  --gold: #c8a24a;
  --gold-soft: #f3ead3;
  --ink: #1d2733;
  --muted: #5d6b7a;
  --line: #dfe4ea;
  --bg: #f6f7f9;
  --card: #ffffff;
  --danger: #b3261e;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 42, 71, .06), 0 8px 24px rgba(15, 42, 71, .06);
  --serif: "PT Serif", Georgia, serif;
  --sans: "PT Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--navy-2); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.25; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.topbar__inner {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; flex: 1; }
.brand__logo { width: 52px; height: 52px; flex: none; background: #fff; border-radius: 12px; padding: 3px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; flex: 1; container-type: inline-size; }
.brand__text small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.brand__text strong { font-family: var(--serif); font-size: min(18px, 5.4cqi); letter-spacing: .02em; white-space: nowrap; }
.lang { margin-left: auto; display: flex; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; overflow: hidden; flex: none; }
.lang button { background: none; border: 0; color: #fff; padding: 6px 12px; font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--navy); }
.burger { display: none; background: none; border: 0; padding: 8px; flex: none; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* ---------- Layout ---------- */
.layout {
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 24px 20px 48px;
  align-items: start;
}
.scrim { display: none; }

/* ---------- Side nav ---------- */
.sidenav {
  position: sticky; top: 90px;
  max-height: calc(100vh - 110px); overflow-y: auto;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px;
}
.sidenav a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.35;
}
.sidenav a:hover { background: var(--bg); }
.sidenav .nav-lang { display: none; margin: 0 4px 12px; border-color: var(--line); width: max-content; }
.sidenav .nav-lang button { color: var(--navy); padding: 8px 16px; }
.sidenav a.active { background: var(--navy); color: #fff; }
.sidenav .nav-group { margin: 6px 0; }
.sidenav .nav-group__label {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: 10px 12px 4px;
}
.sidenav .nav-sub a { padding-left: 22px; position: relative; }
.sidenav .nav-sub a::before {
  content: ""; position: absolute; left: 11px; top: 50%; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold); transform: translateY(-50%);
}

/* ---------- Main ---------- */
.main { min-width: 0; outline: none; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 32px; margin-bottom: 24px;
}
.card > h1:first-child, .card > h2:first-child { margin-top: 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.page-title { overflow-wrap: break-word; font-size: clamp(24px, 3vw, 32px); margin: 0 0 16px; }
.lead { font-size: 17px; color: var(--muted); }
.main h3 { font-size: 19px; margin: 28px 0 10px; padding-top: 4px; }
.main ul { padding-left: 20px; }
.main li { margin: 4px 0; }
.main li::marker { color: var(--gold); }
.callout {
  margin: 24px 0 0; padding: 16px 20px; border-left: 4px solid var(--gold);
  background: var(--gold-soft); border-radius: 0 8px 8px 0;
  font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--navy);
}
.note { color: var(--muted); font-size: 14.5px; }
.fallback-note { font-size: 13px; color: var(--muted); background: var(--bg); padding: 6px 10px; border-radius: 6px; display: inline-block; margin-bottom: 12px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 36px; margin-bottom: 24px;
}
.hero > div { position: relative; z-index: 1; }
.hero h1 { overflow-wrap: anywhere; color: #fff; font-size: clamp(22px, 3vw, 36px); margin: 0 0 12px; }
.hero .eyebrow { color: var(--gold); }
.hero__brand { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.hero__brand > div { flex: 1; min-width: 0; container-type: inline-size; }
.hero__brand h1 { margin: 0; white-space: nowrap; overflow-wrap: normal; font-size: clamp(12px, 5.4cqi, 40px); letter-spacing: .01em; }
.hero__logo { width: 96px; height: 96px; flex: none; background: #fff; border-radius: 50%; padding: 6px; object-fit: contain; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
@media (max-width: 860px) { .hero__logo { display: none; } }
.hero p { color: rgba(255,255,255,.85); }
.hero__tagline { max-width: 58ch; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; font-weight: 700; line-height: 1.55; }
.hero__art { position: absolute; right: -10px; bottom: -14px; width: 340px; color: var(--gold); opacity: .55; pointer-events: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; transition: .15s;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #d8b45d; }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--outline:hover { background: var(--bg); }
.btn--block { width: 100%; }

/* Services grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.svc {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px; border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: var(--ink); background: #fff; transition: .15s;
}
.svc:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.svc__icon { width: 36px; height: 36px; border-radius: 8px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }
.svc strong { font-family: var(--serif); color: var(--navy); line-height: 1.3; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat { background: var(--bg); border-radius: 10px; padding: 14px 16px; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; color: var(--navy); }
.stat span { font-size: 13.5px; color: var(--muted); }

/* Accordion */
details.acc { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; background: #fff; }
details.acc > summary {
  list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative;
  font-weight: 700; color: var(--navy);
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--gold); line-height: 1;
}
details.acc[open] > summary::after { content: "−"; }
details.acc > div { padding: 0 18px 14px; }

/* Listings (realty) */
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.listing { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.listing__img { height: 120px; background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: var(--gold); display: grid; place-items: center; }
.listing__img svg { width: 56px; height: 56px; }
.listing__body { padding: 12px 14px; font-size: 14px; }
.listing__body strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 15.5px; }
.tag { display: inline-block; font-size: 12px; background: var(--gold-soft); color: var(--navy); padding: 2px 8px; border-radius: 999px; margin-top: 6px; }

/* Contacts */
.contact-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--bg); border-radius: 10px; }
.contact-list .ico { width: 38px; height: 38px; flex: none; border-radius: 8px; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.map { margin-top: 18px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- Aside ---------- */
.aside { position: sticky; top: 90px; display: grid; gap: 16px; max-height: calc(100vh - 110px); overflow-y: auto; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border-top: 4px solid var(--gold); }
.panel h3 { margin: 0 0 12px; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }
.panel p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.panel .btn + .btn { margin-top: 8px; }
.hot { list-style: none; padding: 0; margin: 0 0 12px; }
.hot li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.hot li:last-child { border-bottom: 0; }
.urgent { color: var(--danger); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 12px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.form legend {
  width: 100%; font-weight: 700; color: var(--navy); background: var(--bg);
  padding: 6px 10px; border-radius: 6px; margin-bottom: 4px; font-size: 14px;
}
.field { display: grid; gap: 4px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 12.5px; display: none; }
.field.invalid .err { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.check input { margin-top: 4px; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(10, 22, 38, .55);
  display: grid; place-items: center; padding: 16px;
}
.modal[hidden] { display: none; }
.modal__box {
  position: relative; background: #fff; border-radius: var(--radius);
  width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 28px 32px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal__box h2 { margin-top: 0; padding-right: 30px; }
.modal__close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--bg); font-size: 22px; line-height: 1; color: var(--navy);
}
.contract h4 { margin: 20px 0 6px; font-size: 16px; }
.contract p { margin: 6px 0; font-size: 14.5px; }
.contract .blank { display: inline-block; min-width: 160px; border-bottom: 1px solid var(--ink); }
.req-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.req-table td { border: 1px solid var(--line); padding: 10px; vertical-align: top; width: 50%; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 60; transition: transform .3s;
  max-width: calc(100% - 32px); font-size: 14.5px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .3s, opacity .3s, visibility .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.8); border-top: 3px solid var(--gold); }
.footer__inner { max-width: 1360px; margin: 0 auto; padding: 28px 20px; text-align: center; }
.footer a { color: #fff; }
.footer__slogan { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 20px; color: var(--gold); margin: 0 0 8px; }
.footer__meta, .footer__copy { margin: 4px 0; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 250px minmax(0, 1fr); }
  .aside { grid-column: 2; position: static; max-height: none; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .layout { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 40px; gap: 16px; }
  .aside { grid-column: 1; }
  .sidenav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); max-height: none;
    border-radius: 0; z-index: 40; transform: translateX(-105%); transition: transform .25s;
    padding-top: 20px;
  }
  body.nav-open .sidenav { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(10,22,38,.45); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .hero { padding: 28px 22px; }
  .hero__art { width: 220px; opacity: .3; }
  .card { padding: 22px 18px; }
  .brand__text small { display: none; }
  .stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .modal__box { padding: 22px 18px; }
}
@media (max-width: 560px) {
  .topbar__inner { gap: 10px; padding: 10px 16px; }
  .topbar .lang { display: none; }
  .brand { gap: 10px; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__text strong { font-size: min(18px, 5.6cqi); }
  .sidenav .nav-lang { display: flex; }
}
@media (max-width: 420px) {
  .lang button { padding: 6px 9px; }
}
