/* АН «Квадрат» — стили сайта */
:root {
  --bg: #e9eff3;
  --surface: #f6f9fb;
  --ink: #14212b;
  --muted: #5d6c77;
  --line: rgba(20, 33, 43, .12);
  --accent: #0e5a8a;
  --accent-hover: #0a4a73;
  --brand: #22a9e1;
  --dark: #101b24;
  --dark-2: #182632;
  --on-dark: #e8eef2;
  --on-dark-muted: #94a6b3;
  --radius: 28px;
  --radius-sm: 18px;
  --wrap: 1320px;
  --font: "Onest", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.brand { color: var(--brand); }

/* Типографика */
.h-display { font-size: clamp(42px, 12vw, 168px); font-weight: 400; line-height: .92; letter-spacing: -.045em; }
.h1 { font-size: clamp(40px, 5.6vw, 84px); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.h2 { font-size: clamp(32px, 4.2vw, 64px); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; }
.h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.small { font-size: 14px; color: var(--muted); line-height: 1.45; }
.label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--accent); }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.on-dark .label { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: var(--brand); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 8px 8px 24px; min-height: 56px; border-radius: 14px; border: 0; cursor: pointer; font-size: 15px; font-weight: 500; transition: background .2s, transform .2s; white-space: nowrap; }
.btn__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex: none; transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent .btn__arrow { background: rgba(255,255,255,.14); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light .btn__arrow { background: var(--accent); color: #fff; }
.btn--light:hover { background: var(--surface); }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; }
.btn--ghost .btn__arrow { background: rgba(255,255,255,.14); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--sm { min-height: 46px; padding: 6px 6px 6px 18px; font-size: 14px; border-radius: 12px; }
.btn--sm .btn__arrow { width: 34px; height: 34px; border-radius: 9px; }

/* Шапка */
.header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; }
.header__bar { display: flex; align-items: center; gap: 20px; padding: 10px 10px 10px 18px; background: rgba(246, 249, 251, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(16, 27, 36, .06); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { width: 38px; height: 38px; object-fit: contain; mix-blend-mode: multiply; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 20px; font-weight: 600; letter-spacing: .06em; }
.logo__sub { font-size: 10.5px; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }
.nav { display: flex; gap: 22px; margin: 0 auto; font-size: 14.5px; }
.nav a { color: var(--ink); opacity: .78; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: var(--accent); }
.header__phone { font-size: 15px; font-weight: 500; white-space: nowrap; }
.header__phone small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 96px 24px 32px; flex-direction: column; gap: 6px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) { font-size: 28px; letter-spacing: -.02em; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; }
.mobile-menu__close { position: absolute; top: 24px; right: 24px; }

/* Первый экран */
.hero { padding-top: 150px; text-align: center; overflow: hidden; }
.hero__title .accent { display: block; }
.hero__text { margin: 28px auto 32px; max-width: 520px; font-size: 17px; color: var(--muted); }
.hero__gallery { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1.25fr 1.15fr 1fr; gap: 16px; align-items: end; margin-top: 56px; padding: 0 0; width: calc(100% + 160px); margin-left: -80px; }
.hero__gallery figure { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; position: relative; }
.hero__gallery img { width: 100%; height: 100%; object-fit: cover; }
.hero__gallery figure:nth-child(1), .hero__gallery figure:nth-child(5) { height: 360px; }
.hero__gallery figure:nth-child(2), .hero__gallery figure:nth-child(4) { height: 290px; }
.hero__gallery figure:nth-child(3) { height: 330px; border-radius: 200px 200px 0 0; }
.hero__gallery figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(246,249,251,.9); font-size: 12.5px; }
.badge-circle { position: absolute; width: 168px; height: 168px; border-radius: 50%; background: rgba(246, 249, 251, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-content: center; text-align: center; box-shadow: 0 20px 40px rgba(16,27,36,.12); }
.badge-circle b { font-size: 40px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.badge-circle span { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.25; }
.hero .badge-circle { right: 23%; bottom: 150px; }

/* Секции */
.section { padding: 120px 0; }
.section--tight { padding: 80px 0; }
.section-head { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; margin-bottom: 56px; }
.section-head__side { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.on-dark { background: var(--dark); color: var(--on-dark); }
.on-dark .small, .on-dark .lead { color: var(--on-dark-muted); }

/* О компании: сетка карточек */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card__img { height: 300px; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.04); }
.card .h3 { margin-top: 8px; }
.card-cta { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; min-height: 420px; }
.card-cta::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; background: url("../img/logo-mark.png") center/contain no-repeat; opacity: .08; filter: brightness(10); }
.card-cta p { color: rgba(255,255,255,.75); font-size: 15px; }
.card-cta .h2 { font-size: clamp(30px, 2.8vw, 40px); }
.card-cta .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; }

/* Условия работы */
.terms { display: grid; grid-template-columns: 320px 1fr; gap: 40px; }
.quote { display: flex; flex-direction: column; gap: 20px; }
.quote p { font-size: 15px; line-height: 1.5; }
.person { display: flex; align-items: center; gap: 12px; }
.person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.person b { display: block; font-weight: 500; font-size: 15px; }
.terms__body .lead { margin-top: 28px; max-width: 760px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 72px; border-top: 1px solid var(--line); padding-top: 36px; }
.stat b { display: block; font-size: clamp(40px, 4.4vw, 64px); font-weight: 400; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.stat span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--muted); max-width: 220px; }

