@font-face {
  font-family: "Haval";
  src: url("assets/fonts/Haval-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Involve";
  src: url("assets/fonts/Involve-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Involve";
  src: url("assets/fonts/Involve-SemiBold.woff2") format("woff2");
  font-weight: 650;
  font-style: normal;
  font-display: swap;
}

@property --pointer-x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

@property --pointer-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 42%;
}

:root {
  --bg: #171b1e;
  --bg-soft: #202529;
  --ink: #fffdf9;
  --muted: rgba(255, 253, 249, 0.68);
  --muted-strong: rgba(255, 253, 249, 0.82);
  --paper: #d9ddd8;
  --paper-alt: #d9ddd8;
  --paper-raised: #eceeea;
  --surface-field: #f7f8f5;
  --surface-hover: #f4f5f1;
  --paper-ink: #282d2f;
  --paper-muted: #555d5d;
  --graphite: #2d3235;
  --wine: #7b0d18;
  --wine-dark: #55040d;
  --moss: #6f7b61;
  --brass: #c8a96a;
  --line: rgba(255, 255, 255, 0.18);
  --line-dark: #b9bfbb;
  --container: min(1180px, calc(100vw - 48px));
  --radius: 8px;
  --radius-lg: 18px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Involve", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.nav-open,
body.map-modal-open,
body.project-modal-open {
  overflow: hidden;
}

body.video-open {
  overflow: hidden;
}

#projects,
#solutions,
#expertise,
#videos,
#prices,
#mortgage,
#process,
#giveaway,
#participate,
#visit {
  scroll-margin-top: 112px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: var(--container);
  transform: translateX(-50%);
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 12px 14px 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(28, 33, 36, 0.5);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  transition: background 220ms ease, border-color 220ms ease, top 220ms ease;
}

.site-header.is-scrolled {
  top: 10px;
  background: rgba(45, 50, 53, 0.6);
  border-color: rgba(255, 255, 255, 0.24);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  width: 76px;
  min-width: 76px;
}

.site-header__brand img {
  width: 76px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.055), rgba(255, 253, 249, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 16px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.07em;
  color: rgba(255, 253, 249, 0.86);
  text-transform: uppercase;
}

.site-header__nav a {
  position: relative;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 5px;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
  border-color: rgba(255, 253, 249, 0.2);
  background: rgba(255, 253, 249, 0.14);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.site-header__nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-header__nav a:hover::after,
.site-header__nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header__contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-header__phone,
.site-header__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.12);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.site-header__phone {
  padding: 0 18px;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.site-header__phone:hover,
.site-header__phone:focus-visible {
  border-color: rgba(255, 253, 249, 0.3);
  background: rgba(255, 253, 249, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.site-header__social {
  position: relative;
  width: 40px;
  padding: 0;
  background: rgba(255, 253, 249, 0.08);
  color: rgba(255, 253, 249, 0.82);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.site-header__chat::before {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border: 2px solid #272d30;
  border-radius: 50%;
  background: #5ee27a;
  box-shadow: 0 0 0 0 rgba(94, 226, 122, 0.62), 0 0 10px rgba(94, 226, 122, 0.9);
  content: "";
  animation: siteHeaderOnlinePulse 2.2s ease-out infinite;
}

@keyframes siteHeaderOnlinePulse {
  0%,
  55%,
  100% {
    box-shadow: 0 0 0 0 rgba(94, 226, 122, 0.62), 0 0 10px rgba(94, 226, 122, 0.9);
  }

  25% {
    box-shadow: 0 0 0 5px rgba(94, 226, 122, 0), 0 0 14px rgba(94, 226, 122, 1);
  }
}

.site-header__social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 180ms ease;
}

.site-header__social:hover,
.site-header__social:focus-visible {
  border-color: rgba(255, 253, 249, 0.3);
  background: rgba(255, 253, 249, 0.18);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.site-header__social:hover img,
.site-header__social:focus-visible img {
  transform: scale(1.12) rotate(-4deg);
}

.site-header__social::after {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: #171b1e;
  color: var(--ink);
  content: attr(aria-label);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-header__social:hover::after,
.site-header__social:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.site-header__menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.12);
  color: var(--ink);
  cursor: pointer;
}

.site-header__menu span:not(.visually-hidden) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header__menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header__menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-header__menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: clip;
  isolation: isolate;
  padding: clamp(112px, 13svh, 142px) 0 clamp(34px, 6svh, 64px);
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media {
  overflow: clip;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 15, 17, 0.94) 0%, rgba(13, 15, 17, 0.7) 54%, rgba(13, 15, 17, 0.24) 100%),
    linear-gradient(0deg, rgba(23, 27, 30, 0.9), rgba(23, 27, 30, 0.04) 48%);
}

.hero__inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: clamp(48px, 7vw, 96px);
  align-items: end;
}

.section-kicker {
  margin: 0 0 18px;
}

.hero__event-label,
.section-kicker {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__event {
  position: relative;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 7px 16px 7px 7px;
  border: 1px solid rgba(255, 253, 249, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.08);
  backdrop-filter: blur(12px);
}

.hero__event:focus-visible {
  outline: 3px solid rgba(255, 253, 249, 0.7);
  outline-offset: 4px;
}

.hero__event-logo {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.08);
}

.hero__event-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.hero__event-label {
  color: rgba(255, 253, 249, 0.76);
}

.section-kicker {
  color: var(--wine);
}

.section-kicker--light {
  color: rgba(255, 253, 249, 0.76);
}

.hero__title,
.section-title,
.mortgage__title,
.giveaway__title,
.visit__title {
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}

.hero__title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(52px, 6.4vw, 88px);
  line-height: 0.93;
}

.hero__title sup {
  font-size: 0.28em;
  line-height: 0;
  vertical-align: super;
}

.hero__caption {
  margin: 18px 0 0;
  color: var(--ink);
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.hero__brand-slogan {
  margin: 20px 0 0;
  color: rgba(255, 253, 249, 0.76);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 38px 0 0;
}

.hero .button,
.expertise .button,
.prices .button,
.mortgage .button,
.participate .button {
  border-radius: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--wine);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(85, 4, 13, 0.28);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #961827;
}

.button--ghost {
  border-color: rgba(255, 253, 249, 0.34);
  background: rgba(255, 253, 249, 0.08);
  color: var(--ink);
}

.button--light {
  background: var(--ink);
  color: var(--wine-dark);
}

.button--line {
  border-color: rgba(255, 253, 249, 0.42);
  color: var(--ink);
}

