:root {
  --bg: #100c08;
  --bg-2: #16120e;
  --bg-3: #1c1712;
  --gold: #c4a574;
  --gold-2: #e4d0ae;
  --ink: #f6f1e8;
  --muted: #a89f91;
  --line: rgba(196, 165, 116, 0.22);
  --item-laurel: url("../img/item-laurel.svg?v=198");
  --item-pitcher: url("../img/item-pitcher.svg?v=198");
  --item-lyre: url("../img/item-lyre.svg?v=198");
  --item-olives: url("../img/item-olives.svg?v=198");
  --item-torch: url("../img/item-torch.svg?v=198");
  --item-helm: url("../img/item-helm.svg?v=198");
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-notice: "DM Serif Display", "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, sans-serif;
  --container: 1320px;
  --header: 88px;
  --header-m: 64px;
  --cta: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: max(20px, env(safe-area-inset-left));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 110% 55% at 50% -8%, rgba(196, 165, 116, 0.1), transparent 52%),
    radial-gradient(ellipse 80% 45% at 50% 108%, rgba(72, 46, 22, 0.32), transparent 58%);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  margin: 0.08em 0 0.18em;
  font-weight: 400;
}

.hero__title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
}

body.is-entered .hero__title span {
  animation: carve 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.is-entered .hero__title span:nth-child(1) { animation-delay: 0.05s; }
body.is-entered .hero__title span:nth-child(2) { animation-delay: 0.12s; }
body.is-entered .hero__title span:nth-child(3) { animation-delay: 0.19s; }
body.is-entered .hero__title span:nth-child(4) { animation-delay: 0.26s; }
body.is-entered .hero__title span:nth-child(5) { animation-delay: 0.33s; }
body.is-entered .hero__title span:nth-child(6) { animation-delay: 0.4s; }

@keyframes carve {
  to { opacity: 1; transform: none; }
}

h2 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  margin: 0 0 0.4em;
  font-weight: 400;
}

h3 {
  font-size: 1.45rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  pointer-events: none;
}

html.intro-lock,
html.intro-lock body {
  overflow: hidden;
  height: 100%;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: transparent;
  color: var(--gold);
}

.intro.is-out {
  pointer-events: none;
}

.intro__gate {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background:
    linear-gradient(90deg, rgba(196, 165, 116, 0.12), transparent 40%),
    #0b0a08;
  transform: translateX(0);
  transition: transform 1.15s cubic-bezier(0.76, 0, 0.24, 1) 0.15s;
}

.intro__gate--l { left: 0; }
.intro__gate--r {
  right: 0;
  background:
    linear-gradient(270deg, rgba(196, 165, 116, 0.12), transparent 40%),
    #0b0a08;
}

.intro.is-open .intro__gate--l { transform: translateX(-102%); }
.intro.is-open .intro__gate--r { transform: translateX(102%); }

.intro__stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.35s ease 0.05s;
}

.intro.is-open .intro__stage {
  opacity: 0;
}

.intro__helm {
  width: min(168px, 46vw);
  overflow: visible;
}

