/* Element Buro.
   Type: Jost for display, Golos Text for everything read at length; scale 1.333.
   Space: 8px steps (8 16 24 32 48 72 112 160).
   Corners: what you press is round (buttons, fields), what is built is square (photos, sheets, tables). */

:root {
  --pine: #121A18;
  --paper: #ECEEE8;
  --sheet: #F5F6F2;
  --ink: #1B2321;
  --mute: #59635F;
  --rule: #D3D8D1;
  --brass: #8F6E2C;
  --brass-l: #D2B26B;
  --concrete: #8E9792;

  --display: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-xs: .875rem;
  --t-s: 1rem;
  --t-m: 1.0625rem;
  --t-l: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem);
  --t-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --t-h2: clamp(2rem, 1.45rem + 2.1vw, 3.125rem);
  --t-h1: clamp(2.375rem, 1.5rem + 3.7vw, 4.5rem);

  --pad: clamp(20px, 5vw, 72px);
  --sec: clamp(88px, 11vw, 168px);
  --top: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Fonts are served from the site: no third-party requests. */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-cyrillic-0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-latin-1.woff2) format('woff2');
  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: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/golos-text-cyrillic-0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/golos-text-latin-1.woff2) format('woff2');
  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: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-cyrillic-0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-latin-1.woff2) format('woff2');
  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: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/jost-cyrillic-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/jost-latin-3.woff2) format('woff2');
  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: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jost-cyrillic-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jost-latin-3.woff2) format('woff2');
  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: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jost-cyrillic-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jost-latin-3.woff2) format('woff2');
  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;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-m)/1.55 var(--body); font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -.022em; }
h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -.018em; }
h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.nb { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brass-l); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; padding: 8px 16px; background: var(--ink); color: var(--paper); border-radius: 999px; }
.skip:focus { left: 8px; }

/* Controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 500 var(--t-s)/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--brass); border-color: var(--brass); }
.btn-line { background: none; color: inherit; border-color: currentColor; }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.link { text-decoration: underline; text-decoration-color: var(--brass-l); text-decoration-thickness: 1px; text-underline-offset: .28em; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20; height: var(--top); padding: 0 var(--pad);
  display: flex; align-items: center; gap: 32px;
  background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.top.on-dark { background: var(--pine); color: var(--paper); border-color: rgba(236, 238, 232, .14); }
.mark { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; font: 500 1.25rem/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.mark svg { width: 26px; height: 26px; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 36px); font-size: .9375rem; }
.nav a { padding: 8px 0; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a[aria-current] { border-color: currentColor; }
.top-tel { font: 500 .9375rem/1 var(--body); text-decoration: none; white-space: nowrap; }
.top-tel:hover { color: var(--brass); }
.top-cta { min-height: 40px; padding: 0 20px; }
.top-cta > span:last-child { display: none; }
.top.on-dark .top-cta:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.nav-more { display: none; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.burger i { display: block; width: 22px; height: 1.5px; margin: 6px auto; background: currentColor; transition: transform .3s var(--ease); }

/* Page frame */
.sec { padding: var(--sec) var(--pad); }
.sec.flush { padding-top: 0; }
.tone { background: var(--sheet); }
[data-dark] { background: var(--pine); color: var(--paper); --rule: rgba(236, 238, 232, .16); --mute: #9AA6A1; --brass: var(--brass-l); }
.wrap { max-width: 1320px; margin: 0 auto; }
.lead { font-size: var(--t-l); line-height: 1.5; max-width: 56ch; }
.note { font-size: var(--t-s); color: var(--mute); max-width: 62ch; }

/* Page head of the inner pages */
.head { padding: clamp(56px, 8vw, 120px) var(--pad) clamp(56px, 7vw, 104px); }
.head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px clamp(32px, 7vw, 128px); align-items: end; }
.head h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); max-width: 18ch; }
.head .lead { margin-top: 32px; }
.head .actions { margin-top: 40px; }
.crumb { margin-bottom: 32px; font-size: var(--t-s); color: var(--mute); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }

/* Home: one screen that plays like a film. Three reels stand side by side, one per direction;
   the reel that plays is wide and bright, the other two wait in the dark. */
.home .top { position: fixed; left: 0; right: 0; }
.top.clear { background: transparent; border-color: transparent; }
.film { position: relative; display: flex; height: 100svh; min-height: 560px; overflow: hidden; background: #0A0F0E; isolation: isolate; }
.film::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to right, rgba(10, 15, 14, .62), rgba(10, 15, 14, 0) 58%),
    linear-gradient(to bottom, rgba(10, 15, 14, .8), rgba(10, 15, 14, .2) 36%, rgba(10, 15, 14, 0) 54%); }
.film::after { content: ''; position: absolute; inset: -110px; z-index: 3; pointer-events: none; opacity: .2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; animation: grain .9s steps(6) infinite; }
.film-head { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); top: calc(var(--top) + clamp(28px, 7vh, 88px)); pointer-events: none; }
.film-head h1 { max-width: 17ch; font-size: clamp(2.5rem, 1rem + 4.2vw, 5rem); font-weight: 300; line-height: .98; letter-spacing: -.03em; }
.film-head p { max-width: 38ch; margin-top: clamp(20px, 2.4vw, 36px); color: rgba(236, 238, 232, .74); }
.reels { display: flex; flex: 1; min-width: 0; }
.reel { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; overflow: hidden; color: var(--paper); text-decoration: none;
  transition: flex-grow 1.1s var(--ease); }
