/* Gnomon Landscape Studio — концепт. Стили всех страниц. */

/* ---------- токены ---------- */
:root {
  --caliche: #ECE5D8;
  --bone: #F6F3EC;
  --ink: #1B1A17;
  --stone: #6A645A;
  --corten: #9C4A2A;
  --corten-dark: #7E3A20;
  --sage: #7A8064;
  --shade: #2B2622;
  --sun: #E8A33D;
  --water: #AFC3BF;
  --line: rgb(27 26 23 / 0.14);
  --grid: rgb(27 26 23 / 0.06);

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --pad: clamp(20px, 5vw, 72px);
  --gap: clamp(16px, 2vw, 24px);
  --max: 1440px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --header: 64px;

  color-scheme: light;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--caliche);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(16px, 0.25vw + 15px, 18px);
  line-height: 1.55;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--corten); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bone); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bone); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Переход между страницами (Chrome, Safari 18+) */
@view-transition { navigation: auto; }
.header { view-transition-name: header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: var(--ease); }

/* ---------- сетка ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
}
@media (min-width: 900px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* Видимые линии колонок, как на кальке */
.gridlines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.gridlines .wrap { height: 100%; }
.gridlines .grid { height: 100%; }
.gridlines span { border-left: 1px solid var(--grid); }
.gridlines span:last-child { border-right: 1px solid var(--grid); }
.gridlines span:nth-child(n+5) { display: none; }
@media (min-width: 900px) { .gridlines span:nth-child(n+5) { display: block; } }

main, .footer { position: relative; z-index: 1; }

/* Полосы фона: в них линии сетки не видны, страница не сливается в один лист.
   Светлая «кость» для спокойных списков, тёмный песок для призывов.
   В песке серый и кортен темнее, чтобы мелкий текст держал контраст ≥ 4.5:1. */
.band { position: relative; background: var(--band-bg); border-block: 1px solid var(--line); }
.band--bone { --band-bg: var(--bone); }
.band--sand { --band-bg: #E3D9C7; --stone: #57524A; --corten: #86401F; --corten-dark: #6B3119; }
.band + .band { border-top: 0; }
/* полоса в самом конце страницы стыкуется с подвалом без светлой щели */
main:has(> .band:last-of-type:last-child) + .footer { margin-top: 0; }

/* ---------- типографика ---------- */
.display, .h1, .h2, .h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-variation-settings: 'wdth' 118;
  text-wrap: balance;
}
.display { font-size: clamp(48px, 9.4vw, 152px); line-height: 0.9; letter-spacing: -0.035em; }
.h1 { font-size: clamp(40px, 6.4vw, 104px); }
.h2 { font-size: clamp(32px, 4.6vw, 80px); }
.h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.1; letter-spacing: -0.015em; }
.lead { font-size: clamp(19px, 1vw + 14px, 26px); line-height: 1.35; letter-spacing: -0.01em; max-width: 34ch; text-wrap: pretty; }
.body { max-width: 62ch; text-wrap: pretty; }
.body + .body { margin-top: 1em; }
.muted { color: var(--stone); }

.label, .mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mono { text-transform: none; letter-spacing: 0.02em; font-size: 13px; }

.stamp {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 14px;
  border-top: 1px solid var(--ink);
}
.stamp > * { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- кнопки и ссылки ---------- */
.btn {
  --bg: var(--corten);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--bg); background: var(--bg); color: var(--bone);
  font-weight: 500; font-variation-settings: 'wdth' 112; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.16s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; flex: none; }
@media (hover: hover) {
  .btn:hover { --bg: var(--corten-dark); }
  .btn--ghost:hover { background: var(--ink); color: var(--bone); }
}