/* Блок «соцсети» */
.media { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-top: 100px; }
.media__card { background: var(--surface); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.media__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.media__link { padding: 16px; border-radius: var(--radius-sm); background: var(--bg); font-size: 14px; display: flex; flex-direction: column; gap: 22px; transition: background .2s; }
.media__link:hover { background: #dfe8ee; }
.media__link b { font-weight: 500; font-size: 15px; }
.media__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.media__photos figure { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 380px; }
.media__photos img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.media__photos figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(246,249,251,.9); font-size: 13px; color: var(--muted); }
.media__photos figcaption b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }

/* Манифест */
.manifest { border-radius: 40px 40px 0 0; }
.manifest__title { text-align: center; max-width: 980px; margin: 22px auto 72px; }
.manifest__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.m-card { background: var(--dark-2); border-radius: var(--radius); padding: 28px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; border: 1px solid rgba(255,255,255,.05); }
.m-card .h3 { color: #fff; }
.m-card__num { font-size: 13px; color: var(--brand); }
.m-photo { border-radius: var(--radius); overflow: hidden; min-height: 280px; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Ипотека */
.mortgage-top { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; }
.m-quote { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.m-quote p { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; letter-spacing: -.01em; }
.m-quote small { color: var(--on-dark-muted); font-size: 15px; }
.m-offer { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; }
.m-offer::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 60px solid rgba(255,255,255,.06); right: -140px; top: -120px; }
.m-offer .h3 { font-size: clamp(26px, 2.3vw, 34px); font-weight: 400; position: relative; }
.m-offer p { color: rgba(255,255,255,.72); font-size: 14.5px; position: relative; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--surface); display: grid; place-items: center; color: var(--accent); margin-bottom: 8px; }
.feature .h3 { font-size: 21px; }

.lead-box { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 72px; background: var(--accent); border-radius: 36px; padding: 20px; color: #fff; }
.lead-box > * { min-width: 0; }
.lead-box__form { padding: 36px 28px; display: flex; flex-direction: column; gap: 14px; }
.lead-box__form .h2 { font-size: clamp(32px, 3.4vw, 50px); margin-bottom: 14px; }
.lead-box__form .small { color: rgba(255,255,255,.72); margin-bottom: 10px; }
.field { width: 100%; height: 58px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); padding: 0 20px; color: #fff; outline: none; transition: border-color .2s, background .2s; }
.field::placeholder { color: rgba(255,255,255,.6); }
.field:focus { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.14); }
.consent { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.45; }
.consent a { text-decoration: underline; }
.banks { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-content: center; }
.banks div { background: #fff; color: var(--ink); border-radius: 16px; aspect-ratio: 1.25; display: grid; place-items: center; text-align: center; padding: 10px; font-size: 13px; font-weight: 500; }
.banks div:nth-child(odd) { background: #f1f6f9; }
.banks .badge-circle { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 190px; height: 190px; background: rgba(255,255,255,.82); }
.banks .badge-circle b { font-size: 58px; color: var(--accent); }

/* Продажа */
.sell { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sell__photo { border-radius: var(--radius); overflow: hidden; min-height: 560px; position: relative; }
.sell__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sell__photo .badge-circle { left: 28px; bottom: 28px; }
.sell__list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sell-item { background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.sell-item__n { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--accent); font-weight: 500; margin-bottom: 28px; }
.sell-item--accent { background: var(--dark); color: var(--on-dark); justify-content: space-between; }
.sell-item--accent .small { color: var(--on-dark-muted); }

/* Объекты */
.objects__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.slider-nav { display: flex; gap: 10px; }
.slider-nav button { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.slider-nav button:hover { background: var(--accent); color: #fff; }
.objects__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.objects__track::-webkit-scrollbar { display: none; }
.obj { scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.obj__img { height: 230px; overflow: hidden; }
.obj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.obj:hover .obj__img img { transform: scale(1.05); }
.obj__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.obj__title { font-size: 19px; font-weight: 500; }
.obj__price { margin-top: auto; padding-top: 14px; font-size: 24px; letter-spacing: -.02em; color: var(--accent); display: flex; justify-content: space-between; align-items: center; }
.obj__price a { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }

/* Команда */
.team { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.team__big { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 460px; background: #23313c; }
.team__big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.member { display: flex; flex-direction: column; gap: 6px; }
.member__img { border-radius: var(--radius); overflow: hidden; height: 380px; margin-bottom: 12px; }
.member__img img { width: 100%; height: 100%; object-fit: cover; }
.member b { font-weight: 500; font-size: 19px; }
.news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.news-card { display: flex; flex-direction: column; gap: 10px; }
.news-card__img { height: 220px; border-radius: var(--radius-sm); overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .tag { font-size: 12.5px; color: var(--accent); }
.news-card b { font-weight: 500; font-size: 18px; line-height: 1.2; }
.career { margin-top: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 40px; }

/* Отзывы */
.reviews { background: var(--accent); color: #fff; border-radius: 40px; padding: 56px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; }
.reviews .label { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.reviews .label::before { background: #fff; }
.rating { display: flex; align-items: baseline; gap: 16px; margin: 36px 0 8px; }
.rating b { font-size: clamp(72px, 8vw, 120px); font-weight: 400; letter-spacing: -.05em; line-height: .9; }
.rating span { font-size: 26px; letter-spacing: 4px; color: #ffd36b; }
.reviews__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0; }
.reviews__facts div { background: rgba(255,255,255,.1); border-radius: 16px; padding: 16px; font-size: 14px; color: rgba(255,255,255,.75); }
.reviews__facts b { display: block; font-size: 22px; font-weight: 500; color: #fff; }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.reviews__widget { background: #fff; border-radius: var(--radius); overflow: hidden; min-height: 560px; }
.reviews__widget iframe { width: 100%; height: 100%; min-height: 560px; border: 0; display: block; }

/* Партнёры / ЖК */
.partners-head { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.partners-head .stat b { font-size: clamp(56px, 6vw, 96px); }
.zk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.zk figure { border-radius: var(--radius); overflow: hidden; position: relative; height: 340px; }
.zk img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.zk figure:hover img { transform: scale(1.05); }
.zk figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(246,249,251,.92); font-weight: 500; }
.zk figcaption span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }

/* Вопросы */
.faq { display: grid; grid-template-columns: 320px 1fr; gap: 40px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; font-size: 22px; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 56px 26px 0; color: var(--muted); max-width: 820px; }

/* Финальный блок */
.final { background: var(--accent); color: #fff; border-radius: 40px 40px 0 0; padding: 64px 56px 0; overflow: hidden; }
.final__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.final__top p { color: rgba(255,255,255,.75); font-size: 15px; }
.final__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; margin-top: 40px; }
.final__form .consent { grid-column: 1 / -1; }
.final .hero__gallery { margin-top: 48px; width: calc(100% + 112px); margin-left: -56px; }
.final .hero__gallery figure:nth-child(n) { height: 240px; }
.final .hero__gallery figure:nth-child(3) { height: 280px; }
.final .badge-circle { right: 22%; bottom: 60px; }

/* Подвал */
.footer { background: var(--dark); color: var(--on-dark); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .logo img { background: #fff; border-radius: 10px; padding: 4px; mix-blend-mode: normal; }
.footer .logo__sub { color: var(--on-dark-muted); }
.footer h4 { font-size: 13px; font-weight: 400; color: var(--on-dark-muted); margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer ul a:hover { color: var(--brand); }
.footer__info { margin-top: 28px; font-size: 13px; color: var(--on-dark-muted); line-height: 1.6; max-width: 320px; }
.footer__social { display: flex; gap: 10px; margin-top: 28px; }
.footer__social a { padding: 10px 14px; border-radius: 12px; background: var(--dark-2); font-size: 13px; transition: background .2s; }
.footer__social a:hover { background: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: var(--on-dark-muted); }

/* Модальное окно */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(16,27,36,.55); display: none; place-items: center; padding: 16px; }
.modal.open { display: grid; }
.modal__box { width: 100%; max-width: 480px; background: var(--accent); color: #fff; border-radius: 28px; padding: 40px 32px 32px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.modal__box .h3 { font-size: 30px; font-weight: 400; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; }
.modal__form { display: flex; flex-direction: column; gap: 12px; }
.modal__ok { display: none; text-align: center; padding: 20px 0; }
.modal.done form { display: none; }
.modal.done .modal__ok { display: block; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Адаптив */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__bar .btn { margin-left: auto; }
  .manifest__grid { grid-template-columns: repeat(2, 1fr); }
  .objects__track { grid-auto-columns: calc((100% - 40px) / 3); }
  .team { grid-template-columns: 1fr 1fr; }
  .team__big { grid-column: 1 / -1; }
  .news { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .section-head, .terms, .faq { grid-template-columns: 1fr; gap: 24px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .media, .mortgage-top, .lead-box, .sell, .reviews, .final__top { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .partners-head { grid-template-columns: 1fr 1fr; }
  .partners-head > :first-child { grid-column: 1 / -1; }
  .zk { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__gallery { grid-template-columns: repeat(3, 1fr); }
  .hero__gallery figure:nth-child(1), .hero__gallery figure:nth-child(5) { display: none; }
  .hero .badge-circle { right: 12%; }
  .final__form { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header { top: 8px; }
  .header__bar { padding: 8px 8px 8px 12px; gap: 10px; }
  .header__phone { display: none; }
  .header__bar .btn { display: none; }
  .burger { margin-left: auto; }
  .logo__sub { display: none; }
  .hero { padding-top: 120px; }
  .hero__gallery { grid-template-columns: 1fr 1fr; width: calc(100% + 32px); margin-left: -16px; gap: 10px; }
  .hero__gallery figure:nth-child(3) { display: none; }
  .hero__gallery figure:nth-child(n) { height: 240px; }
  .hero .badge-circle { width: 128px; height: 128px; right: 50%; transform: translateX(50%); bottom: 170px; }
  .badge-circle b { font-size: 30px; }
  .section { padding: 72px 0; }
  .cards, .media__photos, .media__links, .sell__list, .features, .manifest__grid, .zk, .news, .team, .footer__grid, .reviews__facts, .partners-head { grid-template-columns: 1fr; }
  .card-cta { min-height: 0; }
  .media__card, .m-quote, .reviews, .career { padding: 28px 22px; }
  .media__photos figure { min-height: 300px; }
  .lead-box { padding: 10px; border-radius: 28px; }
  .lead-box__form { padding: 24px 14px; }
  .banks { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .banks div { font-size: 11.5px; padding: 6px; hyphens: auto; border-radius: 12px; }
  .m-card, .m-photo { min-height: 0; }
  .m-photo { height: 220px; }
  .m-card .m-card__num { margin-bottom: 8px; }
  .banks .badge-circle { width: 140px; height: 140px; }
  .banks .badge-circle b { font-size: 42px; }
  .sell__photo { min-height: 380px; }
  .objects__track { grid-auto-columns: 84%; }
  .career { grid-template-columns: 1fr; }
  .final { padding: 40px 20px 0; border-radius: 28px 28px 0 0; }
  .final .hero__gallery { width: calc(100% + 40px); margin-left: -20px; }
  .final .hero__gallery figure:nth-child(n) { height: 160px; }
  .final .badge-circle { display: none; }
  .btn { white-space: normal; }
  .reviews { border-radius: 28px; }
}
