@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f8faf9;
  --paper-2: #eef3f2;
  --sage: #e3eeea;
  --ink: #1a2e2a;
  --muted: #4c5f5b;
  --accent: #315d51;
  --accent-dark: #21483e;
  --line: #cbd9d5;
  --line-strong: #7e958e;
  --error: #8b3830;
  --display: Manrope, sans-serif;
  --body: Inter, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --column-gap: clamp(16px, 2.15vw, 32px);
  --section-space: clamp(96px, 10vw, 160px);
  --header-height: 76px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-inout: cubic-bezier(.65, .05, .36, 1);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
picture, img { display: block; }
img { max-width: 100%; }
picture > img { width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; }
h1 { font-size: clamp(2.75rem, 7.2vw, 7rem); line-height: 1; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.05; letter-spacing: -.02em; }
h3 { font-size: clamp(1.375rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
[hidden] { display: none !important; }
:is(a, button, input, textarea, select):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.wrap { width: min(100%, 1440px); padding-inline: var(--gutter); margin-inline: auto; }
.section { padding-block: var(--section-space); }
[id] { scroll-margin-top: calc(var(--header-height) + 16px); }
.eyebrow { font-size: .75rem; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.45; }
.link { display: inline-block; width: fit-content; border-bottom: 1px solid currentColor; font-size: .875rem; line-height: 1.45; padding-block: .3em; }
.link:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border: 1px solid transparent; font-size: .875rem; font-weight: 500; transition: background-color 180ms, color 180ms, border-color 180ms; }
.button--accent { background: var(--accent); color: var(--paper); }
.button--accent:hover { background: var(--accent-dark); }
.button--accent:disabled { opacity: .72; }
.skip { position: fixed; inset: 12px auto auto 12px; transform: translateY(-200%); z-index: 15; background: var(--paper); padding: 12px; }
.skip:focus { transform: none; }
.section-heading { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-heading > .eyebrow { color: var(--muted); }
.section-heading > .lead { max-width: 44ch; color: var(--muted); }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header__inner { min-height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; width: fit-content; flex-shrink: 0; }
.brand__mark { width: 35px; height: 35px; flex-shrink: 0; object-fit: contain; }
.brand__name { font: 650 1.05rem/.93 var(--display); letter-spacing: -.02em; }
.header__nav, .header__contact { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 34px); font-size: .875rem; white-space: nowrap; }
.header__contact { justify-self: end; gap: clamp(14px, 1.8vw, 27px); }
.header__nav a, .header__phone, .header__cta { padding-block: 12px; }
.header__cta { border: 1px solid var(--line-strong); color: var(--accent-dark); padding: 8px 13px; }
.header a:hover, .footer__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.header__cta:hover { text-decoration: none; border-color: var(--accent); background: var(--paper-2); }
.header__menu { display: none; }

.hero { padding-top: var(--header-height); }
.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  align-items: end;
  gap: 14px var(--column-gap);
  padding-block: clamp(28px, 3.9vw, 58px) clamp(27px, 3.2vw, 48px);
}
.hero__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.hero__meta .eyebrow { color: var(--accent-dark); }
.hero__location { font-size: .875rem; white-space: nowrap; }
.hero__location span { margin-inline: .2em; }
.hero h1 { white-space: nowrap; }
.hero__copy { justify-self: end; width: min(100%, 478px); }
.hero__lead { max-width: 41ch; color: var(--muted); }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 22px; margin-top: 18px; }
.hero__actions .link { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }
.hero__actions .link:hover { text-decoration-thickness: 2px; }
.hero__frame {
  position: relative;
  max-width: 1920px;
  height: clamp(420px, 57vh, 680px);
  height: clamp(420px, 57svh, 680px);
  margin-inline: auto;
  overflow: hidden;
  background: var(--paper-2);
}
.hero__photo { position: absolute; inset: 0; transform-origin: 59% 58%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero--motion .hero__photo { animation: drift 24s linear both; }
.hero--paused .hero__photo { animation-play-state: paused; }
@keyframes drift { to { transform: scale(1.04); } }
.hero__controls { position: absolute; inset: auto 0 20px; display: flex; justify-content: end; pointer-events: none; }
.hero__pause { display: grid; place-content: center; width: 44px; min-height: 44px; border: 0; background: var(--paper); color: var(--ink); pointer-events: auto; }
.hero__pause:hover { background: var(--sage); }
.hero__pause span { display: block; width: 10px; height: 12px; border-inline: 1px solid; }
.hero--paused .hero__pause span { width: 0; height: 0; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; }
.hero__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-block: 14px; color: var(--muted); font-size: .875rem; }
.hero--motion .hero__actions { animation: hero-in 500ms var(--ease-out) 150ms both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } }

.trust { background: var(--paper-2); border-block: 1px solid var(--line); }
.trust__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 63px; color: var(--accent-dark); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }

.portfolio__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 25px; border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 56px); }
.portfolio__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(9px, 1.55vw, 24px); }
.portfolio__filters button { min-height: 44px; border: 0; padding: 0; color: var(--muted); background: transparent; font-size: .875rem; text-underline-offset: 7px; }
.portfolio__filters button:hover, .portfolio__filters button[aria-pressed="true"] { color: var(--accent-dark); text-decoration: underline; text-decoration-color: var(--accent); }
.portfolio__list { display: grid; gap: var(--section-space); }
.portfolio__empty { padding-top: 20px; color: var(--muted); }
.project { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--column-gap); align-items: center; }
.project__media { grid-column: 1 / 8; position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; background: var(--paper-2); }
.project__copy { grid-column: 9 / -1; max-width: 30rem; display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 22px; }
.project--reverse .project__media { grid-column: 6 / -1; grid-row: 1; aspect-ratio: 4 / 3; }
.project--reverse .project__copy { grid-column: 2 / 6; grid-row: 1; }
.project__photo, .project__alternate { position: absolute; inset: -1px; display: block; pointer-events: none; overflow: hidden; }
.project__photo img, .project__alternate { width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover; }
.project__photo { transition: transform 850ms var(--ease-out); }
.project__alternate { z-index: 1; opacity: 0; transition: opacity 550ms var(--ease-inout), transform 850ms var(--ease-out); }
.project__photo img { object-position: center; }
.project__media--in-view .project__photo img { animation: approach 6s var(--ease-out) both; }
@keyframes approach { to { transform: scale(1.03); } }
.project__cursor { display: none; }
.project__copy p { color: var(--muted); }
.project__copy .project__meta { color: var(--accent-dark); }
.project__link { margin-top: 8px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project__media:hover .project__photo { transform: scale(1.035); }
  .project__media:hover .project__alternate--ready { opacity: 1; transform: scale(1.035); }
  .project__media--cursor:hover { cursor: none; }
  .project__media--cursor:hover .project__cursor { opacity: 1; }
  .project__cursor { display: block; position: absolute; z-index: 2; pointer-events: none; inset: var(--pointer-y, 50%) auto auto var(--pointer-x, 50%); transform: translate(-50%, -50%); background: var(--paper); padding: 10px 15px; color: var(--ink); font-size: .8125rem; opacity: 0; transition: opacity 180ms; }
}

.manifesto { text-align: center; }
.manifesto__inner { display: grid; justify-items: center; gap: 24px; border-top: 1px solid var(--line); padding-block: calc(var(--section-space) * .8) var(--section-space); }
.manifesto__inner p { max-width: 53ch; color: var(--muted); }