.intro__helm-stroke {
  stroke: var(--gold);
  stroke-width: 1.35;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.intro.is-draw .intro__helm-stroke {
  animation: lambda-draw 1.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro__helm-fill {
  fill: var(--gold);
  opacity: 0;
}

.intro.is-draw .intro__helm-fill {
  animation: fade-up 0.55s ease 1.2s forwards;
}

@keyframes lambda-draw {
  to { stroke-dashoffset: 0; }
}

.intro__word {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 10vw, 5.2rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  font-weight: 500;
  color: var(--ink);
  clip-path: inset(0 100% 0 0);
}

.intro.is-draw .intro__word {
  animation: epitaph 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes epitaph {
  to { clip-path: inset(0 0 0 0); }
}

.intro__place {
  margin: 0;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold);
  opacity: 0;
  transform: translateY(10px);
}

.intro.is-draw .intro__place {
  animation: fade-up 0.6s ease 1.15s forwards;
}

@keyframes fade-up {
  to { opacity: 1; transform: none; }
}

.intro__skip {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 0;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font: 500 0.68rem/1 var(--font-sans);
  cursor: pointer;
}

.intro__skip:hover {
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.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;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: 600 0.84rem/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn--gold {
  background: var(--gold);
  color: #1a140c;
}

.btn--gold:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn:active {
  transform: translateY(0);
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header);
  transition: background 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.header.is-solid {
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header__inner {
  height: var(--header);
  width: min(1600px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.logo__mark {
  width: 28px;
  height: 32px;
  background: var(--gold);
  clip-path: none;
  -webkit-mask: url("../img/spartan.svg") center / contain no-repeat;
  mask: url("../img/spartan.svg") center / contain no-repeat;
}

.logo__stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.logo__sub {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-wrap: nowrap;
}

.header__name {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.7rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 400;
  justify-self: end;
}

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav a:hover,
.nav a.is-active,
.header__phone:hover {
  color: var(--gold);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav__cta {
  color: var(--gold);
}

.header__phone {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 41;
}

.burger span {
  display: block;
  height: 1px;
  margin: 7px 8px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 8px 20px 28px;
  background: #0e0d0b;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a {
  font-size: 1.05rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: var(--pos, 46% 42%);
  transform: scale(1.06);
  filter: brightness(0.5);
  transition: filter 1.8s var(--ease), transform 2.4s var(--ease);
}

.hero.is-lit .hero__media img {
  filter: brightness(1);
  transform: scale(1);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.22) 0%, transparent 36%, rgba(10, 9, 8, 0.55) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1600px, calc(100% - 56px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.hero__place {
  margin: 0 0 18px;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(16px);
}

.hero__title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.8rem, 7.2vw, 7rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
}

body.is-entered .hero__title span:nth-child(2) { animation-delay: 0.18s; }

.hero__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 28px 56px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(18px);
}

body.is-entered .hero__place,
body.is-entered .hero__bar {
  animation: fade-up 0.9s var(--ease) forwards;
}

body.is-entered .hero__place { animation-delay: 0.1s; }
body.is-entered .hero__bar { animation-delay: 0.55s; }

.hero__stats {
  display: flex;
  gap: 36px;
  margin: 0;
}

.hero__stats div {
  margin: 0;
}

.hero__stats dt {
  margin: 4px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
}

.vistas {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  min-height: 86vh;
  background: #050504;
}

.vista {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  min-height: 86vh;
  overflow: hidden;
  background: #050504;
  cursor: zoom-in;
  color: inherit;
  text-align: left;
}

.vistas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 40%);
  transform: scale(1.04);
  transition: transform 1.2s var(--ease), filter 0.5s;
  pointer-events: none;
}

.vista:hover img,
.vista:focus-visible img {
  transform: scale(1);
  filter: brightness(1.06);
}

.vista__cap {
  position: absolute;
  left: 28px;
  bottom: 28px;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(10, 9, 8, 0.7);
  pointer-events: none;
}

.vista__cap em {
  font-family: var(--font-serif);
  font-style: normal;
  color: var(--gold);
}

.vista::after {
  content: "Смотреть";
  position: absolute;
  right: 24px;
  bottom: 26px;
  z-index: 1;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.vista:hover::after,
.vista:focus-visible::after {
  opacity: 1;
  transform: none;
}

.vistas__more {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#about,
#architecture,
#location,
#around,
#apartments,
#finish,
.quote-band,
.footer {
  position: relative;
  overflow: hidden;
}

#about > .container,
#architecture > .container,
#location > .container,
#around > .container,
#apartments > .container,
#finish > .container,
.quote-band > .container,
.footer > .container {
  position: relative;
  z-index: 1;
}

#about::before,
#architecture::before,
#location::before,
#location::after,
#around::before,
#apartments::before,
#apartments::after,
#finish::before,
.quote-band::before,
.quote-band::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.26;
}

#about::before {
  background-image: var(--item-pitcher);
  width: 420px;
  height: 920px;
  top: -16%;
  left: -2%;
}

#architecture::before {
  background-image: var(--item-lyre);
  width: 620px;
  height: 840px;
  top: 6%;
  left: -6%;
  transform: rotate(45deg);
}

#location::before {
  background-image: var(--item-olives);
  width: 480px;
  height: 860px;
  top: 4%;
  right: -8%;
}

#location::after {
  background-image: var(--item-torch);
  width: 280px;
  height: 470px;
  top: 10%;
  left: 6%;
  transform: rotate(-12deg);
}

#around::before {
  background-image: var(--item-laurel);
  width: 520px;
  height: 800px;
  top: 4%;
  left: 2%;
}

