@font-face {
  font-family: "Mabry Pro";
  src: url("../assets/fonts/MabryPro-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Mabry Pro";
  src: url("../assets/fonts/MabryPro-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Mabry Pro";
  src: url("../assets/fonts/MabryPro-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --bg: #faf9f6;
  --ink: #2f2f2f;
  --muted: #6b6b6b;
  --line: rgba(47, 47, 47, 0.35);
  --white: #ffffff;
  --gold: #d8b15a;
  --dark: rgba(0, 0, 0, 0.64);
  --pad: 30px;
  --header: 91px;
  --radius-pill: 999px;
  --ease: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

html.has-smooth-wheel {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Mabry Pro", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  overflow-x: clip;
}

body.menu-open,
body.modal-open,
body.map-popup-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: block;
  min-height: var(--header);
  height: var(--header);
  padding: 0;
  background: transparent;
  color: var(--white);
  text-transform: uppercase;
  font-size: 20px;
  line-height: 20px;
  font-weight: 500;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.site-header.is-solid,
.site-header.is-projects-open {
  background: var(--bg);
  color: var(--ink);
}

.site-header.is-projects-open::after {
  border-color: var(--line);
  opacity: 1;
}

.site-header::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  border-bottom: 1px solid white;
  opacity: 0.72;
  pointer-events: none;
}

.site-header::before {
  content: none;
}

.brand {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 360px;
  font-weight: 700;
}

.site-nav {
  display: block;
}

.projects-trigger {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 186px;
  padding-bottom: 41px;
  transform: translateX(9px);
  font-weight: 500;
}

.nav-phone,
.site-nav .link-button {
  position: absolute;
  top: 30px;
  font-weight: 500;
}

.nav-phone {
  left: calc(70% - 16px);
  width: 218px;
  margin-right: 0;
}

.site-nav .link-button {
  right: 30px;
  width: 184px;
  text-align: left;
}

.projects-menu {
  position: fixed;
  top: var(--header);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 31;
  display: grid;
  grid-template-columns: 50% 50%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0ms linear 180ms;
}

.site-header.is-projects-open .projects-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0ms;
}

.projects-menu-intro {
  padding: 8px var(--pad) 36px;
}

.projects-menu-intro h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(44px, 3.75vw, 72px);
  line-height: 0.96;
  font-weight: 400;
  text-transform: uppercase;
}

.projects-menu-intro p {
  max-width: min(600px, 31vw);
  margin: 26px 0 0;
  font-size: clamp(15px, 1.04vw, 20px);
  line-height: 1.05;
  font-weight: 300;
  text-transform: none;
}

.projects-menu-list {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.projects-menu-list > a {
  position: relative;
  display: block;
  min-height: 0;
  padding: 7px 8px 30px;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, color 180ms ease;
}

.projects-menu-list > a:hover,
.projects-menu-list > a:focus-visible {
  background: var(--ink);
  color: var(--bg);
  opacity: 1;
  outline: none;
}

.projects-menu-name,
.projects-menu-type,
.projects-menu-more {
  display: block;
}

.projects-menu-name {
  font-size: clamp(28px, 2.25vw, 43px);
  line-height: 1;
  font-weight: 300;
}

.projects-menu-type,
.projects-menu-more {
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1;
  font-weight: 300;
}

.projects-menu-type {
  margin-top: 6px;
}

.projects-menu-more {
  position: absolute;
  right: var(--pad);
  bottom: 12px;
  text-decoration: underline;
}

.link-button,
.feedback-link {
  padding: 0;
  border: 0;
  background: transparent;
  text-transform: uppercase;
  text-decoration: underline;
  white-space: nowrap;
  cursor: pointer;
}

.site-header a,
.link-button,
.feedback-link {
  transition: opacity var(--ease);
}

.site-header a:hover,
.link-button:hover,
.feedback-link:hover,
.site-header a:focus-visible,
.link-button:focus-visible,
.feedback-link:focus-visible {
  opacity: 0.62;
  outline: none;
}

.site-header .projects-menu-list > a:hover,
.site-header .projects-menu-list > a:focus-visible {
  opacity: 1;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: var(--bg);
}

.template-screen {
  min-height: calc(100vh - var(--header));
}

.home-overview {
  height: 100vh;
  min-height: 700px;
  color: var(--white);
  background: #1d2723;
}

.home-overview::before {
  content: "";
  position: absolute;
  top: 107px;
  bottom: 30px;
  left: calc(70% - 16px);
  z-index: 4;
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.home-reference {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-overview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 28px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 30%);
  gap: 30px;
  align-items: end;
  text-transform: uppercase;
}

.hero-copy h1 {
  position: relative;
  margin: 0;
  /* max-width: 980px; */
  font-size: clamp(52px, 5.3vw, 92px);
  line-height: 1;
  font-weight: 400;
}

.hero-copy h1::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
}

.hero-copy p {
  margin: 0;
  max-width: 560px;
  padding-left: 26px;
  border-left: 0;
  font-size: clamp(24px, 1.72vw, 33px);
  line-height: 1.2;
  font-weight: 300;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-pages {
  --stack-page-height: max(640px, calc(100svh - var(--header)));
  --stack-hold: clamp(110px, 15svh, 170px);
  position: relative;
  z-index: 2;
  background: #151515;
  isolation: isolate;
}

.project-page-stage {
  position: relative;
  z-index: var(--page-z);
  height: calc(var(--stack-page-height) + var(--stack-page-height) + var(--stack-hold));
  margin-bottom: calc(0px - var(--stack-page-height));
  overflow: visible;
  --stack-y: 0px;
  --stack-scale: 1;
  --stack-brightness: 1;
  --stack-blur: 0px;
}

.project-page-stage:last-child {
  margin-bottom: 0;
}

.project-page {
  position: sticky;
  top: var(--header);
  z-index: var(--page-z);
  width: 100%;
  min-height: 0;
  height: var(--stack-page-height);
  overflow: hidden;
  color: var(--white);
  background: #151515;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.22);
  transform: translate3d(0, var(--stack-y), 0) scale(var(--stack-scale));
  transform-origin: center top;
  filter: brightness(var(--stack-brightness)) blur(var(--stack-blur));
  transition: transform 90ms linear, filter 90ms linear;
  scroll-margin-top: var(--header);
}

.project-page.is-stack-active {
  will-change: transform, filter;
}

.project-page-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-page-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  min-width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.project-page-track img {
  flex: 0 0 100%;
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
}

.project-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(70% - 16px), rgba(24, 29, 32, 0.64) calc(70% - 16px), rgba(14, 17, 18, 0.7) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.58) 100%);
  pointer-events: none;
}