.reel + .reel { box-shadow: -1px 0 0 rgba(236, 238, 232, .16); }
.reel.is-on { flex-grow: 2.1; }
.reel > video, .reel > img, .fold-fig > video, .fold-fig > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.reel > video, .reel > img { filter: brightness(.4) saturate(.5); transition: filter 1.1s var(--ease); }
.reel.is-on > video, .reel.is-on > img { filter: brightness(.86) saturate(1); }
.pan { animation: pan 18s ease-in-out infinite alternate paused; }
.is-on > .pan, .fold-fig > .pan { animation-play-state: running; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 15, 14, .86), rgba(10, 15, 14, 0) 46%); }
.reel-cap { position: relative; z-index: 5; display: grid; gap: 8px; width: 100%; padding: clamp(20px, 2.6vw, 44px) clamp(20px, 2.6vw, 44px) clamp(28px, 3.4vw, 56px); }
.reel-cap > strong { font: 400 clamp(1.25rem, .9rem + 1.1vw, 2rem)/1.12 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.reel-cap > small { font-size: var(--t-s); color: rgba(236, 238, 232, .78); opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.is-on .reel-cap > small { opacity: 1; transform: none; transition-delay: .25s; }
.reel-bar { position: relative; display: block; height: 1px; margin-top: 14px; background: rgba(236, 238, 232, .22); overflow: hidden; }
.reel-bar::after { content: ''; position: absolute; inset: 0; background: var(--brass-l); transform: scaleX(0); transform-origin: 0 50%; }
.is-on .reel-bar::after { animation: reel var(--reel, 8s) linear forwards; }
.hold .is-on .reel-bar::after { animation: none; transform: none; }
@keyframes reel { to { transform: none; } }
@keyframes pan { from { transform: scale(1.02); } to { transform: scale(1.16) translate(-2%, 1.5%); } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-60px, 40px); } 40% { transform: translate(50px, -70px); }
  60% { transform: translate(-30px, -50px); } 80% { transform: translate(70px, 60px); } 100% { transform: translate(-50px, 20px); } }



/* Intro, first visit to the home page only (html.intro is set in the head) */
.splash { display: none; }
.intro .splash { display: grid; place-items: center; position: fixed; inset: 0; z-index: 40; background: #0A0F0E; color: var(--paper); transition: background .6s var(--ease); }
.lockup { display: flex; align-items: center; font: 500 calc(1.25rem * var(--k, 1))/1 var(--display); letter-spacing: .01em; transform-origin: 0 0; transition: transform .6s var(--ease); }
.lockup svg { flex: none; width: calc(26px * var(--k, 1)); height: calc(26px * var(--k, 1)); animation: unfold .45s var(--ease) both; }
.lockup path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .45s var(--ease) .05s forwards; }
.lockup > span { display: block; overflow: hidden; max-width: 0; animation: name .4s var(--ease) .35s forwards; }
.lockup b { display: block; padding-left: calc(12px * var(--k, 1)); font-weight: 500; white-space: nowrap; transform: translateX(-35%); animation: slide .4s var(--ease) .35s forwards; }
.intro .top .mark { visibility: hidden; }
.intro .top .nav, .intro .top-cta, .intro .top-tel, .intro .burger, .intro .film-head { opacity: 0; }
.intro .film-head { transform: translateY(40px); }
.intro .reel { clip-path: inset(100% 0 0 0); }
.intro-move .splash { background: rgba(10, 15, 14, 0); pointer-events: none; }
.intro-move .top .nav, .intro-move .top-cta, .intro-move .top-tel, .intro-move .burger { opacity: 1; transition: opacity .4s var(--ease) .15s; }
.intro-move .film-head { opacity: 1; transform: none; transition: opacity .5s var(--ease) .1s, transform .6s var(--ease) .1s; }
.intro-move .reel { clip-path: inset(0); transition: clip-path .7s var(--ease); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes unfold { from { opacity: 0; transform: rotate(-90deg) scale(.6); } }
@keyframes name { to { max-width: 8em; } }
@keyframes slide { to { transform: none; } }

/* Jump links to the parts of a long page */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--rule); border-radius: 999px; font-size: var(--t-s); text-decoration: none; transition: border-color .2s; }
.jump a:hover { border-color: var(--ink); }

