/* ВДОМЕ, версия 8: новый дизайн.
   Палитра: тёмно-синий (первый экран, вакансии, подвал), белый (контент), золото (акцент). Больше ничего. */
:root {
  --navy-950: #071a33;
  --navy-900: #0c2748;
  --navy: #0f2e52;
  --navy-600: #2a5a92;
  --gold: #c9a86a;
  --gold-deep: #9a7a45;
  --ink: #0f2a47;
  --muted: #5a6b82;
  --line: #e3e9f1;
  --soft: #f5f7fa;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 46, 82, .04), 0 12px 30px rgba(15, 46, 82, .07);
  --max: 1180px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0 0 14px; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(var(--max), 100% - 48px); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: #fff; padding: 6px 10px; }

.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.eyebrow-light { color: var(--gold); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: #d6b87c; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--soft); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { border-color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 30; background: rgba(12, 39, 72, .96); backdrop-filter: blur(10px); }
.top-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 34px; width: auto; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { color: #c5d3e3; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 160ms var(--ease-out); }
.menu a:hover { color: #fff; }
.top-call { color: var(--gold); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Первый экран */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(800px 420px at 80% 0%, rgba(201, 168, 106, .14), transparent 60%),
    linear-gradient(170deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; padding: 96px 0 104px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.hero h1 span { color: var(--gold); }
.lead { font-size: 18px; color: #c9d7e6; max-width: 540px; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 44px 0 0; padding: 0; list-style: none; max-width: 560px; }
.facts li { padding: 18px 18px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); }
.facts b { display: block; font-size: 28px; line-height: 1.1; color: var(--gold); font-weight: 800; }
.facts span { font-size: 13px; color: #b3c4d8; }
.hero-photo { position: relative; justify-self: end; width: min(100%, 470px); margin: 0; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }
.hero-photo img { width: 100%; height: auto; }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(12, 39, 72, .9); font-size: 13px; color: #fff; }

/* Вакансии: тёмная карточка сразу после первого экрана */
.join { padding: 0 0 112px; background: var(--white); }
.join-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: -56px;
  padding: 56px; border-radius: 24px; background: var(--navy); color: #fff; box-shadow: 0 30px 60px rgba(7, 26, 51, .25);
}
.join-card .eyebrow { color: var(--gold); }
.join-card h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 16px; }
.join-card h2 span { color: var(--gold); }
.join-lead { color: #c5d3e3; font-size: 17px; max-width: 480px; margin-bottom: 28px; }
.join-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.join-stats li { min-width: 130px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.join-stats b { display: block; font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; }
.join-stats span { font-size: 13px; color: #b3c4d8; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.join-actions .btn-navy { background: var(--gold); color: var(--navy-950); }
.join-actions .btn-navy:hover { background: #d6b87c; }
.join-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .4); }
.join-actions .btn-outline:hover { background: rgba(255, 255, 255, .08); }
.join-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.join-steps li { padding: 22px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.join-steps span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--gold); color: var(--navy-950); font-weight: 800; font-size: 13px; }
.join-steps h3 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.join-steps p { margin: 0; color: #b3c4d8; font-size: 15px; }

/* Общие секции */
.section { padding: 112px 0; }
.section-line { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.section-lead { color: var(--muted); font-size: 17px; margin: 0; max-width: 440px; justify-self: end; }
.empty { margin: 32px 0 0; padding: 32px; border: 1px dashed #c6d2e0; border-radius: var(--radius); color: var(--muted); text-align: center; }

/* Переключатель объектов */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.seg button:active { transform: scale(0.97); }
.seg button[aria-selected="true"] { background: var(--navy); color: #fff; }
.seg span { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(15, 46, 82, .08); font-size: 12px; line-height: 20px; text-align: center; }
.seg button[aria-selected="true"] span { background: rgba(255, 255, 255, .2); }

/* Объекты */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 1fr; gap: 20px; margin-top: 32px; }
.offer { display: flex; flex-direction: column; height: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.offer:active { transform: scale(0.97); }
.offer-photo { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.offer-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-nophoto { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.offer-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 18px 20px 20px; }
.offer-body > span { display: block; }
.offer-price { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.offer-title { font-size: 16px; font-weight: 600; }
.offer-meta { font-size: 14px; color: var(--muted); }

/* Услуги: нумерованный список */
.services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--navy); }
.service { padding: 28px 22px 8px 0; border-right: 1px solid var(--line); }
.service:last-child { border-right: 0; }
.service-no { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--gold-deep); margin-bottom: 26px; }
.service h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; margin: 0; }

/* Новостройки */
.nb-tools { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field select, .calc input { height: 50px; padding: 0 16px; border: 1px solid #cbd6e3; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .calc input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.nb-count { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); grid-auto-rows: 1fr; gap: 20px; margin-top: 20px; }
.nb-card { display: flex; flex-direction: column; height: 100%; width: 100%; padding: 0; text-align: left; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.nb-card:active { transform: scale(0.97); }
.nb-photo { display: block; position: relative; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.nb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nb-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 18px 20px 20px; }
.nb-body > span { display: block; }
.nb-dev { font-size: 12px; color: var(--gold-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.nb-name { font-size: 19px; font-weight: 700; color: var(--navy); }
.nb-loc, .nb-meta { font-size: 14px; color: var(--muted); }
.nb-price { margin-top: 8px; font-size: 18px; font-weight: 800; color: var(--ink); }
.nb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.nb-tags span { padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--navy); font-size: 12px; font-weight: 600; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pager button { min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid #cbd6e3; border-radius: 999px; background: var(--white); color: var(--navy); font-weight: 600; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.pager button:hover:not(:disabled) { border-color: var(--navy); }
.pager button:active:not(:disabled) { transform: scale(0.97); }
.pager button[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager-gap { padding: 0 4px; color: var(--muted); }

/* Ипотека */
.mortgage { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mortgage h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-bottom: 18px; }
.mortgage-copy p { color: var(--muted); font-size: 17px; max-width: 520px; }
.banks-card { padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.banks-title { margin: 0 0 20px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.banks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.banks li { display: grid; place-items: center; min-height: 88px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.banks img { max-height: 40px; width: auto; object-fit: contain; }

/* Основатель */
.founder-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.founder-photo { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.founder-photo img { width: 100%; height: auto; }
.founder-copy h2 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; margin-bottom: 22px; }
.founder-copy blockquote { margin: 0 0 24px; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-size: 20px; line-height: 1.5; color: var(--navy); }
.founder-copy > p { color: var(--muted); font-size: 16px; }
.founder-list { margin: 22px 0 26px; padding: 0; list-style: none; display: grid; gap: 12px; }
.founder-list li { position: relative; padding-left: 28px; color: var(--ink); }
.founder-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 2px; background: var(--gold); }
.founder-links { display: flex; gap: 22px; }
.founder-links a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* Команда */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.person { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; box-shadow: var(--shadow); }
.person-photo { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--navy-600), var(--navy-950)); display: grid; place-items: center; color: #fff; font-size: 40px; font-weight: 700; }
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 16px 18px 18px; }
.person h3 { font-size: 16px; color: var(--navy); }
.person p { margin: 0; color: var(--muted); font-size: 14px; }

/* Подход */
.approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.approach-item { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.approach-item span { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--gold-deep); margin-bottom: 22px; }
.approach-item h3 { font-size: 21px; color: var(--navy); margin-bottom: 12px; }
.approach-item p { margin: 0; color: var(--muted); }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
.contacts h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-bottom: 30px; }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 16px 28px; margin: 0 0 30px; }
.contact-list dt { color: var(--muted); font-size: 14px; }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { text-decoration: none; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.messengers a { padding: 11px 18px; border-radius: 999px; border: 1px solid #cbd6e3; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--navy); transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.messengers a:hover { border-color: var(--navy); background: var(--soft); }
.map { min-height: 380px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.map-canvas { width: 100%; height: 100%; min-height: 380px; }

/* Подвал */
.foot { padding: 26px 0; background: var(--navy-950); color: #8fa3ba; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: #d6e0ec; text-decoration: none; }

/* Модальные окна */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(7, 26, 51, .6); }
.modal-box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border-radius: 20px; background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: modal-in 220ms var(--ease-out); }
.modal-wide { width: min(900px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-head h2 { font-size: 26px; color: var(--navy); }
.modal-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--soft); font-size: 24px; line-height: 1; cursor: pointer; color: var(--navy); flex: none; transition: transform 160ms var(--ease-out); }
.modal-close:active { transform: scale(0.97); }
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: none; }
}
.programs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.programs button { padding: 10px 16px; border-radius: 999px; border: 1px solid #cbd6e3; background: var(--white); color: var(--navy); font-weight: 600; font-size: 14px; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.programs button:active { transform: scale(0.97); }
.programs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc label { display: grid; gap: 8px; }
.calc label span { font-size: 13px; color: var(--muted); font-weight: 600; }
.calc-out { margin-top: 20px; padding: 22px; border-radius: var(--radius-sm); background: var(--soft); display: grid; gap: 4px; }
.calc-out .big { font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.calc-out .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.calc-out .row:last-child { border-bottom: 0; }
.calc-out .row span { color: var(--muted); }
.note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.card-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.card-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.card-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 20px; }
.card-facts div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.card-facts dt { font-size: 12px; color: var(--muted); }
.card-facts dd { margin: 2px 0 0; font-weight: 600; }
.card-text { display: grid; gap: 12px; margin-bottom: 20px; font-size: 15px; }
.card-text b { color: var(--navy); }

/* Появление блоков: короткая задержка между соседними, без блокировки */
.js .reveal:not(.in) { opacity: 0; transform: translateY(8px); }
.reveal { transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); transition-delay: var(--delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Наведение только на устройствах с мышью */
@media (hover: hover) and (pointer: fine) {
  .offer:hover, .nb-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15, 46, 82, .12); }
  .btn-gold:hover { background: #d6b87c; }
}
@media (hover: none) {
  .offer:hover, .nb-card:hover { transform: none; box-shadow: var(--shadow); }
}

/* Адаптив */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 72px 0 88px; }
  .hero-photo { justify-self: start; width: min(100%, 420px); }
  .join-card { grid-template-columns: 1fr; margin-top: -40px; padding: 40px 32px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-lead { justify-self: start; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .mortgage, .founder-grid, .contacts { grid-template-columns: 1fr; gap: 40px; }
  .approach { grid-template-columns: 1fr; }
  .menu { display: none; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .join { padding-bottom: 72px; }
  .hero-grid { padding: 56px 0 72px; }
  .lead { font-size: 16px; }
  .facts { gap: 8px; }
  .facts li { padding: 14px 12px; }
  .facts b { font-size: 22px; }
  .facts span { font-size: 12px; }
  .join-card { padding: 28px 22px; }
  .join-steps { grid-template-columns: 1fr; }
  .join-actions .btn { flex: 1 1 100%; }
  .services { grid-template-columns: 1fr; }
  .nb-tools { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .banks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banks-card { padding: 22px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .person-body { padding: 12px 12px 14px; }
  .person h3 { font-size: 14px; }
  .calc { grid-template-columns: 1fr; }
  .card-facts { grid-template-columns: 1fr; }
  .card-photos { grid-template-columns: 1fr 1fr; }
  .modal-box { padding: 22px; }
  .map, .map-canvas { min-height: 300px; }
}

/* Уменьшить анимацию: только прозрачность, без сдвигов */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal:not(.in), .reveal { transform: none !important; transition: opacity 200ms ease-out !important; }
  .modal-box { animation: none; }
  .btn:active, .seg button:active, .pager button:active:not(:disabled), .programs button:active, .offer:active, .nb-card:active, .modal-close:active { transform: none; }
}


/* Попап записи на собеседование */
.join-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(7, 26, 51, .6); }
.join-modal-box { position: relative; width: min(1000px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 24px; background: #ffffff; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: modal-in 220ms var(--ease-out); }
.join-modal-close { position: absolute; top: 14px; right: 14px; z-index: 120; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f5f9; font-size: 24px; line-height: 1; cursor: pointer; color: #102f55; transition: transform 160ms var(--ease-out); }
.join-modal-close:active { transform: scale(0.97); }
@media (max-width: 900px) {
  .join-modal-box { border-radius: 18px; }
}