/* .project-page::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 30px;
  left: calc(70% - 15px);
  z-index: 3;
  border-left: 1px solid rgba(255, 255, 255, 0.62);
  pointer-events: none;
} */

.project-page-info {
  position: absolute;
  inset: 0 var(--pad) 0 var(--pad);
  z-index: 4;
  display: block;
  padding: 0;
  pointer-events: none;
}

.project-page-info::before {
  content: "";
  position: absolute;
  left: 0;
  right: calc(30% + 46px);
  bottom: 179px;
  border-top: 1px solid rgba(255, 255, 255, 0.64);
}

.project-page-info h2 {
  position: absolute;
  left: 0;
  bottom: 79px;
  margin: 0;
  font-size: clamp(48px, 4.5vw, 70px);
  line-height: 1;
  font-weight: 300;
  text-transform: uppercase;
}

.project-downloads {
  position: absolute;
  right: calc(30% + 22px);
  bottom: 29px;
  z-index: 4;
  display: flex;
  gap: 22px;
  align-items: center;
  pointer-events: auto;
}

.project-download {
  color: var(--white);
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-download:hover,
.project-download:focus-visible {
  text-decoration: underline;
  outline: none;
}

.project-page-count {
  position: absolute;
  right: var(--pad);
  bottom: 116px;
  z-index: 4;
  color: var(--white);
  font-size: 18px;
  font-weight: 300;
}

.project-page-arrows {
  position: absolute;
  right: calc(30% - 117px);
  bottom: 116px;
  z-index: 6;
  display: flex;
  gap: 18px;
}

.project-page-arrows::before,
.project-page-arrows::after {
  content: "";
  position: absolute;
  left: 0;
  width: calc(30vw - 30px);
  border-top: 1px solid rgba(255, 255, 255, 0.64);
  pointer-events: none;
}

.project-page-arrows::before {
  top: -46px;
}

.project-page-arrows::after {
  bottom: -46px;
}

.project-page-arrows button {
  position: relative;
  width: 50px;
  height: 18px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  opacity: 0.78;
  transition: opacity var(--ease), transform var(--ease);
}

.project-arrow::before {
  content: "";
  position: absolute;
  inset: 5px 0;
  background: url("../assets/icons/arr.svg") center / 48px 8px no-repeat;
}

.project-arrow-next::before {
  transform: scaleX(-1);
}

.project-page-arrows button:hover,
.project-page-arrows button:focus-visible {
  opacity: 1;
  transform: translateX(2px);
  outline: none;
}

.project-page-slider {
  display: none;
}

.project-page-slider button {
  position: relative;
  width: 54px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  opacity: 0.58;
  transition: opacity var(--ease), transform var(--ease);
}

.project-page-slider button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 24px;
  top: 50%;
  border-top: 1px solid currentColor;
}

