@font-face {
  font-family: 'Bebas Neue';
  src: url('assets/fonts/BebasNeue-Book.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('assets/fonts/BebasNeue-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('assets/fonts/BebasNeue-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --white: #fff;
  --intro-background: #000000;
  --stage-paper: var(--intro-background);
  --stage-ink: #000;
  --stage-marker: var(--accent);
  --paper: #d6e3d8;
  --ink: #201f1f;
  --accent: #365947;
  --accent-hover: #294536;
  --body-ink: #393736;
  --muted: #57524f;
  --line: color-mix(in srgb, var(--accent) 24%, var(--paper));
  --typeface: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
  --max: 1440px;
  --gutter: clamp(20px, 5vw, 88px);
  --header: 68px;
  --sheet-gap: clamp(18px, 3.5vh, 40px);
}
:root[data-dark-paper] { --stage-ink: var(--white); --stage-marker: #a4c0af; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 14px); background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 1rem/1.52 var(--typeface); letter-spacing: .025em; font-synthesis: none; }
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
h1, h2, p, figure, dl, dd { margin: 0; }
h1, h2 { font-size: clamp(2.6rem, 5vw, 5.2rem); font-weight: 700; line-height: 1; letter-spacing: .005em; text-wrap: balance; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin-inline: auto; }
.eyebrow { font-weight: 500; font-size: 1.02rem; line-height: 1.3; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; }
.site-nav a, .site-footer nav, .text-link, .gallery-caption {
  font-size: 1.22rem; font-weight: 500; letter-spacing: .042em;
}
.text-link { display: inline-block; color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .32em; }
.text-link:hover { text-decoration-thickness: 2px; }
.skip-link { position: fixed; left: 8px; top: 8px; z-index: 20; padding: 10px 18px; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 5; top: 0; color: var(--stage-ink); background: var(--stage-paper); border-bottom: 1px solid color-mix(in srgb, currentColor 19%, transparent); }
.header-inner { min-height: var(--header); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; }
.wordmark { display: inline-flex; justify-self: start; align-items: center; min-height: 44px; }
.wordmark img { width: 208px; mix-blend-mode: multiply; }
:root[data-dark-paper] .site-header .wordmark img { filter: invert(1); mix-blend-mode: screen; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: clamp(4px, 1vw, 16px); }
.site-nav, .site-footer nav { display: flex; align-items: center; gap: clamp(16px, 2.8vw, 40px); }
.site-nav { justify-self: center; gap: clamp(14px,1.8vw,28px); }
.site-footer nav { flex-wrap: wrap; }
.site-nav a, .site-footer nav a { text-decoration: none; }
.site-nav a:hover, .site-footer nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .3em; }
.site-nav a:hover { color: var(--stage-ink); }
.header-contact { display: grid; justify-items: end; }
.header-phone { display: inline-flex; align-items: center; min-height: 32px; color: inherit; font-size: 1.36rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; text-underline-offset: .18em; }
.header-place { font-size: .96rem; line-height: 1.1; letter-spacing: .055em; white-space: nowrap; }
.menu-button { display: none; }

.assembly, .project, .views { position: relative; isolation: isolate; background: var(--paper); }
.assembly { --step-height: 2.75rem; display: grid; grid-template-columns: minmax(0,1fr); overflow-x: clip; color: var(--stage-ink); background: var(--stage-paper); }
.assembly > .scene-layout, .assembly > .drawing-background { grid-area: 1 / 1; }
.drawing-background {
  --drawing-size: clamp(530px,72vw,1080px) auto;
  --drawing-position: 52% 46%;
  --drawing-wash: linear-gradient(94deg, rgb(0 0 0 / 78%), rgb(0 0 0 / 68%) 42%, rgb(0 0 0 / 53%) 76%, rgb(0 0 0 / 64%));
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--paper);
}
.assembly > .drawing-background {
  --drawing-size: clamp(650px,89vw,1380px) auto;
  --drawing-position: 52% 52%;
  --plan-area: ellipse 40% 62% at 66% 48%;
  position: sticky; inset: auto; top: var(--header); align-self: start;
  width: 100%; height: calc(100svh - var(--header)); background: var(--stage-paper);
}
.drawing-background::before, .drawing-background::after { content: ''; position: absolute; inset: 0; }
.drawing-background::before {
  background: url('assets/plan-background.svg') var(--drawing-position) / var(--drawing-size) repeat-y;
  opacity: .72; filter: grayscale(1);
  transform: scale(1.14);
}
.assembly > .drawing-background::before {
  background-repeat: no-repeat; mix-blend-mode: multiply;
  opacity: calc(.17 - .09 * var(--intro-amount, 1));
  --behind-plan: rgb(0 0 0 / calc(1 - .85 * var(--intro-amount, 1)));
  -webkit-mask-image: radial-gradient(var(--plan-area), var(--behind-plan) 34%, black);
  mask-image: radial-gradient(var(--plan-area), var(--behind-plan) 34%, black);
}
:root[data-dark-paper] .assembly > .drawing-background::before { filter: brightness(0) invert(1); mix-blend-mode: screen; }
.drawing-background::after {
  background: var(--paper);
  -webkit-mask-image: var(--drawing-wash);
  mask-image: var(--drawing-wash);
}
.assembly > .drawing-background::after {
  --grid-ink: color-mix(in srgb, var(--stage-marker) 14%, transparent);
  background: linear-gradient(to right, var(--grid-ink) 1px, transparent 1px),
              linear-gradient(to bottom, var(--grid-ink) 1px, transparent 1px);
  background-size: clamp(20px,2vw,30px) clamp(20px,2vw,30px);
  -webkit-mask-image: radial-gradient(var(--plan-area), black 28%, transparent);
  mask-image: radial-gradient(var(--plan-area), black 28%, transparent);
  opacity: var(--intro-amount, 1);
}
.scene-layout { --scene-gap: clamp(24px,4.3vw,76px); display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); column-gap: var(--scene-gap); position: relative; }
.scene-panel {
  --rail-gap: clamp(8px, 1.25vw, 20px);
  --rail-width: 7.85rem;
  position: sticky; top: calc(var(--header) + var(--sheet-gap)); grid-column: 2; grid-row: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center;
  column-gap: var(--rail-gap);
  align-self: start; min-width: 0; margin-block: var(--sheet-gap);
}
.scene-panel figure { min-width: 0; }
.scene-dock { display: none; }
.sheet-caption {
  padding: 10px 0; text-align: right;
  color: var(--stage-ink); font-size: 1.09rem; line-height: 1.35; letter-spacing: .06em;
}
.scene-frame {
  position: relative; overflow: hidden; width: 100%; height: clamp(260px, min(65svh, 41vw), 650px);
  pointer-events: none;
}
/* Поле модели захватывает края обеих колонок. Под текстом и ссылками ослабляем только сам рисунок. */
@media (min-width:751px), (min-width:501px) and (max-height:465px) {
  .js .scene-frame {
    --extra: clamp(174px,25vw,395px);
    --left-bleed: clamp(94px,13.8vw,218px);
    --shift: calc((1 - var(--model-travel,0)) * clamp(18px,3vw,46px));
    --copy-edge: calc(var(--left-bleed) - var(--shift) - var(--scene-gap));
    --menu-edge: calc(100% - var(--extra) + var(--left-bleed) - var(--shift) + var(--rail-gap));
    width: calc(100% + var(--extra));
    height: clamp(220px,min(55vw,calc(100svh - var(--header) - 2 * var(--sheet-gap) - 40px)),850px);
    margin-left: calc(-1 * var(--left-bleed)); transform: translateX(var(--shift));
    --text-mask: linear-gradient(to right, rgb(0 0 0 / 20%) calc(var(--copy-edge) - 65px), rgb(0 0 0 / 58%) var(--copy-edge), #000 calc(var(--copy-edge) + 40px), #000 calc(var(--menu-edge) - 18px), rgb(0 0 0 / 40%) calc(var(--menu-edge) + 32px));
    mask-image: var(--text-mask);
  }
}
.scene-fallback { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.35); mix-blend-mode: multiply; }
:root[data-dark-paper] .scene-fallback { filter: grayscale(1) contrast(1.35) invert(1); mix-blend-mode: screen; }
.scene-frame canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene-ready canvas { display: block; }
.scene-ready .scene-fallback { display: none; }
.stage-nav { position: relative; z-index: 1; display: grid; min-inline-size: var(--rail-width); }
.stage-nav a {
  display: flex; align-items: center; min-height: var(--step-height); padding: 4px .65rem;
  color: var(--stage-ink); font-size: 1.16rem; font-weight: 500; line-height: 1.25; letter-spacing: .035em;
  text-decoration: none; white-space: nowrap; border-inline-start: 2px solid transparent;
}
.stage-nav a:hover { text-decoration: underline; text-underline-offset: .22em; }
.stage-nav a[aria-current="step"] { font-weight: 700; border-inline-start-color: var(--stage-marker); }
.stage-nav a:focus-visible { outline-offset: -3px; }
.site-header :focus-visible, .stage :focus-visible, .stage-nav a:focus-visible { outline-color: var(--stage-ink); }
.stage-list { position: relative; z-index: 1; grid-column: 1; grid-row: 1; min-width: 0; }
.stage { min-height: max(455px, 81svh); display: grid; align-content: center; padding-block: clamp(45px,6svh,95px); }
.stage + .stage { border-top: 1px solid color-mix(in srgb, var(--stage-ink) 17%, transparent); }
.stage-intro { min-height: max(520px, calc(100svh - var(--header))); }
.stage h1 { font-size: clamp(3.8rem, 7.3vw, 8rem); }
.stage h2 { font-size: clamp(3.4rem, 6.7vw, 6.3rem); }
.stage h1, .stage h2 { margin-top: clamp(12px,2.1vw,27px); }
.stage-copy, .views-heading > p {
  color: var(--body-ink); font-size: clamp(1.47rem,1.95vw,1.68rem); line-height: 1.28; letter-spacing: .024em;
}
.stage-copy { margin-top: 22px; text-wrap: pretty; }
.stage :is(.stage-copy, .eyebrow, .text-link) { color: var(--stage-ink); }
.stage .button { border-color: var(--stage-marker); }
.stage .button, .stage .text-link { margin-top: 23px; }
.stage-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; }
.stage-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.stage-intro .stage-actions {
  display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch;
  max-width: 100%; gap: clamp(8px, 1vw, 16px);
}
.stage-intro .button { min-width: 0; padding-inline: clamp(8px, 1.4vw, 24px); text-align: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 24px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: white; text-decoration: none; font-size: 1.35rem; font-weight: 700; line-height: 1.1; letter-spacing: .035em; transition: background-color .16s ease; }
.button:hover { background: var(--accent-hover); }