#apartments::before {
  background-image: var(--item-pitcher);
  width: 340px;
  height: 760px;
  bottom: -16%;
  right: -4%;
}

#apartments::after {
  background-image: var(--item-helm);
  width: 640px;
  height: 880px;
  top: -12%;
  left: -8%;
  transform: rotate(18deg);
}

#finish::before {
  background-image: var(--item-lyre);
  width: 560px;
  height: 740px;
  bottom: -28%;
  right: -8%;
  transform: rotate(-45deg);
}

.quote-band::before,
.quote-band::after {
  background-image: var(--item-laurel);
  width: 280px;
  height: 440px;
  top: 50%;
}

.quote-band::before {
  left: calc(50% - 22rem - 40px);
  transform: translateY(-50%);
}

.quote-band::after {
  right: calc(50% - 22rem - 40px);
  transform: translateY(-50%) scaleX(-1);
}

.about {
  padding: 140px 0;
}

#about {
  padding-bottom: 36px;
}

#architecture {
  padding-top: 48px;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.about__facts {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.about__facts li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.about__shot {
  margin: 0;
  overflow: hidden;
}

.about__shot img {
  width: 100%;
  height: min(88vh, 920px);
  object-fit: cover;
  object-position: var(--pos, 50% 40%);
  transition: transform 1.1s var(--ease);
}

.about__shot:hover img {
  transform: scale(1.04);
}

.about__shot figcaption {
  margin-top: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-band {
  padding: 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}

.quote-band .container {
  padding: 48px 0;
}

.quote-band blockquote {
  margin: 0 auto;
  text-align: center;
  max-width: 38rem;
}

.quote-band p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-style: italic;
  line-height: 1.35;
}

.meander {
  height: 10px;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath fill='none' stroke='%23c4a574' stroke-width='1.2' d='M0 7h4v-4h8v8h4v-8h8v4h4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 50%;
  animation: meander-run 18s linear infinite;
}

.meander--flip {
  transform: scaleX(-1);
  animation-direction: reverse;
}

@keyframes meander-run {
  to { background-position: 280px 50%; }
}

.gallery {
  padding: 120px 0 0;
}

.gallery__head {
  margin-bottom: 36px;
}

.gallery__mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: minmax(280px, 32vw);
  gap: 4px;
  padding: 0;
}

.tile {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: #000;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 9, 8, 0.72));
  opacity: 0.7;
  transition: opacity 0.4s;
}

.tile:hover::after,
.tile:focus-visible::after {
  opacity: 1;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 45%);
  transition: transform 0.9s var(--ease);
}

.tile:hover img,
.tile:focus-visible img {
  transform: scale(1.08);
}

.tile span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tile--hero {
  grid-row: span 2;
}

.tile--wide {
  grid-column: span 2;
}

.advantages,
.spaces {
  padding: 110px 0;
}

.plans {
  position: relative;
}

.plans__stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: min(68vh, 640px);
  overflow: hidden;
}

.plans__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 8px 80px 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.5s;
  z-index: 0;
}

.plans__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  z-index: 2;
}

