:root {
  color-scheme: light;
  --ink: #202a30;
  --muted: #4b5a60;
  --line: #dce2e5;
  --accent: #16526b;
  --surface: #f0f5f7;
  --page: 76rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: white;
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #247a9e; outline-offset: 3px; }
img { display: block; width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button, .button {
  background: var(--accent); color: white; border: 1px solid var(--accent); border-radius: .35rem;
  min-height: 2.85rem; padding: .65rem 1rem; text-decoration: none; font-weight: 650; cursor: pointer;
}
button:hover, .button:hover { background: #103f52; }
[hidden] { display: none !important; }
p { margin: 0 0 .85rem; }
h1, h2 { margin: 0 0 .75rem; line-height: 1.09; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4.65rem); font-weight: 650; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 650; }
.page { width: min(var(--page), calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: -5rem; background: white; padding: .75rem; }
.skip:focus { top: .5rem; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner { min-height: 4.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.045em; font-size: 1.3rem; }
nav { display: flex; gap: clamp(.65rem, 2vw, 1.6rem); flex-wrap: wrap; }
nav a { font-size: .925rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.preview-strip { font-size: .9rem; color: var(--muted); text-align: center; padding: .3rem; background: var(--surface); }
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: stretch; margin-top: 1.65rem; }
.hero-image { display: block; overflow: hidden; min-height: 30rem; border-radius: .55rem 0 0 .55rem; }
.hero-image img { height: 100%; object-fit: cover; }
.hero-info { display: flex; flex-direction: column; justify-content: center; align-items: start; padding: clamp(1.75rem, 4vw, 4rem); background: var(--surface); border-radius: 0 .55rem .55rem 0; container-type: inline-size; }
.hero-info h1 { width: 100%; font-size: clamp(2rem, 12cqi, 4.35rem); overflow-wrap: anywhere; }
.area { color: var(--accent); font-weight: 650; }
.price { margin-top: .45rem; margin-bottom: .15rem; font-size: 1.65rem; font-weight: 650; }
.hero-facts { color: var(--muted); margin-bottom: 1.5rem; }
.hero-facts span { margin-inline: .35rem; }
.section { margin-block: clamp(2.65rem, 6vw, 5.2rem); scroll-margin-top: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: .75rem; }
.gallery a { overflow: hidden; border-radius: .35rem; }
.gallery img { aspect-ratio: 4 / 3; height: 100%; object-fit: cover; }
.gallery img:hover { opacity: .9; }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; position: fixed; inset: 0; padding: 0; margin: 0; border: 0; background: #141a1e; color: white; }
.lightbox figure { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: center; margin: 0; padding: 3.6rem min(10vw, 4rem) 1.25rem; }
.lightbox img { height: 100%; object-fit: contain; touch-action: pan-y; }
.lightbox figcaption { text-align: center; padding-top: .85rem; }
.lightbox button { position: absolute; border-color: #ffffff60; background: #19242bd9; font-size: 1.6rem; padding: 0; width: 2.9rem; touch-action: manipulation; }
.gallery-close { right: 1rem; top: .8rem; }
.gallery-prev { top: 48%; left: .65rem; }
.gallery-next { top: 48%; right: .65rem; }
.details { border-top: 1px solid var(--line); padding-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 6vw, 5rem); }
.details p { max-width: 40rem; }
.facts { width: 100%; border-collapse: collapse; }
.facts caption { font-weight: 650; font-size: 1.25rem; text-align: left; padding-bottom: .5rem; }
.facts th, .facts td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: .55rem .5rem .55rem 0; }
.facts th { width: 58%; color: var(--muted); font-weight: 500; }
.zone { margin: 0; }
.zone img { max-height: 26rem; object-fit: contain; object-position: center; background: var(--surface); border-radius: .35rem; }
.zone figcaption { margin-top: .55rem; font-size: .9rem; color: var(--muted); }
.action-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; background: var(--surface); padding: clamp(1.25rem, 4vw, 3rem); border-radius: .55rem; }
form label { display: block; font-weight: 650; margin-bottom: .35rem; }
input, textarea { border: 1px solid #86979e; border-radius: .35rem; padding: .6rem .65rem; min-width: 0; width: 100%; color: var(--ink); background: white; }
.request-row { display: flex; gap: .5rem; }
.request-row button { flex-shrink: 0; }
.small { font-size: .875rem; margin-top: .65rem; }
.contact p { margin-bottom: .35rem; }
.phone { font-variant-numeric: tabular-nums; font-size: 1.35rem; font-weight: 650; }
.footer { border-top: 1px solid var(--line); }
.privacy { max-width: 45rem; }
.privacy h2 { margin-top: 1.65rem; }
@media (max-width: 760px) {
  .page { width: min(var(--page), calc(100% - 2rem)); }
  .hero, .details, .action-panel { grid-template-columns: 1fr; }
  .hero { margin-top: 1rem; }
  .hero-image { min-height: 0; border-radius: .45rem .45rem 0 0; }
  .hero-image img { aspect-ratio: 4 / 3; }
  .hero-info { border-radius: 0 0 .45rem .45rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 390px) {
  .masthead-inner { align-items: start; padding-block: .6rem; gap: .5rem; }
  .request-row { flex-direction: column; }
}

.chat-page { max-width: 46rem; margin-inline: auto; }
.chat-page select { font: inherit; border: 1px solid #86979e; border-radius: .35rem; padding: .6rem; width: 100%; color: var(--ink); background: white; }
.chat-form { margin-block: 1.35rem; }
.chat-messages { list-style: none; padding: 0; display: grid; gap: .55rem; }
.chat-messages li { padding: .7rem 1rem; border-radius: .4rem; background: var(--surface); }
.chat-messages li:nth-child(odd) { background: white; border: 1px solid var(--line); margin-left: 1.5rem; }
.chat-messages span { color: var(--accent); font-size: .875rem; font-weight: 650; }
.chat-messages p { margin: .15rem 0 0; }
.chat-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.secondary { background: white; color: var(--accent); }
.secondary:hover { background: var(--surface); }

.preview-mail { display: grid; gap: .75rem; }
.preview-mail article { border: 1px solid var(--line); border-radius: .4rem; padding: 1rem; }
.preview-mail h2 { font-size: 1.25rem; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; }