.project, .views { padding-block: clamp(56px,7.5vw,112px); }
.project { border-block: 1px solid var(--line); }
.projects-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "title controls" "order controls"; align-items: center; gap: 6px 16px; margin-bottom: clamp(18px,2.4vw,36px); }
.projects-heading h2 { grid-area: title; }
.project:focus-visible { outline: none; }
.project:focus-visible .projects-heading h2 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .12em; }
.catalog-order { grid-area: order; color: var(--muted); font-size: 1.14rem; font-weight: 500; }
.project-controls { grid-area: controls; display: none; align-items: center; gap: 10px; }
.js .project-controls { display: flex; }
.project-controls button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; color: var(--accent); background: var(--paper);
}
.project-controls button:disabled { opacity: .45; cursor: default; }
.project-controls button::after { content: ''; width: 10px; height: 10px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateX(-1px) rotate(45deg); }
.project-controls [data-project-prev]::after { transform: translateX(1px) rotate(-135deg); }
.project-count { min-width: 3.1em; font: 500 1.2rem/1 var(--typeface); color: var(--muted); text-align: center; }
.project-slides { position: relative; display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.project-slides::-webkit-scrollbar { display: none; }
.js .project-slides { display: block; overflow: hidden; overflow: clip; overflow-anchor: none; scroll-snap-type: none; touch-action: pan-y pinch-zoom; }
.js .project-slide[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .project-slide:not([hidden]) .catalog-visual { animation: project-reveal .16s ease-out; }
}
@keyframes project-reveal { from { opacity: .8; } to { opacity: 1; } }
.project-slides:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.project-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; padding: 5px; }
.project-slide h3 { margin: 0; font-size: clamp(2.8rem,4.4vw,4.7rem); line-height: 1; font-weight: 700; letter-spacing: .008em; }
.company-info p { color: var(--body-ink); font-size: clamp(1.3rem,1.9vw,1.65rem); line-height: 1.32; }
.catalog-card {
  display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  grid-template-areas: "image heading" "image body" "plan plan"; grid-template-rows: auto 1fr auto;
  column-gap: clamp(24px,4.4vw,76px); row-gap: 18px; align-items: start;
}
.catalog-heading { grid-area: heading; }
.catalog-price { margin-top: 12px; }
.catalog-price span, .catalog-visual figcaption, .catalog-specs dt, .render-controls legend {
  display: block; color: var(--muted); font-size: 1.03rem; font-weight: 500; line-height: 1.2; letter-spacing: .045em;
}
.catalog-price data { display: block; margin-top: 4px; font-size: clamp(2.1rem,3.2vw,3.5rem); font-weight: 500; line-height: 1; white-space: nowrap; }
.catalog-visual { grid-area: image; min-width: 0; }
.catalog-visual a { display: block; cursor: zoom-in; }
.catalog-visual img { width: 100%; aspect-ratio: 3 / 2; background: var(--paper); }
.catalog-visual figcaption { margin-top: 7px; }
.catalog-body { grid-area: body; min-width: 0; }
.render-controls { display: flex; flex-wrap: wrap; gap: 10px clamp(15px,2.2vw,34px); }
.render-controls fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.render-controls legend { padding: 0; margin-bottom: 5px; }
.render-choices { display: flex; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
.render-choices label { position: relative; cursor: pointer; }
.render-choices label + label { border-left: 1px solid var(--line); }
.render-choices span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 4px 11px; color: var(--body-ink); font-size: 1.15rem; line-height: 1; font-weight: 500;
}
.render-choices label:hover span { background: color-mix(in srgb, var(--accent) 10%, var(--paper)); }
.render-choices input:checked + span { background: var(--accent); color: var(--white); }
.render-choices input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; position: relative; z-index: 1; }
.render-controls [data-setting="finish"] span::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 1px solid currentColor; }
.render-choices input[value="light"] + span::before { background: #e5dfd1; }
.render-choices input[value="dark"] + span::before { background: #494541; }
.catalog-description { max-width: 40ch; margin-top: 18px; color: var(--body-ink); font-size: clamp(1.3rem,1.7vw,1.55rem); line-height: 1.28; text-wrap: pretty; }
.catalog-specs { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.catalog-specs dd { margin-top: 3px; font-weight: 500; font-size: 1.42rem; line-height: 1.2; }
.catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 19px; }
.catalog-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.catalog-inclusions, .model-finishes { border-block: 1px solid var(--line); margin-top: clamp(22px,3vw,44px); }
.catalog-inclusions summary, .model-finishes summary { width: fit-content; max-width: 100%; padding: 13px 0; color: var(--accent); cursor: pointer; font-size: 1.35rem; font-weight: 500; }
.catalog-inclusions summary:focus-visible, .model-finishes summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.catalog-inclusions { font-family: system-ui, 'Segoe UI', Roboto, sans-serif; font-weight: 400; letter-spacing: normal; }
.catalog-inclusions summary { min-height: 44px; padding-block: 11px; font-size: 1.04rem; font-weight: 600; line-height: 1.4; }
.catalog-inclusions summary::marker { font-size: .75em; }
.catalog-inclusions > div { max-width: 69ch; padding-bottom: 16px; color: var(--body-ink); font-size: 1rem; line-height: 1.5; }
.catalog-inclusions strong { color: var(--ink); font-weight: 600; }
.catalog-inclusions p + p { margin-top: 8px; }
.model-finishes .facade-picker { max-width: 760px; padding-block: 8px 18px; }
.facade-picker { position: relative; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.visually-hidden, .render-choices input, .facade-palette input, .facade-palette input:not(:checked) + label .paint-name {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.facade-palette {
  position: relative; display: grid; grid-template-columns: 6.2rem repeat(5, minmax(32px, 2.5rem)) 1fr;
  grid-template-rows: minmax(44px,2.85rem) auto; row-gap: 6px;
}
.facade-label { grid-area: 1 / 1; align-self: start; padding-top: 2px; font-weight: 500; font-size: 1.1rem; line-height: 1.22; letter-spacing: .055em; }
.facade-palette label {
  grid-row: 1; display: grid; place-items: center; cursor: pointer;
}
.facade-palette input:checked + label .paint-name {
  position: absolute; top: 1.45rem; left: 0; color: var(--muted); font-size: 1rem; line-height: 1.15; letter-spacing: .04em;
}
.paint-chip {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgb(49 42 39 / 32%); background: var(--sample);
}
.facade-palette label:hover .paint-chip { outline: 1px solid var(--muted); outline-offset: 3px; }
.facade-palette input:checked + label .paint-chip { outline: 2px solid var(--accent); outline-offset: 3px; }
.facade-palette input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -1px; border-radius: 3px; }
.facade-palette input:checked + label .paint-chip::after {
  content: ''; width: 6px; height: 10px; border: solid var(--check, var(--ink)); border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
#facade-milk + label { --sample: #ddd7cc; }
#facade-sand + label { --sample: #cbae87; }
#facade-sage + label { --sample: #93a38c; }
#facade-graphite + label { --sample: #606a71; --check: white; }
#facade-black + label { --sample: #282828; --check: white; }
.facade-photo { grid-area: 2 / 1 / 3 / -1; position: relative; isolation: isolate; }
.facade-photo img { width: 100%; }
.facade-paint {
  position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--paint, white);
  mix-blend-mode: multiply; pointer-events: none;
}
#facade-sand:checked ~ .facade-photo { --paint: #edcfa3; }
#facade-sage:checked ~ .facade-photo { --paint: #adc4ad; }
#facade-graphite:checked ~ .facade-photo { --paint: #748290; }
#facade-black:checked ~ .facade-photo { --paint: #393939; }
@media (forced-colors: active) {
  .drawing-background { visibility: hidden; }
  .paint-chip { forced-color-adjust: none; }
  .facade-palette input:checked + label .paint-chip { outline-color: Highlight; }
}
.catalog-plan { grid-area: plan; min-width: 0; border-top: 1px solid var(--line); }
.catalog-plan > summary {
  width: fit-content; padding: 14px 0; cursor: pointer; color: var(--accent);
  font-size: clamp(1.3rem,1.8vw,1.65rem); line-height: 1.15; font-weight: 600;
}
.catalog-plan > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-content { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: start; gap: 20px clamp(24px,4.4vw,76px); padding: 4px 0 16px; }
.plan-drawings { display: grid; min-width: 0; gap: 24px; }
.plan-sheet { min-width: 0; }
.plan-sheet img { width: 100%; height: auto; }
.plan-link, .gallery-main { display: block; cursor: zoom-in; }
.plan-sheet figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--muted); font-size: 1.16rem; }
.plan-areas { padding: clamp(12px,1.65vw,24px); background: var(--paper); color: var(--body-ink); font: 400 1rem/1.45 system-ui, 'Segoe UI', sans-serif; letter-spacing: normal; }
.room-groups h4 { margin: 18px 0 4px; font-size: 1rem; color: var(--ink); }
.area-totals > div, .room-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.area-totals { color: var(--ink); font-weight: 600; }
.area-totals dd, .room-lines dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.area-note { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.exterior-areas { margin-top: 12px; }
.views-layout { max-width: 1120px; }
.views-heading > p { margin-top: 10px; }
.plot-choices { display: flex; flex-wrap: wrap; gap: 6px; margin: clamp(16px,2.4vw,30px) 0 14px; }
.plot-choices a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px clamp(10px,1.7vw,22px); border: 1px solid var(--line); color: var(--accent); background: var(--paper); font-size: 1.26rem; font-weight: 600; line-height: 1; text-decoration: none; }
.plot-choices a:hover { border-color: var(--accent); }
.plot-choices a[aria-current] { border-color: var(--accent); color: white; background: var(--accent); }
.gallery-main { background: var(--paper); }
.gallery-main img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.gallery-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; padding-block: 10px; border-bottom: 1px solid var(--line); }
.gallery-caption span:first-child { font-weight: 700; }
.gallery-caption span:last-child { color: var(--muted); }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.company-info { padding-block: clamp(32px,5vw,72px); }
.company-info section { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); align-items: baseline; gap: clamp(20px,4vw,64px); padding-block: clamp(26px,4vw,58px); border-top: 1px solid var(--line); }
.company-info h2 { font-size: clamp(2.6rem,4.4vw,4.6rem); }
.company-info p { max-width: 36ch; }
.company-info p + p { margin-top: 8px; color: var(--muted); }
#contact-phone .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(1.65rem,2.4vw,2.15rem); font-weight: 700; white-space: nowrap; }
.process-feed, .review-feed { display: grid; gap: 22px; min-width: 0; }
.process-feed :is(img,video) { display: block; width: 100%; height: auto; border-radius: 2px; }
.process-feed figcaption, .review-feed footer { margin-top: 8px; font-size: 1.12rem; color: var(--muted); }
.review-feed blockquote { margin: 0; border-left: 2px solid var(--accent); padding-left: 18px; }
.footer-inner { padding-block: 40px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-inner p { font-size: 1.15rem; margin-top: 12px; color: var(--muted); }
.media-dialog { padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); width: fit-content; max-width: calc(100vw - 28px); max-height: 94svh; }
.media-dialog::backdrop { background: color-mix(in srgb, var(--paper) 93%, transparent); }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 0 12px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 1.2rem; }
.dialog-close {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%;
  background-color: #b33236; background-clip: content-box; color: var(--white);
  font: 400 21px/1 Arial, sans-serif; letter-spacing: 0;
}
.dialog-close:hover { background-color: #90282c; }
.dialog-close:focus-visible { outline-offset: -6px; }
.menu-button { font-weight: 700; font-size: 1.35rem; line-height: 1.1; letter-spacing: .035em; min-height: 43px; padding-inline: 12px; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); border-radius: 2px; color: var(--stage-ink); background: transparent; }
#preview-image { max-height: calc(90svh - 62px); width: auto; object-fit: contain; margin: auto; }
.layout-preview { width: min(850px,calc(100vw - 20px)); }
.layout-preview .preview-body { max-height: calc(90svh - 70px); overflow: auto; overscroll-behavior: contain; }
.layout-preview #preview-image { width: 100%; min-width: 640px; max-width: none; max-height: none; }

