/* Project page styles are isolated to this page. */
.house-detail {
  --hd-bg: #0a0a0a;
  --hd-panel: #131313;
  --hd-line: rgba(255, 255, 255, 0.12);
  --hd-muted: rgba(255, 255, 255, 0.58);
  --hd-accent: #57a6de;
  --hd-cream: #f7f1e6;
  background: var(--hd-bg);
  color: #fff;
  padding: clamp(30px, 5vw, 76px) 24px 0;
  font-family: "Onest", sans-serif;
  min-height: 50vh;
}
.house-detail *,
.house-detail *::before,
.house-detail *::after {
  box-sizing: border-box;
}
.house-detail [hidden] {
  display: none !important;
}
.house-detail__container {
  width: min(1240px, 100%);
  margin: 0 auto;
}
.house-detail__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 18, 0.78);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
  margin-bottom: clamp(30px, 5vw, 68px);
  color: var(--hd-muted);
  font-size: 12px;
}
.house-detail__breadcrumbs a:link,
.house-detail__breadcrumbs a:visited {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.house-detail__breadcrumbs a:hover,
.house-detail__breadcrumbs a:focus-visible {
  color: var(--hd-accent);
}
.house-detail__breadcrumbs a:focus-visible {
  outline: 1px solid var(--hd-accent);
  outline-offset: 3px;
}
.house-detail__breadcrumbs a:active {
  color: #9fd5fb;
}
.house-detail__breadcrumbs span {
  overflow-wrap: anywhere;
}
.house-detail__breadcrumbs span:last-child {
  color: #fff;
}
.house-detail__loading {
  padding: 50px 0;
  color: var(--hd-muted);
}
.house-detail__not-found {
  padding: clamp(50px, 10vw, 130px) 0;
  max-width: 700px;
}
.house-detail__not-found h1 {
  font:
    500 clamp(32px, 6vw, 64px)/1.1 "Unbounded",
    sans-serif;
  letter-spacing: -0.04em;
  margin: 18px 0;
}
.house-detail__not-found p {
  color: var(--hd-muted);
  margin-bottom: 30px;
}
.house-detail__eyebrow {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font:
    500 10px/1.5 "JetBrains Mono",
    monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hd-accent);
}
.house-detail__eyebrow-num {
  color: rgba(255, 255, 255, 0.45);
}
.house-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}
.house-detail__hero-copy {
  padding: 16px 0;
}
.house-detail__title {
  margin: 24px 0 22px;
  max-width: 650px;
  font:
    500 clamp(36px, 5.2vw, 68px)/1.1 "Unbounded",
    sans-serif;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.house-detail__lead {
  max-width: 530px;
  margin: 0;
  color: var(--hd-muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.75;
}
.house-detail__hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}
.house-detail__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--hd-accent);
  background: var(--hd-accent);
  color: #07131c;
  font:
    500 11px/1.4 "JetBrains Mono",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.house-detail__button:hover {
  background: transparent;
  color: var(--hd-accent);
  transform: translateY(-2px);
}
.house-detail__button--outline {
  background: transparent;
  color: var(--hd-accent);
}
.house-detail__button--outline:hover {
  background: var(--hd-accent);
  color: #07131c;
}
.house-detail__text-link {
  color: rgba(255, 255, 255, 0.7);
  font:
    500 10px/1.5 "JetBrains Mono",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.house-detail__text-link:hover {
  color: var(--hd-accent);
}
.house-detail__hero-media {
  position: relative;
  min-height: clamp(300px, 42vw, 540px);
  background: #171717;
  overflow: hidden;
}
.house-detail__hero-media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.house-detail__hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.house-detail__hero-media.is-unavailable::before {
  content: "Изображение проекта временно недоступно";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--hd-muted);
  text-align: center;
}
.house-detail__hero-caption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 18px;
  color: #fff;
  font:
    500 10px "JetBrains Mono",
    monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.house-detail__overview {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  padding: 34px 0;
  margin-top: clamp(48px, 8vw, 100px);
  border-top: 1px solid var(--hd-line);
  border-bottom: 1px solid var(--hd-line);
}
.house-detail__overview-heading p {
  margin: 12px 0 0;
  font:
    400 14px "Onest",
    sans-serif;
  color: var(--hd-muted);
}
.house-detail__overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.house-detail__overview-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.house-detail__overview-item span {
  color: var(--hd-muted);
  font-size: 11px;
}
.house-detail__overview-item strong {
  font:
    500 clamp(14px, 1.4vw, 18px)/1.4 "Unbounded",
    sans-serif;
  overflow-wrap: anywhere;
}
.house-detail__section {
  padding: clamp(62px, 9vw, 116px) 0;
  border-bottom: 1px solid var(--hd-line);
}
.house-detail__section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 32px;
}
.house-detail__section-head h2,
.house-detail__description-copy h2,
.house-detail__plan-copy h2,
.house-detail__bottom-cta h2 {
  margin: 14px 0 0;
  font:
    500 clamp(28px, 4vw, 46px)/1.18 "Unbounded",
    sans-serif;
  letter-spacing: -0.04em;
}
.house-detail__section-head > p {
  max-width: 380px;
  margin: 0;
  color: var(--hd-muted);
  font-size: 13px;
  line-height: 1.7;
}
.house-detail__gallery-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--hd-muted);
  font:
    11px "JetBrains Mono",
    monospace;
}
.house-detail__gallery-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hd-line);
  background: transparent;
  color: #fff;
  font-size: 18px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.house-detail__gallery-controls button:hover:not(:disabled) {
  border-color: var(--hd-accent);
  color: var(--hd-accent);
}
.house-detail__gallery-controls button:disabled {
  opacity: 0.4;
}
.house-detail__gallery-item {
  display: block;
  position: relative;
  width: 100%;
  height: clamp(260px, 52vw, 620px);
  padding: 0;
  border: 0;
  background: var(--hd-panel);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  overflow: hidden;
}
.house-detail__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.house-detail__gallery-item span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
}
.house-detail__lightbox[hidden] {
  display: none !important;
}
.house-detail__lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(3, 5, 8, 0.94);
  color: #fff;
}
.house-detail__lightbox-panel {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(1280px, 100%);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 76px) 28px
    calc(env(safe-area-inset-bottom, 0px) + 32px);
}
.house-detail__lightbox-figure {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.house-detail__lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  object-fit: contain;
}
.house-detail__lightbox-caption {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font:
    11px/1.5 "JetBrains Mono",
    monospace;
  letter-spacing: 0.06em;
}
.house-detail__lightbox-close,
.house-detail__lightbox-arrow {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.45);
  color: #fff;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.house-detail__lightbox-close:hover,