.hero__facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-left: 1px solid rgba(255, 253, 249, 0.34);
}

.hero__facts div {
  padding: 20px 0 20px 24px;
  border-bottom: 1px solid rgba(255, 253, 249, 0.2);
}

.hero__facts div:last-child {
  border-bottom: 0;
}

.hero__facts dt {
  margin: 0 0 6px;
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.hero__facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.visitor-path {
  color: var(--paper-ink);
}

.visitor-path__head {
  max-width: 980px;
}

.visitor-path__lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--paper-muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
}

.visitor-path__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.visitor-path__item {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
}

.visitor-path__item > span {
  display: block;
  margin-bottom: 38px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 650;
}

.visitor-path__item h3,
.visitor-path__item p {
  margin: 0;
}

.visitor-path__item h3 {
  font-size: 23px;
  line-height: 1.16;
}

.visitor-path__item p {
  margin-top: 12px;
  color: var(--paper-muted);
  font-size: 15px;
  line-height: 1.5;
}

.visitor-path__cta {
  margin-top: 18px;
  border-radius: 6px;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(58px, 6vw, 82px) 0;
}

.projects,
.videos,
.solutions,
.about,
.participate {
  color: var(--paper-ink);
}

.projects .section-kicker,
.videos .section-kicker,
.solutions .section-kicker,
.about .section-kicker,
.participate .section-kicker {
  color: var(--wine);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.section__head--wide {
  display: block;
  max-width: 1000px;
}

.section-title {
  max-width: 920px;
  margin: 0;
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1.03;
}

.text-link {
  position: relative;
  flex: none;
  color: var(--paper-muted);
  font-weight: 650;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 180ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(0.72);
}

.project-reel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(300px, 28vw, 360px);
  gap: 12px;
}

.project-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #0f1214;
  isolation: isolate;
}

.project-card__open {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--ink);
  cursor: zoom-in;
}

.project-card__open::before {
  content: "Открыть галерею";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 253, 249, 0.3);
  border-radius: 999px;
  background: rgba(15, 18, 20, 0.58);
  color: rgba(255, 253, 249, 0.9);
  font: 600 11px/1 "Involve", Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  backdrop-filter: blur(10px);
}

.project-card:hover .project-card__open::before,
.project-card__open:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.project-card__open:focus-visible {
  outline: 3px solid rgba(255, 253, 249, 0.92);
  outline-offset: -5px;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.06) 62%);
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 700ms ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}

.project-card p,
.project-card h3 {
  margin: 0;
}

.project-card p {
  color: rgba(255, 253, 249, 0.76);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.project-card__count {
  display: inline-block;
  margin-top: 12px;
  color: rgba(255, 253, 249, 0.72);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projects-site-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(22px, 3vw, 36px);
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
}

.projects-site-cta__copy {
  max-width: 720px;
}

.projects-site-cta__eyebrow,
.projects-site-cta h2,
.projects-site-cta__copy > p:last-child {
  margin: 0;
}

.projects-site-cta__eyebrow {
  margin-bottom: 10px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.projects-site-cta h2 {
  color: var(--paper-ink);
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 300;
  line-height: 1.06;
}

.projects-site-cta__copy > p:last-child {
  max-width: 660px;
  margin-top: 14px;
  color: var(--paper-muted);
  font-size: 16px;
}

.projects-site-cta__link {
  flex: none;
  gap: 10px;
  white-space: nowrap;
}

.projects-site-cta__link span {
  font-size: 18px;
  line-height: 1;
}

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

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 28px);
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 14, 0.9);
  backdrop-filter: blur(14px);
}

.project-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  max-height: calc(100vh - clamp(24px, 4vw, 56px));
  max-height: calc(100svh - clamp(24px, 4vw, 56px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 249, 0.2);
  border-radius: 8px;
  background: #111518;
  color: var(--ink);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.56);
}

.project-modal__bar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 253, 249, 0.14);
  background: rgba(23, 27, 30, 0.98);
}

.project-modal__eyebrow,
.project-modal__title,
.project-modal__caption {
  margin: 0;
}

.project-modal__eyebrow {
  margin-bottom: 4px;
  color: rgba(255, 253, 249, 0.58);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal__title {
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.05;
}

.project-modal__caption {
  margin-top: 4px;
  color: rgba(255, 253, 249, 0.7);
  font-size: 14px;
  line-height: 1.35;
}

.project-modal__close {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 253, 249, 0.22);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.08);
  color: var(--ink);
  cursor: pointer;
}

.project-modal__close::before,
.project-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.project-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.project-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.project-modal__close:hover,
.project-modal__close:focus-visible,
.project-modal__nav:hover,
.project-modal__nav:focus-visible {
  border-color: rgba(255, 253, 249, 0.42);
  background: rgba(255, 253, 249, 0.16);
}

.project-modal__media {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #07090a;
}

.project-modal__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  opacity: 1;
  transition: opacity 140ms ease;
}

.project-modal__media img.is-loading {
  opacity: 0.28;
}

.project-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 253, 249, 0.22);
  border-radius: 8px;
  background: rgba(15, 18, 20, 0.64);
  color: var(--ink);
  font: 300 42px/1 "Involve", Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.project-modal__nav--prev {
  left: 16px;
}

.project-modal__nav--next {
  right: 16px;
}

.project-modal__thumbs {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 253, 249, 0.14);
  background: #171b1e;
  scrollbar-color: rgba(255, 253, 249, 0.34) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}

.project-modal__thumb {
  position: relative;
  flex: 0 0 96px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 249, 0.18);
  border-radius: 5px;
  background: #0b0e10;
  opacity: 0.58;
  cursor: pointer;
  scroll-snap-align: center;
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.project-modal__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-modal__thumb:hover,
.project-modal__thumb:focus-visible {
  opacity: 0.88;
  border-color: rgba(255, 253, 249, 0.46);
}

.project-modal__thumb.is-active {
  border-color: rgba(220, 92, 106, 0.92);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(220, 92, 106, 0.92);
}

.before-after {
  --before-after-position: 50%;
  width: var(--container);
  margin: 0 auto;
  padding: clamp(34px, 3.4vw, 48px) 0;
  border-top: 1px solid var(--line-dark);
  color: var(--paper-ink);
  scroll-margin-top: 112px;
}

.before-after__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 32px;
  align-items: end;
  margin-bottom: 18px;
}