/* Specification: label left, value right, ruled like a drawing schedule */
.spec { border-top: 1px solid var(--ink); }
.spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec dt { flex: none; font-size: var(--t-s); color: var(--mute); }
.spec dd { font-weight: 500; text-align: right; }
[data-dark] .spec { border-top-color: var(--paper); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Drawings */
.draw { overflow: visible; font-family: var(--body); }
.draw path { vector-effect: non-scaling-stroke; }
.draw .ln path, .draw .thin path, .draw .solid path { fill: none; stroke: var(--line); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.draw .thin path { stroke-width: .8; opacity: .62; }
.draw .solid path { fill: var(--bg); }
.draw .brass path { fill: none; stroke: var(--dim); stroke-width: 1; stroke-linecap: round; }
.draw .brass text { fill: var(--dim); font-size: 13px; font-weight: 500; text-anchor: middle; letter-spacing: .04em; }
.draw .brass text.tiny { font-size: 11px; font-weight: 400; text-anchor: end; letter-spacing: 0; }
.draw .axes path { fill: none; stroke: var(--concrete); stroke-width: .8; stroke-dasharray: 10 5 2 5; opacity: .6; }
.draw .tag circle { fill: var(--bg); stroke: var(--concrete); stroke-width: .8; }
.draw .tag text { fill: var(--concrete); font-size: 12px; text-anchor: middle; }
.draw .dash { fill: none; stroke: var(--concrete); stroke-width: .8; stroke-dasharray: 7 6; }
.draw .cols path { fill: var(--line); }
.draw .label text { fill: var(--line); font-size: 13px; text-anchor: middle; }
.draw .label text.sub { fill: var(--concrete); font-size: 11px; }
.draw .label text.left { fill: var(--concrete); font-size: 12px; text-anchor: start; }
.draw .glow path { stroke: none; }
.draw .glow path:not([fill]) { fill: url(#lamp); }
.js .draw [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .draw [data-fade] { opacity: 0; }

.sec > .wrap > h2 { max-width: 20ch; }

/* Tables */
.ledger { width: 100%; border-collapse: collapse; margin-top: clamp(40px, 5vw, 72px); font-size: var(--t-s); }
.ledger th { padding: 0 16px 12px 0; font-weight: 400; color: var(--mute); text-align: left; border-bottom: 1px solid var(--ink); }
.ledger td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.ledger td:first-child { font: 400 clamp(1.25rem, 1.1rem + .6vw, 1.625rem)/1.2 var(--display); }
.ledger th:not(:first-child), .ledger td:not(:first-child) { text-align: right; white-space: nowrap; }
.ledger th:last-child, .ledger td:last-child { padding-right: 0; }
.more { margin-top: 40px; }




.note + .actions { margin-top: 40px; }

/* Calculator: controls on the left, the estimate on a sheet on the right */
.calc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 104px); align-items: start; padding: 8px 0 28px; }
html:not(.js) .calc { display: none; }
.calc-area { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px 24px; margin-top: clamp(40px, 5vw, 64px); }
.calc-area label, .seg legend, .opts legend { padding: 0; font-size: var(--t-s); color: var(--mute); }
.calc-area output { font: 400 var(--t-h3)/1 var(--display); }
.calc-area input { grid-column: 1 / -1; width: 100%; height: 32px; margin: 0; appearance: none; -webkit-appearance: none; background: none; cursor: pointer; }
.calc-area input::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
.calc-area input::-moz-range-track { height: 1px; background: var(--ink); }
.calc-area input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -12px; border: 0; border-radius: 50%; background: var(--ink); transition: background .2s; }
.calc-area input::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--ink); }
.calc-area input:hover::-webkit-slider-thumb, .calc-area input:focus-visible::-webkit-slider-thumb { background: var(--brass); }
.calc-area input:focus-visible { outline: 0; }
.calc-area input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--sheet), 0 0 0 5px var(--brass-l); }
.seg { min-width: 0; margin: 36px 0 0; padding: 0; border: 0; }
.seg > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg label > span { display: inline-block; padding: 11px 20px; line-height: 20px; border: 1px solid var(--rule); border-radius: 999px; font-size: var(--t-s); transition: background .2s, color .2s, border-color .2s; }
.seg label:hover > span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--brass-l); outline-offset: 3px; }
.opts { min-width: 0; margin: 36px 0 0; padding: 0; border: 0; }
.opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.opts legend + .opt { margin-top: 14px; border-top: 1px solid var(--rule); }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.opt > small { font-size: var(--t-s); color: var(--mute); white-space: nowrap; }
.calc-out { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--rule); background: var(--paper); }
.calc-sum { display: grid; gap: 10px; }
.calc-sum small { font-size: var(--t-s); color: var(--mute); }
.calc-sum strong { font: 400 var(--t-h2)/1 var(--display); letter-spacing: -.018em; white-space: nowrap; }
.calc-sum > span { color: var(--mute); }
.calc-out .spec { margin-top: 28px; }
.calc-out .spec dt { flex: 0 1 auto; }
.calc-out .spec dd { flex: none; }
.calc-out .btn { width: 100%; margin-top: 28px; }
.calc-out .note { margin-top: 16px; font-size: var(--t-xs); }

/* Voices: what customers wrote */

/* Next stage */
.next { display: block; padding: clamp(32px, 4vw, 56px) var(--pad); border-top: 1px solid var(--rule); text-decoration: none; transition: background .35s var(--ease); }
.next:hover { background: var(--sheet); }
.next .wrap { display: grid; justify-items: start; gap: 8px; }
.next small { font-size: var(--t-s); color: var(--mute); }
.next strong { font: 400 var(--t-h3)/1.15 var(--display); text-decoration: underline; text-decoration-color: var(--brass-l); text-decoration-thickness: 1px; text-underline-offset: .16em; }