.house-detail__lightbox-arrow:hover {
  color: var(--hd-accent);
  border-color: var(--hd-accent);
  background: rgba(10, 10, 10, 0.8);
}
.house-detail__lightbox-close {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 16px);
  z-index: 20001;
  width: 48px;
  height: 48px;
  font:
    300 30px/1 "Onest",
    sans-serif;
  background: rgba(10, 10, 10, 0.82);
}
.house-detail__lightbox-arrow {
  grid-row: 1;
  width: 48px;
  height: 48px;
  font:
    300 24px/1 "Onest",
    sans-serif;
}
.house-detail__lightbox-arrow--prev {
  grid-column: 1;
}
.house-detail__lightbox-arrow--next {
  grid-column: 3;
}
.house-detail__lightbox-count {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  color: var(--hd-accent);
  font:
    11px "JetBrains Mono",
    monospace;
  letter-spacing: 0.16em;
}
.house-detail__lightbox :focus-visible {
  outline: 2px solid var(--hd-accent);
  outline-offset: 4px;
}
.house-detail__description {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 50px;
}
.house-detail__section-index {
  display: block;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.997);
  font:
    500 clamp(30px, 5vw, 60px)/1 "Unbounded",
    sans-serif;
  letter-spacing: -0.06em;
}
.house-detail__description-copy {
  max-width: 760px;
}
.house-detail__description-copy h2 {
  margin-top: 0;
}
.house-detail__description-copy p {
  color: var(--hd-muted);
  font-size: 15px;
  line-height: 1.9;
}
.house-detail__specs-section {
  background: var(--hd-bg);
}
.house-detail__specs {
  border-top: 1px solid var(--hd-line);
}
.house-detail__spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--hd-line);
}
.house-detail__spec-row span {
  color: var(--hd-muted);
  font-size: 13px;
}
.house-detail__spec-row strong {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.house-detail__plan-section {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: center;
  gap: clamp(32px, 7vw, 95px);
}
.house-detail__plan-copy p {
  max-width: 360px;
  margin: 18px 0 28px;
  color: var(--hd-muted);
  font-size: 14px;
  line-height: 1.8;
}
.house-detail__plan-image {
  display: flex;
  min-height: 320px;
  position: relative;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #f5f5f3;
}
.house-detail__plan-image img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}
.house-detail__plan-image.is-unavailable::after {
  content: "Планировка доступна в PDF";
  padding: 24px;
  color: #171717;
}
.house-detail__plan-image > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 9px 12px;
  background: #0a0a0a;
  color: #fff;
  font-size: 11px;
}
.house-detail__plan-image > span b {
  margin-left: 10px;
  color: var(--hd-accent);
}
.house-detail__documents-section {
  padding-bottom: clamp(54px, 8vw, 100px);
}
.house-detail__document-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 34px;
}
.house-detail__document-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.house-detail__document-group {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid #303030;
  border-radius: 5px;
  background: #141414;
}
.house-detail__document-group h3 {
  margin: 0 0 15px;
  color: var(--hd-accent);
  font:
    500 11px/1.6 "JetBrains Mono",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.house-detail__document-group-mobile-title {
  display: none;
}
.house-detail__document-list {
  border-top: 1px solid var(--hd-line);
}
.house-detail__document {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hd-line);
}
.house-detail__document h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.house-detail__document p {
  margin: 6px 0 0;
  color: var(--hd-muted);
  font-size: 11px;
  line-height: 1.5;
}
.house-detail__document > a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 10px;
  color: var(--hd-accent);
  font:
    500 10px "JetBrains Mono",
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.house-detail__document > a:hover {
  color: #fff;
}
.house-detail__bottom-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: clamp(34px, 5vw, 64px);
  margin: clamp(56px, 8vw, 100px) 0 34px;
  background: #121212;
  border: 1px solid var(--hd-line);
}
.house-detail__bottom-cta h2 {
  font-size: clamp(24px, 3.4vw, 38px);
}
.house-detail__bottom-cta p {
  margin: 12px 0 0;
  color: var(--hd-muted);
  font-size: 13px;
  line-height: 1.7;
}
.house-detail__back-wrap {
  padding: 0 0 54px;
}
.house-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.68);
  font:
    500 10px "JetBrains Mono",
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.house-detail__back:hover {
  color: var(--hd-accent);
}
.house-detail__back span {
  font-size: 18px;
}
.house-detail :focus-visible {
  outline: 2px solid var(--hd-accent);
  outline-offset: 4px;
}