.services { background: var(--paper-2); }
.service { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 18px var(--column-gap); padding-block: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.service__copy { grid-column: 1 / 6; grid-row: 1; display: grid; gap: 12px; align-content: start; }
.service__copy p { max-width: 37ch; color: var(--muted); }
.service__number { font: 500 1rem/1.4 var(--display); color: var(--accent); }
.service__media { grid-column: 7 / -1; grid-row: 1 / 3; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage); }
.service__media picture { width: 100%; height: 100%; transform: translateY(var(--photo-offset, 0px)) scale(1.115); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__scope { grid-column: 1 / 6; grid-row: 2; }
.service__scope ul { list-style: none; padding: 0; margin: 0 0 17px; color: var(--muted); font-size: .875rem; }
.service__scope li + li { margin-top: 4px; }
.service__scope li::before { content: "—"; margin-right: 9px; color: var(--accent); }
.services__additional { border-top: 1px solid var(--line); padding-top: 32px; }
.services__additional dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--column-gap); margin-top: 14px; }
.services__additional dl div { padding-block: 14px; border-bottom: 1px solid var(--line); }
.services__additional dt { font-weight: 500; }
.services__additional dd { font-size: .875rem; color: var(--muted); margin-top: 3px; }

.expertise, .contacts { background: var(--sage); color: var(--ink); }
.expertise__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 110px); }
.expertise__years { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; font-size: .95rem; }
.expertise__years strong { font: 400 clamp(4rem, 7vw, 6rem)/1.12 var(--display); color: var(--accent); }
.expertise__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--column-gap); margin: 0; padding: 0; list-style: none; }
.expertise__list li { display: flex; gap: 12px; align-items: baseline; border-top: 1px solid var(--line-strong); padding-top: 15px; }
.expertise__list li > span { color: var(--accent); font: 500 .875rem/1 var(--display); }
.expertise__list li p { color: var(--muted); font-size: .875rem; margin-top: 5px; }
.expertise__list h3 { font-size: clamp(1.35rem, 1.95vw, 1.65rem); }
.expertise__list li:nth-child(2) { --delay: 80ms; }
.expertise__list li:nth-child(3) { --delay: 160ms; }
.expertise__list li:nth-child(4) { --delay: 240ms; }

.studio { display: grid; align-items: center; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--column-gap); }
.studio__photo { grid-column: 2 / 6; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.studio__photo picture, .studio__photo img { height: 100%; }
.studio__photo img { object-fit: cover; object-position: 50% 31%; }
.studio__copy { grid-column: 7 / 12; display: grid; gap: 16px; }
.studio__copy .eyebrow, .studio__copy > p:not(.lead) { color: var(--muted); }
.studio__copy .studio__location { font-size: .875rem; padding-top: 10px; }

.process { background: var(--paper-2); }
.process__stages { --process-progress: 100%; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--column-gap); padding: 0; margin: 0; list-style: none; }
.process__stages::before, .process__stages::after { position: absolute; content: ""; inset: 0 auto auto 0; height: 1px; width: 100%; background: var(--line); }
.process__stages::after { background: var(--accent); width: var(--process-progress); }
.process__stages li { padding-top: 15px; }
.process__stages li > span { color: var(--accent); font: 400 clamp(1.65rem, 3.3vw, 2.6rem)/1.2 var(--display); }
.process__stages h3 { margin-block: 10px 4px; font-size: clamp(1.125rem, 1.8vw, 1.45rem); }
.process__stages p { color: var(--muted); font-size: .875rem; max-width: 24ch; }