/* Contact */
.sec.contact { padding-top: clamp(48px, 5vw, 80px); padding-bottom: clamp(48px, 5vw, 80px); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 104px); align-items: start; }
.contact h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); }
.contact .lead { margin-top: 14px; font-size: var(--t-m); color: var(--mute); }
.starts { margin-top: 24px; border-top: 1px solid var(--paper); }
.start { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.start input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.start::before { content: ''; grid-row: 1; width: 22px; height: 22px; margin-top: 2px; border: 1px solid var(--mute); border-radius: 50%; transition: border-color .2s, box-shadow .2s, background .2s; }
.start:hover::before { border-color: var(--paper); }
.start:has(input:checked)::before { border-color: var(--brass-l); background: var(--brass-l); box-shadow: inset 0 0 0 5px var(--pine); }
.start:has(input:focus-visible) { outline: 2px solid var(--brass-l); outline-offset: 3px; }
.start > span { display: grid; gap: 4px; }
.start strong { font: 400 clamp(1.125rem, 1.02rem + .36vw, 1.3125rem)/1.25 var(--display); }
/* only the chosen way explains itself: the other two stay one line each */
.start small { display: none; font-size: var(--t-s); color: var(--mute); }
.start:has(input:checked) small { display: block; }
.field[hidden] { display: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.file { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 1px dashed var(--mute); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.file:hover, .file:focus-within { border-color: var(--brass-l); background: rgba(236, 238, 232, .05); }
.file input { position: absolute; inset: 0; width: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.file b { flex: none; font-weight: 500; color: var(--paper); }
.file > span { overflow: hidden; font-size: var(--t-xs); white-space: nowrap; text-overflow: ellipsis; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
.field { display: grid; gap: 8px; font-size: var(--t-s); color: var(--mute); }
.field.wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--rule); border-radius: 12px;
  background: rgba(236, 238, 232, .04); color: var(--paper); font: 400 var(--t-m)/1.4 var(--body);
  transition: border-color .2s, background .2s;
}
.field select { appearance: none; padding-right: 44px; text-overflow: ellipsis; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--mute); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--brass-l); background-color: rgba(236, 238, 232, .07); }
.form .btn { justify-self: start; background: var(--paper); border-color: var(--paper); color: var(--ink); }
.form .btn:hover { background: var(--brass-l); border-color: var(--brass-l); }
.form-status { grid-column: 1 / -1; font-size: var(--t-s); color: var(--brass-l); }
.form-status:empty { height: 0; }
.form-status:empty + .form-legal { margin-top: -14px; }
.form-legal { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--mute); }
.agree { grid-column: 1 / -1; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--t-xs); color: var(--mute); cursor: pointer; }
.agree input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 1px solid var(--mute); border-radius: 6px; background: transparent center / 14px no-repeat; cursor: pointer; transition: background-color .2s, border-color .2s; }
.agree input:hover { border-color: var(--paper); }
.agree input:checked { border-color: var(--brass-l); background-color: var(--brass-l); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.6' fill='none' stroke='%23121A18' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.form-done { grid-column: 1 / -1; display: grid; gap: 16px; justify-items: start; align-content: center; min-height: 280px; }
.form-done[hidden] { display: none; }
.form-done h3 { font-size: var(--t-h2); }
.form-done p { max-width: 44ch; font-size: var(--t-l); color: var(--mute); }
.form-done a { color: var(--paper); white-space: nowrap; }
.form .form-done .btn { grid-column: auto; justify-self: start; background: none; border-color: currentColor; color: var(--paper); }
.form .form-done .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.form.is-sent > :not(.form-done) { display: none; }
.agree a { color: var(--paper); text-decoration-color: var(--mute); text-underline-offset: .2em; }
.agree a:hover { text-decoration-color: var(--brass-l); }
.form { gap: 14px 20px; }
.contact textarea { min-height: 88px; }
/* without the plan field the object takes the whole row */
.form:has([data-for][hidden]) .field-object { grid-column: 1 / -1; }
.form .agree { grid-column: 1; align-self: center; }
.form .btn { grid-column: 2; justify-self: end; }

/* Legal texts */
.doc-head .wrap { grid-template-columns: minmax(0, 1fr); }
.doc-head h1 { max-width: 22ch; }
.doc > .note { max-width: 60ch; }
.doc section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px clamp(32px, 7vw, 128px); margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
.doc h2 { font-size: var(--t-h3); line-height: 1.2; }
.doc section > div { max-width: 68ch; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 16px; }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--brass); }