.plans__slide.is-leave-next {
  opacity: 0;
  transform: translateX(-48px);
}

.plans__slide.is-leave-prev {
  opacity: 0;
  transform: translateX(48px);
}

.plans__slide.is-enter-next {
  transform: translateX(56px);
}

.plans__slide.is-enter-prev {
  transform: translateX(-56px);
}

@media (prefers-reduced-motion: reduce) {
  .plans__slide,
  .plans__slide.is-active {
    transition: none;
  }
}

.plans__slide button {
  display: block;
  width: 100%;
  max-width: 880px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.plans__slide img {
  display: block;
  width: 100%;
  height: min(56vh, 540px);
  object-fit: contain;
  object-position: center;
}

.plans__nav {
  position: absolute;
  top: calc(50% - 28px);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(16, 12, 8, 0.78);
  color: var(--gold-2);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.plans__nav--prev {
  left: 10px;
}

.plans__nav--next {
  right: 10px;
}

.plans__nav--prev::before {
  content: "‹";
}

.plans__nav--next::before {
  content: "›";
}

.plans__nav:hover {
  color: #fff;
  border-color: var(--gold);
}

.plans__count {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.16em;
  font-size: 0.82rem;
}

.section-lead {
  max-width: 640px;
  margin-bottom: 48px;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.adv-grid li {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
  cursor: default;
}

.adv-grid li:hover h3,
.adv-grid li.is-on h3 {
  color: var(--gold-2);
}

.adv-num {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.adv-grid h3 {
  margin: 0;
  transition: color 0.35s var(--ease);
}

.adv-grid p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transform: translateY(8px);
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease), margin 0.4s;
}

.adv-grid li:hover p,
.adv-grid li.is-on p {
  max-height: 9em;
  opacity: 1;
  margin-top: 12px;
  transform: none;
}

.about__grid--rev {
  direction: rtl;
}

.about__grid--rev > * {
  direction: ltr;
}

.location {
  padding: 110px 0;
}

.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.loc-grid h3 {
  margin-bottom: 8px;
}

.dist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dist-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 12px 14px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  cursor: default;
  transition: padding-left 0.35s var(--ease), color 0.35s, background 0.35s;
}

.dist-list li:hover,
.dist-list li.is-on {
  padding-left: 12px;
  color: var(--gold-2);
  background: linear-gradient(90deg, rgba(196, 165, 116, 0.08), transparent);
}

.dist-list strong {
  flex: 0 0 5.5rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.finish {
  padding: 0 0 110px;
}

.finish__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.finish-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.finish-list li {
  padding: 12px 0 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  position: relative;
}

.finish-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.spaces__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.space-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: transparent;
  border: 0;
  min-height: 0;
  cursor: pointer;
}

.space-card:hover,
.space-card.is-on {
  transform: none;
  border: 0;
}

.space-card img {
  width: 100%;
  height: 520px;
  min-height: 0;
  object-fit: cover;
  object-position: var(--pos, 50% 45%);
  transition: transform 0.9s var(--ease);
}

.space-card:hover img,
.space-card.is-on img {
  transform: scale(1.06);
}

.space-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 22px 22px;
  background: linear-gradient(180deg, transparent, rgba(10, 9, 8, 0.88));
}

.space-card h3 {
  margin: 0;
  color: var(--ink);
}

.space-card p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  color: #d8d0c4;
  transform: translateY(10px);
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease), margin 0.4s;
}

.space-card:hover p,
.space-card.is-on p {
  max-height: 8em;
  opacity: 1;
  margin-top: 10px;
  transform: none;
}

.request {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
}

.request__bg {
  position: absolute;
  inset: 0;
}

.request__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 40%);
  filter: grayscale(0.25);
}

.request__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 9, 8, 0.94) 0%, rgba(10, 9, 8, 0.82) 48%, rgba(10, 9, 8, 0.55) 100%);
}