.before-after__kicker {
  margin: 0 0 10px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.before-after__title {
  max-width: 760px;
  margin: 0;
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: clamp(32px, 3.25vw, 48px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0;
}

.before-after__intro {
  margin: 0;
  color: var(--paper-muted);
  font-size: 15px;
  line-height: 1.45;
}

.before-after__frame {
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #101416;
  box-shadow: 0 24px 70px rgba(31, 36, 38, 0.18);
  cursor: ew-resize;
  isolation: isolate;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.before-after__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.before-after__image--after {
  z-index: 1;
}

.before-after__image--before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--before-after-position)) 0 0);
}

.before-after__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.before-after__label {
  position: absolute;
  top: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 253, 249, 0.28);
  border-radius: 999px;
  background: rgba(17, 20, 22, 0.48);
  color: var(--ink);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.before-after__label--before {
  left: 18px;
}

.before-after__label--after {
  right: 18px;
}

.before-after__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--before-after-position);
  z-index: 5;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 0 0 1px rgba(33, 37, 39, 0.18);
  pointer-events: none;
}

.before-after__control {
  position: absolute;
  top: 50%;
  left: var(--before-after-position);
  z-index: 6;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 253, 249, 0.74);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.88);
  color: var(--paper-ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  cursor: ew-resize;
  outline: none;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(14px);
}

.before-after__control:focus-visible {
  box-shadow: 0 0 0 4px rgba(123, 13, 24, 0.22), 0 14px 34px rgba(0, 0, 0, 0.22);
}

.before-after__arrows {
  position: relative;
  display: block;
  width: 24px;
  height: 16px;
}

.before-after__arrows::before,
.before-after__arrows::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.before-after__arrows::before {
  left: 2px;
  transform: rotate(-45deg);
}

.before-after__arrows::after {
  right: 2px;
  transform: rotate(135deg);
}

.videos {
  padding-top: clamp(24px, 3vw, 34px);
  padding-bottom: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line-dark);
}

.videos__head {
  margin-bottom: 14px;
}

.videos .section-kicker {
  margin-bottom: 8px;
}

.videos__head .section-title {
  max-width: 520px;
  font-size: clamp(25px, 2.8vw, 34px);
  line-height: 1.04;
}

.video-film {
  --film-hole: #f6f7f2;
  --film-black: #111416;
  position: relative;
  width: 100%;
  overflow: visible;
  border: 1px solid rgba(5, 6, 7, 0.86);
  border-radius: 8px;
  background: var(--film-black);
  box-shadow: 0 22px 58px rgba(33, 37, 39, 0.18);
  color: var(--ink);
}

.video-film::before,
.video-film::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 22px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, var(--film-hole) 10px 20px, transparent 20px 31px),
    linear-gradient(180deg, #050607 0%, #15191b 48%, #050607 100%);
  background-position: 0 50%, 0 0;
  background-size: auto 13px, 100% 100%;
  background-repeat: repeat-x, no-repeat;
}

.video-film::before {
  top: 0;
  border-bottom: 2px solid #050607;
}

.video-film::after {
  bottom: 0;
  border-top: 2px solid #050607;
}

.video-film__viewport {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 28px 0;
  border-radius: 7px;
  scroll-behavior: smooth;
  scroll-padding-inline: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.video-film__viewport::-webkit-scrollbar {
  display: none;
}

.video-film__viewport:focus-visible {
  outline: 3px solid rgba(103, 0, 9, 0.28);
  outline-offset: 4px;
}

.video-film__track {
  width: max-content;
}

.video-grid {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 0 16px;
}

.video-card {
  position: relative;
  width: clamp(280px, 24vw, 310px);
  min-width: clamp(280px, 24vw, 310px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 249, 0.16);
  border-radius: 6px;
  background: #eef0ec;
  color: var(--paper-ink);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: border-color 180ms ease, transform 180ms ease;
}

.video-card::after {
  content: attr(data-frame);
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  min-width: 34px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 253, 249, 0.24);
  border-radius: 999px;
  background: rgba(17, 21, 23, 0.58);
  color: rgba(255, 253, 249, 0.76);
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(10px);
}

.video-card:hover {
  border-color: rgba(255, 253, 249, 0.34);
  transform: translateY(-3px);
}

.video-card--featured {
  width: clamp(280px, 24vw, 310px);
  min-width: clamp(280px, 24vw, 310px);
}

.video-card__preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #111517;
  color: var(--ink);
  cursor: pointer;
}

.video-film__controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}

.video-film__control {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(17, 20, 22, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--wine);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  pointer-events: auto;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.video-film__control:hover,
.video-film__control:focus-visible {
  background: #ffffff;
  transform: translateY(-1px);
}

.video-film__control:disabled {
  opacity: 0;
  cursor: default;
  pointer-events: none;
  transform: none;
}

.video-film__control span {
  display: block;
  transform: translateY(-1px);
}

.video-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.video-card:hover .video-card__preview img {
  transform: scale(1.05);
}

.video-card__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(14, 17, 19, 0.46), rgba(14, 17, 19, 0.02) 62%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.16), transparent 44%);
}

.video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 253, 249, 0.6);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.9);
  color: var(--wine);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, background 180ms ease;
}

.video-card__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.video-card__preview:hover .video-card__play,
.video-card__preview:focus-visible .video-card__play {
  background: #ffffff;
  transform: translate(-50%, -50%) scale(1.05);
}

.video-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 14px;
}

.video-card--featured .video-card__body {
  padding: 12px 14px 14px;
}

.video-card__label {
  margin: 0 0 7px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-card h3 {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.1;
}

.video-card:not(.video-card--featured) h3 {
  font-size: 17px;
}

.video-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
}

.video-card__button,
.video-card__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.video-card__button::after,
.video-card__actions a::after {
  content: "";
  width: 14px;
  height: 1px;
  margin-left: 8px;
  background: currentColor;
  transition: width 180ms ease;
}

.video-card__button:hover::after,
.video-card__button:focus-visible::after,
.video-card__actions a:hover::after,
.video-card__actions a:focus-visible::after {
  width: 22px;
}

.videos__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
}

.videos__footer p {
  margin: 0;
  color: var(--paper-muted);
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 17, 0.82);
  backdrop-filter: blur(12px);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1020px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(255, 253, 249, 0.22);
  border-radius: 8px;
  background: #171b1e;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.video-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 253, 249, 0.22);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.1);
  color: var(--ink);
  cursor: pointer;
}

.video-modal__close::before,
.video-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.video-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.video-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.video-modal__title {
  max-width: calc(100% - 58px);
  margin: 0;
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.08;
}

.video-modal__player {
  position: relative;
  display: grid;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 249, 0.14);
  border-radius: 6px;
  background: #0c0f11;
}