/* Footer: who we are, where to go, how to reach us; documents and the legal line under a rule */
.foot { padding: clamp(40px, 4.4vw, 64px) var(--pad) 28px; background: var(--pine); color: #9AA6A1; font-size: var(--t-s); border-top: 1px solid rgba(236, 238, 232, .14); }
.foot-main { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)) minmax(0, 3fr); gap: 48px clamp(24px, 4vw, 64px); }
.foot-brand .mark { color: var(--paper); }
.foot-brand p { margin-top: 20px; max-width: 34ch; }
.foot h2 { margin-bottom: 14px; font: 500 var(--t-xs)/1.4 var(--body); letter-spacing: 0; color: var(--paper); }
.foot nav, .foot address { display: grid; align-content: start; justify-items: start; font-style: normal; }
.foot nav a, .foot address a, .foot address span { padding: 5px 0; }
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover, .foot a[aria-current] { color: var(--paper); }
.foot address a { color: var(--paper); }
.foot-legal { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)) minmax(0, 3fr); gap: 8px clamp(24px, 4vw, 64px); margin-top: clamp(32px, 3.4vw, 48px); padding-top: 24px; border-top: 1px solid rgba(236, 238, 232, .14); font-size: var(--t-xs); }
.foot-legal nav { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 0 28px; }
.foot-legal nav a { padding: 0 0 8px; text-decoration: underline; text-decoration-color: rgba(236, 238, 232, .24); text-underline-offset: .25em; }
.foot-fine { grid-column: 2 / -1; max-width: 78ch; color: #7C8884; }

@media (max-width: 1320px) { .top { gap: 20px; } .nav { gap: 16px; } }
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .top.is-open { background: var(--pine); color: var(--paper); border-color: transparent; }
  .top.is-open .burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
  .top.is-open .burger i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .top.is-open .nav {
    display: flex; flex-direction: column; gap: 0; position: fixed; inset: var(--top) 0 0; padding: 24px var(--pad) 48px;
    background: var(--pine); overflow: auto; font: 400 2rem/1.2 var(--display);
  }
  .top.is-open .nav a { padding: 16px 0; border-bottom: 1px solid rgba(236, 238, 232, .14); }
  .top.is-open .nav-more { display: flex; flex-direction: column; margin-top: 32px; font: 400 var(--t-l)/1.3 var(--body); color: #9AA6A1; }
  .top.is-open .nav-more a { padding: 14px 0; }
}

@media (max-width: 860px) {
  :root { --top: 60px; }
  .top { gap: 12px; }
  .top-tel { display: none; }
  .top-cta { min-height: 36px; padding: 0 16px; }
  .top-cta > span:first-child { display: none; }
  .top-cta > span:last-child { display: inline; }
  .doc section, .head .wrap, .contact .wrap, .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .seg label > span { padding: 11px 16px; }
  .film { flex-direction: column; height: auto; min-height: 100svh; }
  .film::before { display: none; }
  .film-head { position: static; padding: calc(var(--top) + 28px) var(--pad) 28px; }
  .film-head h1 { font-size: clamp(2.125rem, 10vw, 3rem); }
  .reels { flex-direction: column; }
  .reel { min-height: 104px; transition: flex-grow .9s var(--ease); }
  .reel + .reel { box-shadow: 0 -1px 0 rgba(236, 238, 232, .16); }
  .reel-cap { padding: 16px var(--pad) 20px; gap: 4px; }
  .reel-bar { margin-top: 10px; }
  .head .actions .btn { flex: 1 1 auto; }
  .jump { margin-top: 32px; }
  .foot-main { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .foot-brand p, .foot nav h2 { display: none; }
  .foot-main nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .foot address { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .foot address h2 { display: none; }
  .foot nav a, .foot address a, .foot address span { padding: 9px 0; }
  .foot-legal { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 20px; padding-top: 20px; }
  .foot-legal nav { grid-column: auto; gap: 0 20px; }
  .foot-legal nav a { padding: 9px 0; }
  .foot-fine { grid-column: auto; }


  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; }
  .ledger tr { padding: 20px 0; border-bottom: 1px solid var(--rule); }
  .ledger tr:first-child { border-top: 1px solid var(--ink); }
  .ledger td, .ledger td:not(:first-child) { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border: 0; white-space: normal; }
  .ledger td:first-child { padding-bottom: 10px; }
  .ledger td:not(:first-child)::before { content: attr(data-th); color: var(--mute); }
  /* name and phone share a row even on a phone; everything else takes the full width */
  .field { grid-column: 1 / -1; }
  .field:has([name=name]), .field:has([name=phone]) { grid-column: auto; }
  .field input, .field select, .field textarea { padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

@media (max-width: 359px) {
  .top-cta { display: none; }
}


/* Pictures from the building sites and the large view of any picture */
.ledger td a { text-decoration-color: var(--brass-l); text-decoration-thickness: 1px; text-underline-offset: .16em; }

.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.shot { margin: 0; }
.shot a { display: block; overflow: hidden; background: var(--rule); cursor: zoom-in; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.shots.site .shot img { aspect-ratio: 3 / 4; }
.shot a:hover img { transform: scale(1.03); }
.shot figcaption { padding-top: 12px; font-size: var(--t-s); color: var(--mute); }
.scope { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.scope li { padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: var(--t-s); }
.ledger + .note + .actions { margin-top: 40px; }

.zoom { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 15, 14, .94); color: var(--paper); }
.zoom::backdrop { background: rgba(10, 15, 14, .94); }
.zoom img { position: absolute; inset: 56px 72px; width: calc(100% - 144px); height: calc(100% - 112px); object-fit: contain; }
.zoom button { position: absolute; z-index: 1; width: 48px; height: 48px; border: 1px solid rgba(236, 238, 232, .4); border-radius: 999px; background: none; color: inherit; font: 400 1.25rem/1 var(--body); cursor: pointer; }
.zoom button:hover { background: var(--paper); color: var(--ink); }
.zoom .zoom-x { top: 16px; right: 16px; }
.zoom .zoom-prev { left: 12px; top: 50%; translate: 0 -50%; }
.zoom .zoom-next { right: 12px; top: 50%; translate: 0 -50%; }
.zoom-cap { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: var(--t-s); color: #9AA6A1; }

.draft-flag { position: fixed; left: 16px; bottom: 16px; z-index: 30; padding: 8px 14px; border-radius: 999px; background: var(--brass); color: #fff; font-size: var(--t-xs); pointer-events: none; }

/* Direction page: one screen cut in two. The picture holds the left half and stays,
   the right half answers what a customer asks first; a line opens on a click. */
.sec.tight { padding-top: clamp(48px, 5vw, 80px); padding-bottom: clamp(48px, 5vw, 80px); }
.fold { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); min-height: calc(100svh - var(--top)); border-bottom: 1px solid var(--rule); }
/* A page without a picture shows its drawing on the left half: the sheet draws itself once on arrival. */
.fold-fig.fold-sheet { --bg: var(--sheet); --line: var(--ink); --dim: var(--brass); display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 72px); background: var(--sheet); border-right: 1px solid var(--rule); }
.fold-sheet .draw { width: 100%; height: auto; max-height: 100%; }
.fold-fig { position: sticky; top: var(--top); height: calc(100svh - var(--top)); overflow: hidden; background: #0A0F0E; }
.fold-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 2.6vw, 44px) clamp(24px, 3.4vw, 56px); }
.fold-text > * { width: 100%; max-width: 560px; }
.fold .crumb { margin-bottom: 16px; }
.fold h1 { font-size: clamp(2rem, 1.3rem + 2.1vw, 3.125rem); }
.fold .lead { margin-top: 14px; font-size: var(--t-m); color: var(--mute); }
.fold .facts { margin-top: 22px; }
.fold .actions { margin-top: 24px; }

.facts { border-top: 1px solid var(--ink); }
.facts details { border-bottom: 1px solid var(--rule); }
.facts summary { display: flex; align-items: baseline; gap: 4px 16px; padding: 10px 0; cursor: pointer; list-style: none; }
.facts summary::-webkit-details-marker { display: none; }
.facts summary > span { font: 400 clamp(1.125rem, 1.02rem + .36vw, 1.3125rem)/1.25 var(--display); transition: color .2s; }
.facts summary > small { margin-left: auto; font-size: var(--t-s); color: var(--mute); text-align: right; }
.facts summary::after { content: ''; flex: none; align-self: center; width: 11px; height: 11px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform .3s var(--ease); }
.facts summary > span:only-child { margin-right: auto; }
.facts details[open] > summary::after { transform: rotate(45deg); }
.facts summary:hover > span, .facts details[open] > summary > span { color: var(--brass); }
.fact { padding: 2px 0 20px; font-size: var(--t-s); color: var(--mute); }
.fact > * + * { margin-top: 12px; }
.fact p { max-width: 60ch; }
.fact strong { font-weight: 500; color: var(--ink); }
.fact .ledger { margin-top: 0; }
.mini li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.mini li:last-child { border-bottom: 0; }
.mini li > span { color: var(--ink); }
.mini li > small { flex: none; font-size: inherit; white-space: nowrap; }

/* A picture shown entire: nobody at the edge of a group portrait is cut off. It stands still on the sheet. */
.fold-whole { background: var(--sheet); border-right: 1px solid var(--rule); }
.fold-whole > img { object-fit: contain; padding: clamp(16px, 2.6vw, 40px); animation: none; }

/* «Все условия»: the lines past the first five wait behind one quiet line */
.facts-more > summary { justify-content: flex-start; padding: 14px 0 4px; }
.facts-more > summary > span { font: 400 var(--t-s)/1.3 var(--body); color: var(--mute); text-decoration: underline; text-decoration-color: var(--brass-l); text-decoration-thickness: 1px; text-underline-offset: .28em; }
.facts-more > summary::after { margin-left: 10px; }
.facts .facts-more { border-bottom: 0; }
.facts-more[open] > summary { padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.facts .facts-more[open] > summary > span { color: var(--ink); }

/* A heading with a dimension line: the size mark of a drawing, slashes at both ends */
.row-head { display: flex; align-items: baseline; gap: 12px clamp(16px, 2vw, 28px); margin-bottom: clamp(24px, 2.8vw, 40px); }
.row-head h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); }
.row-head + .shots { margin-top: 0; }

/* The sample design project: sheets of the album on white paper, the caption says what is on each and who works by it */
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); align-items: start; }
.album.strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.album-lead { max-width: 46em; margin: calc(-1 * clamp(8px, 1.4vw, 20px)) 0 clamp(24px, 2.8vw, 40px); color: var(--mute); font-size: var(--t-s); }
.leaf { margin: 0; }
.leaf > a { display: block; background: #fff; border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 0 10px 24px -18px rgba(18, 26, 24, .35); transition: transform .4s var(--ease); }
.leaf > a:hover { transform: translateY(-3px); }
.leaf img { display: block; width: 100%; aspect-ratio: 1189 / 841; object-fit: contain; }
.leaf-render img { object-fit: cover; }
.leaf figcaption { margin-top: 12px; font-size: var(--t-s); line-height: 1.35; color: var(--ink); }
.leaf figcaption b { font: 500 var(--t-xs)/1 var(--display); color: var(--brass); letter-spacing: .06em; margin-right: 6px; }
.leaf figcaption > span:not(.nb) { display: block; margin-top: 6px; font-size: var(--t-xs); color: var(--mute); }
.leaf figcaption small { display: block; margin-top: 4px; font-size: var(--t-xs); color: var(--concrete); }
/* inside a line of the first screen the four sheets sit in one small row and say only their number */
.fact .album.strip { gap: 10px; margin-top: 4px; }
.fact .leaf figcaption { margin-top: 6px; font-size: var(--t-xs); }
.fact .leaf figcaption > span, .fact .leaf figcaption small { display: none; }
@media (max-width: 1180px) { .album.strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .album.strip { grid-template-columns: minmax(0, 1fr); } }
.zoom img[src$=".svg"] { background: #fff; }
.dim { position: relative; flex: 1 1 40px; align-self: center; height: 1px; min-width: 24px; background: var(--concrete); opacity: .7; }
.dim::before, .dim::after { content: ''; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--brass); transform: rotate(45deg); }
.dim::before { left: 5px; }
.dim::after { right: 5px; }
.row-head > .link { flex: none; }

/* Portfolio: pictures only. The name is written on the picture, in its corner */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(24px, 3vw, 48px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.tiles.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--pine); color: var(--paper); text-decoration: none; }
.tile[hidden] { display: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .7s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(10, 15, 14, .78), rgba(10, 15, 14, 0)); transition: opacity .5s var(--ease); pointer-events: none; }
.tile:hover img { transform: scale(1.04); }
.tile:hover::after { opacity: .75; }
.tile-cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: clamp(14px, 1.6vw, 22px) clamp(16px, 1.8vw, 26px); }
.tile-cap > strong { flex: 1 1 auto; min-width: 0; font: 400 clamp(1.0625rem, .98rem + .4vw, 1.3125rem)/1.2 var(--display); letter-spacing: .005em; }
.tile-cap > small { flex: none; font-size: var(--t-xs); color: rgba(236, 238, 232, .82); }
/* the first object large: it takes the place of four */
.tiles.feature > .tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.tiles.feature > .tile:first-child .tile-cap > strong { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); }
.works-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(28px, 3vw, 44px); }
.works-head .crumb { margin-bottom: 20px; }
.works-head h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); }
.works-head .jump { margin-top: 0; }
.jump a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* An object: a stage across the whole screen. The picture is shown whole; beside it the same picture, blurred, fills the stage.
   Under the stage the small pictures, then the name, the figures in one line and the ways to reach the bureau. */
