.house-atlas {
  --housebook-paper: #f8f4ec;
  --housebook-ink: #2e241f;
  --housebook-clay: #944c32;
  --housebook-line: #cdbeb0;
  --housebook-muted: #64574e;
  padding-block: clamp(52px, 7.5vw, 124px);
  color: var(--housebook-ink);
  background: var(--housebook-paper);
  font-family: var(--body, Manrope, Arial, sans-serif);
}
.housebook-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 32px;
  margin-bottom: clamp(22px, 3vw, 42px);
}
.housebook-heading h2 {
  margin: 0;
  font: 520 clamp(40px, 5.7vw, 88px)/1.06 var(--body, Manrope, Arial, sans-serif);
  letter-spacing: -.062em;
  text-wrap: balance;
}
.housebook-jump, .housebook-plan {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  gap: 11px;
  color: var(--housebook-clay);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}
.housebook-jump { color: var(--housebook-ink); text-decoration: underline; text-underline-offset: 5px; }
.housebook-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.65vw, 32px); }
.housebook-card { display: flex; flex-direction: column; min-width: 0; scroll-margin-block-start: 86px; }
.housebook-card:target .housebook-card-heading h3 { text-decoration: underline; text-decoration-color: var(--housebook-clay); text-underline-offset: .19em; }
.housebook-picture {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/4.3;
  overflow: hidden;
  background: #dfd5c8;
}
.housebook-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}
.housebook-card[data-housebook-house="solnechny"] .housebook-picture img { object-position: 52% 50%; }
.housebook-card[data-housebook-house="nebesny"] .housebook-picture img { object-position: 57% 50%; }
.housebook-enlarge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--housebook-ink);
  background: #f8f4ecf2;
  font: 500 1.1rem/1 var(--body, Manrope, Arial, sans-serif);
}
.housebook-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 16px;
}
.housebook-card-heading h3 {
  margin: 0;
  color: inherit;
  font: 560 clamp(22px, 2.1vw, 37px)/1.14 var(--body, Manrope, Arial, sans-serif);
  letter-spacing: -.045em;
}
.housebook-card-heading > span { color: var(--housebook-ink); font-size: .93rem; font-weight: 650; white-space: nowrap; }
.housebook-card-specs {
  margin: 9px 0 5px;
  color: var(--housebook-muted);
  font-size: .89rem;
  line-height: 1.55;
}
.housebook-card-specs > span { margin-inline: 2px; }
.housebook-plan { margin-top: auto; }
.housebook-book {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #ad9684;
  border-radius: 3px;
  color: var(--housebook-ink);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.35;
}
.housebook-book:is(:hover, :focus-visible) { background: #ede3d6; border-color: var(--housebook-clay); }
.housebook-note { margin: 12px 0 0; color: var(--housebook-muted); font-size: .78rem; line-height: 1.5; }
.housebook-disclosure {
  min-width: 0;
  border-top: 1px solid var(--housebook-line);
  scroll-margin-block-start: 84px;
}
.housebook-disclosure:first-of-type { margin-top: clamp(27px, 3vw, 56px); }
.housebook-disclosure:last-of-type { border-bottom: 1px solid var(--housebook-line); }
.housebook-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font: 580 clamp(18px, 1.65vw, 27px)/1.35 var(--body, Manrope, Arial, sans-serif);
  letter-spacing: -.03em;
}
.housebook-disclosure > summary::-webkit-details-marker { display: none; }
.housebook-disclosure > summary i {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
}
.housebook-disclosure > summary i::before, .housebook-disclosure > summary i::after {
  position: absolute;
  content: "";
  left: 4px;
  top: 11px;
  width: 16px;
  height: 2px;
  background: var(--housebook-clay);
}
.housebook-disclosure > summary i::after { transform: rotate(90deg); }
.housebook-disclosure[open] > summary i::after { display: none; }
.housebook-comparison { padding: 0 0 21px; }
.housebook-pair { display: none; }
.housebook-table table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font: 500 .95rem/1.45 var(--body, Manrope, Arial, sans-serif);
}
.housebook-table th, .housebook-table td {
  border-bottom: 1px solid var(--housebook-line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.housebook-table thead th { background: #ede3d6; color: var(--housebook-ink); font-size: .96rem; font-weight: 700; }
.housebook-table tbody th { font-weight: 600; color: var(--housebook-muted); }
.housebook-table td { font-variant-numeric: tabular-nums; }
.housebook-table tr:has(a, button) td { padding-block: 0; }
.housebook-table a, .housebook-table button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--housebook-clay);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.house-atlas :focus-visible {
  outline: 3px solid var(--housebook-clay);
  outline-offset: 3px;
}
.house-atlas house-finder {
  --hf-dark: #2e241f;
  --hf-forest: #382a24;
  --hf-lime: #f2c7a6;
  --hf-paper: #f8f4ec;
  --hf-muted: #dfc5ab;
  margin-bottom: 20px;
}
.house-atlas house-finder .hf-heading, .house-atlas house-finder .hf-card h4 { font-style: normal; }
.house-atlas house-finder .hf-choice { border-color: #887669; }
.house-atlas house-finder .hf-card-body > p { color: var(--housebook-muted); }
.house-atlas house-finder .hf-facade { background: #e5dacd; }
.house-atlas house-finder .hf-picture-caption { background: #382a24e8; }
@media (hover: hover) {
  .housebook-picture:hover .housebook-enlarge, .housebook-picture:focus-visible .housebook-enlarge { color: #fff; background: var(--housebook-clay); }
  .housebook-plan:hover, .housebook-disclosure > summary:hover { color: var(--housebook-clay); text-decoration: underline; text-underline-offset: 4px; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .housebook-picture img { transition: transform .32s ease-out; }
  .housebook-picture:hover img { transform: scale(1.025); }
}
@media (max-width: 1040px) {
  .housebook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(14px, 2.8vw, 28px); }
  .housebook-picture { aspect-ratio: 1.42; }
  .housebook-card-heading h3 { font-size: clamp(24px, 3.8vw, 34px); }
}
@media (max-width: 740px) {
  .housebook-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
  .housebook-pair label { display: grid; min-width: 0; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--housebook-muted); }
  .housebook-pair select { width: 100%; min-height: 44px; padding: 6px; border: 1px solid var(--housebook-line); border-radius: 0; color: var(--housebook-ink); background: var(--housebook-paper); font: inherit; }
  .housebook-table table, .housebook-table thead th { font-size: .83rem; }
  .housebook-table th, .housebook-table td { padding-inline: 5px; }
  .housebook-table tr > :first-child { width: 29%; }
}
@media (max-width: 560px) {
  .housebook-grid { grid-template-columns: 1fr; row-gap: 25px; }
  .housebook-picture { aspect-ratio: 1.52; }
  .housebook-card-heading { margin-top: 12px; }
  .housebook-heading { align-items: center; }
}