@media (min-width: 751px) and (max-width: 1000px) {
  .header-place { display: none; }
  .scene-layout { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); }
  .stage h1 { font-size: clamp(3.6rem,7vw,5rem); }
  .catalog-card { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); grid-template-areas: "heading heading" "image body" "plan plan"; gap: 18px; }
  .catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
  .catalog-price { margin: 0; }
  .plan-content { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 18px; }
}
@media (min-width:751px) and (max-width:1120px) {
  .header-place { display: none; }
}
@media (max-width:920px) {
  .header-phone { min-height: 44px; }
  .js .menu-button { display: block; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: grid; justify-self: stretch; position: absolute; inset: 100% var(--gutter) auto; padding: 4px 15px; gap: 0; background: var(--stage-paper); border: 1px solid var(--line); }
  .site-nav.is-open a { padding-block: 11px; }
  .site-nav.is-open a + a { border-top: 1px solid var(--line); }
  .header-actions { grid-column: 3; }
}

@media (max-width: 750px) {
  :root { --header: 54px; --sheet-gap: 0px; --gutter: clamp(14px,4vw,28px); }
  .header-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }
  .js .header-inner { flex-wrap: nowrap; }
  .header-inner .wordmark { min-width: 0; }
  .header-actions { flex: none; }
  .header-phone { font-size: 1.2rem; }
  .header-place { display: none; }
  .wordmark img { width: clamp(122px,calc(100vw - 166px),180px); }
  .drawing-background {
    --drawing-size: min(125vw,650px) auto; --drawing-position: 50% 45%;
    --drawing-wash: linear-gradient(94deg, rgb(0 0 0 / 88%), rgb(0 0 0 / 76%) 55%, rgb(0 0 0 / 56%));
  }
  .assembly > .drawing-background {
    --drawing-size: max(128vw,74svh) auto; --drawing-position: 49% 28%;
    --plan-area: ellipse 67% 36% at 44% 17%;
  }
  .stage-list { clip-path: inset(var(--covered-copy, 0px) 0 0); }
  .menu-button { font-size: 1.22rem; }
  .eyebrow { font-size: .96rem; }
  .site-nav { flex-wrap: wrap; gap: 6px 14px; }
  .assembly, .scene-dock { --steps-height: clamp(15.75rem, 35svh, 19.25rem); --step-height: calc(var(--steps-height) / 5); }
  .scene-layout { display: block; }
  .scene-panel { --rail-width: 6.65rem; z-index: 2; top: var(--header); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 4px 0; column-gap: 4px; }
  .scene-panel figure { display: flex; flex-direction: column; height: var(--steps-height); }
  .sheet-caption { padding: 3px 4px 3px var(--gutter); font-size: .97rem; border-top: 0; }
  .scene-frame { flex: 1; min-height: 0; height: auto; }
  .stage-nav a { padding-inline: .5rem .25rem; font-size: 1.04rem; line-height: 1.1; }
  .stage { min-height: max(290px,56svh); padding-block: 32px; }
  .stage-intro { min-height: max(264px, calc(100svh - var(--header) - var(--steps-height) - 8px)); }
  .stage h1 { max-width: none; font-size: clamp(2.9rem,10.7vw,4.7rem); line-height: 1; }
  .stage h1, .stage h2 { margin-top: 9px; }
  .stage h2 { font-size: clamp(2.9rem,11.2vw,4.6rem); }
  .stage-copy { font-size: 1.38rem; line-height: 1.32; }
  .stage .button { font-size: 1.24rem; }
  .text-link { font-size: 1.08rem; }
  .stage-copy { margin-top: 12px; }
  .stage .button, .stage .text-link { margin-top: 16px; }
  .button { padding-inline: 14px; }
  .project { padding-block-start: 34px; }
  .projects-heading { grid-template-areas: "title controls" "order order"; }
  .catalog-card { grid-template-columns: minmax(0,1fr); grid-template-areas: "heading" "image" "body" "plan"; grid-template-rows: auto; gap: 12px; }
  .catalog-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 12px; }
  .catalog-heading h3 { font-size: clamp(2.5rem,9vw,3.6rem); }
  .catalog-price { margin: 0; }
  .catalog-price data { margin-top: 2px; font-size: clamp(1.9rem,6.6vw,2.4rem); }
  .catalog-price span { font-size: 1rem; }
  .render-controls { gap: 9px 14px; }
  .render-choices span { padding-inline: 8px; }
  .catalog-description { margin-top: 12px; }
  .catalog-specs { margin-top: 12px; }
  .company-info section { grid-template-columns: 1fr; gap: 10px; }
  .project-controls { gap: 4px; }
  .plan-content { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .plot-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .plot-choices a { padding-inline: 5px; }
  .footer-inner { display: grid; }
}
@media (max-width: 380px) {
  .header-inner { column-gap: 4px; }
  .header-phone { font-size: 1.1rem; }
  .header-phone [data-phone-number] { max-inline-size: 9ch; white-space: normal; text-align: right; line-height: 1.06; text-wrap: balance; }
}
@media (max-width:750px) and (min-height:466px), (max-width:500px) {
  .js .stage-intro .button { scroll-margin-block-start: calc(var(--steps-height) + 8px); }
  /* Эта полоса находится рядом с шапкой, вне прокручиваемого окна Safari. */
  .js .scene-dock { display: block; position: relative; flex: none; height: 0; z-index: 3; pointer-events: none; }
  .scene-dock > .scene-panel {
    position: absolute; inset: var(--dock-offset, 0px) 0 auto; margin: 0;
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }
  .scene-dock .stage-nav a { pointer-events: auto; }
  .scene-dock > .scene-panel[inert] { visibility: hidden; }
  .scene-slot { height: calc(var(--steps-height) + 8px); }
  .js .scene-panel figure { position: relative; }
  .js .sheet-caption { position: relative; z-index: 1; pointer-events: none; text-shadow: 0 0 3px var(--stage-paper); }
  /* Дом занимает всё поле от шапки до нижнего пункта меню. */
  .js .scene-frame {
    --extra: calc(var(--rail-width) + var(--gutter) + 4px);
    --shift: clamp(-9px,-1.5vw,-5px);
    --menu-edge: calc(100% - var(--extra) - var(--shift) + 4px);
    position: absolute; inset: 12px auto 0 var(--shift); height: auto;
    width: calc(100% + var(--extra));
    --text-mask: linear-gradient(to right, #000 calc(var(--menu-edge) - 8px), rgb(0 0 0 / 71%) calc(var(--menu-edge) + 10px), rgb(0 0 0 / 30%) calc(var(--menu-edge) + 60px));
    mask-image: var(--text-mask);
  }
}
@media (max-height: 465px) and (max-width: 500px) {
  .assembly, .scene-dock { --steps-height: 12.25rem; }
}
@media (max-height: 465px) and (min-width: 501px) {
  :root { --header: 46px; --sheet-gap: 6px; }
  .wordmark img { width: 159px; }
  .stage-list { clip-path: none; }
  .assembly { --step-height: clamp(1.75rem, calc((100svh - var(--header) - 24px) / 5), 2.5rem); }
  .scene-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 18px; }
  .scene-panel { top: calc(var(--header) + 6px); margin: 6px 0; padding: 0; }
  .scene-panel figure { display: block; height: auto; }
  .scene-frame { height: max(105px, calc(100svh - var(--header) - 130px)); }
  .js .scene-frame { height: max(110px, calc(100svh - var(--header) - 66px)); }
  .stage { min-height: 90svh; padding-block: 20px; }
  .stage h1 { font-size: 2.6rem; }
  .stage h2 { font-size: 2.1rem; }
}
html:not(.js) .scene-panel { position: static; }
html:not(.js) .assembly {
  background: linear-gradient(to bottom, var(--intro-background) calc(100svh - var(--header)), var(--paper) calc(150svh - var(--header)));
}
html:not(.js) :is(.stage-intro, .scene-panel) { background: var(--intro-background); }
html:not(.js) .stage + .stage { --stage-ink: #000; --stage-marker: var(--accent); color: var(--stage-ink); background: var(--paper); }
html:not(.js) .assembly > .drawing-background { background: transparent; }
html:not(.js) .assembly > .drawing-background::after { content: none; }
@media (min-width: 751px) and (min-height: 466px), (min-width: 1025px) {
  .site-header { position: fixed; inset: 0 0 auto; }
  .page-scroll { padding-top: calc(var(--header) + 1px); }
}
@media (max-width: 750px), (max-height: 465px) and (max-width: 1024px) {
  /* На телефоне только содержимое под шапкой прокручивается и рисуется в этом окне. */
  html, body { height: 100%; overflow: hidden; }
  html { scroll-padding-top: 0; }
  body { position: fixed; inset: 0; display: flex; flex-direction: column; height: 100dvh; }
  .site-header { flex: none; padding-top: env(safe-area-inset-top,0px); }
  .site-header::before {
    content: ''; position: absolute; inset: auto 0 100%; height: max(80px,env(safe-area-inset-top,0px));
    pointer-events: none; background: var(--stage-paper);
  }
  .page-scroll { position: relative; flex: 1 1 0; min-height: 0; overflow: auto; overscroll-behavior-y: contain; }
  body:has(dialog[open]) .page-scroll { overflow: hidden; }
  .scene-panel { top: 0; }
  .assembly > .drawing-background { top: 0; }
  .wrap { width: min(calc(100% - 2 * max(var(--gutter),env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))),var(--max)); }
  .site-footer { padding-bottom: env(safe-area-inset-bottom,0px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
.stage-nav a { text-shadow: 0 0 3px var(--stage-paper), 0 1px 3px var(--stage-paper); }
.js .scene-frame {
  mask-image: var(--text-mask), linear-gradient(to right, transparent, black 7%, black 93%, transparent), linear-gradient(to bottom, transparent, black 5%, black 92%, transparent);
  mask-composite: intersect;
}