.video-modal__player video,
.video-modal__player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 0;
  background: #0c0f11;
}

.video-modal__empty {
  align-self: center;
  justify-self: center;
  max-width: 620px;
  margin: 0;
  padding: 36px 28px;
  color: rgba(255, 253, 249, 0.76);
  text-align: center;
}

.video-modal__empty a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.solutions {
  padding-top: clamp(44px, 5vw, 64px);
  padding-bottom: clamp(50px, 5vw, 66px);
  border-top: 1px solid var(--line-dark);
}

.solutions .section-title {
  max-width: 1120px;
  font-size: clamp(38px, 4vw, 60px);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.solution-card {
  min-height: 160px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 24px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
  transition: background 180ms ease, transform 180ms ease;
}

.solution-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.solution-card span {
  grid-row: 1 / 3;
  margin: 2px 0 0;
  color: var(--wine);
  font-size: 13px;
  font-weight: 650;
}

.solution-card h3 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.18;
}

.solution-card p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 15px;
}

.expertise {
  border-top: 1px solid var(--line-dark);
  background: var(--paper-alt);
  color: var(--paper-ink);
}

.expertise__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 56px;
  align-items: end;
  margin-bottom: 28px;
}

.expertise__head > * {
  min-width: 0;
}

.expertise__head .section-title {
  max-width: 760px;
  font-size: clamp(38px, 4.2vw, 62px);
  overflow-wrap: anywhere;
}

.expertise__lead {
  margin: 0;
  color: var(--paper-muted);
  font-size: 17px;
  line-height: 1.5;
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.expertise-card {
  min-width: 0;
  min-height: 224px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
  transition: background 180ms ease, transform 180ms ease;
}

.expertise-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.expertise-card__index {
  margin-bottom: 24px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expertise-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.16;
}

.expertise-card p {
  margin: 14px 0 0;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.5;
}

.expertise__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
}

.expertise__cta span {
  display: block;
  margin-bottom: 5px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expertise__cta p {
  max-width: 720px;
  margin: 0;
  color: var(--paper-muted);
}

.prices {
  padding: clamp(52px, 5vw, 64px) 0;
  border-top: 1px solid var(--line-dark);
  background: var(--paper-alt);
  color: var(--paper-ink);
}

.prices__inner {
  width: var(--container);
  margin: 0 auto;
}

.prices__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 56px;
  align-items: end;
  margin-bottom: 28px;
}

.prices .section-title {
  font-size: clamp(38px, 4.2vw, 62px);
}

.prices .section-kicker {
  color: var(--wine);
}

.prices__intro {
  margin: 0;
  color: var(--paper-muted);
  font-size: 17px;
}

.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.price-card {
  min-width: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
  transition: background 180ms ease, transform 180ms ease;
}

.price-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.price-card__index {
  margin-bottom: 22px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 650;
}

.price-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.price-card__description {
  margin: 12px 0 0;
  color: var(--paper-muted);
  font-size: 14px;
}

.price-card__value {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  margin-top: auto;
  padding-top: 24px;
}

.price-card__value strong {
  max-width: 100%;
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: clamp(26px, 2vw, 32px);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}

.price-card:last-child .price-card__value strong {
  font-size: clamp(24px, 1.7vw, 28px);
}

.price-card__value span,
.price-card__example {
  color: var(--paper-muted);
  font-size: 13px;
}

.price-card__example {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line-dark);
}

.prices__estimate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
  color: var(--paper-ink);
}

.prices__estimate-mark {
  color: var(--wine);
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: clamp(46px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 0.9;
  white-space: nowrap;
}

.prices__estimate h3,
.prices__estimate p {
  margin: 0;
}

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

.prices__estimate p {
  max-width: 680px;
  margin-top: 7px;
  color: var(--paper-muted);
  font-size: 14px;
}

.faq {
  color: var(--paper-ink);
  border-top: 1px solid var(--line-dark);
}

.faq__head {
  max-width: 900px;
  margin-bottom: 30px;
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq__item {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 650;
  line-height: 1.25;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--wine);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  transition: transform 180ms ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  max-width: 850px;
  margin: 0;
  padding: 0 62px 22px 22px;
  color: var(--paper-muted);
  font-size: 16px;
  line-height: 1.55;
}

.mortgage {
  padding: clamp(52px, 5vw, 64px) 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--paper);
  color: var(--paper-ink);
}

.mortgage__inner {
  width: var(--container);
  margin: 0 auto;
}

.mortgage__head {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.mortgage .section-kicker {
  color: var(--wine);
}

.mortgage__title {
  margin: 0;
  font-size: clamp(42px, 4.6vw, 60px);
  line-height: 0.98;
}

.mortgage__lead {
  max-width: 780px;
  margin: 14px auto 0;
  color: var(--paper-muted);
  font-size: clamp(18px, 2vw, 21px);
}

.mortgage__banks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.mortgage-bank {
  min-width: 0;
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mortgage-bank:hover {
  border-color: rgba(123, 13, 24, 0.44);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.mortgage-bank span {
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

.mortgage__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
  color: var(--paper-ink);
}

.mortgage__footer p {
  max-width: 740px;
  margin: 0;
  color: var(--paper-muted);
}

.mortgage__note {
  margin: 10px auto 0;
  color: var(--paper-muted);
  font-size: 13px;
  text-align: center;
}

.giveaway {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(72px, 6vw, 96px) 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(200, 169, 106, 0.25), transparent 28%),
    linear-gradient(135deg, var(--wine-dark), #811521 50%, #211f1d 100%);
}

.giveaway__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 96%, rgba(255, 253, 249, 0.08) 96% 100%),
    linear-gradient(0deg, transparent 0 96%, rgba(255, 253, 249, 0.07) 96% 100%);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.giveaway__trace {
  position: absolute;
  top: 0;
  left: 0;
  width: 112px;
  height: 2px;
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 225, 189, 0.34) 34%, #fffdf9 76%, transparent);
  box-shadow: 0 0 7px rgba(255, 225, 189, 0.82), 0 0 18px rgba(255, 225, 189, 0.5);
  mix-blend-mode: screen;
  will-change: opacity, transform;
}

.giveaway__content,
.giveaway__details,
.giveaway__why,
.giveaway__scope {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
}

.giveaway__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  grid-template-areas:
    "copy prize"
    "conversion prize"
    "why why"
    "details details"
    "scope scope";
  column-gap: 56px;
  row-gap: 0;
  align-items: center;
}

.giveaway__copy {
  grid-area: copy;
}

