:root {
  --ink: #182b22;
  --ink-soft: #20392c;
  --paper: #f0efe4;
  --white: #fbf9f4;
  --accent: #4f7a4a;
  --accent-2: #8fc28a;
  --green: #3b5e38;
  --grey: #666f5f;
  --line: rgba(24, 43, 34, 0.16);
  --page-pad: 52px;
  --header-height: 88px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--page-pad);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 252, 242, 0.28);
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  color: var(--ink);
  background: rgba(240, 239, 228, 0.94);
  border-color: var(--line);
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.wordmark__index {
  color: var(--accent);
  font-size: 24px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.desktop-nav a,
.header-phone {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-phone {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 7px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: 130px var(--page-pad) 44px;
  color: var(--white);
  background: var(--ink);
}

.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  display: block;
  padding: 18px 0;
  text-decoration: none;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.06;
  border-bottom: 1px solid rgba(255, 252, 242, 0.2);
}

.mobile-menu__phone {
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 760px;
  height: 92svh;
  max-height: 980px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: 50% 54%;
  transform: scale(calc(1.035 - var(--hero-progress) * 0.02)) translateY(calc(var(--hero-progress) * 12px));
  transform-origin: center;
  will-change: transform;
}

.hero__shade {
  background: rgba(24, 43, 34, 0.55);
}

.hero__content {
  position: absolute;
  z-index: 2;
  bottom: 112px;
  left: var(--page-pad);
  width: min(970px, calc(100% - 104px));
}

.hero__overline,
.section-code {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero__overline {
  margin-bottom: 22px;
  color: rgba(255, 252, 242, 0.72);
}

.hero h1 {
  margin: 0;
  font-size: 112px;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  transform-origin: left bottom;
}

.hero h1 b {
  color: var(--accent-2);
  font-weight: 800;
}

.hero__lead {
  max-width: 680px;
  margin: 32px 0 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.action {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 240px;
  padding: 16px 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms var(--ease-out);
}

.action span {
  font-size: 20px;
  line-height: 1;
  transition: transform 220ms var(--ease-out);
}

.action:hover span,
.action:focus-visible span {
  transform: translate(3px, -3px);
}

.action--accent {
  color: var(--white);
  background: var(--accent);
}

.action--accent:hover,
.action--accent:focus-visible {
  color: var(--ink);
  background: var(--white);
}

.action--line {
  color: var(--white);
  border-color: rgba(255, 252, 242, 0.65);
}

.action--line:hover,
.action--line:focus-visible {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.ico {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}

.ico--down {
  --ico: url("/assets/images/arrow-down.svg");
}

.ico--right {
  --ico: url("/assets/images/arrow-right.svg");
}

.ico--upright {
  --ico: url("/assets/images/arrow-up-right.svg");
}

.ico--plus {
  --ico: url("/assets/images/plus.svg");
}

.hero__facts {
  position: absolute;
  z-index: 2;
  right: var(--page-pad);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__facts span + span::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 24px 2px 0;
  background: var(--accent-2);
  content: "";
}

.positioning,
.projects__header,
.technology,
.process,
.faq,
.site-footer {
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.positioning {
  display: grid;
  grid-template-columns: 18% minmax(0, 1fr);
  gap: 0 4%;
  padding-top: 120px;
  padding-bottom: 120px;
}

.section-code {
  color: var(--accent);
}

.projects__header .section-code,
.faq__head .section-code {
  color: var(--accent-2);
}

.positioning__statement h2,
.projects__header h2,
.technology h2,
.mortgage h2,
.process h2,
.faq h2,
.contacts h2 {
  margin: 0;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.positioning__statement p {
  max-width: 720px;
  margin: 34px 0 0 auto;
  font-size: 23px;
  line-height: 1.5;
}

.positioning__facts {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 92px;
  border-top: 1px solid var(--line);
}

.positioning__facts div {
  display: grid;
  gap: 6px;
  padding: 24px 22px 0 0;
}

.positioning__facts div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.positioning__facts strong {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.positioning__facts span {
  color: var(--grey);
  font-size: 13px;
}

.projects {
  background: var(--ink);
}

.projects__header {
  display: grid;
  grid-template-columns: 18% minmax(0, 1fr) minmax(260px, 30%);
  gap: 4%;
  padding-top: 118px;
  padding-bottom: 88px;
  color: var(--white);
}

.projects__header h2 {
  max-width: 760px;
}

.projects__header > p:last-child {
  align-self: end;
  margin: 0;
  color: rgba(255, 252, 242, 0.66);
  font-size: 16px;
}

.project-index {
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: var(--white);
  background: var(--ink);
  border-top: 1px solid rgba(255, 252, 242, 0.16);
  border-bottom: 1px solid rgba(255, 252, 242, 0.16);
}

.project-index a {
  position: relative;
  padding: 18px 20px;
  overflow: hidden;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 252, 242, 0.16);
}

.project-index a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent-2);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.project-index a.is-active::after {
  transform: scaleX(1);
}

.project {
  display: grid;
  grid-template-columns: minmax(350px, 42%) minmax(0, 58%);
  min-height: 720px;
  overflow: hidden;
  color: var(--white);
  scroll-margin-top: 142px;
  border-bottom: 1px solid rgba(255, 252, 242, 0.16);
}

.project--reverse {
  grid-template-columns: minmax(0, 58%) minmax(350px, 42%);
}

.project--reverse .project__media {
  order: 2;
}

.project__media {
  position: relative;
  min-height: 720px;
  margin: 0;
  overflow: hidden;
  background: var(--ink-soft);
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1000ms var(--ease-out);
}

.project:hover .project__media img {
  transform: scale(1.025);
}

.project__media--square img {
  object-position: center;
}

.project__media--crop-left img {
  object-position: left center;
}

.project__media--crop-right img {
  object-position: right center;
}

.project__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 58px var(--page-pad) 48px;
}

.project__type {
  margin: 0 0 26px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project h3 {
  margin: 0;
  font-size: 78px;
  font-weight: 700;
  line-height: 1;
}

.project__intro {
  max-width: 650px;
  margin: 30px 0 48px;
  color: rgba(255, 252, 242, 0.7);
  font-size: 18px;
  line-height: 1.55;
}

.project__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid rgba(255, 252, 242, 0.2);
  border-bottom: 1px solid rgba(255, 252, 242, 0.2);
}

.project__metrics div {
  display: grid;
  gap: 8px;
  padding: 22px 16px 22px 0;
}

.project__metrics div + div {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 252, 242, 0.2);
}

.project__metrics dt {
  color: rgba(255, 252, 242, 0.5);
  font-size: 11px;
}

.project__metrics dd {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.project__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: auto;
  padding-top: 50px;
}

.project__price {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.project__price small {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 252, 242, 0.5);
  font-size: 11px;
  font-weight: 500;
}

.project__bottom a {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 2px solid var(--accent-2);
}

.project__bottom a .ico {
  width: 16px;
  height: 16px;
}

.project__bottom a span {
  transition: transform 220ms var(--ease-out);
}

.project__bottom a:hover span,
.project__bottom a:focus-visible span {
  transform: translateX(5px);
}

.technology {
  display: grid;
  grid-template-columns: minmax(350px, 42%) minmax(0, 1fr);
  gap: 7%;
  padding-top: 130px;
  padding-bottom: 130px;
}

.technology__head {
  align-self: start;
  position: sticky;
  top: 130px;
}

.technology__head .section-code,
.process__head .section-code,
.faq__head .section-code {
  margin-bottom: 28px;
}

.technology__list,
.process ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.technology__list li {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.technology__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.technology__list h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.technology__list p {
  margin: 0;
  color: var(--grey);
  font-size: 15px;
}

.mortgage {
  display: grid;
  grid-template-columns: 56% 44%;
  min-height: 720px;
  color: var(--white);
  background: var(--green);
}

.mortgage__rate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 58px var(--page-pad) 62px;
  border-right: 1px solid rgba(255, 252, 242, 0.35);
}

.mortgage__rate strong {
  font-size: 220px;
  font-weight: 700;
  line-height: 0.8;
}

.mortgage__rate span {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.04;
}

.mortgage__content {
  display: flex;
  flex-direction: column;
  padding: 60px var(--page-pad);
}

.mortgage__content .section-code {
  color: var(--white);
  opacity: 0.72;
}

.mortgage__content h2 {
  margin-top: 40px;
  font-size: 60px;
}

.mortgage__content > p:not(.section-code):not(.mortgage__note) {
  max-width: 540px;
  margin: 34px 0 0;
  font-size: 20px;
}

.mortgage__secondary {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: auto;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 252, 242, 0.35);
  border-bottom: 1px solid rgba(255, 252, 242, 0.35);
}

.mortgage__secondary strong {
  font-size: 68px;
  line-height: 0.9;
}

.mortgage__secondary span {
  font-size: 15px;
  font-weight: 700;
}

.mortgage__note {
  margin: 22px 0 0;
  font-size: 11px;
  opacity: 0.72;
}

.process {
  display: grid;
  grid-template-columns: minmax(320px, 37%) minmax(0, 1fr);
  gap: 9%;
  padding-top: 130px;
  padding-bottom: 130px;
}

.process li {
  display: block;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}

.process li:last-child {
  border-bottom: 1px solid var(--line);
}

.process li p {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  margin: 0;
  color: var(--grey);
}

.process li strong {
  color: var(--ink);
  font-size: 20px;
}

.faq {
  display: grid;
  grid-template-columns: minmax(320px, 37%) minmax(0, 1fr);
  gap: 9%;
  padding-top: 120px;
  padding-bottom: 120px;
  color: var(--white);
  background: var(--ink-soft);
}

.faq__item {
  border-top: 1px solid rgba(255, 252, 242, 0.2);
}

.faq__item:last-child {
  border-bottom: 1px solid rgba(255, 252, 242, 0.2);
}

.faq__q {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 27px 0;
  color: inherit;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
}

.faq__toggle {
  justify-self: center;
  width: 20px;
  height: 20px;
  color: var(--accent-2);
  transition: transform 180ms ease;
}

.faq__item.is-open .faq__toggle {
  transform: rotate(45deg);
}

.faq__a p {
  max-width: 680px;
  margin: -4px 60px 30px 0;
  color: rgba(255, 252, 242, 0.65);
}

/* JS-аккордеон: высоту переключаем мгновенно (display), анимируем ТОЛЬКО
   opacity + transform ответа — они на GPU и не вызывают перекладку layout,
   поэтому раскрытие не тормозит. Без JS ответы просто видны (доступность). */
.js .faq__a {
  display: none;
  overflow: hidden;
}

.js .faq__a p {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 300ms var(--ease-out);
}

.js .faq__item.is-open .faq__a p {
  opacity: 1;
  transform: translateY(0);
}

.contacts {
  display: grid;
  grid-template-columns: 56% 44%;
  min-height: 680px;
  color: var(--white);
  background: var(--ink);
}

.contacts__top,
.contacts__action {
  padding: 62px var(--page-pad);
}

.contacts__top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(251, 249, 244, 0.22);
}

.contacts__top .section-code {
  color: var(--accent-2);
}

.contacts h2 {
  font-size: 78px;
}

.contacts__action {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contacts__phone {
  display: inline-block;
  margin-bottom: auto;
  text-decoration: none;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
}

.contacts__action > p {
  max-width: 500px;
  margin: 0 0 34px;
  font-size: 20px;
}

.contacts__action > div {
  display: flex;
  gap: 10px;
}

.action--dark {
  color: var(--white);
  background: var(--accent);
}

.action--dark:hover,
.action--dark:focus-visible {
  color: var(--ink);
  background: var(--white);
}

.action--light {
  color: var(--white);
  border-color: rgba(251, 249, 244, 0.4);
}

.action--light:hover,
.action--light:focus-visible {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 52px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
}

.site-footer > div,
.site-footer__brand {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer__brand strong {
  font-size: 17px;
}

.site-footer__brand span,
.site-footer > div:not(.site-footer__brand) span,
.site-footer p {
  color: rgba(255, 252, 242, 0.55);
}

.site-footer__links a {
  width: fit-content;
  text-underline-offset: 4px;
}

.site-footer p {
  margin: 0;
  white-space: nowrap;
}

.legal-page {
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
}

.legal-header .wordmark {
  color: var(--ink);
}

.legal-header > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.legal-header .ico {
  width: 15px;
  height: 15px;
}

.legal-content {
  display: grid;
  grid-template-columns: minmax(180px, 24%) minmax(0, 860px);
  gap: 6%;
  padding: 90px var(--page-pad) 130px;
}

.legal-content__aside {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-content article h1 {
  max-width: 820px;
  margin: 0 0 64px;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.04;
}

.legal-content article h2 {
  margin: 48px 0 14px;
  font-size: 24px;
  line-height: 1.25;
}

.legal-content article p,
.legal-content article li {
  color: #4f4e49;
  font-size: 16px;
  line-height: 1.7;
}

.legal-content article ul {
  padding-left: 22px;
}

.legal-content article a {
  text-underline-offset: 4px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 760ms ease, transform 900ms var(--ease-out);
  transition-delay: calc(var(--reveal-order, 0) * 65ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .project.reveal {
  opacity: 1;
  transform: none;
}

.js .project.reveal .project__media {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1100ms var(--ease-out);
}

.js .project--reverse.reveal .project__media {
  clip-path: inset(0 0 0 100%);
}

.js .project.reveal .project__body {
  opacity: 0;
  transform: translateX(34px);
  transition: opacity 760ms ease 180ms, transform 900ms var(--ease-out) 180ms;
}

.js .project--reverse.reveal .project__body {
  transform: translateX(-34px);
}

.js .project.reveal.is-visible .project__media {
  clip-path: inset(0);
}

.js .project.reveal.is-visible .project__body {
  opacity: 1;
  transform: translateX(0);
}

.js .hero__overline,
.js .hero h1 span,
.js .hero__lead,
.js .hero__actions,
.js .hero__facts {
  opacity: 0;
  transform: translateY(18px);
}

.js .hero h1 span {
  transform: translateY(36px) rotate(1.5deg);
}

.js.motion-ready .hero__overline,
.js.motion-ready .hero h1 span,
.js.motion-ready .hero__lead,
.js.motion-ready .hero__actions,
.js.motion-ready .hero__facts {
  opacity: 1;
  transform: translateY(0) rotate(0);
  transition: opacity 700ms ease, transform 1000ms var(--ease-out);
}

.js.motion-ready .hero h1 span:first-child {
  transition-delay: 80ms;
}

.js.motion-ready .hero h1 span:last-child {
  transition-delay: 150ms;
}

.js.motion-ready .hero__lead {
  transition-delay: 260ms;
}

.js.motion-ready .hero__actions {
  transition-delay: 340ms;
}

.js.motion-ready .hero__facts {
  transition-delay: 430ms;
}

.js.motion-fallback .reveal,
.js.motion-fallback .project.reveal .project__body,
.js.motion-fallback .hero__overline,
.js.motion-fallback .hero h1 span,
.js.motion-fallback .hero__lead,
.js.motion-fallback .hero__actions,
.js.motion-fallback .hero__facts {
  opacity: 1;
  transform: none;
}

.js.motion-fallback .project.reveal .project__media,
.js.motion-fallback .project--reverse.reveal .project__media {
  clip-path: none;
}

@media (max-width: 1180px) {
  :root {
    --page-pad: 32px;
    --header-height: 78px;
  }

  .site-header {
    grid-template-columns: 210px 1fr 180px;
  }

  .desktop-nav {
    gap: 22px;
  }

  .hero h1 {
    font-size: 88px;
  }

  .positioning__statement h2,
  .projects__header h2,
  .technology h2,
  .process h2,
  .faq h2 {
    font-size: 58px;
  }

  .project h3 {
    font-size: 62px;
  }

  .project__body {
    padding-top: 46px;
  }

  .technology__list li {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .mortgage__rate strong {
    font-size: 170px;
  }

  .mortgage__content h2 {
    font-size: 48px;
  }

  .contacts h2 {
    font-size: 62px;
  }

  .contacts__phone {
    font-size: 33px;
  }

  .contacts__action > div {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-phone {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 720px;
    height: 90svh;
  }

  .hero__content {
    bottom: 118px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero__facts {
    right: auto;
    bottom: 34px;
    left: var(--page-pad);
  }

  .positioning {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .positioning__facts {
    grid-column: 1;
    margin-top: 34px;
  }

  .projects__header {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 90px;
    padding-bottom: 70px;
  }

  .projects__header > p:last-child {
    max-width: 620px;
  }

  .project-index {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    scrollbar-width: none;
  }

  .project-index::-webkit-scrollbar {
    display: none;
  }

  .project,
  .project--reverse {
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
  }

  .project__media,
  .project__body {
    min-height: 650px;
  }

  .project__bottom {
    display: grid;
  }

  .project__metrics {
    grid-template-columns: 1fr;
  }

  .project__metrics div {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    padding: 12px 0;
  }

  .project__metrics div + div {
    padding-left: 0;
    border-top: 1px solid rgba(255, 252, 242, 0.2);
    border-left: 0;
  }

  .project__intro {
    margin-bottom: 30px;
    font-size: 16px;
  }

  .project h3 {
    font-size: 52px;
  }

  .project__price {
    font-size: 23px;
  }

  .technology,
  .process,
  .faq {
    grid-template-columns: 1fr;
    gap: 64px;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .technology__head {
    position: static;
  }

  .mortgage {
    grid-template-columns: 1fr 1fr;
  }

  .mortgage__rate strong {
    font-size: 130px;
  }

  .mortgage__rate span {
    font-size: 28px;
  }

  .mortgage__content h2 {
    font-size: 40px;
  }

  .contacts {
    grid-template-columns: 1fr;
  }

  .contacts__top {
    min-height: 440px;
    border-right: 0;
    border-bottom: 1px solid rgba(251, 249, 244, 0.22);
  }

  .contacts__action {
    min-height: 470px;
  }

  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 20px;
    --header-height: 68px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    height: var(--header-height);
  }

  .wordmark__main {
    font-size: 12px;
  }

  .wordmark__index {
    font-size: 21px;
  }

  .mobile-menu {
    padding-top: 102px;
    padding-bottom: 28px;
  }

  .mobile-menu nav a {
    font-size: 34px;
  }

  .mobile-menu__phone {
    font-size: 22px;
  }

  .hero {
    min-height: 680px;
    height: 100svh;
    max-height: 860px;
  }

  .hero__image {
    object-position: 57% 50%;
  }

  .hero__shade {
    background: rgba(24, 43, 34, 0.6);
  }

  .hero__content {
    bottom: 148px;
    left: var(--page-pad);
    width: calc(100% - 40px);
  }

  .hero__overline {
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 0.92;
  }

  .hero__lead {
    margin-top: 24px;
    font-size: 16px;
  }

  .hero__actions {
    display: grid;
    gap: 8px;
    margin-top: 25px;
  }

  .action {
    width: 100%;
    min-width: 0;
    min-height: 54px;
  }

  .hero__facts {
    right: var(--page-pad);
    bottom: 30px;
    left: var(--page-pad);
    justify-content: space-between;
    gap: 10px;
    font-size: 9px;
  }

  .hero__facts span + span::before {
    display: none;
  }

  .positioning,
  .technology,
  .process,
  .faq {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .positioning__statement h2,
  .projects__header h2,
  .technology h2,
  .process h2,
  .faq h2 {
    font-size: 38px;
    line-height: 1.08;
  }

  .positioning__statement p {
    margin-top: 24px;
    font-size: 18px;
  }

  .positioning__facts {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .positioning__facts div,
  .positioning__facts div + div {
    grid-template-columns: 100px 1fr;
    align-items: baseline;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .positioning__facts div:last-child {
    border-bottom: 1px solid var(--line);
  }

  .positioning__facts strong {
    font-size: 38px;
  }

  .projects__header {
    padding-top: 72px;
    padding-bottom: 52px;
  }

  .project-index {
    top: var(--header-height);
    grid-template-columns: repeat(5, minmax(138px, 1fr));
  }

  .project-index a {
    padding: 14px 16px;
    font-size: 10px;
  }

  .project,
  .project--reverse {
    grid-template-columns: 1fr;
    min-height: 0;
    scroll-margin-top: 116px;
  }

  .project--reverse .project__media {
    order: 0;
  }

  .project__media,
  .project__body {
    min-height: 0;
  }

  .project__media {
    height: 510px;
  }

  .project__media--square {
    height: 420px;
  }

  .project__media--crop-left img {
    object-position: 7% center;
  }

  .project__media--crop-right img {
    object-position: 93% center;
  }

  .js .project.reveal .project__media,
  .js .project--reverse.reveal .project__media {
    clip-path: inset(0 0 100% 0);
  }

  .project__body {
    padding: 36px var(--page-pad) 42px;
  }

  .project h3 {
    font-size: 44px;
  }

  .project__intro {
    margin-top: 22px;
  }

  .project__bottom {
    gap: 30px;
    margin-top: 0;
    padding-top: 38px;
  }

  .project__bottom a {
    width: fit-content;
  }

  .technology__list li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }

  .technology__list li p {
    grid-column: auto;
  }

  .technology__list h3 {
    font-size: 23px;
  }

  .mortgage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mortgage__rate {
    min-height: 390px;
    padding: 48px var(--page-pad);
    border-right: 0;
    border-bottom: 1px solid rgba(255, 252, 242, 0.35);
  }

  .mortgage__rate strong {
    font-size: 130px;
  }

  .mortgage__content {
    min-height: 520px;
    padding: 48px var(--page-pad);
  }

  .mortgage__content h2 {
    margin-top: 28px;
    font-size: 38px;
  }

  .mortgage__content > p:not(.section-code):not(.mortgage__note) {
    font-size: 17px;
  }

  .process,
  .faq {
    gap: 48px;
  }

  .process li p {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .faq__q {
    padding: 22px 0;
    font-size: 17px;
  }

  .faq__a p {
    margin-right: 0;
  }

  .contacts {
    min-height: 0;
  }

  .contacts__top,
  .contacts__action {
    padding: 48px var(--page-pad);
  }

  .contacts__top {
    min-height: 390px;
  }

  .contacts h2 {
    font-size: 48px;
    line-height: 1.04;
  }

  .contacts__action {
    min-height: 430px;
  }

  .contacts__phone {
    font-size: 29px;
  }

  .contacts__action > p {
    font-size: 17px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .legal-header {
    min-height: 68px;
  }

  .legal-header > a:last-child {
    font-size: 12px;
  }

  .legal-content {
    padding-top: 54px;
    padding-bottom: 80px;
  }

  .legal-content article h1 {
    margin-bottom: 42px;
    font-size: 40px;
  }

  .legal-content article h2 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal,
  .js .project.reveal .project__body,
  .js .hero__overline,
  .js .hero h1 span,
  .js .hero__lead,
  .js .hero__actions,
  .js .hero__facts {
    opacity: 1;
    transform: none;
  }

  .hero__image {
    transform: scale(1.02);
  }

  .js .project.reveal .project__media,
  .js .project--reverse.reveal .project__media {
    clip-path: none;
  }
}