.blog__heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: clamp(22px, 3.5vw, 48px); }
.blog__posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--column-gap); }
.post { display: flex; flex-direction: column; align-items: start; }
.post__image { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.post__image picture, .post__image img { height: 100%; }
.post__image img { object-fit: cover; transition: transform 750ms var(--ease-out); }
.post__image:hover img { transform: scale(1.04); }
.post time { color: var(--muted); font-size: .875rem; margin-top: 16px; }
.post h3 { margin-block: 7px 12px; }
.post .link { margin-top: auto; }

.contacts__layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; align-items: start; gap: 30px var(--column-gap); }
.contacts__copy { grid-column: 1 / 6; grid-row: 1; display: grid; gap: 19px; }
.contacts__copy p { color: var(--muted); }
.contacts__address { grid-column: 1 / 6; grid-row: 2; display: grid; gap: 10px; align-content: start; font-style: normal; }
.contacts__phone { width: fit-content; font: 500 clamp(1.75rem, 3.2vw, 2.25rem)/1.15 var(--display); }
.socials { display: flex; flex-wrap: wrap; gap: 7px 24px; font-size: .875rem; }
.socials a { display: flex; align-items: center; min-height: 44px; }
.socials a:hover, .contacts__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.inquiry { grid-column: 7 / -1; grid-row: 1 / 3; position: relative; display: grid; gap: 17px; }
.inquiry__field { display: grid; gap: 5px; min-width: 0; }
.inquiry label { font-size: .875rem; }
.inquiry label > span { color: var(--muted); }
.inquiry :is(input:not([type="checkbox"]),select,textarea) { width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: var(--paper); min-height: 44px; border-radius: 2px 2px 0 0; padding: 7px 9px; font-size: 1rem; }
.inquiry option { background: var(--paper); color: var(--ink); }
.inquiry textarea { resize: vertical; }
.inquiry input::placeholder { color: var(--muted); font-size: .875rem; }
.inquiry :is(input,select,textarea)[aria-invalid="true"] { border-color: var(--error); }
.inquiry__error { color: var(--error); font-size: .875rem; }
.inquiry__trap { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.inquiry__consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.inquiry__consent input { width: 19px; height: 19px; accent-color: var(--accent); margin: 3px 0 0; }
.inquiry__consent label { min-height: 44px; }
.inquiry__consent .link { display: inline; padding: 0; }
.inquiry__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 20px; }
.inquiry__actions p, .inquiry__status { font-size: .875rem; }
.inquiry__status:has(.inquiry__status-text:empty) { margin-top: -17px; }

.footer { border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 30px; align-items: center; padding-block: 30px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 19px; font-size: .875rem; }
.footer p { grid-column: 1 / 3; color: var(--muted); font-size: .875rem; }
.footer .link { justify-self: end; }

.menu, .gallery { color: var(--ink); background: var(--paper); border: 0; padding: 0; }
.menu::backdrop, .gallery::backdrop { background: rgb(20 37 33 / 74%); }
.menu { inset: 0; margin: 0; width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none; }
.menu__inner { min-height: 100%; display: flex; flex-direction: column; }
.menu__head { min-height: var(--header-height); display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.menu__close, .gallery__close { border: 0; padding: 0 4px; min-height: 44px; background: transparent; font-size: .875rem; white-space: nowrap; }
.menu__close span, .gallery__close span { vertical-align: middle; font-size: 1.35rem; margin-left: 5px; }
.menu__nav { display: grid; align-content: center; gap: 4px; flex: 1; padding-block: 26px; }
.menu__nav a { display: flex; align-items: center; min-height: 44px; font: 500 clamp(1.75rem, 7vw, 2.25rem)/1.15 var(--display); width: fit-content; }
.menu__nav a:last-child { color: var(--accent-dark); }
.menu__contact { border-top: 1px solid var(--line); padding-block: 17px max(17px, env(safe-area-inset-bottom)); }
.menu__phone { display: flex; align-items: center; min-height: 44px; width: fit-content; font: 500 1.6rem/1.1 var(--display); }

.gallery { width: min(100%, 1540px); max-width: calc(100% - 24px); max-height: calc(100% - 24px); box-shadow: 0 24px 80px rgb(20 37 33 / 12%); }
.gallery__content { padding: clamp(13px, 2vw, 28px); }
.gallery__header, .gallery__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gallery__header { align-items: start; margin-bottom: 12px; }
.gallery__meta { color: var(--muted); }
.gallery h2 { font-size: clamp(1.55rem, 3vw, 2.65rem); margin-top: 5px; }
.gallery__image { display: grid; place-items: center; height: min(72vh, 850px); height: min(72dvh, 850px); background: var(--paper-2); }
.gallery__image picture, .gallery__image img { width: 100%; height: 100%; min-height: 0; }
.gallery__image img { object-fit: contain; }
.gallery__nav { margin-top: 8px; }
.gallery__nav button { background: transparent; border: 1px solid var(--line); min-width: 46px; min-height: 44px; font-size: 1.25rem; }
.gallery__nav button:hover { border-color: var(--accent); }
.gallery__count { font-size: .875rem; color: var(--muted); }
.legal { padding-block: 56px; }
.legal > :not(h1) { max-width: 62ch; }
.legal h1 { margin: 26px 0; font-size: clamp(2.6rem, 6vw, 4.5rem); }
.legal h2 { font-size: clamp(1.55rem, 3.5vw, 2.15rem); margin-top: 22px; }
.legal p { margin-top: 10px; }

.reveal--enter:not(:focus-within) { animation: reveal-in 400ms var(--ease-out) var(--delay, 0ms) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(20px); } }