.giveaway__conversion {
  grid-area: conversion;
}

.giveaway__title {
  max-width: 700px;
  margin: 0;
  font-size: clamp(50px, 4.1vw, 72px);
  line-height: 0.96;
}

.giveaway__lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 253, 249, 0.78);
  font-size: clamp(18px, 2vw, 22px);
}

.giveaway__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.giveaway__channel {
  margin: 16px 0 0;
  color: rgba(255, 253, 249, 0.72);
  font-size: 14px;
}

.giveaway__channel a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.giveaway__prize {
  grid-area: prize;
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 253, 249, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 253, 249, 0.16), transparent 56%),
    rgba(255, 253, 249, 0.08);
  box-shadow: inset 0 0 70px rgba(255, 253, 249, 0.06), 0 24px 80px rgba(0, 0, 0, 0.22);
}

.giveaway__number {
  display: block;
  min-width: 1ch;
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: clamp(128px, 16vw, 220px);
  line-height: 0.82;
  text-align: center;
  transform-origin: 50% 70%;
  font-variant-numeric: tabular-nums;
}

.giveaway__prize.is-counted {
  animation: giveawayPrizeSettle 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.giveaway__prize p {
  max-width: 190px;
  margin: 10px auto 0;
  color: rgba(255, 253, 249, 0.74);
  text-align: center;
  font-weight: 650;
}

.giveaway__why {
  grid-area: why;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: 44px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 253, 249, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.1);
  backdrop-filter: blur(14px);
}

.giveaway__eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 253, 249, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.giveaway__why h3 {
  max-width: 520px;
  margin: 0;
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 300;
  line-height: 1;
}

.giveaway__why-text {
  display: grid;
  gap: 18px;
}

.giveaway__why-text p,
.giveaway__why-text blockquote {
  margin: 0;
}

.giveaway__why-text p {
  color: rgba(255, 253, 249, 0.76);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
}

.giveaway__why-text blockquote {
  padding-left: 18px;
  border-left: 2px solid rgba(255, 225, 189, 0.78);
  color: var(--paper);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 650;
  line-height: 1.35;
}

.giveaway__details {
  grid-area: details;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.giveaway-item {
  min-height: 196px;
  padding: 26px;
  border: 1px solid rgba(255, 253, 249, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.09);
  backdrop-filter: blur(14px);
}

.giveaway-item h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.giveaway-item p {
  margin: 0;
  color: rgba(255, 253, 249, 0.72);
}

.giveaway-item a {
  color: #fffdf9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.giveaway__scope {
  grid-area: scope;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 253, 249, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(33, 31, 29, 0.2);
}

.giveaway__scope p {
  margin: 0;
  color: rgba(255, 253, 249, 0.68);
  font-size: 14px;
  line-height: 1.45;
}

.giveaway__scope strong {
  color: var(--paper);
}

.about {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 58px;
  align-items: start;
}

.about__text,
.participate__text,
.visit__text {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--paper-muted);
  font-size: 18px;
}

.process {
  position: relative;
  display: grid;
  gap: 6px;
}

.process__line {
  position: absolute;
  left: 19px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(var(--wine), rgba(34, 40, 41, 0.14));
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 22px;
  padding: 14px 24px 14px 0;
}

.process-step span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(123, 13, 24, 0.46);
  border-radius: 4px;
  background: var(--paper-raised);
  color: var(--wine);
  font-size: 12px;
  font-weight: 650;
}

.process-step h3,
.process-step p {
  margin: 0;
}

.process-step h3 {
  font-size: 22px;
}

.process-step p {
  margin-top: 5px;
  color: var(--paper-muted);
}

.participate {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
  padding-top: clamp(54px, 6vw, 76px);
  border-top: 1px solid var(--line-dark);
}

.lead-form {
  position: relative;
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
  color: var(--paper-ink);
  overflow: hidden;
}

.lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 460ms ease, opacity 260ms ease, transform 460ms ease;
}

.lead-form__grid .field:nth-child(3),
.lead-form__grid .field:nth-child(4) {
  grid-column: 1 / -1;
}

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

.field--full {
  grid-column: 1 / -1;
}

.field span {
  color: var(--paper-ink);
  font-size: 13px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--surface-field);
  color: var(--paper-ink);
  min-height: 50px;
  padding: 0 16px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5d6565 50%), linear-gradient(135deg, #5d6565 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field option {
  color: var(--paper-ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #687070;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(123, 13, 24, 0.72);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(123, 13, 24, 0.10);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 18px;
  color: var(--paper-muted);
  font-size: 14px;
  max-height: 80px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 380ms ease, opacity 220ms ease, margin 380ms ease, transform 380ms ease;
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--wine);
}

.consent a {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.consent a:hover,
.consent a:focus-visible {
  color: var(--wine-dark);
}

.lead-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form__submit {
  width: 100%;
  max-height: 60px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 380ms ease, opacity 220ms ease, margin 380ms ease, transform 380ms ease;
}

.lead-form__submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.lead-form__security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 11px 0 0;
  color: var(--paper-muted);
  font-size: 12px;
  line-height: 1.35;
  max-height: 30px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 340ms ease, opacity 200ms ease, margin 340ms ease, transform 340ms ease;
}

.lead-form__security svg {
  flex: 0 0 auto;
}

.lead-form__status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--wine);
  font-size: 14px;
}

.lead-form__status[data-state="success"] {
  color: #38643e;
}

.lead-form__status[data-state="error"] {
  color: var(--wine);
}

.lead-form__success {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-height: 0;
  padding: 0 12px;
  color: var(--paper-ink);
  text-align: center;
  opacity: 0;
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: max-height 520ms ease, padding 520ms ease, opacity 360ms ease 180ms, transform 520ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
}

.lead-form__success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(123, 13, 24, 0.24);
  animation: lead-success-mark 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lead-form__success strong {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
}

.lead-form__success > span:last-child {
  color: var(--paper-muted);
  font-size: 16px;
}

