@font-face {
  font-family: "Golos Text";
  src: url("assets/GolosText-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --accent: #febc34;
  --ink: #191a17;
  --night: #151615;
  --night-line: #ffffff25;
  --paper: #fff;
  --stone: #f5f4ef;
  --muted: #575952;
  --line: #dedfd8;
  --gutter: clamp(18px, 4.5vw, 72px);
  --ease: cubic-bezier(.2, .75, .25, 1);
  font-family: "Golos Text", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
::selection { color: var(--night); background: var(--accent); }
:focus-visible { outline: 2px solid #7c5200; outline-offset: 4px; }
[id] { scroll-margin-top: 22px; }

.wrap { width: min(100%, 1576px); padding-inline: var(--gutter); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 16px; background: var(--accent); color: var(--night); }

.site-header, .hero, .footer { background: var(--night); color: var(--paper); }
:is(.site-header, .hero, .footer) :focus-visible { outline-color: var(--accent); }
.site-header { border-bottom: 1px solid var(--night-line); position: relative; z-index: 3; }
.header-grid { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { flex: none; }
.logo img { width: 132px; height: auto; }
.desktop-nav, .header-actions { display: none; }
.mobile-menu summary { display: flex; align-items: center; gap: 11px; min-height: 44px; font-size: 14px; }
.menu-icon { width: 16px; height: 9px; border-block: 1px solid currentColor; }
.mobile-menu nav { position: absolute; inset: 100% 0 auto; padding: 6px var(--gutter) 18px; background: var(--night); border-bottom: 1px solid var(--night-line); }
.mobile-menu nav a { display: block; padding-block: 11px; border-bottom: 1px solid var(--night-line); }
.mobile-menu nav a:last-child { border-bottom: 0; }

.hero-layout { display: grid; gap: 26px; padding-block: 30px 26px; }
.hero-copy { align-self: center; min-width: 0; }
.hero h1 { font-size: clamp(2.06rem, 10.3vw, 3.35rem); font-weight: 570; line-height: 1.02; letter-spacing: -.039em; }
.hero-description { margin-top: 15px; max-width: 32ch; color: #dbddd5; font-size: 1rem; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; margin-top: 19px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 10px 17px; font-size: .9375rem; font-weight: 590; white-space: nowrap; transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease); }
.button-accent { color: #17170f; background: var(--accent); }
.button-accent:hover { background: #ffca55; }
.button-accent:active { box-shadow: inset 0 2px 5px #2e1a0030; }
.text-action { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; font-weight: 550; font-size: .9375rem; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: #888a7f; text-underline-offset: 5px; transition: text-decoration-color 150ms var(--ease); }
.text-action:hover { text-decoration-color: currentColor; }
.hero-proof { margin-top: 13px; color: #c0c2b8; font-size: .875rem; }

.construction { container-type: inline-size; position: relative; min-width: 0; align-self: start; }
.stage { position: relative; aspect-ratio: 843 / 550; isolation: isolate; overflow: hidden; background: #292c26; }
.photo-plane { position: absolute; inset: 0 0 auto; aspect-ratio: 843 / 632; transform-origin: 55% 45%; }
.hero-photo, .structure-study { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; transition: filter 350ms var(--ease); }
.structure-study { overflow: visible; pointer-events: none; }
.study-layer, .structure-label { visibility: hidden; }
.study-layer .study-origin { fill: #1c1d1835; stroke: #ffdb7980; stroke-width: 1.5; stroke-dasharray: 5 4; }
.study-outline { fill: none; stroke: #ffd162; stroke-width: 2; stroke-linejoin: round; }
.study-line { fill: none; stroke: #ffcf63; stroke-width: 1.55; }
.motion-enhanced .study-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.study-dot { fill: #ffcf63; }
.photo-piece { filter: drop-shadow(1px 3px 4px #201b1890); }
.stage-guide { opacity: 0; fill: none; stroke: #ffcf63; stroke-width: 2; }
.construction.is-interactive:has(.structure-details:not([open])) .stage-guide { opacity: .85; }
.beam-marker {
  position: absolute;
  top: 19%;
  left: 86%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffc953c0;
  color: var(--accent);
  background: #151615ed;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}
.beam-marker[hidden], .construction:has(.structure-details[open]) .beam-marker { display: none; }
.beam-marker:hover { border-color: var(--accent); background: var(--night); }
.beam-marker .detail-symbol { width: 25px; height: 25px; }
.structure-label { position: absolute; display: inline-block; color: #151615; background: #ffcf63; font-size: .75rem; line-height: 1.25; padding: 4px 7px; font-weight: 630; white-space: nowrap; pointer-events: none; }
.beam-label { top: 10.5%; right: 3%; }
.wall-label { top: 32.6%; left: 6%; }
.opening-label { top: 59%; right: 2.5%; }

.construction:has(.structure-details[open]) .hero-photo { filter: brightness(.67) saturate(.72); }
.construction:has(.structure-details[open] [value="beam"]:checked) :is([data-layer="beam"], .beam-label),
.construction:has(.structure-details[open] [value="wall"]:checked) :is([data-layer="wall"], .wall-label),
.construction:has(.structure-details[open] [value="opening"]:checked) :is([data-layer="opening"], .opening-label) { visibility: visible; }

.structure-details { background: #22241f; }
.structure-details > summary { min-height: 60px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 7px 12px 7px max(44%, 124px); font-size: .8125rem; line-height: 1.2; font-weight: 590; }
.structure-details > summary:hover { background: #2a2c27; }
.structure-details > summary:focus-visible { outline-offset: -3px; }
.summary-open, .structure-details[open] .summary-closed { display: none; }
.structure-details[open] .summary-open { display: inline; }
.detail-symbol { position: relative; flex: none; width: 20px; height: 20px; color: var(--accent); }
.detail-symbol::before, .detail-symbol::after { content: ""; position: absolute; inset: calc(50% - .5px) 4px auto; height: 1px; background: currentColor; }
.detail-symbol::after { transform: rotate(90deg); transition: transform 220ms var(--ease); }
.structure-details .detail-symbol::after { transition: none; }
details[open] > summary .detail-symbol::after { transform: rotate(0); }
.case-link { position: absolute; z-index: 1; top: calc(100cqw * 550 / 843); left: 0; display: flex; flex-direction: column; justify-content: center; min-height: 60px; max-width: 48%; padding: 8px 12px; font-weight: 600; font-size: .9375rem; line-height: 1.23; }
.case-link span + span { margin-top: 4px; color: #c0c2b8; font-size: .6875rem; font-weight: 430; }
.case-link:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.case-link:focus-visible { outline-offset: -3px; }
.part-panel { border-top: 1px solid var(--night-line); padding: 7px 12px 14px; }
.part-picker { display: flex; flex-wrap: wrap; gap: 4px 18px; border: 0; margin: 0 0 6px; padding: 0; }
.part-picker label { position: relative; cursor: pointer; }
.part-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.part-picker span { display: flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; color: #e0e2d9; font-size: .875rem; }
.part-picker input:checked + span { border-color: var(--accent); color: #fff; }
.part-picker label:hover span { color: var(--accent); }
.part-picker input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.part-notes { font-size: .875rem; color: #d4d6cc; min-height: 3.9em; }
.part-notes strong { font-weight: 610; color: #fff; }
.part-notes p { display: none; }
.part-panel:has([value="beam"]:checked) .note-beam,
.part-panel:has([value="wall"]:checked) .note-wall,
.part-panel:has([value="opening"]:checked) .note-opening { display: block; }

.facts-band { border-bottom: 1px solid var(--line); background: var(--stone); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts > div { padding: 16px 8px 17px; border-right: 1px solid var(--line); }
.facts > div:first-child { padding-left: 0; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: clamp(1.45rem, 7vw, 2.375rem); line-height: 1; letter-spacing: -.038em; font-weight: 630; font-variant-numeric: tabular-nums; }
.facts dd { margin-top: 7px; max-width: 16ch; font-size: .75rem; line-height: 1.35; color: var(--muted); }

.section { padding-block: clamp(43px, 6vw, 92px); }
h2 { font-size: clamp(1.75rem, 4.2vw, 3.375rem); line-height: 1.05; font-weight: 570; letter-spacing: -.038em; text-wrap: balance; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.1; font-weight: 600; letter-spacing: -.033em; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 25px; }
.section-heading p { margin-top: 10px; color: var(--muted); }
.technology-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.technology { display: flex; min-height: 123px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 9px; padding: 12px 14px 15px; font-size: 1rem; font-weight: 580; line-height: 1.2; border-bottom: 1px solid var(--line); transition: background-color 180ms var(--ease); }
.technology:nth-child(odd) { border-right: 1px solid var(--line); }
.technology:last-child { grid-column: 1 / -1; border: 0; }
.technology:hover, .technology:focus-visible { background: #fff8e5; }
.technology svg { width: 53px; height: 53px; stroke-width: 1.65; transition: transform 240ms var(--ease); }
.technology:hover svg { transform: translateY(-2px); }
.technology .highlight { stroke: #ba7800; stroke-width: 2.25; }

.catalog { background: var(--stone); border-block: 1px solid var(--line); }
.catalog-grid { display: grid; gap: 21px; align-items: start; }
.catalog-project { min-width: 0; background: var(--paper); border: 1px solid var(--line); }
.project-picture { position: relative; display: block; overflow: hidden; aspect-ratio: 1.93; background: #dedfd8; }
.project-picture img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms var(--ease); }
.project-picture:hover img { transform: scale(1.035); }
.project-picture > span { position: absolute; bottom: 0; left: 0; padding: 6px 9px; background: #181a16eb; color: #fff; font-size: .75rem; }
.project-body { padding: 17px; }
.project-name { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.project-name > span { color: var(--muted); font-size: .8125rem; }
.project-facts { display: flex; flex-wrap: wrap; margin: 9px 0 0; padding: 0; gap: 5px 0; list-style: none; font-size: .875rem; color: var(--muted); }
.project-facts li + li::before { content: "·"; padding: 0 .55em; }
.project-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-top: 17px; }
.project-price { display: grid; line-height: 1.2; }
.project-price strong { white-space: nowrap; font-size: clamp(1.28rem, 2.4vw, 1.75rem); font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.project-price span { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.project-price small { font-size: inherit; white-space: nowrap; }
.project-plan { margin-top: 13px; border-top: 1px solid var(--line); }
.project-plan summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; font-size: .875rem; font-weight: 560; }
.project-plan summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.project-plan .detail-symbol { color: #865800; }
.project-plan img { width: min(100%, 420px); height: auto; margin-inline: auto; }
.collection-body { min-height: 145px; }
.collection-body p { color: var(--muted); margin: 9px 0 7px; max-width: 38ch; }

.review-list { display: grid; }
.review-list figure { border-top: 1px solid var(--line); padding: 20px 0; }
.review-list blockquote { font-size: clamp(1.125rem, 2.15vw, 1.875rem); line-height: 1.28; letter-spacing: -.025em; font-weight: 530; }
.review-list figcaption { color: var(--muted); font-size: .8125rem; margin-top: 10px; }
.footer { padding-block: 33px 41px; }
.footer-grid { display: grid; gap: 20px 36px; align-items: center; }
.footer h2 { font-size: clamp(1.65rem, 3.4vw, 2.85rem); text-wrap: initial; }
.footer p { color: #c9cbc0; margin-top: 9px; }
.footer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 18px; }

@media (min-width: 500px) {
  .logo img { width: 149px; }
  .facts dd { font-size: .875rem; }
  .technology { min-height: 140px; padding: 16px; }
  .structure-details > summary { font-size: .9375rem; padding-inline-end: 17px; padding-inline-start: 40%; }
  .case-link { padding-inline: 17px; }
  .case-link span + span { font-size: .75rem; }
  .part-panel { padding-inline: 17px; }
  .structure-label { font-size: .875rem; padding: 5px 8px; }
}

@media (min-width: 720px) {
  .catalog-grid, .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .project-body { padding: 20px; }
  .facts > div { display: flex; align-items: center; gap: 17px; padding: 25px 22px; }
  .facts dd { margin-top: 0; }
  .technology-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .technology, .technology:nth-child(odd) { border: 0; border-right: 1px solid var(--line); }
  .technology:last-child { grid-column: auto; border-right: 0; }
  .technology { min-height: 150px; }
  .technology svg { width: 60px; height: 60px; }
  .review-list figure { padding: 22px 5% 13px 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 900px) {
  .header-grid { min-height: 76px; }
  .desktop-nav, .header-actions { display: flex; align-items: center; font-size: .875rem; }
  .desktop-nav { gap: clamp(13px, 2vw, 34px); }
  .desktop-nav a, .header-phone { display: flex; align-items: center; min-height: 44px; color: #edeee9; white-space: nowrap; transition: color 160ms var(--ease); }
  .desktop-nav a:hover, .header-phone:hover { color: var(--accent); }
  .header-actions { gap: 16px; }
  .header-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 13px; border: 1px solid #ffffff51; white-space: nowrap; transition: border-color 160ms var(--ease); }
  .header-contact:hover { border-color: var(--accent); }
  .header-phone, .mobile-menu { display: none; }
  .hero-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 8.25fr); gap: clamp(25px, 3vw, 54px); padding-block: 26px 34px; }
  .hero-copy { align-self: start; padding-block: clamp(48px, 9vw, 130px) 35px; }
  .hero h1 { font-size: clamp(2.6rem, 4.8vw, 4.7rem); }
  .hero-description { font-size: 1.125rem; margin-top: 19px; }
  .hero-actions { margin-top: 25px; gap: 7px 20px; }
  .hero-proof { margin-top: 16px; }
  .structure-details > summary { min-height: 64px; padding-inline-end: 19px; }
  .case-link { min-height: 64px; padding-inline: 19px; font-size: 1rem; }
  .part-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 15px 24px; padding: 8px 19px 12px; }
  .part-picker { margin: 0 0 5px; }
  .part-notes { min-height: 3.2em; align-content: center; }
  .technology { min-height: 166px; padding: 17px 20px 21px; font-size: 1.0625rem; }
  .technology svg { width: 64px; height: 64px; }
  .technologies { padding-block-start: 65px; }
}

@media (min-width: 1170px) {
  .header-phone { display: flex; }
  .section-heading { margin-bottom: 32px; }
  .facts > div { padding-block: 27px; }
}

@media (max-width: 359px) {
  .structure-details > summary { gap: 4px; padding-inline-end: 7px; }
  .case-link { padding-inline-start: 9px; }
  .hero-actions { column-gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
