:root {
  color-scheme: dark;
  font-family: "Manrope", sans-serif;
  color: #f7f2e9;
  background: #06172b;
}

* { box-sizing: border-box; }
body { margin: 0; background: #06172b; }
body:has(.viewing-dialog[open]) { overflow: hidden; }
a { color: inherit; }

.detail-header {
  min-height: 92px;
  padding: 18px clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(222, 185, 104, .25);
}

.detail-brand img { width: 116px; display: block; }
.back-link, .detail-phone { text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.back-link { color: #deb968; }

.detail-page { width: min(1500px, 100%); margin: 0 auto; }
.detail-hero { position: relative; min-height: 700px; overflow: hidden; }
.detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 16, 31, .92), rgba(3, 16, 31, .2) 70%), linear-gradient(0deg, rgba(3, 16, 31, .65), transparent 50%); }
.detail-hero-content { position: absolute; left: clamp(24px, 7vw, 110px); bottom: clamp(44px, 8vw, 110px); width: min(800px, calc(100% - 48px)); }
.detail-hero-content > span { display: inline-block; padding: 12px 22px; border: 1px solid #deb968; border-radius: 999px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.detail-hero-content p, .detail-kicker { color: #deb968; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.detail-hero-content h1 { margin: 14px 0 24px; font: 600 clamp(44px, 6vw, 90px)/1.02 "Playfair Display", serif; }
.detail-hero-content > strong { font: 500 clamp(32px, 4vw, 58px)/1 "Playfair Display", serif; color: #f2cb78; }

.detail-content { display: grid; grid-template-columns: 1.6fr .8fr; gap: clamp(50px, 8vw, 130px); padding: clamp(70px, 9vw, 140px) clamp(24px, 7vw, 110px); }
.detail-copy h2 { margin: 18px 0 30px; font: 500 clamp(30px, 4vw, 54px)/1.2 "Playfair Display", serif; }
.detail-description { color: #b8c4d2; font-size: 18px; line-height: 1.8; }
.detail-facts { border: 1px solid rgba(222, 185, 104, .3); padding: 30px; align-self: start; }
.detail-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.detail-facts span { color: #9baabc; }
.detail-facts .detail-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; padding: 0; border: 0; }
.detail-actions button,
.detail-actions a { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; text-align: center; text-decoration: none; white-space: nowrap; font: 800 14px/1 "Manrope", sans-serif; cursor: pointer; }
.detail-actions img { width: 18px; height: 18px; }
.detail-call-button { border: 1px solid #deb968; color: #06172b; background: linear-gradient(135deg, #e7ca8b, #c9a45c); }
.detail-call-button img { filter: brightness(0) saturate(100%) invert(8%) sepia(30%) saturate(1890%) hue-rotate(174deg) brightness(91%) contrast(103%); }
.detail-telegram-button { border: 1px solid #deb968; color: #edcf8b; background: transparent; }
.detail-telegram-button img { filter: invert(84%) sepia(36%) saturate(625%) hue-rotate(356deg) brightness(94%); }

.viewing-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 188, 111, .45);
  border-radius: 28px;
  color: #f7f2e9;
  background: radial-gradient(circle at 100% 0, rgba(207, 164, 79, .2), transparent 35%), #071a31;
  box-shadow: 0 45px 110px rgba(0, 0, 0, .65);
}
.viewing-dialog::backdrop { background: rgba(1, 8, 18, .78); backdrop-filter: blur(8px); }
.viewing-close { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #edcf8b; background: transparent; cursor: pointer; font-size: 26px; }
.viewing-intro { padding: 42px 44px 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.viewing-intro p { margin: 0 0 10px; color: #deb968; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.viewing-intro h2 { margin: 0 0 12px; font: 500 42px/1.05 "Playfair Display", serif; }
.viewing-property-name { color: #aeb9c8; font-size: 14px; }
.viewing-form { display: grid; gap: 18px; padding: 30px 44px 40px; }
.viewing-form label { display: grid; gap: 8px; }
.viewing-form label > span { color: #c9d1dc; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.viewing-form small { color: #748398; text-transform: none; }
.viewing-form input,
.viewing-form textarea { width: 100%; padding: 14px 15px; border: 1px solid rgba(231,202,139,.22); border-radius: 10px; outline: none; color: #f8f6ef; background: rgba(255,255,255,.045); resize: vertical; }
.viewing-form input:focus,
.viewing-form textarea:focus { border-color: #deb968; }
.viewing-submit { min-height: 54px; border: 0; color: #07182e; background: linear-gradient(135deg, #e7ca8b, #c9a45c); cursor: pointer; font-weight: 800; }
.viewing-submit:disabled { cursor: wait; opacity: .7; }
.viewing-status { min-height: 20px; margin: 0; font-size: 13px; line-height: 1.5; }
.viewing-status.is-success { color: #a7dfb1; }
.viewing-status.is-error { color: #ffb1a8; }
.viewing-honeypot { position: absolute; left: -9999px; }

.detail-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 0 clamp(24px, 4vw, 64px) 80px; }
.detail-gallery figure { margin: 0; min-height: 480px; overflow: hidden; background: #0c223b; }
.detail-gallery .gallery-wide { grid-column: 1 / -1; min-height: 720px; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.detail-gallery figure:hover img { transform: scale(1.02); }

.detail-loading, .detail-error { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 16px; padding: 40px; }
.detail-error strong { font: 500 44px "Playfair Display", serif; }
.detail-error a { color: #deb968; }

@media (max-width: 800px) {
  .detail-phone { display: none; }
  .detail-header { min-height: 76px; }
  .detail-hero { min-height: 620px; }
  .detail-content { grid-template-columns: 1fr; }
  .detail-facts .detail-actions { grid-template-columns: 1fr; }
  .viewing-intro { padding: 38px 24px 24px; }
  .viewing-intro h2 { font-size: 34px; }
  .viewing-form { padding: 24px; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-gallery .gallery-wide { grid-column: auto; min-height: 480px; }
  .detail-gallery figure { min-height: 420px; }
}