.house-pdf-viewer[hidden] {
  display: none !important;
}
.house-pdf-viewer {
  --hd-accent: #57a6de;
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: max(10px, env(safe-area-inset-top, 0px))
    max(10px, env(safe-area-inset-right, 0px))
    max(10px, env(safe-area-inset-bottom, 0px))
    max(10px, env(safe-area-inset-left, 0px));
  background: rgba(3, 5, 8, 0.92);
  color: #fff;
}
.house-pdf-viewer__panel {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(1180px, 100%);
  height: min(92vh, calc(100vh - 20px));
  height: min(92dvh, calc(100dvh - 20px));
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #101214;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}
.house-pdf-viewer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  padding: 12px 16px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.house-pdf-viewer__header h2 {
  min-width: 0;
  margin: 0;
  color: #fff;
  font:
    500 15px/1.4 "Onest",
    sans-serif;
  overflow-wrap: anywhere;
}
.house-pdf-viewer__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.9);
  color: #fff;
  cursor: pointer;
  font:
    300 30px/1 "Onest",
    sans-serif;
}
.house-pdf-viewer__close:hover,
.house-pdf-viewer__close:focus-visible {
  border-color: var(--hd-accent);
  color: var(--hd-accent);
}
.house-pdf-viewer__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
}
.house-pdf-viewer__actions .house-detail__button {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 9px;
}
.house-pdf-viewer__frame {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}
.house-pdf-viewer :focus-visible {
  outline: 2px solid var(--hd-accent);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .house-detail {
    padding-inline: 22px;
  }
  .house-detail__hero {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .house-detail__overview {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .house-detail__overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .house-detail__description {
    grid-template-columns: 0.55fr 1.45fr;
    gap: 30px;
  }
  .house-detail__plan-section {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 32px;
  }
}
@media (max-width: 640px) {
  .house-detail {
    padding: 26px 18px 0;
  }
  .house-detail__breadcrumbs {
    gap: 8px;
    margin-bottom: 32px;
    font-size: 11px;
  }
  .house-detail__hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .house-detail__hero-copy {
    padding: 0;
  }
  .house-detail__title {
    margin: 18px 0 16px;
    font-size: clamp(34px, 10vw, 48px);
  }
  .house-detail__hero-actions {
    gap: 18px;
    margin-top: 25px;
  }
  .house-detail__button {
    min-height: 50px;
    padding: 0 16px;
    font-size: 9px;
  }
  .house-detail__hero-media {
    min-height: 0;
    aspect-ratio: 1.35;
  }
  .house-detail__hero-media img {
    min-height: 0;
  }
  .house-detail__overview {
    margin-top: 48px;
    padding: 25px 0;
  }
  .house-detail__overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }
  .house-detail__overview-item strong {
    font-size: 14px;
  }
  .house-detail__section {
    padding: 58px 0;
  }
  .house-detail__section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .house-detail__section-head h2,
  .house-detail__description-copy h2,
  .house-detail__plan-copy h2 {
    font-size: clamp(27px, 8vw, 38px);
  }
  .house-detail__gallery-section .house-detail__section-head {
    flex-direction: row;
    align-items: end;
  }
  .house-detail__gallery-controls {
    gap: 7px;
  }
  .house-detail__gallery-controls button {
    width: 36px;
    height: 36px;
  }
  .house-detail__gallery-item {
    height: auto;
    aspect-ratio: 4/3;
  }
  .house-detail__lightbox-panel {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 4px;
    padding: calc(env(safe-area-inset-top, 0px) + 68px)
      calc(env(safe-area-inset-right, 0px) + 8px)
      calc(env(safe-area-inset-bottom, 0px) + 24px)
      calc(env(safe-area-inset-left, 0px) + 8px);
  }
  .house-detail__lightbox-image {
    max-height: calc(100vh - 160px);
    max-height: calc(100dvh - 160px);
  }
  .house-detail__lightbox-arrow {
    width: 38px;
    height: 44px;
    border-radius: 22px;
    font-size: 21px;
  }
  .house-detail__lightbox-close {
    width: 48px;
    height: 48px;
  }
  .house-detail__lightbox-caption {
    font-size: 9px;
  }
  .house-detail__description {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .house-detail__section-index {
    margin-top: 12px;
    font-size: 34px;
  }
  .house-detail__description-copy p {
    font-size: 14px;
  }
  .house-detail__spec-row {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 12px;
    padding: 15px 0;
  }
  .house-detail__spec-row span,
  .house-detail__spec-row strong {
    font-size: 12px;
  }
  .house-detail__plan-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .house-detail__plan-image {
    min-height: 230px;
    padding: 12px;
  }
  .house-detail__plan-image img {
    max-height: 380px;
  }
  .house-detail__document-groups {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .house-detail__document-column {
    gap: 30px;
  }
  .house-detail__document {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  .house-detail__document h4 {
    font-size: 13px;
  }
  .house-detail__document > a {
    padding: 8px 0;
  }
  .house-detail__bottom-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 25px 20px;
    margin-top: 48px;
  }
  .house-detail__bottom-cta h2 {
    font-size: 26px;
  }
  .house-pdf-viewer__panel {
    width: 100%;
    height: calc(
      100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) -
        20px
    );
    height: calc(
      100dvh - env(safe-area-inset-top, 0px) -
        env(safe-area-inset-bottom, 0px) - 20px
    );
  }
  .house-pdf-viewer__header {
    padding: 8px 10px 8px 12px;
  }
  .house-pdf-viewer__header h2 {
    font-size: 13px;
  }
  .house-pdf-viewer__actions {
    gap: 8px;
    padding: 8px 10px;
  }
  .house-pdf-viewer__actions .house-detail__button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 8px;
    letter-spacing: 0.05em;
  }
}
@media (max-width: 360px) {
  .house-detail {
    padding-inline: 15px;
  }
  .house-detail__hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .house-detail__gallery-section .house-detail__section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .house-detail__overview-grid {
    gap: 18px 10px;
  }
  .house-detail__overview-item span {
    font-size: 10px;
  }
  .house-detail__overview-item strong {
    font-size: 12px;
  }
}

/* Existing DoorHan NAEC header and footer treatment for this standalone page. */
:root {
  --bar-h: 60px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --accent: #57a6de;
  --bg-0: #0a0a0a;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding-top: var(--bar-h);
  background: #0a0a0a;
  color: #fff;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
body > .letterbox-top,
body > .nav,
body > .nav *,
body > .nav-mobile-overlay,
body > .nav-mobile-overlay *,
body > .footer,
body > .footer * {
  box-sizing: border-box;
}
body > .letterbox-top {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: var(--bar-h);
  background: #000;
  z-index: 50;
  pointer-events: none;
}
body > .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}
.nav-logo {
  display: block;
  height: 35px;
  width: auto;
}
.nav-menu-list {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-self: center;
  height: 100%;
}
.nav-menu-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-link {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  height: 100%;
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(50% - 16px);
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-messengers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}
.nav-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease);
}
.nav-messenger svg {
  width: 14px;
  height: 14px;
  display: block;
}
.nav-messenger:hover {
  color: var(--bg-0);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 18px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.nav-phone:hover {
  color: var(--bg-0);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.nav-phone-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
  transition: background 0.25s ease;
}
.nav-phone:hover .nav-phone-dot {
  background: var(--bg-0);
  animation: none;
}
.nav-menu-toggle {
  display: none;
  width: 30px;
  height: 24px;
  background: none;
  border: 0;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-menu-toggle span {
  display: block;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease);
}
.is-mobile-open .nav-menu-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.is-mobile-open .nav-menu-toggle span:nth-child(2) {
  opacity: 0;
}
.is-mobile-open .nav-menu-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-inner {
  padding: 40px;
  max-width: 480px;
  width: 100%;
}
.nav-mobile-link {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-mobile-link:hover {
  color: var(--accent);
}
.nav-mobile-link > span:first-child {
  font:
    11px "JetBrains Mono",
    monospace;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}
.nav-mobile-foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}
.nav-mobile-phone {
  font:
    400 22px "Unbounded",
    sans-serif;
  color: var(--accent);
  text-decoration: none;
}
.nav-mobile-messengers {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.65);
  font:
    11px "JetBrains Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.nav-mobile-messengers a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-mobile-messengers a:hover {
  color: var(--accent);
}
.footer {
  position: relative;
  padding: 100px 56px 80px;
  background: linear-gradient(180deg, #5a4e3f 0%, #4f4537 100%);
  color: rgba(245, 239, 230, 0.78);
  overflow: hidden;
}
.footer-bg-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.footer-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.1;
  mix-blend-mode: overlay;
}
.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 70px;
  border-bottom: 1px solid rgba(245, 239, 230, 0.1);
}
.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-logo {
  display: block;
  height: 34px;
  width: auto;
}
.footer-tagline {
  margin: 0;
  color: rgba(245, 239, 230, 0.65);
  font-size: 13px;
}
.footer-copy {
  margin: 22px 0 0;
  color: rgba(245, 239, 230, 0.4);
  font:
    10px "JetBrains Mono",
    monospace;
  letter-spacing: 0.18em;
}
.footer-col-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-link {
  color: rgba(245, 239, 230, 0.75);
  font-size: 13px;
}
.footer-link:hover {
  color: var(--accent);
}
.footer-col-contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-phone {
  color: #f5efe6;
  font:
    400 22px "Unbounded",
    sans-serif;
  letter-spacing: -0.02em;
}
.footer-phone:hover {
  color: var(--accent);
}
.footer-address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.footer-address strong {
  color: #f5efe6;
  font-weight: 500;
}
.footer-hours {
  display: flex;
  gap: 12px;
  font:
    10px "JetBrains Mono",
    monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-hours-label {
  color: rgba(245, 239, 230, 0.45);
}
.footer-hours-time {
  color: var(--accent);
}
.footer-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-messenger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(245, 239, 230, 0.18);
  border-radius: 100px;
  color: rgba(245, 239, 230, 0.7);
  font:
    9.5px "JetBrains Mono",
    monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-messenger svg {
  width: 13px;
  height: 13px;
}
.footer-messenger:hover {
  color: var(--bg-0);
  background: var(--accent);
  border-color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  color: rgba(245, 239, 230, 0.45);
  font:
    10px "JetBrains Mono",
    monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-bottom-link {
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-bottom-link:hover {
  color: var(--accent);
}
@media (max-width: 1180px) {
  .nav-messengers {
    display: none;
  }
}
@media (max-width: 1024px) {
  body > .nav {
    padding: 0 20px;
    grid-template-columns: auto 1fr auto;
  }
  .nav-logo {
    height: 30px;
  }
  .nav-menu-list {
    display: none;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-phone {
    height: 32px;
    padding: 0 14px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .nav-menu-toggle {
    display: flex;
  }
  .footer {
    padding: 70px 32px 50px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 640px) {
  :root {
    --bar-h: 54px;
  }
  body > .nav {
    padding: 0 16px;
  }
  .nav-logo {
    height: 24px;
  }
  .nav-phone .nav-phone-dot {
    display: none;
  }
  .nav-phone {
    height: 30px;
    padding: 0 12px;
    font-size: 9.5px;
    gap: 6px;
  }
  .nav-menu-toggle {
    width: 24px;
    height: 18px;
  }
  .footer {
    padding: 56px 20px 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

/* Match the typography reset used by the houses.htm header and footer. */
body > .nav,
body > .nav *,
body > .footer,
body > .footer * {
  font-family: "Wix Madefor Text", sans-serif;
}

@media (max-width: 768px) {
  .house-detail__documents-section {
    padding-bottom: 100px;
  }
  .house-detail__document-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .house-detail__document-column {
    gap: 20px;
  }
  .house-detail__document-group h3 {
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  .house-detail__document-group-title {
    display: none;
  }
  .house-detail__document-group-mobile-title {
    display: inline;
  }
  .house-detail__document-list {
    min-width: 0;
  }
  .house-detail__document {
    min-width: 0;
    gap: 8px;
  }
  .house-detail__document > div {
    min-width: 0;
    max-width: 100%;
  }
  .house-detail__document h4,
  .house-detail__document p {
    overflow-wrap: anywhere;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .house-detail__document-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .house-detail__document-column {
    display: contents;
  }
}
