/* Презентация проектов: тихий архитектурный лист — графит, белый клинкер, хвойный акцент; крупные кадры, цифры проекта табличным шрифтом */
:root {
  --bg: #F3F4F2; --surface: #FFFFFF; --sheet: #E8EBE7; --ink: #1D2023; --muted: #5C646A; --line: #D5D9D4; --accent: #34574A;
  --display: 'Tenor Sans', 'Times New Roman', serif; --body: 'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1240px; --gap: clamp(16px, 2.2vw, 28px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #131617; --surface: #1B1F21; --sheet: #22272A; --ink: #E6E9E5; --muted: #9AA3A7; --line: #2E3438; --accent: #94BCAA; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #131617; --surface: #1B1F21; --sheet: #22272A; --ink: #E6E9E5; --muted: #9AA3A7; --line: #2E3438; --accent: #94BCAA; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.bar { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar-in { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-block: 14px; }
.bar a { color: var(--ink); text-decoration: none; font-size: 14px; }
.bar a:hover { color: var(--accent); }
.bar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.home { font-family: var(--display); letter-spacing: .04em; }

.eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h1, h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; }
.lead { max-width: 62ch; font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); margin: 0; }

.intro { display: grid; gap: 14px; padding-block: clamp(28px, 5vw, 56px) 24px; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 10px 0 0; border-top: 1px solid var(--line); }
.facts > div { padding: 12px 22px 10px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 0; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.heroimg { padding-block: 0 8px; }
.heroimg img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.block { padding-block: clamp(36px, 6vw, 72px) 0; display: grid; gap: 22px; }
.head { display: grid; gap: 8px; max-width: 70ch; }
.head p { margin: 0; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
figure { margin: 0; display: grid; gap: 8px; min-width: 0; }
figcaption { font-size: 14px; color: var(--muted); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sheet { background: var(--sheet); padding: var(--gap); align-items: end; }
.elev img { width: 100%; }
.axes { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; margin-left: 6px; }

.tour { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--sheet); overflow: hidden; }
.tour > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.82); }
.tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--surface); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 500 16px/1 var(--body); padding: 16px 26px;
  border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: 0 6px 28px rgba(0,0,0,.25); white-space: nowrap; }
.play:hover { background: var(--accent); color: var(--surface); }
.how { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); max-width: 80ch; }
.how b { color: var(--ink); font-weight: 500; }
.aside { margin: 0; }

.code { position: relative; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.code pre { margin: 0; padding: 18px 18px 56px; overflow-x: auto; font: 13px/1.55 var(--mono); }
.copy { position: absolute; right: 12px; bottom: 12px; font: 500 14px/1 var(--body); padding: 10px 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.copy:hover { border-color: var(--accent); color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding-block: 8px 24px; }
.cards-sec { grid-column: 1 / -1; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 22px; font-weight: 600; }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line); min-width: 0; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-tx { display: grid; gap: 10px; padding: 20px 22px 22px; align-content: start; }
.card-tx > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.card .facts { margin-top: 4px; }
.more { color: var(--accent); font-weight: 500; }
.card:hover .more { text-decoration: underline; text-underline-offset: 3px; }

.foot { padding-block: 56px 40px; color: var(--muted); font-size: 13px; display: grid; gap: 10px; }
.foot ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; max-width: 90ch; }
.foot p { margin: 0; }

.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0E1011; color: #E6E9E5; }
.lb::backdrop { background: #0E1011; }
.lb figure { height: 100%; display: grid; grid-template-rows: 1fr auto; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lb figcaption { color: #C9CFCB; text-align: center; padding-top: 10px; }
.lb button { position: absolute; border: 0; background: rgba(255,255,255,.08); color: #fff; font: 28px/1 var(--body); width: 48px; height: 48px; cursor: pointer; border-radius: 50%; }
.lb button:hover { background: rgba(255,255,255,.18); }
.lb-x { top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(14px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(14px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lb.solo .lb-prev, .lb.solo .lb-next { display: none; }

@media (max-width: 760px) {
  .grid2, .cards { grid-template-columns: minmax(0, 1fr); }
  .facts > div { padding-right: 14px; margin-right: 14px; }
  .facts dd { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