.project-page-slider button.is-active,
.project-page-slider button:hover,
.project-page-slider button:focus-visible {
  opacity: 1;
  transform: translateX(-4px);
  outline: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.section-head h2,
.section-head p,
.map-head h2,
.map-head p {
  margin: 0;
}

.section-head h2 {
  font-size: clamp(44px, 5vw, 74px);
  line-height: 0.98;
  font-weight: 400;
}

.section-head p,
.map-head p {
  max-width: 390px;
  text-align: right;
  font-size: 22px;
  font-weight: 600;
}

.project-detail {
  background: var(--bg);
}

.detail-slider {
  position: relative;
  min-height: calc(100vh - var(--header));
}

.slide-rail {
  position: absolute;
  left: var(--pad);
  top: 50%;
  z-index: 5;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.slide-rail button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  max-width: 280px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.66;
  transition: opacity var(--ease), transform var(--ease);
}

.slide-rail button::before {
  content: "";
  height: 1px;
  background: currentColor;
}

.slide-rail button.is-active,
.slide-rail button:hover,
.slide-rail button:focus-visible {
  opacity: 1;
  transform: translateX(4px);
  outline: none;
}

.detail-slide {
  position: relative;
  min-height: calc(100vh - var(--header));
  overflow: hidden;
  color: var(--white);
  background: #1d1d1d;
}

.detail-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  position: absolute;
  inset: auto var(--pad) 0 var(--pad);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 30%);
  gap: 32px;
  align-items: end;
  padding-bottom: 28px;
}

.detail-info::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.detail-kicker {
  position: absolute;
  left: 0;
  bottom: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

.detail-kicker::after {
  content: "";
  display: block;
  width: min(1284px, 66vw);
  height: 1px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.project-page .detail-kicker::after {
  content: none;
}

.project-page .detail-text {
  position: absolute;
  top: 84px;
  right: 0;
  bottom: 125px;
  width: 30%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  border-left: 0;
  padding-left: 18px;
}

.project-slide-heading {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
}

.project-slide-heading[hidden] {
  display: none;
}

.detail-info h2 {
  margin: 0;
  font-size: clamp(46px, 4.9vw, 70px);
  line-height: 1;
  font-weight: 300;
  text-transform: uppercase;
}

.detail-text {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-left: 1px solid rgba(255, 255, 255, 0.36);
  padding-left: 22px;
}

.detail-text p {
  margin: 10px 0 0;
  font-size: clamp(20px, 1.45vw, 23px);
  line-height: 1.08;
  font-weight: 300;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  padding: 0 0 40px;
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.64);
  align-self: start;
  min-height: 138px;
}

.stats.is-empty {
  display: none;
}

.stats.is-single {
  grid-template-columns: repeat(2, 1fr);
}

.stats.is-single > div {
  grid-column: 1;
}

.stats.is-many {
  column-gap: 52px;
  row-gap: 42px;
}

.stats.is-many dd {
  min-height: 48px;
  font-size: clamp(26px, 2.4vw, 44px);
}

.stats.is-many dd.is-word {
  font-size: clamp(19px, 1.75vw, 28px);
}

.project-page[data-page="4"].is-slide-3 .project-slide-heading {
  margin-bottom: 14px;
}

.project-page[data-page="4"].is-slide-3 .stats.is-many {
  column-gap: 28px;
  row-gap: 16px;
  min-height: 0;
  padding-bottom: 20px;
}

.project-page[data-page="4"].is-slide-3 .stats.is-many dd {
  min-height: 30px;
  margin-bottom: 3px;
  font-size: clamp(22px, 1.8vw, 32px);
}

.project-page[data-page="4"].is-slide-3 .stats.is-many dd.is-word {
  font-size: clamp(15px, 1.28vw, 20px);
}

.project-page[data-page="4"].is-slide-3 .stats.is-many dt {
  font-size: 14px;
}

.project-page[data-page="4"].is-slide-3 .detail-text p {
  margin-top: 6px;
  font-size: clamp(16px, 1.2vw, 19px);
}

.stats dt {
  font-size: 18px;
  line-height: 1.12;
  font-weight: 300;
  text-transform: uppercase;
}

.stats dt span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.12;
}