.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.25s var(--ease);
}
@media (hover: hover) { .link:hover { background-size: 0 1px; background-position: 100% 100%; } }
.link:focus-visible { background-size: 0 1px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-variation-settings: 'wdth' 112; text-decoration: none;
}
.arrow-link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
@media (hover: hover) { .arrow-link:hover svg { transform: translateX(4px); } }

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header);
  background: rgb(236 229 216 / 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header--over:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--bone); }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -0.02em;
  font-variation-settings: 'wdth' 120;
}
.logo svg { width: 26px; height: 26px; }
.logo small { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; margin-left: 2px; align-self: flex-end; margin-bottom: 4px; }

.nav { display: none; }
.nav ul { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-weight: 500; font-variation-settings: 'wdth' 112; padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.25s var(--ease); }
.nav a[aria-current="page"] { background-size: 100% 1px; }
@media (hover: hover) { .nav a:hover { background-size: 100% 1px; } }
.nav a:focus-visible { background-size: 100% 1px; }
.header__call { display: none; font-family: var(--mono); font-size: 13px; text-decoration: none; letter-spacing: 0.02em; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.menu-btn i { position: relative; width: 22px; height: 10px; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.menu-btn i::before { top: 0; }
.menu-btn i::after { bottom: 0; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav { display: block; }
  .header__call { display: inline; }
  .menu-btn { display: none; }
}

.sheet {
  position: fixed; inset: var(--header) 0 0; z-index: 49;
  background: var(--caliche); color: var(--ink);
  padding: 32px var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.45s var(--ease), visibility 0s linear 0.45s;
}
.sheet.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.45s var(--ease), visibility 0s; }
.sheet ul { border-top: 1px solid var(--ink); }
.sheet li { border-bottom: 1px solid var(--line); }
.sheet li a { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; text-decoration: none; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; font-variation-settings: 'wdth' 120; }
.sheet li a span { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; color: var(--stone); }
.sheet__foot { display: grid; gap: 6px; }
@media (min-width: 900px) { .sheet { display: none; } }

/* ---------- знак ---------- */
.mark .gn-base { stroke: currentColor; stroke-width: 1.6; }
.mark .gn-pin { stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.mark .gn-shadow { fill: currentColor; opacity: 0.35; }

/* ---------- первый экран ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: var(--bone); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 60%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(20 18 15 / 0.35) 0%, rgb(20 18 15 / 0) 24%, rgb(20 18 15 / 0) 38%, rgb(20 18 15 / 0.45) 62%, rgb(20 18 15 / 0.7) 100%);
}
/* полосы тени от рёбер перголы; угол задаёт JS по реальному солнцу */
.hero__slats {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  mix-blend-mode: multiply;
  /* тень ложится на землю и текст, не на небо */
  -webkit-mask-image: linear-gradient(180deg, transparent 38%, #000 72%);
  mask-image: linear-gradient(180deg, transparent 38%, #000 72%);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__slats::before {
  content: ''; position: absolute; inset: -50%;
  background: repeating-linear-gradient(90deg, rgb(30 24 18 / 0.42) 0 30px, transparent 31px 84px);
  transform: rotate(var(--slat-angle, -24deg)) translateX(var(--slat-shift, 0px));
}
.hero.has-sun .hero__slats { opacity: 1; }
.hero__in { position: relative; z-index: 1; padding-top: calc(var(--header) + 48px); padding-bottom: clamp(24px, 4vw, 48px); }
.hero__eyebrow { margin-bottom: clamp(16px, 2vw, 28px); }
.hero__title { grid-column: 1 / -1; }
@media (min-width: 900px) { .hero__title { grid-column: 1 / span 11; } }
.hero .stamp { margin-top: clamp(32px, 5vw, 72px); border-color: rgb(246 243 236 / 0.6); }
.hero__now { display: inline-flex; align-items: center; gap: 8px; }
.hero__now::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.hero:not(.has-sun) .hero__now::before { background: var(--bone); opacity: 0.5; }

/* ---------- разделы ---------- */
.section { padding-block: clamp(88px, 12vw, 180px); }
.section--tight { padding-block: clamp(64px, 8vw, 120px); }
.section-head { margin-bottom: clamp(40px, 6vw, 88px); }
.section-head .stamp { margin-bottom: clamp(24px, 3vw, 40px); }

/* Манифест */
.manifesto__text { grid-column: 1 / -1; }
.manifesto__media { grid-column: 1 / -1; margin-top: 48px; }
.manifesto__note { grid-column: 1 / -1; margin-top: 20px; }
@media (min-width: 900px) {
  .manifesto__text { grid-column: 1 / span 7; }
  .manifesto__media { grid-column: 9 / span 4; grid-row: 1 / span 2; margin-top: 0; }
  .manifesto__note { grid-column: 1 / span 5; margin-top: 48px; align-self: end; }
}
.manifesto__media img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* ---------- Shade study ---------- */
.shade { position: relative; }
.shade-head__title { grid-column: 1 / -1; }
.shade-head__text { grid-column: 1 / -1; margin-top: 20px; }
@media (min-width: 900px) {
  .shade-head__title { grid-column: 1 / span 6; }
  .shade-head__text { grid-column: 8 / span 5; margin-top: 0; align-self: end; }
}
.shade__plan { grid-column: 1 / -1; background: var(--bone); border: 1px solid var(--ink); padding: clamp(8px, 2vw, 24px); }
.shade__plan svg { width: 100%; height: auto; aspect-ratio: 86 / 84; }
.shade__panel { grid-column: 1 / -1; margin-top: 32px; }
.shade__panel .caption { margin-top: 14px; }
@media (min-width: 900px) {
  .shade__plan { grid-column: 1 / span 7; grid-row: 1; }
  .shade .controls { grid-column: 1 / span 7; grid-row: 2; }
  .shade__panel { grid-column: 9 / span 4; grid-row: 1 / span 2; margin-top: 0; align-self: start; position: sticky; top: calc(var(--header) + 24px); }
}

.readout { border-top: 1px solid var(--ink); }
.readout div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.readout dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.readout dd { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.readout .is-key dd { font-family: var(--font); font-size: clamp(34px, 3.2vw, 52px); font-weight: 600; letter-spacing: -0.03em; font-variation-settings: 'wdth' 118; line-height: 1; }
.readout .is-key dd small { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.04em; margin-left: 8px; color: var(--stone); }

.controls { grid-column: 1 / -1; margin-top: 28px; display: grid; gap: 16px; }
.controls__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button {
  min-height: 44px; padding: 0 18px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
@media (hover: hover) { .seg button[aria-pressed="false"]:hover { background: rgb(27 26 23 / 0.07); } }

.play {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px;
  border: 1px solid var(--ink); background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.play svg { width: 14px; height: 14px; }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.reduced .play { display: none; }

.time { position: relative; padding-top: 4px; }
.time input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer;
}
.time input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
.time input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); }
.time input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -10px;
  background: var(--corten); border: 3px solid var(--bone); box-shadow: 0 0 0 1px var(--corten); border-radius: 50%;
}
.time input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: var(--corten); border: 3px solid var(--bone); box-shadow: 0 0 0 1px var(--corten); border-radius: 50%; }
.time input[type="range"]:focus-visible { outline: none; }
.time input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--corten), 0 0 0 5px rgb(156 74 42 / 0.3); }
.time input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--corten), 0 0 0 5px rgb(156 74 42 / 0.3); }
.ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--stone); letter-spacing: 0.04em; }

