:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1d2a26;
  --muted: #6b736d;
  --line: #e4e3dc;
  --brand: #0f6e56;
  --brand-dark: #0a4d3c;
  --brand-soft: #e1f5ee;
  --accent: #c4623a;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(20, 40, 33, 0.05);
  --shadow: 0 12px 38px rgba(20, 40, 33, 0.10);
  --shadow-lg: 0 28px 64px rgba(20, 40, 33, 0.16);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
a { color: inherit; text-decoration: none; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 245, 241, 0.9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; flex: none; white-space: nowrap; }
.logo-text { white-space: nowrap; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav-phone { font-weight: 600; color: var(--brand) !important; }

/* HERO — центрированный */
.hero {
  background:
    radial-gradient(760px 420px at 50% -6%, var(--brand-soft), transparent 60%),
    radial-gradient(620px 320px at 88% 4%, rgba(196, 98, 58, 0.05), transparent 62%),
    var(--bg);
  padding: 42px 0 66px;
}
.hero-inner {
  max-width: 820px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--brand-dark);
  background: #fff; border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #1d9e75; }
.hero-title {
  font-size: 52px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
}
.hero-title .accent { color: var(--brand); }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 620px; margin: 22px 0 0; }

/* CHAT EMBED — стартует в 3 строки, растёт до экрана */
.chat-embed {
  width: 100%; max-width: 760px; margin: 30px auto 0;
  background: var(--surface); border: 1px solid rgba(20, 40, 33, 0.07);
  border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 20px; text-align: left;
  display: flex; flex-direction: column;
  transition: max-height 0.2s ease;
}
/* Шапка чата = единая карточка менеджера (аватар + имя/статус + звонок) */
.chat-embed-head {
  display: flex; align-items: center; gap: 11px;
  margin: -20px -20px 14px; padding: 12px 18px;
  background: var(--brand-soft); border-bottom: 1px solid rgba(20, 40, 33, 0.07);
  border-radius: 22px 22px 0 0;
}
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; box-shadow: 0 0 0 3px #fff; background-size: cover; background-position: center; }
.chat-embed-id { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.chat-embed-name { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-embed-status { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #1d9e75; box-shadow: 0 0 0 2px rgba(29, 158, 117, 0.18); flex: none; }
.chat-embed.busy .status-dot { background: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.16); }

/* лог скрыт до первого сообщения */
.chat-log { display: none; }
.chat-embed.is-active {
  min-height: 440px;
  max-height: calc(100vh - 130px);
}
.chat-embed.is-active .chat-log {
  display: flex; flex: 1 1 auto; min-height: 0; overflow-y: auto;
  flex-direction: column; gap: 10px;
  padding: 4px 4px 14px; margin-bottom: 4px;
}

.msg { max-width: 86%; padding: 11px 14px; border-radius: 15px; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { align-self: flex-start; background: #f3f5f1; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.msg.typing { color: var(--muted); font-style: italic; background: transparent; border: none; }

.chat-inputbar { display: flex; gap: 10px; align-items: stretch; }
.chat-inputbar textarea {
  flex: 1; border: 1px solid var(--line); border-radius: 13px;
  padding: 13px 15px; font-size: 15px; line-height: 1.45; outline: none;
  font-family: inherit; resize: none; min-height: 46px; max-height: 220px; overflow-y: auto;
  background: #fbfbf9; transition: min-height 0.15s ease;
}
.chat-inputbar textarea:focus { border-color: var(--brand); background: #fff; min-height: 76px; }
/* свёрнутое поле — плейсхолдер в одну строку (обрезка по ширине), а не рваной 2-й строкой */
.chat-inputbar textarea:not(:focus) { white-space: nowrap; overflow: hidden; }
#chat-send {
  flex: none; align-self: stretch; min-width: 116px;
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 700; cursor: pointer; padding: 0 20px;
  box-shadow: 0 3px 9px rgba(196, 98, 58, 0.22);
  transition: background 0.15s ease, transform 0.06s ease, box-shadow 0.15s ease;
}
#chat-send:hover { background: #a84e2c; box-shadow: 0 8px 20px rgba(196, 98, 58, 0.34); }
#chat-send:active { transform: scale(0.98); }
#chat-send:disabled { opacity: 0.55; cursor: default; }

.chat-quick { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.chat-quick button {
  font-size: 13.5px; color: var(--ink); background: #f2f1ec;
  border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px; cursor: pointer;
  transition: all 0.14s ease;
}
.chat-quick button:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.chat-hint { font-size: 11.5px; color: var(--muted); text-align: center; padding-top: 10px; }
.chat-embed:not(.is-active) .chat-hint { display: none; }

/* свёрнутый preview hero-чата у вернувшегося клиента: виден только последний ответ,
   раскрывается по фокусу поля/вводу. Верх подтёрт маской, чтобы обрезанное сообщение уходило плавно. */
.chat-embed.is-peek .chat-log {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 128px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  padding: 6px 4px 0; margin-bottom: 8px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24px);
}
.chat-embed.is-peek .chat-log::-webkit-scrollbar { display: none; }

/* КНОПКА И ПАНЕЛЬ ЗВОНКА */
.call-btn { margin-left:auto; flex:none; background:var(--accent); color:#fff; border:none; border-radius:999px;
  font-size:13.5px; font-weight:600; padding:8px 14px; cursor:pointer; transition:filter .15s ease, background .25s ease; white-space:nowrap; }
.call-btn:hover { filter:brightness(1.08); }
.call-btn.busy { background:#c0392b; }   /* красный — менеджер занят */
.call-btn.online { background:#1d9e75; } /* зелёный — на связи */
.call-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#fff; opacity:.85; vertical-align:middle; margin-right:3px; }
.call-btn.online .call-dot { animation:dotpulse 1.3s infinite; }
@keyframes dotpulse { 0%{opacity:.35} 50%{opacity:1} 100%{opacity:.35} }
.call-overlay { position:fixed; inset:0; background:rgba(20,30,26,.5); display:flex; align-items:center; justify-content:center; padding:16px; z-index:60; }
.call-overlay[hidden] { display:none; }
.call-card { background:#fff; border-radius:22px; padding:28px 24px; width:100%; max-width:360px; text-align:center; position:relative; box-shadow:0 24px 60px rgba(20,40,33,.28); }
.call-x { position:absolute; top:14px; right:16px; background:none; border:none; font-size:18px; color:var(--muted); cursor:pointer; }
.call-av { width:96px; height:96px; border-radius:50%; margin:6px auto 14px; background-size:cover; background-position:center; background-color:var(--brand); box-shadow:0 0 0 0 rgba(196,98,58,.5); }
.call-av.speaking { animation:callpulse 1.2s infinite; }
@keyframes callpulse { 0%{box-shadow:0 0 0 0 rgba(196,98,58,.5)} 70%{box-shadow:0 0 0 16px rgba(196,98,58,0)} 100%{box-shadow:0 0 0 0 rgba(196,98,58,0)} }
.call-name { font-size:20px; font-weight:800; }
.call-status { font-size:14px; color:var(--muted); margin:6px 0 16px; min-height:20px; }
.call-log { text-align:left; max-height:240px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.call-log:empty { display:none; }
.call-log .cl { font-size:14px; padding:9px 12px; border-radius:12px; }
.call-log .cl.user { background:var(--brand); color:#fff; align-self:flex-end; max-width:85%; }
.call-log .cl.bot { background:#f3f5f1; border:1px solid var(--line); align-self:flex-start; max-width:90%; }
.call-mic { width:100%; background:var(--brand); color:#fff; border:none; border-radius:14px; font-size:16px; font-weight:700; padding:14px; cursor:pointer; transition:background .15s ease; }
.call-mic:hover { background:var(--brand-dark); }
.call-mic.rec { background:var(--accent); }
.call-mic:disabled { opacity:.6; cursor:default; }

/* HERO TRUST */
.hero-trust { list-style: none; display: flex; gap: 0; padding: 0; margin: 40px 0 0; flex-wrap: wrap; justify-content: center; }
.hero-trust li { display: flex; flex-direction: column; align-items: center; padding: 2px 36px; position: relative; }
.hero-trust li + li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 32px; background: var(--line); }
.hero-trust strong { font-size: 27px; font-weight: 800; color: var(--brand-dark); letter-spacing: -0.01em; }
.hero-trust span { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* SECTION HEAD */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }

/* OBJECTS */
.objects { padding: 70px 0; background: #fff; border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.tab {
  font-size: 15px; font-weight: 600; color: var(--muted);
  background: #fff; border: 1px solid var(--line);
  padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: all 0.15s ease;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* переключатель список/карта */
.tabs-row { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.tabs-row .tabs { margin: 0; flex: 1; min-width: 0; }
.view-toggle { display: inline-flex; gap: 4px; background: #f2f1ec; border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex: none; }
.vt { display: grid; place-items: center; width: 40px; height: 34px; border: none; background: transparent; color: var(--muted); border-radius: 999px; cursor: pointer; transition: all .14s ease; }
.vt:hover { color: var(--brand); }
.vt.is-active { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 3px rgba(20, 40, 33, .14); }

/* карты */
.objects-map { height: 480px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.obj-map { height: 260px; margin-top: 8px; }
.obj-map-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { height: 160px; display: grid; place-items: center; position: relative; color: #fff; background-size: cover; background-position: center; }
.card-badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92); color: var(--brand-dark); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.card-media-icon { width: 52px; height: 52px; opacity: 0.95; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 18px; font-weight: 700; }
.card-complex { font-size: 14px; color: var(--brand-dark); font-weight: 600; }
.card-meta { font-size: 13.5px; color: var(--muted); }
.card-deadline { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-desc { font-size: 14px; color: var(--muted); margin-top: 4px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.card-price { font-size: 21px; font-weight: 800; color: var(--ink); }
.card-cta { font-size: 14px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border: none; padding: 9px 14px; border-radius: 9px; cursor: pointer; }
.card-cta:hover { background: var(--brand); color: #fff; }

/* HOW */
.how { padding: 70px 0 80px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; background: var(--brand); color: #fff; border-radius: 11px; font-weight: 800; margin-bottom: 14px; box-shadow: 0 4px 12px rgba(15, 110, 86, 0.25); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; padding: 22px 20px; color: var(--muted); font-size: 14px; flex-wrap: wrap; gap: 8px; }

/* RESPONSIVE */
body { overflow-x: hidden; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .objects, .how { padding: 48px 0; }
  .hero-trust { margin-top: 30px; }
  .hero-trust li { padding: 2px 26px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { height: 56px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .nav { gap: 12px; }
  .nav > a { display: none; } /* секционные ссылки и телефон убираем, оставляем кнопку входа */

  .hero { padding: 28px 0 38px; }
  .hero-title { font-size: 33px; }
  .hero-sub { display: none; } /* на мобиле ценность несёт чат, а не абзац */
  .hero-pill { margin-bottom: 18px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 15px; }

  .chat-embed { margin-top: 24px; padding: 14px; border-radius: 16px; }
  .chat-embed.is-active { min-height: 60vh; max-height: calc(100vh - 80px); }
  .chat-inputbar textarea { font-size: 16px; min-height: 46px; } /* 16px = без авто-зума на iOS; 1 строка, растёт по фокусу */
  #chat-send { min-width: 84px; padding: 0 12px; font-size: 15px; }
  .chat-quick { gap: 7px; }
  .chat-quick button { font-size: 13px; padding: 8px 13px; }

  /* статистика: 3 равные колонки в один ряд, без «шахматки» */
  .hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 24px; width: 100%; }
  .hero-trust li { padding: 4px 6px; }
  .hero-trust li + li::before { display: block; height: 26px; }
  .hero-trust strong { font-size: 21px; }
  .hero-trust span { font-size: 12px; }
  .card-title { font-size: 17px; }

  /* шапка-карточка менеджера подгоняется под меньший padding чата */
  .chat-embed-head { margin: -14px -14px 12px; padding: 11px 14px; border-radius: 16px 16px 0 0; }

  /* фильтры и быстрые вопросы — горизонтальная лента со свайпом (как в мобильных приложениях) */
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    gap: 8px; margin-left: -16px; margin-right: -16px; padding: 2px 16px 6px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; scroll-snap-align: start; padding: 9px 16px; font-size: 14px; }

  .chat-quick { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 3px; }
  .chat-quick::-webkit-scrollbar { display: none; }
  .chat-quick button { flex: none; }

  .auth-modal { padding: 24px 20px; }
  .auth-callnum { font-size: 22px; }
  .user-role { display: none; } /* компактный чип на мобиле */
  .footer-inner { flex-direction: column; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 29px; }
  .call-btn { font-size: 12.5px; padding: 8px 12px; }
}

/* ===== Авторизация по звонку ===== */
.auth-area { display: flex; align-items: center; }
.btn-login {
  background: var(--brand); color: #fff; border: none; border-radius: 10px;
  font-size: 14.5px; font-weight: 700; padding: 9px 18px; cursor: pointer; transition: background .15s ease;
}
.btn-login:hover { background: var(--brand-dark); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-cab { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.user-name { color: var(--ink); font-weight: 700; font-size: 14px; }
.user-role { color: var(--muted); font-size: 11.5px; }
.btn-logout {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 9px; font-size: 13px; padding: 6px 12px; cursor: pointer; transition: all .15s ease;
}
.btn-logout:hover { color: var(--accent); border-color: var(--accent); }

.auth-overlay {
  position: fixed; inset: 0; background: rgba(15, 30, 25, .5);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.auth-overlay[hidden] { display: none; }
.auth-modal {
  position: relative; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow);
  width: 100%; max-width: 400px; padding: 28px 26px;
}
.auth-x {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.auth-modal h3 { margin: 0 0 6px; font-size: 21px; color: var(--ink); }
.auth-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.auth-label { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
.auth-input {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 14px; font-size: 16px; color: var(--ink); background: #fbfbf9; outline: none;
}
.auth-input:focus { border-color: var(--brand); }
.auth-roles { display: flex; gap: 8px; }
.auth-role {
  flex: 1; border: 1px solid var(--line); background: #fbfbf9; border-radius: 10px;
  padding: 9px 4px; font-size: 13px; color: var(--ink); cursor: pointer; transition: all .15s ease;
}
.auth-role.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.auth-submit {
  width: 100%; margin-top: 20px; background: var(--brand); color: #fff; border: none;
  border-radius: 12px; font-size: 16px; font-weight: 700; padding: 13px; cursor: pointer; transition: background .15s ease;
}
.auth-submit:hover { background: var(--brand-dark); }
.auth-submit:disabled { opacity: .6; cursor: default; }
.auth-err { color: var(--accent); font-size: 13px; margin-top: 10px; min-height: 16px; }
.auth-callnum {
  display: block; text-align: center; font-size: 26px; font-weight: 800; color: var(--brand-dark);
  text-decoration: none; letter-spacing: .5px; margin: 8px 0 16px; padding: 14px;
  background: var(--brand-soft); border-radius: 12px;
}
.auth-waiting { text-align: center; color: var(--muted); font-size: 14px; }
.auth-back {
  display: block; margin: 16px auto 0; background: none; border: none;
  color: var(--muted); font-size: 13px; cursor: pointer;
}
.auth-back:hover { color: var(--ink); }

/* ===== Кнопка «Позвонить» (компактная, в шапке-карточке менеджера) ===== */
.call-btn { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }

/* ===== Карточка-ссылка на объект ===== */
.card { cursor: pointer; color: inherit; }
.card .card-cta { pointer-events: none; }

/* ===== Страница объекта ===== */
.obj-page { padding: 24px 0 60px; min-height: 72vh; }
.obj-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.obj-back:hover { color: var(--brand); }
.obj-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; align-items: start; }
.obj-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.obj-media { height: 300px; position: relative; display: grid; place-items: center; color: #fff; background-size: cover; background-position: center; }
.obj-media .card-media-icon { width: 64px; height: 64px; opacity: .9; }
.obj-media .card-badge { position: absolute; top: 14px; left: 14px; }
.obj-info { padding: 24px 26px 28px; }
.obj-complex { color: var(--brand-dark); font-weight: 600; font-size: 15px; }
.obj-title { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; margin: 4px 0 10px; }
.obj-price { font-size: 30px; font-weight: 800; color: var(--ink); margin-bottom: 20px; }
.obj-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin-bottom: 20px; }
.obj-spec { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.obj-spec span { font-size: 12.5px; color: var(--muted); }
.obj-spec b { font-size: 15px; color: var(--ink); font-weight: 600; }
.obj-desc { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 16px; }
.obj-note { font-size: 13.5px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 10px; padding: 11px 14px; }
.obj-chat { position: sticky; top: 84px; }
.obj-chat .chat-embed { margin: 0; max-width: none; }
.obj-chat .chat-embed.is-active { min-height: 520px; max-height: calc(100vh - 110px); }
.obj-loading { padding: 60px 24px; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .obj-grid { grid-template-columns: 1fr; }
  .obj-chat { position: static; }
  .obj-media { height: 220px; }
}

/* ===== Cookie-баннер ===== */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg);
  font-size: 13.5px; line-height: 1.4;
}
.cookie-txt { flex: 1; }
.cookie-more { color: #cfd6d1; text-decoration: underline; }
.cookie-more:hover { color: #fff; }
.cookie-ok {
  flex: none; background: var(--brand); color: #fff; border: none;
  border-radius: 9px; padding: 8px 20px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.cookie-ok:hover { background: var(--brand-dark); }

/* ===== Юридические страницы (Политика) ===== */
.legal { padding: 26px 0 70px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; margin: 12px 0 6px; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15px; color: var(--ink); line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal em { color: var(--muted); font-style: normal; background: #f2f1ec; padding: 1px 6px; border-radius: 5px; }
.legal-note { font-size: 13.5px; color: var(--muted); background: var(--brand-soft); border-radius: 10px; padding: 11px 14px; margin: 14px 0; }
@media (max-width: 560px) { .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; } }

/* ===== Нижнее таб-меню (мобильное / PWA) ===== */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(160%) blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform 0.22s ease;
}
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 8px 4px 7px; color: var(--muted); font-size: 11px; font-weight: 600;
  background: none; border: none; cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.bn-item svg { width: 22px; height: 22px; }
.bn-item.active { color: var(--brand); }
.bn-item:active { opacity: 0.6; }

@media (max-width: 720px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  body.nav-hidden .bottom-nav { transform: translateY(130%); }
}

/* ===== Мобильный фокус на чат ===== */
@media (max-width: 640px) {
  .hero { padding: 18px 0 28px; }
  .hero-pill { font-size: 12px; padding: 6px 13px; margin-bottom: 12px; }
  .hero-title { font-size: 27px; }
  .chat-embed { margin-top: 16px; }
}

/* ===== Полноэкранный звонок на мобиле (FaceTime-стиль) ===== */
@media (max-width: 640px) {
  .call-overlay { padding: 0; align-items: stretch; z-index: 100; }
  .call-card {
    max-width: none; width: 100%; min-height: 100dvh; border-radius: 0;
    display: flex; flex-direction: column;
    padding: max(28px, calc(env(safe-area-inset-top) + 16px)) 20px calc(20px + env(safe-area-inset-bottom));
  }
  .call-av { width: 118px; height: 118px; margin: 6vh auto 16px; }
  .call-name { font-size: 24px; }
  .call-status { font-size: 15px; }
  .call-log { flex: 1 1 auto; max-height: none; margin: 12px 0; }
  .call-mic { margin-top: 8px; padding: 16px; }
}
