/* MOONHOUSE — стили. Шрифт Arial (системный), как на оригинале. */
:root {
  --ink: #26262b;
  --accent: #f8d450;
  --line: rgba(38, 38, 43, .16);
  --wrap: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.4; color: var(--ink); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
mark { background: none; color: var(--accent); }
sup { font-size: .32em; vertical-align: top; letter-spacing: 0; font-weight: 400; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; position: relative; }
.sec { padding: 130px 0; position: relative; overflow: hidden; }
.label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.h2 { font-size: clamp(44px, 6vw, 82px); line-height: .95; font-weight: 500; letter-spacing: -.05em; text-transform: uppercase; }
.h2--xl { font-size: clamp(48px, 8vw, 112px); }
.h2--center { text-align: center; }
.link, .more { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.link:hover, .more:hover { color: #000; }
.link { border-bottom: 1px solid currentColor; }
.plus { position: relative; width: 12px; height: 12px; display: inline-block; flex: none; transition: transform .2s cubic-bezier(.25, .46, .45, .94); }
.plus::before, .plus::after { content: ''; position: absolute; background: currentColor; }
.plus::before { left: 0; right: 0; top: 5px; height: 2px; }
.plus::after { top: 0; bottom: 0; left: 5px; width: 2px; }
.more:hover .plus { transform: rotate(90deg); }
.ring { position: absolute; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }

/* Шапка и меню */
.hdr { position: fixed; z-index: 60; top: 0; left: 0; right: 0; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; mix-blend-mode: normal; background: linear-gradient(#fff 45%, rgba(255, 255, 255, 0)); pointer-events: none; }
.hdr > * { pointer-events: auto; }
.hdr__logo { font-size: 25px; font-weight: 500; letter-spacing: -.08em; }
.burger { width: 34px; height: 22px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); transition: transform .25s, opacity .25s, top .25s; }
.burger span:nth-child(1) { top: 4px; } .burger span:nth-child(2) { top: 10px; } .burger span:nth-child(3) { top: 16px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 10px; transform: rotate(35deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 10px; transform: rotate(-35deg); }
body.menu-open .hdr { background: none; color: #fff; }
body.menu-open .burger span { background: #fff; }
.menu { position: fixed; inset: 0; z-index: 55; background: var(--ink); color: #fff; display: flex; align-items: center; opacity: 0; transition: opacity .3s; }
.menu:not([hidden]) { opacity: 1; }
.menu[hidden] { display: none; }
.menu__in { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; display: grid; gap: 28px; }
.menu__nav { display: grid; gap: 4px; }
.menu__nav a { font-size: clamp(34px, 6vw, 76px); font-weight: 500; letter-spacing: -.05em; line-height: 1.1; }
.menu__nav a:hover { color: var(--accent); }
.menu__tag, .menu__wa { font-size: 12px; letter-spacing: .12em; }

/* Первый экран */
.hero { position: relative; padding-top: 110px; overflow: hidden; }
.hero__top { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 24px; }
.hero__znak { width: 76px; height: 76px; }
.hero__tag { font-size: 12px; letter-spacing: .12em; padding-top: 6px; }
.hero__menu { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; justify-items: start; }
.hero__menu > div { display: grid; gap: 6px; }
.hero__menu a { font-size: 14px; font-weight: 500; }
.hero__menu a:hover { color: var(--accent); }
.hero__title { margin-top: 90px; font-size: clamp(48px, 7.6vw, 110px); line-height: 1; font-weight: 500; letter-spacing: -.05em; }
.hero__row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; margin-top: 32px; align-items: start; }
.hero__text { font-size: 14px; max-width: 560px; }
.hero__photo { position: relative; margin-top: 40px; height: min(80vh, 780px); min-height: 520px; overflow: hidden; }
.hero__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spin { position: absolute; left: 66%; top: 70px; width: 190px; height: 190px; display: grid; place-items: center; }
.spin__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.spin__cross { position: relative; animation: spin-bounce 10s cubic-bezier(.34, 1.61, .7, 1) infinite; }
@keyframes spin-bounce { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.hero__card { position: absolute; left: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); bottom: 48px; width: min(440px, calc(100% - 48px)); padding: 28px 30px; color: #fff; background: rgba(38, 38, 43, .55); backdrop-filter: blur(6px); display: grid; gap: 16px; }
.hero__card h2 { font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.hero__card p { font-size: 12px; }
.hero__stats { display: flex; gap: 36px; }
.hero__stats dd { font-size: 60px; line-height: 1; letter-spacing: -.07em; }
.hero__stats dt { font-size: 11px; letter-spacing: .06em; margin-top: 4px; }
.hero__stats sup { font-size: .4em; }
.ring--hero1 { width: 900px; height: 900px; left: -300px; top: 80px; }
.ring--hero2 { width: 700px; height: 700px; right: -220px; top: -120px; }

/* Компания */
.about__in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.facts { display: grid; gap: 28px; }
.facts > div:nth-child(2n) { margin-left: 28%; }
.facts dd { font-size: clamp(48px, 5vw, 68px); line-height: 1; letter-spacing: -.07em; }
.facts dt { font-size: 11px; letter-spacing: .06em; margin-top: 6px; }
.about__text { display: grid; gap: 28px; }
.about__in--single { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
.about__lead { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.18; font-weight: 500; letter-spacing: -.04em; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-size: 13px; }
.ring--about1 { width: 800px; height: 800px; left: -260px; top: 40px; }
.ring--about2 { width: 560px; height: 560px; left: -140px; top: 160px; }
.ring--about3 { width: 320px; height: 320px; left: -20px; top: 280px; }

/* Галерея */
.gallery__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 60px; }
.gallery__text { font-size: 13px; max-width: 520px; padding-top: 28px; }
.gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gallery__grid img { width: 100%; object-fit: cover; }
.gallery__grid img:nth-child(odd) { aspect-ratio: 4 / 5; }
.gallery__grid img:nth-child(even) { aspect-ratio: 4 / 3; margin-top: 120px; }
.gallery__cta { display: flex; gap: 20px; align-items: center; margin-top: 70px; }

/* Основатель */
.founder { padding-top: 60px; }
.founder__quote { margin: 40px 0 70px; font-size: clamp(34px, 5vw, 70px); line-height: 1.05; font-weight: 500; letter-spacing: -.05em; text-align: center; }
.founder__row { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 40px; align-items: center; }
.founder__who { display: flex; gap: 16px; align-items: center; }
.founder__who strong { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.founder__who span { font-size: 11px; letter-spacing: .06em; }
.founder__row p { font-size: 13px; max-width: 420px; }
.founder__year { font-size: 13px; }

/* Почему мы */
.why__in { min-height: 1360px; }
.why__title { text-align: center; font-size: clamp(48px, 8vw, 112px); line-height: .95; font-weight: 500; letter-spacing: -.05em; padding-top: 10px; }
.why__item { position: absolute; width: 470px; height: 470px; border: 1px solid var(--line); border-radius: 50%; padding: 0 70px; display: grid; align-content: center; gap: 16px; }
.why__item h3 { font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.why__item p { font-size: 12px; }
.why__item .more { margin-top: 10px; }
.why__item--1 { left: -30px; top: 330px; }
.why__item--2 { right: -20px; top: 260px; }
.why__item--3 { left: 33%; top: 660px; }
.why__item--4 { left: -50px; top: 900px; width: 520px; height: 520px; }

/* Как это работает */
.how .h2 { margin-bottom: 70px; }
.stage { display: grid; gap: 40px; align-items: center; margin-bottom: 80px; }
.stage--1 { grid-template-columns: 1.3fr 1fr; }
.stage--1 > img, .stage__pair img { width: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.stage--2 { grid-template-columns: 1fr 1.4fr; }
.stage__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stage__pair img { aspect-ratio: 3 / 4; }
.stage__text { display: grid; gap: 16px; align-content: center; }
.stage__text h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.05em; line-height: 1.05; }
.stage__text p, .stage__text li { font-size: 13px; }
.stage__text li::before { content: '• '; }
.time { display: flex; gap: 40px; }
.time dd { font-size: 64px; line-height: 1; letter-spacing: -.07em; }
.time dt { font-size: 11px; letter-spacing: .06em; }
.stage--3 { position: relative; display: block; margin-bottom: 0; }
.stage--3 > img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.stage__text--over { position: absolute; right: 40px; top: 40px; width: min(440px, 50%); color: #fff; background: rgba(38, 38, 43, .5); padding: 30px; }

/* Проекты */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 70px; }
.proj { display: grid; gap: 10px; align-content: start; }
.proj > img, .proj__imgwrap img:first-child { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; }
.proj__imgwrap { position: relative; }
.proj__imgwrap .soon { position: absolute; right: 24px; bottom: 24px; width: 110px; height: auto; }
.proj h3 { font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.proj__rooms, .proj__price-label { font-size: 12px; }
.proj__price { font-size: 12px; color: #c9a52a; font-weight: 700; margin-bottom: 14px; }
.proj .link { justify-self: start; border: 0; }

/* FAQ */
.faq .h2 { margin: 16px 0 50px; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { cursor: pointer; list-style: none; padding: 26px 60px 26px 0; font-size: clamp(24px, 3.2vw, 44px); font-weight: 500; letter-spacing: -.05em; line-height: 1.1; position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: '+'; position: absolute; right: 8px; top: 50%; margin-top: -22px; font-size: 40px; font-weight: 300; transition: transform .2s; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 60px 26px 0; font-size: 14px; max-width: 760px; }
.faq__list details p + p { margin-top: -12px; }

/* Подписка */
.subscribe { position: relative; min-height: 640px; display: flex; align-items: center; }
.subscribe__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.subscribe__in { width: 100%; display: flex; justify-content: flex-end; }
.subscribe__card { position: relative; background: #fff; width: 560px; max-width: 100%; padding: 44px 44px 40px; display: grid; gap: 18px; }
.subscribe__card .h2 { font-size: clamp(44px, 5vw, 68px); }
.subscribe__text { font-size: 12px; max-width: 360px; }
.subscribe__card input[type=text], .subscribe__card input[type=tel] { width: 100%; border: 1px solid #e3e3e3; padding: 16px 14px; font: 12px Arial, sans-serif; letter-spacing: .04em; border-radius: 0; background: #fff; color: var(--ink); }
.subscribe__card input:focus { outline: 1px solid var(--ink); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form__msg { font-size: 12px; }
.form__msg.is-err { color: #b3261e; }

/* Призыв */
.cta { padding: 150px 0; }
.cta__text { font-size: clamp(32px, 5vw, 66px); line-height: 1.05; font-weight: 500; letter-spacing: -.05em; margin-bottom: 50px; max-width: 1100px; }
.ring--cta { width: 520px; height: 520px; right: 6%; top: 40px; }

/* Контакты и подвал */
.contact { padding-bottom: 100px; }
.contact__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact__text { display: grid; gap: 12px; align-content: start; }
.contact .h2 { margin: 12px 0 20px; }
.contact__sub { font-size: 11px; color: #c9a52a; font-weight: 700; letter-spacing: .06em; }
.contact__addr { font-size: 12px; margin-bottom: 18px; }
.contact__line { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.04em; }
.contact__line:hover { color: #c9a52a; }
.contact__logo { margin-top: 30px; }
.contact__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.foot { background: var(--ink); color: #fff; padding: 60px 0 70px; }
.foot__in { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 40px; align-items: start; }
.foot__nav { display: grid; gap: 8px; font-size: 13px; font-weight: 500; }
.foot__nav a:hover, .foot__wa:hover { color: var(--accent); }
.foot__tag { font-size: 12px; letter-spacing: .12em; }
.foot__wa { font-size: 13px; font-weight: 700; }

/* Окна */
.modal { border: 0; padding: 40px; width: min(1000px, 94vw); max-height: 92vh; overflow: auto; background: #fff; color: var(--ink); }
.modal::backdrop { background: rgba(38, 38, 43, .7); }
.modal__x { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; }
.modal__x::before, .modal__x::after { content: ''; position: absolute; left: 6px; right: 6px; top: 18px; height: 2px; background: var(--ink); transform: rotate(45deg); }
.modal__x::after { transform: rotate(-45deg); }
.modal__znak { margin-bottom: 14px; }
.modal h3 { font-size: 44px; font-weight: 500; letter-spacing: -.05em; margin-bottom: 20px; }
.modal__plan { width: 100%; max-height: 420px; object-fit: contain; margin-bottom: 26px; }
.modal__wall { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; margin-top: 20px; align-items: center; }
.modal__wall ol { display: grid; gap: 10px; font-size: 16px; list-style: decimal inside; }
.complect h4 { font-size: 14px; letter-spacing: .12em; margin-bottom: 14px; }
.complect dl { display: grid; grid-template-columns: 240px 1fr; gap: 8px 24px; font-size: 13px; }
.complect dt { font-weight: 700; }
.complect dd { margin: 0; }

/* Анимации появления: текст выезжает слева/справа из прозрачности (как fadeinright/fadeinleft на Тильде) */
[data-reveal] { opacity: 0; transition: opacity 2s cubic-bezier(.19, 1, .22, 1) var(--rd, 0s), transform 2s cubic-bezier(.19, 1, .22, 1) var(--rd, 0s); }
[data-reveal="right"] { transform: translateX(-20px); }
[data-reveal="left"] { transform: translateX(20px); }
[data-reveal="fade"] { transform: none; }
[data-reveal="drop"] { transform: translateY(-20px); }
[data-reveal="up"] { transform: translateY(30px); }
[data-reveal].is-in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero__title, .hero__row > *, .hero__tag, .hero__menu { animation: rise 2s cubic-bezier(.19, 1, .22, 1) both; }
.hero__row > :nth-child(2) { animation-delay: .2s; }
.hero__title { animation-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__title, .hero__row > *, .hero__tag, .hero__menu { animation: none; }
  .spin__cross { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 80px 0; }
  .hdr { padding: 16px 20px; }
  .hero { padding-top: 90px; }
  .hero__top, .hero__row, .about__in, .gallery__head, .founder__row, .stage--1, .stage--2, .projects__grid, .contact__in, .foot__in, .cols, .modal__wall { grid-template-columns: 1fr; }
  .hero__top { gap: 14px; }
  .hero__title { margin-top: 50px; }
  .hero__photo { height: 620px; margin-top: 30px; }
  .spin { left: auto; right: 20px; top: 24px; width: 130px; height: 130px; }
  .spin__cross { width: 28px; height: 28px; }
  .hero__card { left: 20px; right: 20px; bottom: 24px; width: auto; padding: 22px; }
  .hero__stats dd { font-size: 44px; }
  .facts > div:nth-child(2n) { margin-left: 0; }
  .gallery__grid { grid-template-columns: 1fr; gap: 18px; }
  .gallery__grid img:nth-child(even) { margin-top: 0; }
  .gallery__text { padding-top: 0; }
  .founder__row { gap: 20px; }
  .why__in { min-height: 0; display: grid; gap: 30px; }
  .why__item { position: static; width: auto; height: auto; border-radius: 0; border: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
  .why__item--4 { width: auto; height: auto; }
  .stage--3 > img { aspect-ratio: 4 / 5; }
  .stage__text--over { right: 20px; left: 20px; top: auto; bottom: 20px; width: auto; padding: 20px; }
  .faq__list summary { padding-right: 40px; }
  .subscribe { min-height: 0; padding: 220px 0 0; align-items: flex-end; }
  .subscribe__bg { height: 260px; bottom: auto; }
  .subscribe__in { padding: 0; }
  .subscribe__card { width: 100%; padding: 32px 20px; }
  .cta { padding: 90px 0; }
  .contact__in { gap: 30px; }
  .complect dl { grid-template-columns: 1fr; gap: 2px; }
  .complect dd { margin-bottom: 10px; }
  .modal { padding: 24px 18px; }
  .modal h3 { font-size: 32px; }
}