/* SVG-план */
.pl-earth { fill: #E6DCCB; }
.pl-dot { fill: #B5A68D; }
.pl-paver { fill: #D9D2C4; }
.pl-joint { stroke: #B9B0A0; stroke-width: 0.08; fill: none; }
.pl-patio { stroke: var(--ink); stroke-width: 0.12; }
.pl-pool { fill: #D9D2C4; stroke: var(--ink); stroke-width: 0.12; }
.pl-pool-in { fill: var(--water); }
.pl-shrub { fill: var(--sage); opacity: 0.55; }
.pl-house { stroke: var(--ink); stroke-width: 0.2; fill-opacity: 1; }
.pl-hatch { stroke: rgb(27 26 23 / 0.28); stroke-width: 0.12; }
.pl-shadow { fill: var(--shade); opacity: 0.5; }
.pl-shadow--soft { opacity: 0.3; }
.pl-wall { fill: var(--ink); }
.pl-fin { fill: var(--corten); }
.pl-post { fill: var(--ink); }
.pl-canopy { fill: var(--sage); fill-opacity: 0.18; stroke: var(--sage); stroke-width: 0.18; stroke-dasharray: 0.6 0.5; }
.pl-trunk { fill: var(--ink); }
.pl-frame { fill: none; stroke: var(--ink); stroke-width: 0.25; }
.pl-sun-dot { fill: var(--sun); stroke: var(--ink); stroke-width: 0.2; }
.pl-sun-ray { stroke: var(--sun); stroke-width: 0.3; stroke-dasharray: 0.8 0.6; }
.pl-north path { fill: var(--ink); }
.pl-north text, .pl-scale text, .pl-label text { font-family: var(--mono); font-size: 1.9px; fill: var(--ink); letter-spacing: 0.1px; }
.pl-label text { font-size: 1.7px; fill: var(--stone); letter-spacing: 0.25px; }
.pl-scale path { stroke: var(--ink); stroke-width: 0.2; fill: none; }
.shade.is-night .pl-sun { display: none; }
.shade.is-night .pl-ground { filter: brightness(0.82) saturate(0.6); }
.shade.is-night .pl-house { filter: brightness(0.82); }

/* ---------- избранные работы (главная) ---------- */
.feature { grid-column: 1 / -1; display: grid; gap: 16px; text-decoration: none; }
.feature + .feature { margin-top: clamp(56px, 8vw, 120px); }
.feature__media { overflow: hidden; background: var(--bone); }
.feature__media img { width: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform 0.9s var(--ease); }
.feature__meta { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink); padding-top: 12px; }
@media (hover: hover) { .feature:hover .feature__media img { transform: scale(1.025); } }
@media (min-width: 900px) {
  .feature.feature--a { grid-column: 1 / span 8; }
  .feature.feature--b { grid-column: 9 / span 4; margin-top: 40%; }
  .feature--b .feature__media img { aspect-ratio: 4 / 5; }
  .feature.feature--c { grid-column: 4 / span 6; margin-top: clamp(56px, 8vw, 120px); }
}

/* ---------- услуги ---------- */
.services { grid-column: 1 / -1; border-top: 1px solid var(--ink); }
.service { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.service .label { padding-top: 6px; color: var(--stone); }
.service p { grid-column: 2; color: var(--stone); max-width: 52ch; }
@media (min-width: 900px) {
  .services { grid-column: 4 / span 9; }
  .service { grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr); padding: 28px 0; }
  .service p { grid-column: 3; }
}

/* ---------- призыв ---------- */
.cta { border-top: 1px solid var(--ink); padding-top: clamp(32px, 4vw, 56px); }
.cta__title { grid-column: 1 / -1; }
.cta__side { grid-column: 1 / -1; margin-top: 32px; display: grid; gap: 24px; align-content: end; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
@media (min-width: 900px) {
  .cta__title { grid-column: 1 / span 8; }
  .cta__side { grid-column: 9 / span 4; margin-top: 0; }
}

/* ---------- заголовок внутренних страниц ---------- */
.page-head { padding-top: calc(var(--header) + clamp(56px, 9vw, 140px)); padding-bottom: clamp(40px, 6vw, 80px); }
.page-head .stamp { margin-top: clamp(32px, 5vw, 64px); }
.page-head__title { grid-column: 1 / -1; }
.page-head__lead { grid-column: 1 / -1; margin-top: 28px; }
@media (min-width: 900px) {
  .page-head__title { grid-column: 1 / span 10; }
  .page-head__lead { grid-column: 7 / span 5; margin-top: 40px; }
}

/* ---------- Work: список проектов ---------- */
.projects { border-top: 1px solid var(--ink); }
.project { border-bottom: 1px solid var(--line); }
.project__row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  width: 100%; padding: 22px 0; border: 0; background: none; text-align: left; cursor: pointer; text-decoration: none;
}
.project__name { font-size: clamp(24px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.025em; font-variation-settings: 'wdth' 116; line-height: 1.05; }
.project__cell { font-family: var(--mono); font-size: 13px; color: var(--stone); }
.project__cell--area { grid-column: 1; }
.project__cell--year, .project__cell--size, .project__cell--mat { display: none; }
.project__go { grid-row: 1; grid-column: 2; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.project__go svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.project__row[aria-expanded="true"] .project__go svg { transform: rotate(45deg); }
.project__thumb { grid-column: 1 / -1; margin-top: 14px; }
.project__thumb img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
@media (min-width: 900px) {
  .project__row { grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 2.2fr) 110px; padding: 26px 0; }
  .project__cell--area, .project__cell--year, .project__cell--size, .project__cell--mat { display: block; grid-column: auto; }
  .project__go { grid-row: auto; grid-column: auto; justify-self: end; }
  .project__thumb { display: none; }
}
@media (hover: hover) and (min-width: 900px) {
  .project__row:hover .project__name { color: var(--corten); }
}
.projects__head { display: none; }
@media (min-width: 900px) {
  .projects__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 2.2fr) 110px; gap: 16px; padding: 10px 0; color: var(--stone); }
}

.project__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.project__panel > div { overflow: hidden; }
.project.is-open .project__panel { grid-template-rows: 1fr; }
.project__body { display: grid; gap: 16px; padding-bottom: 32px; }
.project__body img { width: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.project__body p { max-width: 52ch; }
@media (min-width: 900px) {
  .project__body { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-bottom: 48px; }
  .project__body figure:nth-of-type(1) { grid-column: 1 / span 6; }
  .project__body figure:nth-of-type(2) { grid-column: 7 / span 3; }
  .project__body figure:nth-of-type(2) img { aspect-ratio: 3 / 4; }
  .project__body .project__text { grid-column: 10 / span 3; align-self: end; display: grid; gap: 12px; }
}

/* фото у курсора (только мышь) */
.peek {
  position: fixed; left: 0; top: 0; z-index: 40; width: 300px; pointer-events: none;
  opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(0.96);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.peek.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }
.peek img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (hover: none), (max-width: 899px) { .peek { display: none; } }

/* ---------- кейс ---------- */
.case-cover { padding-top: var(--header); }
.case-cover__media img { width: 100%; height: min(78svh, 900px); object-fit: cover; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.facts div { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.facts dd { margin-top: 4px; font-weight: 500; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gap); } }

.brief__title { grid-column: 1 / -1; }
.brief__text { grid-column: 1 / -1; margin-top: 24px; }
@media (min-width: 900px) {
  .brief__title { grid-column: 1 / span 5; }
  .brief__text { grid-column: 7 / span 5; margin-top: 0; }
}

.compare { display: flex; gap: 0; border-top: 1px solid var(--ink); }
.compare div { flex: 1; padding: 12px 0; }
.compare div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.compare dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.compare dd { font-size: clamp(30px, 3vw, 48px); font-weight: 600; letter-spacing: -0.03em; font-variation-settings: 'wdth' 118; line-height: 1.05; font-variant-numeric: tabular-nums; }
.shade[data-scene="after"] .compare .c-after dd, .shade[data-scene="before"] .compare .c-before dd { color: var(--corten); }

.steps { grid-column: 1 / -1; display: grid; gap: clamp(48px, 7vw, 104px); }
.step { display: grid; gap: 16px; }
.step__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step__text { display: grid; gap: 12px; align-content: start; }
.step__text .label { color: var(--corten); }
@media (min-width: 900px) {
  .step { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
  .step__media { grid-column: 1 / span 7; }
  .step__text { grid-column: 9 / span 4; }
  .step:nth-child(even) .step__media { grid-column: 6 / span 7; grid-row: 1; }
  .step:nth-child(even) .step__text { grid-column: 1 / span 4; grid-row: 1; }
}

.materials { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gap); }
.material img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.material figcaption { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--ink); margin-top: 12px; }
.material figcaption strong { font-weight: 600; font-variation-settings: 'wdth' 112; }
.material figcaption span { font-size: 15px; color: var(--stone); line-height: 1.45; }
@media (min-width: 900px) {
  .materials { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .material:nth-child(even) { margin-top: 64px; }
}

.gallery { grid-column: 1 / -1; display: grid; gap: var(--gap); }
.gallery img { width: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .gallery figure:nth-child(1) { grid-column: 1 / span 12; }
  .gallery figure:nth-child(1) img { aspect-ratio: 21 / 9; }
  .gallery figure:nth-child(2) { grid-column: 1 / span 5; }
  .gallery figure:nth-child(2) img { aspect-ratio: 4 / 5; }
  .gallery figure:nth-child(3) { grid-column: 6 / span 7; align-self: end; }
  .gallery figure:nth-child(3) img { aspect-ratio: 3 / 2; }
}
.caption { font-family: var(--mono); font-size: 12px; color: var(--stone); margin-top: 10px; letter-spacing: 0.02em; }

.next { border-top: 1px solid var(--ink); }
.next a { display: grid; gap: 8px; padding: clamp(32px, 5vw, 64px) 0; text-decoration: none; }
.next .h1 { transition: color 0.25s var(--ease); }
@media (hover: hover) { .next a:hover .h1 { color: var(--corten); } }

/* ---------- Studio ---------- */
.partners { grid-column: 1 / -1; display: grid; gap: 56px; }
.partner { display: grid; gap: 16px; align-content: start; }
.partner img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.partner__role { color: var(--corten); }
@media (min-width: 900px) {
  .partners { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
  .partner:nth-child(1) { grid-column: 1 / span 5; }
  .partner:nth-child(2) { grid-column: 7 / span 5; margin-top: 160px; }
}

.process { grid-column: 1 / -1; border-top: 1px solid var(--ink); counter-reset: step; }
.process li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.process li p { grid-column: 2; color: var(--stone); max-width: 56ch; }
.process .label { padding-top: 7px; color: var(--corten); }
@media (min-width: 900px) {
  .process { grid-column: 4 / span 9; }
  .process li { grid-template-columns: 80px minmax(0, 4fr) minmax(0, 6fr); padding: 30px 0; }
  .process li p { grid-column: 3; }
}

.areas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--ink); }
.areas li { flex: 1 1 50%; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-variation-settings: 'wdth' 112; }
@media (min-width: 900px) { .areas { grid-column: 4 / span 9; } .areas li { flex-basis: 33.333%; } }

.split-title { grid-column: 1 / -1; margin-bottom: 32px; }
@media (min-width: 900px) { .split-title { grid-column: 1 / span 3; margin-bottom: 0; } }

.wide-photo img { width: 100%; height: clamp(320px, 60vw, 760px); object-fit: cover; }

/* ---------- Contact ---------- */
/* форма на сплошной светлой карточке: линии сетки за полями не мешают */
.contact__form {
  grid-column: 1 / -1;
  background: var(--bone);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  padding: clamp(20px, 4vw, 48px);
  margin-inline: calc(var(--pad) * -0.5);
}
@media (min-width: 900px) { .contact__form { margin-inline: 0; } }
.contact__form .field input, .contact__form .field select, .contact__form .field textarea {
  background-color: var(--caliche);
  padding-inline: 14px;
}
.contact__form .field select { background-position: right 14px center; padding-right: 40px; }
.contact__form .field input:focus, .contact__form .field select:focus, .contact__form .field textarea:focus { background-color: #fff; }
.contact__side { grid-column: 1 / -1; margin-top: 56px; display: grid; gap: 32px; align-content: start; }
@media (min-width: 900px) {
  .contact__form { grid-column: 1 / span 7; }
  .contact__side { grid-column: 9 / span 4; margin-top: 0; }
}
.form { display: grid; gap: 28px; }
.form__row { display: grid; gap: 28px; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 0; }
.field label span, .field legend span { color: var(--stone); text-transform: none; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  font-size: 18px;
  transition: border-color 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231B1A17' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 28px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--corten); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: #A3311F; }
.field__error { font-size: 14px; color: #A3311F; min-height: 0; }
.field__error:empty { display: none; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); font-size: 15px; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.field .chip span { font-family: var(--font); color: var(--ink); text-transform: none; letter-spacing: 0; }
.field .chip input:checked + span { background: var(--ink); color: var(--bone); }
.chip input:focus-visible + span { outline: 2px solid var(--corten); outline-offset: 2px; }
@media (hover: hover) { .chip input:not(:checked):hover + span { background: rgb(27 26 23 / 0.07); } }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__note { font-size: 14px; color: var(--stone); max-width: 40ch; }
.thanks { border-top: 1px solid var(--ink); padding-top: 28px; display: grid; gap: 16px; }
.thanks[hidden] { display: none; }

.info { border-top: 1px solid var(--ink); }
.info div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.info dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.info dd a { text-decoration: none; }

/* ---------- подвал ---------- */
.footer { background: var(--ink); color: var(--caliche); padding-top: clamp(64px, 8vw, 112px); padding-bottom: 32px; margin-top: clamp(40px, 6vw, 80px); }
.footer a { text-decoration: none; }
.footer__big { grid-column: 1 / -1; font-size: clamp(56px, 13vw, 220px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.82; font-variation-settings: 'wdth' 125; margin-bottom: clamp(48px, 6vw, 88px); }
.footer__col { grid-column: span 2; display: grid; gap: 8px; align-content: start; margin-bottom: 32px; }
.footer__col .label { color: rgb(236 229 216 / 0.6); margin-bottom: 4px; }
@media (min-width: 900px) { .footer__col { grid-column: span 3; } }
.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 20px; border-top: 1px solid rgb(236 229 216 / 0.25); font-family: var(--mono); font-size: 12px; color: rgb(236 229 216 / 0.7); }
.credits summary { cursor: pointer; list-style: none; display: inline-flex; gap: 8px; }
.credits summary::-webkit-details-marker { display: none; }
.credits summary::after { content: '+'; }
.credits[open] summary::after { content: '−'; }
.credits ul { margin-top: 12px; display: grid; gap: 4px; columns: 1; }
.credits li a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- появление ---------- */
.js.motion [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js.motion [data-reveal].is-in { opacity: 1; transform: none; }
/* Фото не прячем (иначе браузер не видит его и не грузит лениво),
   а закрываем плашкой цвета фона, которая уезжает вверх. */
[data-reveal-img] { position: relative; }
.js.motion [data-reveal-img]::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--band-bg, var(--caliche));
  transform-origin: 50% 0;
  transition: transform 0.9s var(--ease);
}
.js.motion [data-reveal-img].is-in::after { transform: scaleY(0); }
.js.motion .hero [data-hero-line] { display: block; overflow: hidden; }
.js.motion .hero [data-hero-line] > span { display: block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.js.motion .hero.is-ready [data-hero-line] > span { transform: none; }
.js.motion .hero.is-ready [data-hero-line]:nth-child(2) > span { transition-delay: 0.08s; }
.js.motion .hero.is-ready [data-hero-line]:nth-child(3) > span { transition-delay: 0.16s; }

.js.reduced [data-reveal], .js.reduced [data-reveal-img] { opacity: 0; transition: opacity 0.3s linear; }
.js.reduced [data-reveal].is-in, .js.reduced [data-reveal-img].is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .hero__slats { transition: none; }
  @view-transition { navigation: none; }
}
