@font-face{font-family:Inter;src:url("fonts/inter-cyrillic.woff2") format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;src:url("fonts/inter-latin.woff2") format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"PT Serif";src:url("fonts/pt-serif-cyrillic.woff2") format("woff2");font-weight:400;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"PT Serif";src:url("fonts/pt-serif-latin.woff2") format("woff2");font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --paper-deep: #ebe7de;
  --ink: #16211c;
  --muted: #5b6660;
  --line: #dbd6cb;
  --line-strong: #bdb6a7;
  --green: #1d382f;
  --green-hover: #2a4b3f;
  --champagne: #dcc8a1;
  --display: "PT Serif", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; line-height: 1.45; background: var(--paper); }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
::selection { background: var(--champagne); color: var(--ink); }
img { display: block; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1392px, calc(100% - clamp(2rem, 7.6vw, 8rem))); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; left: 1rem; top: 1rem; z-index: 20; padding: .6rem 1rem; background: white; }
.js-control { display: none !important; }
.js .js-control { display: flex !important; }

/* Small uppercase labels share one voice across the site. */
.brand-name, .hero-date, .hero-counts span, .hero-caption, .image-tag, .card-caption > span,
.unit-facts dt, .crumbs, .album-meta, .switch-album, .footer {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* Header */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand, .all-link { display: inline-flex; align-items: center; }
.brand { gap: .8rem; }
.brand b { font-size: 1.42rem; font-weight: 650; letter-spacing: .16em; margin-right: -.16em; line-height: 1; }
.brand-mark { width: 24px; height: 26px; display: flex; align-items: flex-end; gap: 3px; flex: none; }
.brand-mark i { flex: 1; background: var(--green); }
.brand-mark i:nth-child(1) { height: 62%; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 80%; }
.brand-name { margin-left: .25rem; padding-left: 1rem; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: .66rem; line-height: 1.25; }
.all-link { min-height: 44px; font-size: .93rem; font-weight: 500; }
.all-link:hover { color: var(--green-hover); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Home: hero */
.hero { display: grid; grid-template-columns: 38fr 31fr 31fr; gap: 4px; height: clamp(400px, 34vw, 520px); margin-top: clamp(1.25rem, 2.6vw, 2.5rem); }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(1.75rem, 3.4vw, 3.5rem); background: var(--green); color: #fff; }
.hero-copy :focus-visible { outline-color: var(--champagne); }
.hero-date { display: flex; align-items: center; gap: .85rem; color: var(--champagne); font-size: .68rem; line-height: 1.2; letter-spacing: .2em; }
.hero-date::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { margin: auto 0 0; padding-top: 1.25rem; font: 400 clamp(2.9rem, 4.4vw, 4.6rem)/.98 var(--display); letter-spacing: -.02em; }
.hero-counts { align-self: stretch; display: flex; gap: clamp(1.5rem, 3vw, 2.75rem); margin-top: clamp(1.1rem, 1.8vw, 1.6rem); padding-top: clamp(.9rem, 1.4vw, 1.2rem); border-top: 1px solid rgb(255 255 255 / .16); }
.hero-counts span { display: grid; gap: .45rem; color: #c9d4cd; font-size: .64rem; line-height: 1.2; }
.hero-counts b { color: #fff; font: 400 clamp(1.7rem, 2.3vw, 2.15rem)/1 var(--display); letter-spacing: -.01em; text-transform: none; }
.hero-action { display: inline-flex; align-items: center; gap: .8rem; min-height: 46px; margin-top: clamp(1.1rem, 1.8vw, 1.6rem); padding: 0 1.3rem; border: 1px solid rgb(220 200 161 / .7); color: #f4ecdb; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: background-color .2s, color .2s; }
.hero-action::after { content: "↓"; font-size: .95rem; letter-spacing: 0; }
.hero-action:hover { background: var(--champagne); color: var(--ink); }
.hero-picture, .card-image, .frame { position: relative; overflow: hidden; background: var(--paper-deep); }
.hero-picture { display: block; min-width: 0; }
.hero-picture img, .card-image img, .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hero-room img { object-position: 50% 62%; }
.hero-tower img { object-position: center 47%; }
.hero-picture::after { content: ""; position: absolute; inset: 52% 0 0; background: linear-gradient(transparent, rgb(8 14 11 / .58)); pointer-events: none; }
.hero-caption { position: absolute; z-index: 1; left: clamp(.9rem, 1.6vw, 1.5rem); bottom: clamp(.9rem, 1.5vw, 1.4rem); color: #fff; font-size: .66rem; line-height: 1.2; }
@media (hover: hover) {
  .hero-picture:hover img, .album-card:hover .card-image img, .frame:hover img { transform: scale(1.03); }
}

/* Home: catalog */
.catalog-section { margin-top: clamp(3.5rem, 7vw, 6.5rem); scroll-margin-top: 1.5rem; }
.section-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; padding-bottom: 1.4rem; margin-bottom: clamp(1.6rem, 2.6vw, 2.4rem); border-bottom: 1px solid var(--line); }
.section-bar h2 { font: 400 clamp(2.2rem, 3.4vw, 3.4rem)/1.05 var(--display); letter-spacing: -.02em; }
.search-field { gap: .7rem; align-items: center; height: 46px; padding: 0 1rem; background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; }
.search-field:focus-within { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.search-field input { min-width: 0; width: 11rem; padding: .4rem 0; border: 0; background: transparent; outline: 0; font-size: .92rem; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-icon { width: 14px; height: 14px; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; margin: 0 3px 2px 0; flex: none; }
.search-icon::after { content: ""; position: absolute; left: 10px; top: 10px; width: 6px; border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.25rem, 3.6vw, 3.5rem) clamp(1rem, 2vw, 1.75rem); }
.album-card { display: block; min-width: 0; }
.card-image { aspect-ratio: 3 / 2; }
.card-image img { object-position: center 49%; }
.album-card[data-unit="173"] img { object-position: center 41%; }
.image-tag { position: absolute; left: .75rem; bottom: .75rem; padding: .44rem .62rem .42rem; background: rgb(245 243 238 / .94); color: var(--ink); font-size: .6rem; line-height: 1; letter-spacing: .14em; }
.card-empty { display: grid; place-content: center; justify-items: center; gap: .9rem; background: var(--paper-deep); color: #8c877c; }
.card-empty .brand-mark { width: 30px; height: 34px; gap: 4px; }
.card-empty .brand-mark i { background: #c7c0b1; }
.card-empty b { font: 400 1.55rem/1 var(--display); letter-spacing: -.01em; }
.card-caption { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-top: 1.05rem; }
.card-caption h3 { font: 400 clamp(1.22rem, 1.6vw, 1.46rem)/1.15 var(--display); letter-spacing: -.01em; transition: color .2s; }
.card-caption > span { flex: none; color: var(--muted); font-size: .6rem; line-height: 1.2; letter-spacing: .13em; }
.unit-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: .95rem 0 0; border-top: 1px solid var(--line); }
.unit-facts > div { display: grid; align-content: start; gap: .34rem; min-width: 0; padding: .8rem 0 0 .95rem; border-left: 1px solid var(--line); }
.unit-facts > div:first-child { padding-left: 0; border-left: 0; }
.unit-facts dt { color: var(--muted); font-size: .58rem; line-height: 1.2; letter-spacing: .14em; }
.unit-facts dd { margin: 0; font-size: 1.02rem; font-weight: 500; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .album-card:hover h3 { color: var(--green-hover); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}
.empty-state { padding: 2.4rem 0; color: var(--muted); }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: clamp(3rem, 6vw, 5rem); padding: 1.6rem 0 2.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .64rem; line-height: 1.3; }
.footer a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.footer a::after { content: "↑"; font-size: .85rem; letter-spacing: 0; }
.footer a:hover { color: var(--ink); }

/* Apartment album */
.album-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding: clamp(1.75rem, 3.6vw, 3.5rem) 0 clamp(1.6rem, 2.8vw, 2.4rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; margin-bottom: clamp(1.1rem, 2.2vw, 1.75rem); color: var(--muted); font-size: .64rem; line-height: 1.3; }
.crumbs a { display: inline-flex; align-items: center; min-height: 28px; color: var(--ink); }
.crumbs a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.crumbs > * + *::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: .75rem; border: solid currentColor; border-width: 1px 1px 0 0; transform: translateY(-1px) rotate(45deg); }
.album-intro h1 { font: 400 clamp(2.6rem, 4.6vw, 4.5rem)/1.02 var(--display); letter-spacing: -.02em; }
.album-meta { margin-top: .7rem; color: var(--muted); font-size: .68rem; line-height: 1.3; }
.album-intro .unit-facts { display: flex; flex-wrap: wrap; margin-top: clamp(1.4rem, 2.6vw, 2.1rem); border-top: 0; }
.album-intro .unit-facts > div { gap: .5rem; padding: 0 clamp(1.25rem, 2.8vw, 2.6rem); }
.album-intro .unit-facts > div:first-child { padding-left: 0; }
.album-intro .unit-facts dt { font-size: .62rem; }
.album-intro .unit-facts dd { font: 400 clamp(1.55rem, 2.4vw, 2.05rem)/1.05 var(--display); letter-spacing: -.01em; }
.switch-album { flex-direction: column; gap: .5rem; color: var(--muted); font-size: .62rem; line-height: 1.3; }
.select-box { position: relative; }
.select-box::after { content: ""; position: absolute; right: 1rem; top: 42%; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.select-box select { appearance: none; min-height: 46px; padding: .6rem 2.7rem .6rem .95rem; background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink); font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.select-box select:hover { border-color: var(--ink); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--line); }
.filter { min-height: 40px; padding: .45rem .95rem; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; font-size: .88rem; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s; }
.filter span { margin-left: .35rem; color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.filter[aria-pressed=true] { color: #fff; border-color: var(--green); background: var(--green); }
.filter[aria-pressed=true] span { color: var(--champagne); }
.filter:hover:not([aria-pressed=true]) { border-color: var(--ink); }
/* An apartment without photos ends with its facts. */
#unit-album:not(:has(.photo-grid)) .album-intro { border-bottom: 1px solid var(--line); }
#unit-album:not(:has(.photo-grid)) + .contact-section { margin-top: clamp(2rem, 4vw, 3.5rem); }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.4rem, .9vw, .85rem); }
.frame { display: block; aspect-ratio: 4 / 5; cursor: zoom-in; }
.frame img { object-position: center; }

/* Photo viewer */
html:has(dialog[open]) { overflow: hidden; }
dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; margin: 0; border: 0; color: #f2f4f0; background: #111814; }
dialog::backdrop { background: #111814; }
dialog :focus-visible { outline-color: var(--champagne); }
.viewer-layout { height: 100%; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer-top, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; padding: .75rem max(1rem, env(safe-area-inset-right)) .75rem max(1rem, env(safe-area-inset-left)); gap: .7rem; }
.viewer-top > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1.1rem; }
.viewer-unit { font: 400 1.15rem/1.2 var(--display); }
.viewer-category { color: var(--champagne); font-size: .66rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.viewer-stage { display: flex; justify-content: center; align-items: center; min-width: 0; min-height: 0; touch-action: pan-y pinch-zoom; }
.viewer-stage img { height: 100%; width: 100%; object-fit: contain; }
.viewer-bottom { justify-content: center; padding-bottom: max(.85rem, env(safe-area-inset-bottom)); }
.viewer-bottom button, .close-button { color: white; background: #1f2a24; border: 1px solid #45524a; border-radius: 2px; min-height: 44px; touch-action: manipulation; transition: background-color .2s; }
.viewer-bottom button { padding: .45rem 1.15rem; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.viewer-bottom button:hover:not(:disabled), .close-button:hover { background: #2f3d35; }
.viewer-bottom button:disabled { opacity: .4; cursor: default; }
#viewer-position { min-width: 6.8rem; text-align: center; color: #e4ebe3; font-variant-numeric: tabular-nums; }
.close-button { width: 44px; position: relative; }
.close-button span { pointer-events: none; }
.close-button span::before, .close-button span::after { content: ""; position: absolute; width: 18px; left: 12px; top: 20px; height: 1.5px; background: white; transform: rotate(45deg); }
.close-button span::after { transform: rotate(-45deg); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 40fr 30fr 30fr; height: 380px; }
  .hero-copy { padding: 1.6rem; }
  .hero h1 { font-size: 2.85rem; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { height: 59px; }
  .brand { gap: .65rem; }
  .brand b { font-size: 1.3rem; }
  .brand-name { margin-left: .1rem; padding-left: .7rem; font-size: .6rem; letter-spacing: .13em; }
  .all-link { font-size: .88rem; }
  .hero { grid-template-columns: 1fr 1fr; grid-template-rows: auto clamp(170px, 56vw, 300px); gap: 3px; height: auto; }
  .hero-copy { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 .75rem; padding: 1.4rem 1.2rem 1.3rem; }
  .hero-date { grid-column: 1 / -1; font-size: .62rem; }
  .hero h1 { grid-column: 1 / -1; padding-top: 0; margin: 1rem 0 0; font-size: clamp(2.45rem, 10.5vw, 3.3rem); }
  .hero h1 br { display: none; }
  .hero-counts { gap: 1.4rem; margin-top: 1rem; padding-top: .85rem; }
  .hero-counts b { font-size: 1.5rem; }
  .hero-counts span { font-size: .58rem; gap: .35rem; }
  .hero-action { margin-top: 0; min-height: 42px; padding: 0 .9rem; font-size: .64rem; letter-spacing: .13em; }
  .hero-caption { font-size: .58rem; }
  .catalog-section { margin-top: 3rem; }
  .section-bar { flex-wrap: wrap; align-items: center; gap: .9rem; padding-bottom: 1.1rem; margin-bottom: 1.4rem; }
  .section-bar h2 { font-size: 2.15rem; }
  .search-field { height: 44px; flex: 1 1 auto; }
  .search-field input { width: 100%; }
  .album-grid { gap: 1.9rem .75rem; }
  .card-image { aspect-ratio: 1.12; }
  .image-tag { left: .45rem; bottom: .45rem; padding: .36rem .45rem .34rem; font-size: .52rem; letter-spacing: .11em; }
  .card-empty { gap: .65rem; }
  .card-empty b { font-size: 1.25rem; }
  .card-caption { display: block; margin-top: .65rem; }
  .card-caption h3 { font-size: 1.12rem; }
  .card-caption > span { display: block; margin-top: .3rem; font-size: .54rem; letter-spacing: .11em; }
  .album-card .unit-facts { grid-template-columns: minmax(0, 1fr); margin-top: .6rem; }
  .album-card .unit-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .42rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .album-card .unit-facts dt { font-size: .54rem; letter-spacing: .12em; }
  .album-card .unit-facts dd { font-size: .9rem; }
  .album-intro { flex-direction: column; align-items: stretch; gap: 1.4rem; padding-bottom: 1.2rem; }
  .crumbs { margin-bottom: 1rem; }
  .album-intro .unit-facts > div { padding: 0 1.15rem; }
  .album-intro .unit-facts > div:first-child { padding-left: 0; }
  .switch-album { flex-direction: row; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
  .filter-bar { padding: .9rem 0 1rem; gap: .4rem; }
  .filter { min-height: 38px; padding: .35rem .6rem; font-size: .82rem; }
  .filter span { margin-left: .25rem; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .footer { padding-bottom: 1.8rem; font-size: .58rem; letter-spacing: .12em; }
}
@media (max-width: 380px) {
  .hero-copy { display: flex; align-items: flex-start; }
  .hero-action { margin-top: 1.1rem; }
  .brand-name { display: none; }
  .card-caption h3 { font-size: 1.02rem; }
  .album-card .unit-facts dt { letter-spacing: .08em; }
  .album-card .unit-facts dd { font-size: .84rem; }
  .viewer-bottom { gap: .35rem; }
  .viewer-bottom button { padding: .45rem .8rem; }
  #viewer-position { min-width: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