.gal { padding-bottom: 14px; background: #0A0F0E; }
.gal-stage { position: relative; height: calc(100svh - var(--top) - 312px); min-height: 300px; overflow: hidden; }
.gal-stage::before { content: ''; position: absolute; inset: -40px; background: var(--shot) center / cover; filter: blur(36px) brightness(.38) saturate(.8); }
.gal-main { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s var(--ease); }
.gal-main img.is-out { opacity: 0; }
.gal-cap { position: absolute; left: var(--pad); bottom: 16px; display: flex; gap: 16px; color: var(--paper); font-size: var(--t-s); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); pointer-events: none; }
.gal-cap > span + span { color: rgba(236, 238, 232, .7); }
.gal-prev, .gal-next { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border: 1px solid rgba(236, 238, 232, .5); border-radius: 999px; background: rgba(18, 26, 24, .42); color: var(--paper); font: 400 1.25rem/1 var(--body); cursor: pointer; transition: background .2s, color .2s; }
.gal-prev { left: var(--pad); }
.gal-next { right: var(--pad); }
.gal-prev:hover, .gal-next:hover { background: var(--paper); color: var(--ink); }
.gal-thumbs { position: relative; display: flex; gap: 8px; max-width: calc(1320px + 2 * var(--pad)); margin: 14px auto 0; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumb { flex: none; width: 104px; opacity: .5; transition: opacity .25s; }
.gal-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--pine); }
.gal-thumb:hover, .gal-thumb[aria-current] { opacity: 1; }
.gal-thumb[aria-current] { outline: 1px solid var(--brass-l); outline-offset: 2px; }
.obj { padding: clamp(20px, 2.4vw, 32px) var(--pad) clamp(32px, 4vw, 56px); }
.gal-info { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(24px, 4vw, 64px); align-items: start; }
.gal-info .crumb { margin-bottom: 10px; font-size: var(--t-xs); }
.gal-info h1 { font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.875rem); }
.obj-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 16px clamp(16px, 2vw, 32px); }
.obj-spec > div { display: grid; gap: 6px; align-content: start; padding-top: 12px; border-top: 1px solid var(--ink); }
.obj-spec dt { font-size: var(--t-xs); color: var(--mute); }
.obj-spec dd { font-weight: 500; }
.gal-info .actions { margin-top: 20px; gap: 10px; }
.obj-spec dd { font-size: var(--t-s); }

