:root {
  color-scheme: light;
  --page: #fbfaf5;
  --paper: #fffefa;
  --forest: #172f28;
  --ink: #20352d;
  --muted: #4c6057;
  --accent: #315d4a;
  --lime: #dfecc2;
  --surface: #edf1e8;
  --line: #d5dfd5;
  --edge: clamp(18px, 4.1vw, 64px);
  --heading: 'Instrument Serif', 'DejaVu Serif', Georgia, serif;
  --body: 'Roboto', 'DejaVu Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.58 var(--body); }
body:has(.lightbox[open]) { overflow: hidden; }
a { color: var(--accent); text-underline-offset: .21em; }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #598e75; outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 100px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font: 400 2.65rem/1.1 var(--heading); letter-spacing: -.047em; }
h2 { font-size: clamp(2.15rem, 3.9vw, 3.55rem); }
h3 { font-size: 1.11rem; line-height: 1.29; }
.shell { width: min(1340px, calc(100% - var(--edge) * 2)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 12; top: 12px; left: 12px; padding: 10px 15px; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: #fbfaf5f5; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 68px; }
.brand { flex: 0 0 auto; color: var(--forest); text-decoration: none; font: 1.13rem var(--heading); }
.brand span { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.8vw, 40px); }
.site-header nav a { color: var(--forest); text-decoration: none; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; }
.hero-section { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); margin-top: 28px; border-radius: 22px; overflow: hidden; background: var(--forest); color: var(--paper); }
.hero-copy { align-self: center; padding: clamp(27px, 4.5vw, 68px); }
.district { color: var(--lime); font-size: .77rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.hero-copy h1 { margin: 17px 0; font-size: clamp(3.3rem, 6.15vw, 6.1rem); line-height: .95; letter-spacing: -.071em; }
.hero-subtitle { color: var(--lime); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.26rem); }
.hero-description { margin: 16px 0 19px; font-size: .91rem; color: #e7eecf; max-width: 40ch; }
.property-facts { display: flex; flex-wrap: wrap; gap: 5px 13px; padding: 13px 0 0; margin: 0; border-top: 1px solid #62786a; list-style: none; color: #f2f4e6; font-size: .8rem; }
.property-facts li + li::before { content: '·'; margin-right: 13px; color: #caf0b4; }
.cover-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 27px; font-size: .82rem; font-weight: 700; }
.cover-actions a { padding: 10px 13px; border-radius: 7px; text-decoration: none; }
.cover-actions a span { margin-left: 5px; }
.main-action { background: var(--lime); color: #152d24; }
.main-action:hover { background: white; }
.gallery-action { border: 1px solid #7c9284; color: #f7faed; }
.gallery-action:hover { background: #294437; }
.grid { display: grid; gap: 15px; }
figure { margin: 0; min-width: 0; }
.grid figure { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--paper); }
.image-open { position: relative; display: block; width: 100%; overflow: hidden; margin: 0; padding: 0; border: 0; background: #e7ebe4; cursor: zoom-in; }
.image-open:focus-visible { outline-offset: -4px; outline-color: #6aa88a; }
.image-open img { display: block; width: 100%; height: 100%; }
.zoom-label { display: flex; align-items: center; gap: 8px; position: absolute; bottom: 10px; right: 10px; padding: 6px 10px; border-radius: 6px; background: #fcfcf1ed; box-shadow: 0 1px 8px #0e292725; color: #1d3b31; font-size: .7rem; line-height: 1.3; font-weight: 700; }
.magnifying-glass { display: inline-block; width: 11px; height: 11px; position: relative; border: 1.65px solid currentColor; border-radius: 50%; }
.magnifying-glass::after { content: ''; position: absolute; height: 1.6px; width: 5px; top: 8px; left: 7px; transform: rotate(45deg); background: currentColor; }
.image-open:hover .zoom-label, .image-open:focus-visible .zoom-label { background: var(--forest); color: white; }
.grid figcaption { flex: 1; padding: 12px 14px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.grid figcaption strong { color: var(--ink); font-size: .9rem; }
.hero figure { position: relative; min-height: 100%; border: 0; border-radius: 0; background: #c4bba9; }
.hero .image-open { flex: 1; min-height: 100%; }
.hero .image-open img { position: absolute; inset: 0; object-fit: cover !important; object-position: center 49% !important; }
.hero .zoom-label { top: 16px; right: 16px; bottom: auto; }
.hero figcaption { flex: 0; position: absolute; pointer-events: none; bottom: 0; left: 0; right: 0; padding: 46px 16px 13px; background: linear-gradient(transparent,#14251cce); color: white; }
.hero figcaption strong { color: white; }
.reading-area { display: grid; gap: 62px; padding-block: 69px; }
.feature-sections { display: grid; gap: 36px; }
.features-section h2, .plans-section h2, .render-section h2, .people-section h2 { margin-bottom: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.feature { min-width: 0; padding: 21px 22px; background: var(--paper); }
.feature:nth-child(3n + 1) { background: #f1f4e9; }
@media (min-width: 881px) { .feature:last-child:nth-child(3n + 1) { grid-column: 1 / -1; } }
.feature h3 { color: var(--forest); }
.feature p { margin-top: 6px; color: var(--muted); font-size: .86rem; }
.tallplans { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tallplans .image-open { aspect-ratio: 4/3; background: white; }
.tallplans .image-open img { padding: 14px; }
.technical-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 17px; }
.detail-card { padding: 25px clamp(18px, 3vw, 35px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.detail-card h2 { margin-bottom: 24px; font-size: clamp(1.85rem, 3vw, 2.55rem); }
.topic + .topic { margin-top: 21px; }
.topic p { margin-top: 6px; color: var(--muted); font-size: .89rem; }
.specs { margin: 12px 0 20px; padding-inline: 12px; background: var(--surface); border-radius: 9px; font-size: .84rem; }
.specs div { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); gap: 12px; padding-block: 10px; }
.specs div + div { border-top: 1px solid var(--line); }
.specs dt { color: var(--accent); font-weight: 700; }
.specs dd { margin: 0; overflow-wrap: anywhere; }
.gallery-section { padding-block: 68px; background: #eef2e8; border-block: 1px solid var(--line); }
.section-head { padding-bottom: 29px; }
.section-head p { margin-top: 12px; color: var(--muted); max-width: 66ch; }
.gallery-layout { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 5fr); gap: clamp(20px, 3.5vw, 52px); align-items: start; }
.phase-nav { position: sticky; top: 92px; display: grid; padding: 8px 0; max-height: calc(100dvh - 115px); overflow-y: auto; }
.phase-nav a { border-left: 2px solid var(--line); padding: 7px 12px; font-size: .8rem; line-height: 1.25; text-decoration: none; color: var(--accent); }
.phase-nav a:hover, .phase-nav a:focus-visible { border-color: var(--accent); background: #e3ecde; }
.phase + .phase { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.phase h3 { margin: 0 0 14px; font-family: var(--heading); font-weight: 400; font-size: clamp(1.4rem, 2.35vw, 2rem); letter-spacing: -.038em; }
.photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.photo-grid .image-open { aspect-ratio: 4/3; }
.work-photos .image-open { background: #e0e7df; }
.comparison { grid-template-columns: repeat(2,minmax(0,1fr)); }
.closing-area { display: grid; gap: 63px; padding-block: 66px; }
.people-section .topic { margin-top: 20px; }
.contacts { background: var(--paper); border: 1px solid var(--line); }
.contacts div { grid-template-columns: minmax(0,31fr) minmax(0,69fr); padding: 12px 7px; }
.contacts dd { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 9px; }
.contacts .phone { font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--surface); text-decoration: none; white-space: nowrap; }
.contacts .phone:hover { text-decoration: underline; }
.site-footer { background: var(--forest); color: #edf3e6; padding-block: 25px; font-size: .85rem; }
.site-footer div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px 18px; }
.site-footer a { color: #edf3e6; }
.lightbox { position: fixed; width: min(calc(100% - 28px), 1240px); max-width: none; max-height: calc(100dvh - 26px); margin: auto; border: 1px solid #3f5c50; border-radius: 14px; padding: 13px 15px; background: #15271f; color: #fdfcf4; overflow: auto; }
.lightbox::backdrop { background: #101b16dc; }
.lightbox-toolbar, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.lightbox-controls { margin-top: 7px; }
.lightbox button { background: #284639; border: 1px solid #6d8276; min-height: 41px; padding: 5px 13px; border-radius: 7px; cursor: pointer; color: #fffdf6; }
.lightbox button:hover:not(:disabled) { background: #386250; }
.lightbox button:disabled { opacity: .5; cursor: default; }
.lightbox button:focus-visible { outline-color: var(--lime); }
.close-image span { font-size: 1.3rem; line-height: 1; vertical-align: -.06em; margin-right: 3px; }
.image-index { font-size: .86rem; font-variant-numeric: tabular-nums; color: #e5ecdf; }
.lightbox-view { margin-top: 9px; }
.lightbox-view img { display: block; width: 100%; height: min(74dvh, 900px); max-height: calc(100dvh - 170px); object-fit: contain; border-radius: 7px; }
.lightbox-view figcaption { margin-top: 7px; text-align: center; color: #e5ecdf; font-size: .84rem; line-height: 1.35; }
.lightbox-view figcaption strong { color: white; }
@media (max-width: 880px) {
  .hero-section { grid-template-columns: 1fr 1.02fr; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .feature:nth-child(3n + 1) { background: var(--paper); }
  .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .technical-columns { grid-template-columns: minmax(0,1fr); }
  .gallery-layout { grid-template-columns: 1fr; }
  .phase-nav { position: static; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; }
  .phase-nav a { border: 1px solid var(--line); border-radius: 7px; background: var(--paper); padding: 7px 10px; }
  .phase-nav a:hover { border-color: var(--accent); }
}
@media (max-width: 620px) {
  [id] { scroll-margin-top: 103px; }
  .site-header-inner { flex-wrap: wrap; justify-content: flex-start; min-height: auto; gap: 0; padding-top: 9px; }
  .site-header nav { flex: 1 0 100%; gap: 16px; overflow-x: auto; min-height: 39px; padding-inline: 3px; }
  .site-header nav a { font-size: .75rem; }
  .hero-section { grid-template-columns: 1fr; margin-top: 13px; border-radius: 14px; }
  .hero-copy h1 { font-size: clamp(2.9rem, 9.4vw, 4.2rem); }
  .hero-copy h1 br { display: none; }
  .hero-copy h1 br::after { content: ' '; }
  .hero-copy { padding: 27px 22px; }
  .cover-actions { margin-top: 18px; }
  .hero .image-open { min-height: clamp(265px, 74vw, 470px); }
  .hero .image-open img { object-position: center !important; }
  .reading-area, .closing-area, .gallery-section { padding-block: 42px; }
  .reading-area, .closing-area { gap: 41px; }
  .feature { padding: 15px 12px; }
  .feature h3 { font-size: .93rem; }
  .feature p { font-size: .78rem; }
  .photo-grid:not(.comparison), .tallplans { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .grid figcaption { padding-block: 9px; }
  .contacts div { grid-template-columns: 1fr; gap: 3px; }
  .contacts dd { grid-template-columns: 1fr; justify-items: start; }
  .lightbox { padding: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.photo-style-1 { object-position:center;object-fit:contain; }
.photo-style-2 { object-position:center;object-fit:cover; }