.stats dd {
  margin: 0 0 5px;
  min-height: 72px;
  font-size: clamp(42px, 3.7vw, 70px);
  line-height: 0.96;
  font-weight: 300;
  text-transform: uppercase;
}

.stats dd.is-word {
  font-size: clamp(21px, 2.35vw, 30px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.stats > div {
  display: flex;
  flex-direction: column;
}

.stats dd {
  order: -1;
}

.stats small {
  font-size: 18px;
}

.project-page.is-slide-2 .detail-text p {
  max-width: 570px;
}

.project-page.is-slide-2 .stats {
  grid-template-columns: repeat(1, 1fr);
}

.project-page.is-slide-2 .stats dd {
  margin-top: 0;
}

.detail-controls {
  position: absolute;
  right: var(--pad);
  bottom: 18%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-size: 18px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: var(--white);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}

.slider-btn:hover,
.slider-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.map-section {
  padding: 56px 0 0;
}

.map-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 30px;
  align-items: start;
  padding: 0 var(--pad) 64px;
  text-transform: uppercase;
}

.map-head h2 {
  max-width: 1455px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.98;
  font-weight: 400;
}

.map-wrap {
  position: relative;
  height: 611px;
  overflow: hidden;
  background: #30383e;
}

.map-fallback,
.yandex-native-map,
.yandex-map,
.map-marker-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-fallback {
  z-index: 0;
  object-fit: cover;
  filter: grayscale(1) brightness(0.9) contrast(0.88);
}

.yandex-map {
  display: none;
}

.yandex-native-map {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.map-wrap.has-native-map .yandex-native-map {
  opacity: 1;
  pointer-events: auto;
}

.map-wrap.has-native-map .yandex-map,
.map-wrap.has-native-map .map-marker-layer {
  opacity: 0;
  pointer-events: none;
}

.map-wrap.uses-v2-map [class*="-ground-pane"] {
  filter: grayscale(1) invert(0.82) brightness(0.8) contrast(0.9);
}

.map-wrap.uses-v2-map [class*="-copyrights-pane"],
.map-wrap.uses-v2-map [class*="-controls-pane"] {
  filter: grayscale(1) brightness(0.8);
}

.map-marker-layer {
  z-index: 2;
  pointer-events: none;
}

.map-pin {
  --pin-shift-x: 0%;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--bg);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
  cursor: pointer;
  pointer-events: auto;
  transform: translateX(var(--pin-shift-x));
  transition: transform var(--ease);
}

.map-pin::before {
  content: "";
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  border-radius: 50% 50% 50% 0;
  background: var(--gold);
  transform: rotate(-45deg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

.map-pin:hover,
.map-pin:focus-visible {
  transform: translate(var(--pin-shift-x), -2px);
  outline: none;
}

.map-pin-native {
  position: relative;
  left: auto !important;
  top: auto !important;
  color: var(--bg);
  transform: translate(-10px, -28px);
}

.map-pin-native.pin-petrovo,
.map-pin-native.pin-villa {
  transform: translate(calc(-100% + 10px), -28px);
}

.map-pin-native:hover,
.map-pin-native:focus-visible {
  transform: translate(-10px, -30px);
}

.map-pin-native.pin-petrovo:hover,
.map-pin-native.pin-petrovo:focus-visible,
.map-pin-native.pin-villa:hover,
.map-pin-native.pin-villa:focus-visible {
  transform: translate(calc(-100% + 10px), -30px);
}

.project-map-popup {
  position: fixed;
  top: var(--header);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 29;
  overflow: hidden;
  background: #34373a;
}

.project-map-popup[hidden] {
  display: none;
}

.project-map-popup-native,
.project-map-popup-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-map-popup-frame {
  z-index: 1;
  border: 0;
  filter: brightness(0.82) contrast(0.92);
}

.project-map-popup-native {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.project-map-popup.has-native-map .project-map-popup-native {
  opacity: 1;
  pointer-events: auto;
}

.project-map-popup.has-native-map .project-map-popup-frame {
  opacity: 0;
  pointer-events: none;
}

.project-map-popup.uses-v2-map [class*="-ground-pane"] {
  filter: grayscale(1) invert(0.82) brightness(0.8) contrast(0.9);
}

.project-map-popup.uses-v2-map [class*="-copyrights-pane"],
.project-map-popup.uses-v2-map [class*="-controls-pane"] {
  filter: grayscale(1) brightness(0.8);
}

.map-pin-v2 {
  color: var(--bg);
  font-family: "Mabry Pro", "Helvetica Neue", Arial, sans-serif;
}

.project-map-popup-title {
  position: absolute;
  top: 24px;
  left: var(--pad);
  z-index: 4;
  margin: 0;
  padding: 10px 12px;
  background: rgba(24, 26, 28, 0.86);
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.project-map-popup.has-native-map .project-map-popup-title {
  opacity: 0;
}

.project-map-popup-close {
  position: absolute;
  top: 20px;
  right: var(--pad);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(24, 26, 28, 0.86);
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.project-map-popup-close:hover,
.project-map-popup-close:focus-visible {
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.pin-silver { left: 76.1%; top: 33.1%; }
.pin-petrovo { --pin-shift-x: -100%; left: 34.8%; top: 68.6%; flex-direction: row-reverse; }
.pin-nikolina { left: 21%; top: 76.8%; }
.pin-nikolskaya { left: 47%; top: 22.8%; }
.pin-villa { --pin-shift-x: -100%; left: 45.7%; top: 21.9%; flex-direction: row-reverse; }
.pin-timeless { left: 32.5%; top: 88%; }

.contact-band {
  position: relative;
  padding: 72px var(--pad) 30px;
}

.feedback-link {
  position: absolute;
  right: var(--pad);
  top: 82px;
  font-size: 22px;
  font-weight: 600;
}

.contact-band h2 {
  max-width: 1560px;
  margin: 0 0 42px;
  font-size: clamp(46px, 5vw, 74px);
  line-height: 0.98;
  font-weight: 400;
  text-transform: uppercase;
}

.contact-band p {
  max-width: 727px;
  margin: 0 0 74px 7%;
  font-size: clamp(28px, 2.9vw, 42px);
  line-height: 1.05;
}

.contact-row {
  display: grid;
  grid-template-columns: auto 355px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
}

.outline-btn,
.submit-btn {
  min-height: 61px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.outline-btn:hover,
.outline-btn:focus-visible,
.submit-btn:hover,
.submit-btn:focus-visible {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-1px);
  outline: none;
}

.phone-large {
  justify-self: end;
  font-size: clamp(44px, 5vw, 74px);
  line-height: 1;
  font-weight: 400;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 var(--pad);
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.phone-widget {
  position: fixed;
  right: max(28px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 28;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: opacity var(--ease), visibility var(--ease);
}

.phone-widget-button {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: var(--gold);
  color: #171918;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}

.phone-widget-button::before,
.phone-widget-button::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(216, 177, 90, 0.72);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: phone-widget-pulse 2.4s ease-out infinite;
}

.phone-widget-button::after {
  animation-delay: 1.2s;
}

.phone-widget-button[aria-expanded="true"]::before,
.phone-widget-button[aria-expanded="true"]::after {
  animation: none;
}

.phone-widget-button svg {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@keyframes phone-widget-pulse {
  0% {
    opacity: 0.68;
    transform: scale(1);
  }

  75%,
  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

.phone-widget-button:hover,
.phone-widget-button:focus-visible,
.phone-widget-button[aria-expanded="true"] {
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  outline: none;
  transform: translateY(-2px);
}

.phone-widget-actions {
  display: grid;
  gap: 10px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.92);
  transform-origin: bottom center;
  transition: opacity var(--ease), visibility var(--ease), transform var(--ease);
}

.phone-widget.is-open .phone-widget-actions {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.phone-widget-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: #171918;
  color: var(--white);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
  transition: color var(--ease), background var(--ease), transform var(--ease);
}

.phone-widget-action svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.phone-widget-action::before {
  content: attr(data-contact-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  padding: 7px 10px;
  border-radius: 2px;
  background: #171918;
  color: var(--white);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(5px, -50%);
  transition: opacity var(--ease), transform var(--ease);
}

.phone-widget-action:hover,
.phone-widget-action:focus-visible {
  background: var(--white);
  color: #171918;
  outline: none;
  transform: translateY(-2px);
}

.phone-widget-action:hover::before,
.phone-widget-action:focus-visible::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.phone-widget-number {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  min-width: max-content;
  padding: 10px 14px;
  border-radius: 2px;
  background: #171918;
  color: var(--white);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(7px, -50%);
  transition: opacity var(--ease), visibility var(--ease), transform var(--ease);
}

.phone-widget-action--phone.is-number-visible::before {
  opacity: 0;
}

.phone-widget-action--phone.is-number-visible .phone-widget-number {
  visibility: visible;
  opacity: 1;
  transform: translate(0, -50%);
}

body.menu-open .phone-widget,
body.modal-open .phone-widget,
body.map-popup-open .phone-widget {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px), (pointer: coarse) {
  .phone-widget {
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
  }

  .phone-widget-button {
    width: 58px;
    height: 58px;
  }

  .phone-widget-action {
    width: 50px;
    height: 50px;
  }

  .phone-widget-action::before {
    display: none;
  }

  .phone-widget-number {
    display: none;
  }

  .phone-widget-button:active {
    transform: scale(0.96);
  }
}

@media (max-width: 480px) {
  .phone-widget {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-widget-button::before,
  .phone-widget-button::after {
    display: none;
  }
}

.modal {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.42);
}

.modal-card {
  position: relative;
  display: grid;
  gap: 18px;
  max-height: calc(100dvh - 32px);
  padding: 34px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  overflow-y: auto;
}

.modal-card h2 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
}

.modal-card label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  text-transform: uppercase;
}

.modal-card input:not([type="checkbox"]),
.modal-card select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.modal-card input:not([type="checkbox"]):focus,
.modal-card select:focus {
  border-color: var(--ink);
  outline: none;
}

.captcha-field {
  display: grid;
  gap: 8px;
}

.captcha-field > label {
  font-size: 14px;
  text-transform: uppercase;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
}

.captcha-equation {
  display: grid;
  grid-template-columns: max-content minmax(52px, 1fr);
  min-width: 0;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
}

.captcha-equation:focus-within {
  border-color: var(--ink);
}

.captcha-question {
  padding-left: 14px;
  font-size: 18px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.modal-card .captcha-equation input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px 0 8px;
  border: 0;
  background: transparent;
  font-size: 18px;
}

.modal-card .captcha-equation input:not([type="checkbox"]):focus {
  border: 0;
}

.captcha-refresh {
  min-height: 48px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.captcha-refresh:hover,
.captcha-refresh:focus-visible {
  background: var(--ink);
  color: var(--white);
  outline: none;
}

.captcha-refresh:disabled {
  cursor: wait;
  opacity: 0.5;
}

@media (max-width: 480px) {
  .captcha-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 6px;
  }
}

.modal-card .consent-field {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  text-transform: none;
  cursor: pointer;
}

.privacy-notice {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
}

.consent-field input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.consent-field input:checked {
  background: var(--ink);
  box-shadow: inset 0 0 0 4px var(--bg);
}

.consent-field input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.consent-field span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.submit-btn {
  margin-top: 8px;
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.form-note.is-success {
  color: #397246;
}

.form-note.is-error {
  color: #a63a32;
}

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

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

  .project-page {
    transform: none !important;
    filter: none !important;
  }
}