@media (min-width: 80rem) { body { font-size: 1.125rem; } }
@media (max-width: 79.99rem) {
  .header__inner { gap: 16px; }
  .header__nav { gap: 17px; }
}
@media (max-width: 66rem) {
  .header__phone { display: none; }
  .trust__inner { letter-spacing: .045em; }
  .project__copy { grid-column: 8 / -1; }
  .project--reverse .project__copy { grid-column: 1 / 6; }
}
@media (max-width: 57.99rem) {
  :root { --header-height: 68px; }
  .header__inner { grid-template-columns: 1fr auto; }
  .header__nav, .header__contact { display: none; }
  .header__menu { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: .875rem; }
  .header__menu span { display: block; border-block: 1px solid; width: 18px; height: 6px; }
  .header:not(.header--menu-ready) .header__contact { display: flex; }
  .studio__photo { grid-column: 1 / 6; }
  .studio__copy { grid-column: 6 / -1; }
}

@media (max-width: 47.99rem) {
  :root { --section-space: clamp(72px, 12vw, 96px); --header-height: 64px; }
  .eyebrow { letter-spacing: .12em; }
  h2 { font-size: clamp(2.35rem, 7.3vw, 3.5rem); }
  .hero__layout { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .hero__meta { display: grid; gap: 4px; }
  .hero__meta .eyebrow { max-width: 32ch; }
  .hero__location { font-size: .8125rem; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 4.55rem); }
  .hero__copy { justify-self: start; width: auto; }
  .hero__lead { font-size: clamp(1rem, 4.2vw, 1.22rem); max-width: 38ch; }
  .hero__actions { margin-top: 14px; column-gap: 18px; }
  .hero__frame { height: clamp(300px, 42vh, 460px); height: clamp(300px, 42svh, 460px); }
  .hero__photo img { object-position: 54% center; }
  .hero__controls { bottom: 12px; }
  .hero__caption { min-height: 51px; gap: 12px; padding-block: 11px; font-size: .8125rem; }
  .trust__inner { min-height: 0; padding-block: 14px; align-items: start; flex-direction: column; gap: 4px; }
  .portfolio__heading { align-items: start; flex-direction: column; gap: 12px; padding-bottom: 9px; }
  .portfolio__filters { gap: 0 16px; }
  .project, .service, .expertise__layout, .studio, .contacts__layout { grid-template-columns: 1fr; }
  .project :is(.project__media, .project__copy), .service :is(.service__copy, .service__media, .service__scope),
  .studio :is(.studio__photo, .studio__copy), .contacts :is(.contacts__copy, .contacts__address, .inquiry) { grid-column: 1; grid-row: auto; }
  .project--reverse .project__media { aspect-ratio: 16 / 10; }
  .project__copy { gap: 8px; padding-top: 0; border-top: 0; }
  .project__copy h3 { font-size: 1.8rem; }
  .project__link { margin-top: 1px; }
  .portfolio__list { gap: clamp(44px, 10vw, 66px); }
  .manifesto h2 br { display: none; }
  .studio__photo { max-width: 26rem; }
  .studio, .contacts__layout { row-gap: 26px; grid-template-rows: auto; }
  .service { grid-template-rows: auto; }
  .service__media picture { transform: none; }
  .contacts__address { order: 2; }
  .contacts__address > .link, .contacts__phone { min-height: 44px; display: flex; align-items: center; }
  .process__stages { grid-template-columns: 1fr; gap: 21px; padding-inline-start: 19px; }
  .process__stages::before, .process__stages::after { width: 1px; height: 100%; }
  .process__stages::after { height: var(--process-progress); }
  .process__stages li { padding-top: 0; display: grid; grid-template-columns: 43px 1fr; gap: 5px 8px; align-items: baseline; }
  .process__stages li h3 { margin: 0; }
  .process__stages li p { grid-column: 2; max-width: 45ch; }
  .blog__posts { grid-template-columns: 1fr; gap: 34px; }
  .post__image { aspect-ratio: 16 / 10; }
  .footer__inner { grid-template-columns: 1fr; gap: 10px; }
  .footer__nav { justify-content: start; gap: 0 18px; }
  .footer__nav a { min-height: 44px; display: flex; align-items: center; }
  .footer p { grid-column: 1; }
  .footer .link { justify-self: start; }
  .section .link:not(.inquiry__consent a), .footer .link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-bottom: 0;
    text-decoration: underline;
    text-underline-offset: 5px;
  }
}