@media (max-width: 1180px) {
  .gal-info { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .fold { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .fold-fig { position: relative; top: 0; height: 34svh; min-height: 220px; }
  .fold-whole { height: auto; min-height: 0; aspect-ratio: 3 / 2; border-right: 0; }
  .fold-whole > img { padding: 0; }
  .fold-text { padding: 20px var(--pad) 32px; }
  .fold .crumb { margin-bottom: 10px; }
  .fold .lead { margin-top: 10px; font-size: var(--t-s); }
  .fold .facts { margin-top: 16px; }
  .fold .actions { margin-top: 20px; gap: 10px; }
  .fold .actions .btn { flex: 1 1 calc(50% - 5px); padding: 0 12px; }
  .fold .actions .btn:first-child { flex-basis: 100%; }
  .facts summary > small { font-size: var(--t-xs); max-width: 55%; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  /* a phone leafs through the portfolio sideways; only the works page, which is there to be scrolled, keeps its column */
  .tiles, .shots.site { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); }
  .tiles::-webkit-scrollbar, .shots.site::-webkit-scrollbar { display: none; }
  .tiles > .tile { flex: 0 0 78%; scroll-snap-align: start; }
  .shots.site > .shot { flex: 0 0 46%; scroll-snap-align: start; }
  .works-sec .tiles { display: grid; grid-template-columns: minmax(0, 1fr); margin-right: 0; padding-right: 0; overflow: visible; }
  .form .agree, .form .btn { grid-column: 1 / -1; }
  .form .btn { justify-self: stretch; }
  .tiles.feature > .tile:first-child .tile-cap > strong { font-size: 1.125rem; }
  .gal-stage { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  /* on a phone the dock under the thumb already offers the call and the estimate */
  .gal-info .actions { display: none; }
  .gal-prev, .gal-next { width: 44px; height: 44px; }
  .gal-thumb { width: 84px; }
  .gal-info .obj-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-head { flex-wrap: wrap; }
  .zoom img { inset: 64px 0 56px; width: 100%; height: calc(100% - 120px); }
  .zoom .zoom-prev, .zoom .zoom-next { top: auto; bottom: 8px; translate: none; }
}

/* The question about visit statistics: asked once, at the bottom, without covering the page */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 760px; margin: 0 auto; padding: 16px 20px; border: 1px solid var(--rule); border-radius: 16px; background: var(--sheet); color: var(--ink); font-size: var(--t-s); box-shadow: 0 12px 40px rgba(18, 26, 24, .18); }
.consent p { flex: 1 1 300px; }
.consent > div { display: flex; gap: 8px; }
.consent .btn { min-height: 40px; padding: 0 20px; }
button.link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.voices .note { margin-top: 16px; }
.about .more { margin-top: 20px; }

/* The team: a portrait, a name, what the person answers for */
.faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(12px, 1.6vw, 24px); }
.faces li { display: grid; gap: 4px; align-content: start; }
.faces img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 10px; background: var(--rule); }
.faces strong { font: 400 clamp(1.125rem, 1.02rem + .36vw, 1.3125rem)/1.25 var(--display); }
.faces span { font-size: var(--t-s); color: var(--mute); }
/* Works: groups of filters that add up — type, readiness, style. Each group is a row with its name in front. */
.works-filter { display: grid; gap: 10px; margin-bottom: 18px; }
.works-filter .jump { margin: 0; gap: 8px; }
.works-filter .jump::before { content: attr(aria-label); align-self: center; min-width: 8.5em; font-size: var(--t-s); color: var(--mute); }
.works-filter .jump a { min-height: 40px; padding: 0 16px; }
.works-filter .jump a .n { margin-left: 8px; font-size: var(--t-xs); color: var(--mute); }
.works-filter .jump a[aria-current] .n { color: inherit; opacity: .7; }
.works-filter .jump a.is-none { opacity: .45; }
.works-count { min-height: 1.5em; margin: 0 0 18px; font-size: var(--t-s); color: var(--mute); }
.works-empty { display: grid; justify-items: start; gap: 20px; padding: clamp(24px, 4vw, 56px) 0; }
.works-empty[hidden] { display: none; }
@media (max-width: 860px) {
  /* on a phone each group is one line that scrolls sideways, so three groups do not push the works off the screen */
  .works-filter .jump { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad); scrollbar-width: none; }
  .works-filter .jump::-webkit-scrollbar { display: none; }
  .works-filter .jump::before { min-width: auto; margin-right: 4px; white-space: nowrap; }
  .works-filter .jump a { flex: none; }
}
/* On a phone the call, the message and the estimate stay under the thumb */
.dock { display: none; }
@media (max-width: 860px) {
  .faces { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); }
  .faces::-webkit-scrollbar { display: none; }
  .faces li { flex: 0 0 46%; scroll-snap-align: start; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 8px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); transition: transform .3s var(--ease); }
  .dock.is-off { transform: translateY(110%); }
  .dock .btn { flex: 1 1 0; min-height: 44px; padding: 0 8px; }
  .consent { bottom: 76px; }
}