.lead-form.is-success .lead-form__grid,
.lead-form.is-success .consent,
.lead-form.is-success .lead-form__submit,
.lead-form.is-success .lead-form__security,
.lead-form.is-success .lead-form__status {
  max-height: 0;
  min-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

.lead-form.is-success .lead-form__success {
  max-height: 220px;
  padding-top: 24px;
  padding-bottom: 24px;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@keyframes lead-success-mark {
  0% { opacity: 0; transform: scale(0.55) rotate(-12deg); }
  65% { opacity: 1; transform: scale(1.08) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .lead-form__grid,
  .consent,
  .lead-form__submit,
  .lead-form__security,
  .lead-form__success {
    transition-duration: 1ms;
    transition-delay: 0ms;
  }

  .lead-form__success-mark {
    animation: none;
  }
}

.visit {
  padding: clamp(36px, 4vw, 42px) 0;
  border-top: 1px solid var(--line-dark);
  background: var(--paper-alt);
  color: var(--paper-ink);
}

.visit__inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.visit__title {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.02;
}

.visit .section-kicker {
  color: var(--wine);
}

.visit__text {
  margin-top: 14px;
  color: var(--paper-muted);
  font-size: 16px;
  line-height: 1.45;
}

.visit__contacts {
  min-width: min(360px, 100%);
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
}

.visit__contacts a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
  font-weight: 650;
}

.visit__contacts a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.visit__map {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 600px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-raised);
}

.visit__map img {
  width: 100%;
  height: auto;
}

.visit__map-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0b0f11;
  cursor: zoom-in;
}

.visit__map-button:focus-visible {
  outline: 3px solid rgba(123, 13, 24, 0.38);
  outline-offset: -3px;
}

.visit__map figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  color: var(--paper-ink);
}

.visit__map figcaption span {
  color: var(--paper-muted);
  text-align: right;
}

.visit__map-open {
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wine);
  font-weight: 650;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.visit__map-open:hover,
.visit__map-open:focus-visible {
  color: var(--wine-dark);
}

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

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 24px);
  background: rgba(13, 15, 17, 0.78);
  backdrop-filter: blur(14px);
}

.map-modal__panel {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(92vh, 900px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #111518;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.44);
  color: var(--ink);
}

.map-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(23, 27, 30, 0.96);
}

.map-modal__eyebrow {
  margin: 0 0 3px;
  color: rgba(255, 253, 249, 0.58);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-modal__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.05;
}

.map-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
}

.map-modal__control,
.map-modal__close {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.08);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.map-modal__control--wide {
  min-width: 66px;
  font-size: 13px;
}

.map-modal__control:disabled {
  opacity: 0.38;
  cursor: default;
}

.map-modal__control:not(:disabled):hover,
.map-modal__control:not(:disabled):focus-visible,
.map-modal__close:hover,
.map-modal__close:focus-visible {
  border-color: rgba(255, 253, 249, 0.34);
  background: rgba(255, 253, 249, 0.14);
}

.map-modal__viewport {
  min-height: 0;
  overflow: auto;
  background: #050708;
  cursor: grab;
  overscroll-behavior: contain;
}

.map-modal__viewport.is-panning {
  cursor: grabbing;
}

.map-modal__viewport img {
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 auto;
  user-select: none;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 28px;
  color: var(--paper-muted);
  font-size: 13px;
}

.site-footer__brand {
  display: grid;
  gap: 4px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  text-align: right;
}

.site-footer__legal a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--paper-ink);
  text-decoration-color: currentColor;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.js .before-after {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.05) translate3d(-1.5%, -1%, 0);
  }
  to {
    transform: scale(1.08) translate3d(1.5%, 1%, 0);
  }
}

@keyframes giveawayPrizeSettle {
  0% {
    transform: scale(0.96);
    box-shadow: inset 0 0 70px rgba(255, 253, 249, 0.06), 0 24px 80px rgba(0, 0, 0, 0.22);
  }
  55% {
    transform: scale(1.025);
    box-shadow: inset 0 0 90px rgba(255, 253, 249, 0.14), 0 24px 92px rgba(0, 0, 0, 0.28);
  }
  100% {
    transform: scale(1);
    box-shadow: inset 0 0 70px rgba(255, 253, 249, 0.06), 0 24px 80px rgba(0, 0, 0, 0.22);
  }
}

