:root {
  --navy: #0b2e6b;
  --blue: #2d4fd6;
  --accent: #e8833a;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #16203a;
  --muted: #5a6582;
  --line: #e3e7f1;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(16, 32, 72, 0.06), 0 8px 24px rgba(16, 32, 72, 0.08);
  --hero: radial-gradient(120% 120% at 0% 0%, #4c6bff 0%, transparent 55%),
    radial-gradient(90% 90% at 100% 20%, #e8833a33 0%, transparent 60%),
    linear-gradient(160deg, #0b2e6b 0%, #18308f 55%, #2d4fd6 100%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #7b93ff;
    --bg: #0d1220;
    --surface: #161d31;
    --text: #e8ecf7;
    --muted: #a3acc4;
    --line: #26304a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--blue); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { background: var(--hero); color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.links { display: flex; gap: 6px; flex-wrap: wrap; }
.links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.links a:hover, .links a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }
.links a.lang { border: 1px solid rgba(255, 255, 255, 0.4); }

.hero { padding: 40px 0 64px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 800; }
.hero p { font-size: 19px; max-width: 620px; margin: 0; color: rgba(255, 255, 255, 0.88); }
.hero.small { padding: 24px 0 48px; }
.hero.small h1 { font-size: clamp(28px, 5vw, 40px); }

/* Content */
main { padding: 0 0 56px; }
.lift { margin-top: -32px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 20px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid .card { margin: 0; }

h2 { font-size: 22px; letter-spacing: -0.01em; margin: 0 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
.card > :last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 6px; }

.contact { list-style: none; padding: 0; margin: 0; }
.contact li { padding: 10px 0; border-top: 1px solid var(--line); }
.contact li:first-child { border-top: 0; }
.contact strong { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }

.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 999px; margin-top: 12px; }
@media (prefers-color-scheme: dark) { .btn { color: #0d1220; } }

.legal h2 { margin-top: 28px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.note { background: color-mix(in srgb, var(--blue) 10%, transparent); border-left: 4px solid var(--blue); border-radius: 12px; padding: 14px 18px; margin: 16px 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .card { padding: 22px; }
  .wrap { padding: 0 16px; }
}

/* Apartments */
.section-title { margin: 32px 0 14px; font-size: 24px; }
.photo { margin: 20px 0 0; }
.photo img, .teaser img { display: block; width: 100%; height: auto; border-radius: 14px; }
.teaser { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
.teaser img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 760px) { .teaser { grid-template-columns: 1.1fr 1fr; } }
.plan h3 { margin-top: 16px; }
.plan p { margin: 0; }
.plan-img { background: #fff; border-radius: 14px; padding: 12px; border: 1px solid var(--line); }
.plan-img img { display: block; width: 100%; height: 260px; object-fit: contain; }
.features { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.features li { padding-left: 28px; position: relative; }
.features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; }

/* Listing */
.listing { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .listing { grid-template-columns: 1.2fr 1fr; } }
.listing .cover { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.listing h2 { margin-bottom: 2px; }
.price { font-size: 18px; margin: 10px 0 14px; color: var(--muted); }
.price strong { font-size: 34px; color: var(--text); letter-spacing: -0.02em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 16px; }
.fact { background: color-mix(in srgb, var(--blue) 8%, transparent); border-radius: 12px; padding: 10px 6px; text-align: center; }
.fact strong { display: block; font-size: 20px; }
.fact span { font-size: 13px; color: var(--muted); }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin: 12px 0 24px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.25s ease; }
.gallery a:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

.jump { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; }
.jump a { flex: 1; text-align: center; text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: 999px; background: color-mix(in srgb, var(--blue) 10%, transparent); }
.listing { scroll-margin-top: 16px; margin-top: 12px; }
.price .ask { font-size: 22px; }
.gallery-note { margin: 4px 0 0; }
@media (max-width: 420px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* SMS consent form (printable) */
.consent-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.consent-head img { border-radius: 12px; border: 1px solid var(--line); }
.consent .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; margin: 4px 0 20px; }
.fields { display: flex; flex-wrap: wrap; gap: 18px 24px; margin: 18px 0; }
.line { flex: 1 1 100%; border-bottom: 1.5px solid var(--text); }
.line.half { flex: 1 1 260px; }
.line span { display: block; font-size: 13px; color: var(--muted); padding-bottom: 30px; }
.choice { flex: 1 1 100%; margin: 0; font-size: 15px; }
.fields + .fields, .agree { margin-top: 36px; }
.terms p { margin: 10px 0; }
.agree { display: flex; gap: 10px; font-weight: 600; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; }
.agree .box { font-size: 24px; line-height: 1; }
.small { font-size: 14px; }
.office { margin-top: 40px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; }
@media print {
  .top, footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11.5pt; line-height: 1.5; }
  @page { margin: 14mm; }
  .fields { margin: 10px 0; gap: 12px 24px; }
  .line span { padding-bottom: 22px; }
  .fields + .fields, .agree { margin-top: 20px; }
  .office { margin-top: 20px; }
  .consent h2 { margin-top: 4px; }
  main.lift { margin-top: 0; padding: 0; }
  .card { box-shadow: none; padding: 0; }
  .line { border-color: #000; }
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 20px; }
.actions .btn { margin: 0; }