/* Motion that answers the visitor: a line opens instead of snapping, a picture comes in instead of popping,
   one page gives way to the next. Browsers that cannot do it simply show the result. */
:root { interpolate-size: allow-keywords; }
.facts details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.facts details[open]::details-content { block-size: auto; }
.js img.lazy { opacity: 0; }
.js img.lazy.is-in { opacity: 1; }
.faces img, .shot img { transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js img.lazy { opacity: 1; }
}

/* The supplier questionnaire: the lead form's fields, in named groups on one column of the page. */
.supplier .wrap { display: block; max-width: 980px; }
.supplier-form { display: grid; gap: clamp(32px, 4vw, 48px); }
.supplier-form .field { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.supplier-form .group { min-width: 0; margin: 0; padding: 0; border: 0; }
.supplier-form .group > legend { padding: 0; margin-bottom: 18px; font: 400 clamp(1.375rem, 1.15rem + .8vw, 1.875rem)/1.2 var(--display); color: var(--paper); }
.supplier-form .group > .note { margin: -6px 0 18px; color: var(--mute); }
.field b { color: var(--brass-l); font-weight: 400; }
.choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice legend { padding: 0; margin-bottom: 10px; }
.choice small { margin-left: 8px; font-size: var(--t-xs); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 22px; color: var(--paper); font-size: var(--t-s); transition: border-color .2s, background .2s, color .2s; }
.pick:hover span { border-color: var(--mute); }
.pick input:checked + span { border-color: var(--brass-l); background: var(--brass-l); color: var(--ink); }
.pick input:focus-visible + span { outline: 2px solid var(--brass-l); outline-offset: 3px; }
.supplier-form .tier { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; }
.tier-name { color: var(--paper); }
.supplier-send .form-done { min-height: 0; }
.supplier-form.is-sent > :not(.supplier-send), .supplier-form.is-sent .supplier-send > :not(.form-done) { display: none; }
@media (max-width: 720px) {
  .supplier-form .form { grid-template-columns: minmax(0, 1fr); }
  .supplier-form .field { grid-column: 1 / -1; }
  .supplier-form .tier { grid-template-columns: minmax(0, 1fr); }
  .supplier-send .agree, .supplier-send .btn { grid-column: 1 / -1; justify-self: stretch; }
}

/* «Карандаш» is now «Элемент бюро»: a strip above the header for visitors from the old addresses. */
.renamed { position: relative; z-index: 21; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px calc(var(--pad) + 40px) 8px var(--pad); background: var(--brass-l); color: var(--ink); font-size: var(--t-xs); line-height: 1.35; text-align: center; }
.renamed p { max-width: 70ch; }
.renamed button { position: absolute; right: max(8px, calc(var(--pad) - 12px)); top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 0; background: none; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.renamed button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
/* on the home page the header floats over the film: with the strip above it, it sticks instead and the film still slides under it */
.renamed-on.home .top, .renamed-on .home .top { position: sticky; margin-bottom: calc(-1 * var(--top)); }

/* A long portfolio block: its end, watched by app.js, and the way to the next six */
.tiles > .tiles-end { grid-column: 1 / -1; height: 0; margin-top: calc(-1 * clamp(12px, 1.6vw, 24px)); }
.tiles-more { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: clamp(24px, 3vw, 40px); }
.tiles-more span { font-size: var(--t-s); color: var(--mute); }
@media (max-width: 860px) {
  .tiles > .tiles-end { flex: 0 0 1px; height: auto; margin: 0; }
  .tiles-more { justify-content: flex-start; margin-top: 16px; }
}