@media (max-width: 30rem) {
  .brand__mark { width: 29px; height: 29px; }
  .brand__name { font-size: .95rem; }
  .hero__actions { column-gap: 14px; }
  .hero__actions .button { padding-inline: 12px; }
  .hero__actions .link { font-size: .8125rem; }
  .services__additional dl, .expertise__list { grid-template-columns: 1fr; }
  .section-heading { gap: 10px; }
  .gallery__image { height: min(62vh, 500px); height: min(62dvh, 500px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__pause { display: none; }
}

/* Четвёртая версия — архитектурная галерея. */
:root {
  --paper: #f7f7f5;
  --paper-2: #eeefed;
  --sage: #e8eae7;
  --ink: #202522;
  --muted: #59615d;
  --accent: #293c35;
  --accent-dark: #1c2c26;
  --line: #d4d9d4;
  --line-strong: #a3ada6;
}

.header { background: var(--paper); }
.header__cta { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.header__cta:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: max(650px, 92vh);
  min-height: max(650px, 92svh);
  padding-top: var(--header-height);
  color: #f7f7f5;
  background: #4b5049;
}
.hero::after {
  content: "";
  position: absolute;
  inset: var(--header-height) 0 0;
  z-index: -1;
  background: rgb(15 22 18 / 48%);
  pointer-events: none;
}
.hero__exhibit { display: contents; }
.hero__frame { position: absolute; inset: var(--header-height) 0 0; z-index: -2; max-width: none; height: auto; overflow: hidden; background: #4b5049; }
.hero__photo { inset: 0; transform-origin: 52% 53%; }
.hero__photo img { object-position: center 52%; }
.hero--motion .hero__photo { animation: hero-pullback 24s cubic-bezier(.25, .1, .25, 1) both; }
.hero--motion.hero--paused .hero__photo { animation-play-state: paused; }
@keyframes hero-pullback {
  from { transform: scale(1.14) translate3d(-1.4%, .4%, 0); }
  to { transform: scale(1.015) translate3d(0, 0, 0); }
}
.hero__layout {
  position: relative;
  display: block;
  padding-block: clamp(120px, 17vh, 210px) clamp(55px, 8vh, 90px);
}
.hero__meta { display: block; color: inherit; }
.hero__meta .eyebrow { color: #f7f7f5; max-width: 32rem; }
.hero__location { display: none; }
.hero h1 {
  margin-top: 22px;
  max-width: 10em;
  color: #f7f7f5;
  font-size: clamp(3.6rem, 8.6vw, 8.6rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}
.hero__copy { width: auto; max-width: 34rem; margin-top: 25px; }
.hero__lead { color: #f7f7f5; max-width: 32ch; }
.hero__actions { margin-top: 28px; gap: 12px 28px; }
.hero__actions .button--accent { color: var(--ink); background: var(--paper); }
.hero__actions .button--accent:hover { background: #dfe5df; }
.hero__actions .link { color: #f7f7f5; }
.hero__caption {
  color: #f7f7f5;
  min-height: 62px;
  border-top: 1px solid rgb(247 247 245 / 45%);
  align-items: center;
  padding-block: 12px;
  padding-right: calc(var(--gutter) + 62px);
}
.hero__controls { inset: auto 0 9px; z-index: 2; }
.hero__pause { background: transparent; color: #f7f7f5; border: 1px solid rgb(247 247 245 / 75%); }
.hero__pause:hover { background: #f7f7f5; color: var(--ink); }

.trust { background: var(--ink); border-color: var(--ink); }
.trust__inner { color: #f1f3ef; min-height: 80px; text-transform: none; font-size: .875rem; letter-spacing: 0; }
.portfolio { padding-top: clamp(90px, 10vw, 150px); }
.portfolio__heading { align-items: end; padding-bottom: 30px; margin-bottom: clamp(35px, 5vw, 76px); }
.portfolio__heading h2 { max-width: 11ch; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.portfolio__list { gap: clamp(84px, 9vw, 140px); }
.project:first-child { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.project:first-child .project__media { width: 100%; aspect-ratio: 2 / 1; }
.project:first-child .project__copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 35px;
  row-gap: 10px;
  align-items: start;
  max-width: none;
  border: 0;
  padding-top: 24px;
}
.project:first-child .project__meta { grid-column: 1 / -1; }
.project:first-child .project__copy h3 { font-size: clamp(1.8rem, 3vw, 3rem); }
.project:first-child .project__copy > p:not(.project__meta) { grid-column: 2; grid-row: 2; max-width: 40ch; }
.project:first-child .project__link { grid-column: 2; }
.project__copy { border-top: 1px solid var(--ink); }
.project__meta { letter-spacing: .12em; }
.project__media { background: #dedfdb; }
.manifesto__inner { padding-block: var(--section-space); border-top: 1px solid var(--line-strong); }
.manifesto h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.services { background: var(--paper-2); }
.service__number { font-size: 1rem; color: var(--muted); }
.expertise { background: var(--ink); color: #f3f4f1; }
.expertise__years strong { color: #f3f4f1; }
.expertise__list li { border-color: #7e8a80; }
.expertise__list li > span, .expertise__list li p { color: #e0e5df; }
.studio__photo { grid-column: 1 / 6; }
.studio__copy { grid-column: 7 / 12; }
.contacts { background: #e3e8e2; }
.footer { background: var(--paper); }

@media (max-width: 57.99rem) {
  .studio__photo { grid-column: 1 / 6; }
  .studio__copy { grid-column: 6 / -1; }
}
@media (max-width: 47.99rem) {
  .hero { min-height: max(670px, 90vh); min-height: max(670px, 90svh); }
  .hero__frame { inset: var(--header-height) 0 0; height: auto; }
  .hero__photo img { object-position: center; }
  .hero__layout { display: block; padding-block: 95px 43px; }
  .hero__meta { display: block; }
  .hero__meta .eyebrow { max-width: 30ch; font-size: .7rem; }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 4.5rem); white-space: normal; margin-top: 15px; }
  .hero__copy { margin-top: 17px; }
  .hero__lead { color: #f7f7f5; max-width: 29ch; font-size: 1.1rem; }
  .hero__actions { margin-top: 19px; }
  .hero__caption { min-height: 56px; padding-block: 10px; gap: 12px; }
  .hero__controls { bottom: 6px; }
  .trust__inner { padding-block: 18px; gap: 5px; }
  .portfolio__heading h2 { max-width: none; }
  .project:first-child .project__media { aspect-ratio: 4 / 3; }
  .project:first-child .project__copy { display: grid; grid-template-columns: 1fr; gap: 8px; padding-top: 17px; }
  .project:first-child .project__meta, .project:first-child .project__copy > p:not(.project__meta), .project:first-child .project__link { grid-column: auto; grid-row: auto; }
  .project__copy { border: 0; }
  .studio__photo, .studio__copy { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--motion .hero__photo { animation: none; }
}