.request__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.request__intro ul {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.request__intro li {
  padding: 10px 0 10px 18px;
  border-top: 1px solid var(--line);
  position: relative;
}

.request__intro li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px;
  background: rgba(18, 17, 15, 0.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.7;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  background: #0c0b0a;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  font: 500 1rem/1.4 var(--font-sans);
  border-radius: 14px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.form__full {
  grid-column: 1 / -1;
}

.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal {
  padding: 140px 0 80px;
}

.legal h1 {
  margin: 0 0 28px;
}

.legal__body {
  max-width: 720px;
  color: var(--muted);
}

.legal__body p {
  margin: 0 0 1em;
  line-height: 1.65;
}

.legal__body a {
  color: var(--gold-2);
  text-decoration: underline;
}

.form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
}

.form__check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.form__check span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.86rem;
  margin: 0;
}

.form__consent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.form__privacy {
  margin-left: 28px;
  color: #7a7368;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__privacy:hover {
  color: var(--muted);
}

.notice {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 16px)) scale(0.97);
  margin: 0;
  width: min(440px, calc(100vw - 32px));
  max-width: 440px;
  max-height: min(90vh, 560px);
  overflow: auto;
  padding: 36px 28px 28px;
  border: 1px solid var(--gold);
  border-radius: 18px;
  background: #1c1712;
  color: var(--ink);
  text-align: center;
  z-index: 80;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.notice[open].is-in {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.notice::backdrop {
  background: rgba(8, 6, 4, 0.72);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.notice[open].is-in::backdrop {
  opacity: 1;
}

.notice .lightbox__close {
  background: transparent;
}

.notice__kicker {
  margin: 0 0 10px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.notice__title {
  margin: 0 0 12px;
  font-family: var(--font-notice);
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.notice__text {
  margin: 0 0 24px;
  color: var(--gold-2);
  font-family: var(--font-notice);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
}

.notice__text:empty {
  display: none;
  margin: 0;
}

.notice.is-ok .notice__kicker,
.notice.is-ok .notice__title {
  color: var(--gold-2);
}

.notice.is-err .notice__kicker,
.notice.is-err .notice__title {
  color: #e8a090;
}

.notice.is-pending .notice__ok {
  opacity: 0.45;
  pointer-events: none;
}

.notice__ok {
  min-width: 160px;
}

.form input.is-invalid,
.form textarea.is-invalid {
  border-color: #e8a090;
}

.form__check input.is-invalid {
  outline: 1px solid #e8a090;
}

.footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  background: #070706;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__label {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.footer a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.footer small {
  color: #6f685e;
}

.footer__bottom a {
  color: var(--gold);
}

.footer__legal {
  display: block;
  margin: 12px 0 0;
  max-width: 52rem;
  line-height: 1.55;
  font-size: 0.78rem;
}

.lightbox {
  padding: 0;
  border: 0;
  background: rgba(6, 5, 4, 0.94);
  color: #fff;
  max-width: min(1400px, 96vw);
  width: min(1400px, 96vw);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.lightbox img {
  max-height: 86vh;
  width: 100%;
  object-fit: contain;
  background: #000;
}

.lightbox p {
  margin: 0;
  padding: 12px 16px 18px;
  color: var(--gold-2);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.lightbox__close {
  right: 10px;
  top: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
}

.lightbox__close::before,
.lightbox__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox__nav {
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

.cookie {
  display: none;
  position: fixed;
  z-index: 34;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 40px));
  align-items: center;
  gap: 14px 18px;
  padding: 14px 16px 14px 18px;
  background: rgba(22, 18, 14, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.cookie:not([hidden]) {
  display: flex;
}

html.intro-lock .cookie,
body.menu-open .cookie {
  display: none;
}

.cookie p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cookie a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie__ok {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #1a140c;
  cursor: pointer;
  font: 600 0.68rem/1 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-cta {
  display: none;
}

.reveal-mask {
  --open: 0;
}

.reveal-mask img {
  clip-path: inset(calc((1 - var(--open)) * 36%) calc((1 - var(--open)) * 26%));
  filter: grayscale(calc((1 - var(--open)) * 0.55)) brightness(calc(0.58 + var(--open) * 0.42));
}

.about__shot.reveal-mask img {
  transform: scale(calc(1.1 - var(--open) * 0.1));
}

.phalanx > * {
  opacity: 0;
  transform: translate3d(-32px, 0, 0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.phalanx.is-in > * {
  opacity: 1;
  transform: none;
}

.phalanx.is-in > *:nth-child(1) { transition-delay: 0.02s; }
.phalanx.is-in > *:nth-child(2) { transition-delay: 0.1s; }
.phalanx.is-in > *:nth-child(3) { transition-delay: 0.18s; }
.phalanx.is-in > *:nth-child(4) { transition-delay: 0.26s; }
.phalanx.is-in > *:nth-child(5) { transition-delay: 0.34s; }
.phalanx.is-in > *:nth-child(6) { transition-delay: 0.42s; }
.phalanx.is-in > *:nth-child(7) { transition-delay: 0.5s; }
.phalanx.is-in > *:nth-child(8) { transition-delay: 0.58s; }

.rise-line {
  position: relative;
}

.rise-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: var(--gold);
  transition: height 0.9s var(--ease);
}

.rise-line.is-in::before {
  height: 100%;
}

@media (max-width: 1100px) {
  .nav {
    gap: 16px;
    font-size: 0.74rem;
  }
}

@media (max-width: 960px) {
  :root {
    --header: var(--header-m);
  }

  .nav,
  .header__phone {
    display: none;
  }

  .header__inner {
    grid-template-columns: auto 1fr;
    width: calc(100% - 28px);
    gap: 12px;
  }

  .header__name {
    letter-spacing: 0.22em;
  }

  .burger {
    display: block;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    inset: var(--header) 0 0;
    z-index: 38;
    height: calc(100svh - var(--header));
    height: calc(100dvh - var(--header));
    overflow: auto;
    padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
    background: rgba(10, 9, 8, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 0;
    gap: 0;
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .mobile-menu a {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu a:last-child {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    border-bottom: 0;
    margin-top: 18px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .about__grid,
  .request__grid,
  .spaces__list,
  .footer__grid,
  .adv-grid,
  .loc-grid,
  .finish__grid {
    grid-template-columns: 1fr;
  }

  .footer {
    text-align: center;
  }

  .footer__legal {
    margin-left: auto;
    margin-right: auto;
  }

  .footer .logo {
    justify-content: center;
  }

  .about__grid--rev {
    direction: ltr;
  }

  .hero__content {
    width: calc(100% - 32px);
    padding: 0 0 calc(28px + var(--cta));
  }

  .hero__title {
    font-size: clamp(2.7rem, 12vw, 4.1rem);
  }

  .hero__bar {
    gap: 22px;
    margin-top: 28px;
  }

  .hero__stats {
    gap: 20px;
  }

  .vistas {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .vista {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .vistas img {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .vista::after {
    opacity: 1;
    transform: none;
  }

  .gallery__mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(180px, 28vw);
    padding: 0;
    gap: 6px;
  }

  .tile--hero,
  .tile--wide {
    grid-column: span 2;
    grid-row: auto;
    min-height: 240px;
  }

  .hero__media img,
  .vistas img,
  .about__shot img,
  .tile img,
  .space-card img,
  .request__bg img {
    object-position: var(--pos-m, var(--pos, 50% 42%));
  }

  .space-card img {
    height: 58vw;
    min-height: 280px;
  }

  .space-card div {
    padding: 28px 18px 16px;
  }

  .space-card p {
    display: none;
  }

  #about::before,
  #architecture::before,
  #location::before,
  #around::before,
  #apartments::before,
  #apartments::after,
  #finish::before,
  .quote-band::before,
  .quote-band::after {
    opacity: 0.2;
  }

  #location::after {
    display: none;
  }

  #about::before {
    width: 58vw;
    height: 118vw;
    top: -8%;
    left: -10%;
  }

  #architecture::before {
    width: 72vw;
    height: 96vw;
    top: 8%;
    bottom: auto;
    left: -18%;
  }

  #location::before {
    width: 62vw;
    height: 110vw;
    top: 6%;
    right: -16%;
  }

  #around::before {
    width: 64vw;
    height: 100vw;
    top: 6%;
    left: -14%;
  }

  #apartments::before {
    width: 46vw;
    height: 96vw;
    bottom: -8%;
    right: -10%;
  }

  #apartments::after {
    width: 78vw;
    height: 108vw;
    top: -6%;
    left: -20%;
  }

  #finish::before {
    width: 68vw;
    height: 90vw;
    bottom: -12%;
    right: -16%;
  }

  .quote-band::before,
  .quote-band::after {
    width: 28vw;
    height: 44vw;
    top: 50%;
  }

  .quote-band::before {
    left: -6vw;
  }

  .quote-band::after {
    right: -6vw;
  }

  .about,
  .location,
  .advantages,
  .spaces,
  .legal {
    padding: 72px 0;
  }

  #about {
    padding-bottom: 20px;
  }

  #architecture {
    padding-top: 36px;
  }

  .finish {
    padding: 0 0 72px;
  }

  .quote-band {
    padding: 0;
  }

  .quote-band .container {
    padding: 18px 0;
  }

  .request {
    padding: 72px 0 calc(72px + var(--cta));
  }

  .request__bg::after {
    background: linear-gradient(180deg, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.9) 100%);
  }

  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 9, 8, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }

  .mobile-cta .btn {
    width: 100%;
    min-height: 48px;
  }

  body.menu-open .mobile-cta {
    display: none;
  }

  .cookie {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: calc(var(--cta) + 10px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2.1rem, 10vw, 3.1rem);
  }

  h3 {
    font-size: 1.28rem;
  }

  .eyebrow {
    letter-spacing: 0.2em;
    font-size: 0.68rem;
  }

  .hero__title {
    font-size: clamp(2.8rem, 13vw, 3.8rem);
  }

  .hero__stats dd {
    font-size: 1.55rem;
  }

  .gallery__mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 52vw;
  }

  .tile--hero,
  .tile--wide {
    grid-column: auto;
    min-height: 0;
  }

  .tile--hero {
    grid-auto-rows: 70vw;
    min-height: 70vw;
  }

  .form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .about__shot img {
    height: 48vh;
  }

  .about__grid {
    gap: 28px;
  }

  .dist-list strong {
    flex-basis: 4.6rem;
    font-size: 0.86rem;
  }

  .btn {
    width: 100%;
  }

  .hero__actions .btn {
    width: auto;
    flex: 1 1 140px;
    min-height: 48px;
    padding: 0 14px;
    font-size: 0.72rem;
  }

  .lightbox__close,
  .lightbox__nav {
    width: 38px;
    height: 38px;
  }

  .plans__slide {
    padding: 18px 16px 16px;
  }

  .plans__slide img {
    height: min(52vh, 420px);
  }

  .plans__nav {
    width: 40px;
    height: 40px;
  }

  .plans__stage {
    min-height: 0;
  }

  .footer {
    padding: 48px 0 calc(28px + var(--cta));
  }
}

@media (hover: none) {
  .adv-grid p {
    max-height: none;
    opacity: 1;
    transform: none;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .notice,
  .notice::backdrop {
    transition: none;
  }

  .notice[open] {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .intro,
  .intro__gate,
  .intro__stage,
  .intro__helm-stroke,
  .intro__helm-fill,
  .intro__word,
  .intro__place,
  .hero__title span,
  .hero__media img,
  .meander,
  .reveal-mask img,
  .phalanx > *,
  .hero__scroll i {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    stroke-dashoffset: 0 !important;
  }

  .intro {
    display: none;
  }
}