@supports (min-height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

@media (max-height: 860px) and (min-width: 761px) {
  .hero {
    padding-top: clamp(96px, 14vh, 118px);
    padding-bottom: clamp(22px, 4vh, 34px);
  }

  .hero__event {
    margin-bottom: 16px;
  }

  .hero__title {
    font-size: clamp(48px, 6.2vw, 72px);
  }

  .hero__caption {
    margin-top: 12px;
    font-size: clamp(22px, 2.5vw, 30px);
  }

  .hero__brand-slogan {
    margin-top: 14px;
    font-size: 12px;
  }

  .hero__lead {
    margin-top: 14px;
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.42;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .hero__facts div {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

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

  .site-header__nav {
    order: 4;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 0 2px;
  }

  .site-header__contacts {
    justify-self: end;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__facts {
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 253, 249, 0.34);
    border-left: 0;
  }

  .hero__facts div {
    padding: 18px 20px;
    border-right: 1px solid rgba(255, 253, 249, 0.2);
    border-bottom: 0;
  }

  .hero__facts div:last-child {
    border-right: 0;
  }

  .project-reel,
  .solution-grid,
  .expertise__grid,
  .visitor-path__grid,
  .prices__grid,
  .mortgage__banks,
  .giveaway__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expertise__head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-reel {
    grid-auto-rows: 300px;
  }

  .video-card {
    width: clamp(330px, 48vw, 400px);
    min-width: clamp(330px, 48vw, 400px);
  }

  .video-card--featured {
    width: clamp(380px, 58vw, 500px);
    min-width: clamp(380px, 58vw, 500px);
  }

  .prices__estimate {
    grid-template-columns: auto 1fr;
  }

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

  .prices__estimate .button {
    grid-column: 1 / -1;
  }

  .mortgage__title {
    max-width: 100%;
    font-size: clamp(34px, 5vw, 48px);
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
  }

  .mortgage-bank span {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(20px, 3.6vw, 28px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .mortgage-bank.mortgage-bank--gazprom span {
    font-size: clamp(14px, 4.2vw, 22px);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

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

  .about,
  .participate {
    grid-template-columns: 1fr;
  }

  .giveaway__content {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
    gap: 36px;
  }

  .giveaway__title {
    font-size: clamp(44px, 5.4vw, 62px);
  }
}

@media (max-width: 900px) {
  .giveaway__content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "prize"
      "why"
      "details"
      "scope"
      "conversion";
    gap: 0;
  }

  .giveaway__why,
  .giveaway__scope {
    grid-template-columns: 1fr;
  }

  .giveaway__copy {
    max-width: 720px;
  }

  .giveaway__prize {
    width: min(46vw, 340px);
    margin-top: 38px;
    justify-self: center;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 32px, 1180px);
  }

  .site-header {
    top: 10px;
    grid-template-columns: auto 1fr auto;
    min-height: 58px;
    padding: 8px 8px 8px 18px;
  }

  .site-header__brand {
    width: 58px;
    min-width: 58px;
  }

  .site-header__brand img {
    width: 58px;
  }

  .site-header__menu {
    display: block;
    order: 3;
    justify-self: end;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__contacts {
    order: 2;
    grid-column: 2;
    gap: 2px;
  }

  .site-header__phone {
    display: none;
  }

  .site-header__social {
    width: 36px;
    min-height: 40px;
  }

  .site-header__social::after {
    display: none;
  }

  .site-header__nav.is-open {
    position: fixed;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 16px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(45, 50, 53, 0.98);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  }

  .site-header__nav.is-open a {
    padding: 13px 12px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 253, 249, 0.05);
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  #projects,
  .before-after,
    #videos,
    #solutions,
    #expertise,
    #faq,
  #prices,
  #mortgage,
  #process,
  #giveaway,
  #participate,
  #visit {
    scroll-margin-top: 88px;
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding: 84px 0 28px;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(13, 15, 17, 0.92) 0%, rgba(13, 15, 17, 0.76) 62%, rgba(13, 15, 17, 0.30) 100%);
  }

  .hero__event {
    top: 0;
    gap: 10px;
    margin-bottom: 12px;
    padding: 6px 12px 6px 6px;
  }

  .hero__inner {
    gap: 26px;
  }

  .hero__event-logo,
  .hero__event-logo img {
    width: 42px;
    height: 42px;
  }

  .hero__event-label {
    font-size: 11px;
    line-height: 1.3;
  }

  .hero__title {
    font-size: clamp(38px, 10.2vw, 52px);
    line-height: 0.96;
  }

  .hero__caption {
    margin-top: 12px;
    font-size: clamp(20px, 6vw, 26px);
  }

  .hero__brand-slogan {
    margin-top: 12px;
    font-size: 11px;
  }

  .hero__actions {
    margin-top: 24px;
    display: grid;
  }

  .hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 253, 249, 0.34);
    border-left: 0;
  }

  .hero__facts div {
    padding: 14px 10px;
    border-right: 1px solid rgba(255, 253, 249, 0.2);
    border-bottom: 0;
  }

  .hero__facts div:last-child {
    border-right: 0;
  }

  .hero__facts dt {
    font-size: 20px;
    white-space: nowrap;
  }

  .hero__facts dd {
    font-size: 11px;
  }

  .section__head,
  .before-after__head,
  .expertise__head,
  .prices__head,
  .giveaway__content,
  .visit__inner {
    grid-template-columns: 1fr;
  }

  .section__head {
    display: grid;
  }

  .section__head > * {
    min-width: 0;
  }

  .section-title,
  .section-kicker {
    overflow-wrap: break-word;
  }

  .section {
    padding: 36px 0;
  }

  .section__head {
    gap: 14px;
    margin-bottom: 20px;
  }

  .before-after {
    padding: 28px 0;
  }

  .before-after__head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .before-after__title {
    font-size: clamp(30px, 7vw, 42px);
  }

  .before-after__intro {
    font-size: 16px;
  }

  .before-after__label {
    top: 12px;
    min-height: 30px;
    padding: 0 11px;
  }

  .before-after__label--before {
    left: 12px;
  }

  .before-after__label--after {
    right: 12px;
  }

  .before-after__control {
    width: 48px;
    height: 48px;
  }

  .participate {
    padding-top: 36px;
  }

  .prices,
  .mortgage,
  .visit {
    padding: 38px 0;
  }

  .prices__head {
    gap: 12px;
    margin-bottom: 18px;
  }

  .expertise__head {
    gap: 12px;
    margin-bottom: 18px;
  }

  .expertise__head .section-title {
    font-size: clamp(32px, 10vw, 38px);
    line-height: 1.02;
    overflow-wrap: normal;
  }

  .prices__intro,
  .expertise__lead,
  .mortgage__lead {
    font-size: 15px;
  }

  .project-reel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .project-card {
    min-width: min(82vw, 340px);
    min-height: 260px;
    scroll-snap-align: start;
  }

  .project-card img {
    min-height: 260px;
  }

  .projects-site-cta {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects-site-cta__link {
    width: 100%;
    white-space: normal;
  }

  .solution-grid,
  .expertise__grid,
  .visitor-path__grid,
  .prices__grid,
  .giveaway__details,
  .lead-form__grid {
    grid-template-columns: 1fr;
  }

  .video-film::before,
  .video-film::after {
    height: 18px;
    background:
      repeating-linear-gradient(90deg, transparent 0 9px, var(--film-hole) 9px 15px, transparent 15px 24px),
      linear-gradient(180deg, #050607 0%, #15191b 48%, #050607 100%);
  }

  .video-film__viewport {
    padding: 16px 0;
  }

  .video-grid {
    gap: 10px;
    padding: 0 16px;
  }

  .video-card,
  .video-card--featured {
    width: min(74vw, 300px);
    min-width: min(74vw, 300px);
  }

  .video-card__body,
  .video-card--featured .video-card__body {
    min-height: auto;
    padding: 12px;
  }

  .video-film__control {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }

  .videos__footer {
    display: grid;
  }

  .prices__estimate {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .prices__estimate .button {
    grid-column: auto;
  }

  .solution-card {
    min-height: 0;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 12px;
    padding: 16px;
  }

  .solutions .section-title {
    font-size: clamp(30px, 9vw, 36px);
    line-height: 1.02;
  }

  .solution-card span {
    margin: 2px 0 0;
  }

  .solution-card h3 {
    margin-bottom: 7px;
    font-size: 19px;
  }

  .solution-card p {
    font-size: 13px;
    line-height: 1.35;
  }

  .expertise-card {
    min-height: 0;
    padding: 18px 16px;
  }

  .expertise-card__index {
    margin-bottom: 14px;
  }

  .expertise-card h3 {
    font-size: 20px;
  }

  .expertise-card p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .expertise__cta {
    gap: 16px;
    padding: 18px 16px;
  }

  .expertise__cta .button {
    width: 100%;
  }

  .price-card {
    min-height: 0;
    padding: 16px;
  }

  .price-card__index {
    margin-bottom: 14px;
  }

  .price-card h3 {
    font-size: 20px;
  }

  .price-card__description {
    margin-top: 8px;
    font-size: 13px;
  }

  .price-card__value {
    padding-top: 16px;
  }

  .mortgage__banks {
    margin-top: 18px;
  }

  .mortgage-bank {
    min-height: 68px;
    padding: 12px;
  }

  .mortgage-bank span {
    font-size: clamp(20px, 6vw, 28px);
  }

  .mortgage__footer {
    gap: 16px;
    padding: 14px 16px;
  }

  .giveaway {
    padding: 44px 0;
  }

  .giveaway__content {
    gap: 24px;
  }

  .giveaway__title {
    font-size: clamp(32px, 9vw, 38px);
  }

  .giveaway__content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "why"
      "details"
      "scope"
      "conversion";
    row-gap: 0;
  }

  .giveaway__conversion .giveaway__actions {
    margin-top: 0;
  }

  .giveaway__conversion {
    margin-top: 16px;
  }

  .giveaway__why {
    gap: 20px;
    margin-top: 28px;
    padding: 22px 18px;
  }

  .giveaway__why h3 {
    font-size: clamp(28px, 8vw, 36px);
    overflow-wrap: break-word;
  }

  .giveaway__why-text p {
    font-size: 16px;
  }

  .giveaway__details {
    margin-top: 12px;
  }

  .giveaway-item {
    min-height: 0;
    padding: 20px 18px;
  }

  .giveaway__scope {
    gap: 12px;
    margin-top: 12px;
    padding: 16px 18px;
  }

  .giveaway__prize {
    display: none;
  }

  .giveaway__number {
    font-size: clamp(108px, 31vw, 132px);
  }

  .giveaway__prize p {
    max-width: 150px;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.2;
  }

  .process-step {
    gap: 12px;
    padding: 8px 0;
    padding-right: 0;
  }

  .process-step span {
    width: 34px;
    height: 34px;
  }

  .process__line {
    left: 16px;
    top: 24px;
    bottom: 24px;
  }

  .process-step h3 {
    font-size: 18px;
  }

  .process-step p {
    font-size: 13px;
    line-height: 1.35;
  }

  .site-footer {
    display: grid;
  }

  .project-card__open::before {
    top: 12px;
    right: 12px;
    opacity: 1;
    transform: none;
  }

  .project-modal {
    padding: 8px;
  }

  .project-modal__dialog {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
  }

  .project-modal__bar {
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
  }

  .project-modal__title {
    font-size: 25px;
  }

  .project-modal__close {
    width: 42px;
    height: 42px;
  }

  .project-modal__nav {
    width: 40px;
    height: 52px;
    font-size: 34px;
  }

  .project-modal__nav--prev {
    left: 8px;
  }

  .project-modal__nav--next {
    right: 8px;
  }

  .project-modal__thumbs {
    gap: 6px;
    padding: 8px;
  }

  .project-modal__thumb {
    flex-basis: 76px;
    height: 52px;
  }

  .map-modal {
    padding: 8px;
  }

  .map-modal__panel {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
  }

  .map-modal__bar {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .map-modal__actions {
    justify-content: flex-start;
  }

  .map-modal__control,
  .map-modal__close {
    min-width: 42px;
    height: 42px;
  }

  .visit__map figcaption {
    display: grid;
  }

  .visit__map figcaption span {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .hero__title {
    font-size: clamp(38px, 10.2vw, 44px);
  }

  .hero__caption {
    font-size: clamp(20px, 6vw, 23px);
  }

  .hero__lead,
  .about__text,
  .participate__text,
  .visit__text {
    font-size: 15px;
  }

  .section-title,
  .mortgage__title,
  .visit__title {
    font-size: 32px;
  }

  .projects-site-cta {
    padding: 20px;
  }

  .projects-site-cta h2 {
    font-size: 28px;
  }

  .before-after__title {
    font-size: clamp(28px, 8vw, 32px);
  }

  .giveaway__title {
    font-size: clamp(32px, 9vw, 36px);
  }

  .button {
    width: 100%;
    padding: 0 18px;
  }

  .lead-form {
    padding: 16px;
  }

  .mortgage__banks {
    gap: 10px;
  }

  .mortgage-bank {
    min-height: 96px;
    padding: 14px 6px;
  }

  .mortgage-bank span {
    font-size: clamp(16px, 4.6vw, 20px);
  }

  .mortgage__title {
    max-width: 100%;
    font-size: clamp(28px, 7.8vw, 32px);
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
  }

  .mortgage-bank span {
    max-width: 100%;
    font-size: clamp(18px, 5vw, 23px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
  }

  .mortgage__footer {
    padding: 22px;
  }

  .video-modal {
    padding: 12px;
  }

  .video-modal__dialog {
    max-height: calc(100vh - 24px);
    padding: 14px;
  }

  .video-modal__player {
    min-height: 220px;
  }

  .video-modal__player video,
  .video-modal__player iframe {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

  .js .before-after {
    opacity: 1;
    transform: none;
  }

}

/* Standalone legal pages for derevgroup2026.ru */
.legal-body {
  background: var(--paper);
  color: var(--paper-ink);
}

.legal-header {
  width: var(--container);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-dark);
}

.legal-header__brand {
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.legal-header__back {
  color: var(--paper-muted);
  font-size: 14px;
  font-weight: 650;
}

.legal-header__back:hover,
.legal-header__back:focus-visible {
  color: var(--wine);
}

.legal-page {
  width: min(900px, calc(100vw - 48px));
  margin: clamp(34px, 6vw, 72px) auto;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
}

.legal-page__eyebrow {
  margin: 0 0 12px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-page h1,
.legal-page h2 {
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-weight: 300;
}

.legal-page h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
}

.legal-page h2 {
  margin: 40px 0 12px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.legal-page h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.legal-page p,
.legal-page li {
  color: var(--paper-muted);
}

.legal-page p {
  margin: 0 0 14px;
}

.legal-page ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-page li + li {
  margin-top: 7px;
}

.legal-page a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page strong {
  color: var(--paper-ink);
}

.legal-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper-muted);
  font-size: 13px;
}

.legal-page__note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--wine);
  background: var(--surface-field);
}

.legal-page__note p:last-child {
  margin-bottom: 0;
}

.legal-footer {
  border-top: 1px solid var(--line-dark);
}

@media (max-width: 700px) {
  .site-footer__legal {
    justify-content: flex-start;
    text-align: left;
  }

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

  .legal-header__brand {
    font-size: 27px;
  }

  .legal-header__back {
    font-size: 13px;
  }

  .legal-page {
    width: min(900px, calc(100vw - 28px));
    margin: 20px auto 34px;
    padding: 22px 18px 28px;
    border-radius: 12px;
  }

  .legal-page h2 {
    margin-top: 32px;
  }
}
