/* =========================================================================
   РОЙ — прототип сайта агентства коммерческой недвижимости
   Дизайн-система: «соты» — каждая ячейка как отдельное помещение.
   Палитра предварительная, может быть заменена под фирменный стиль.
   ========================================================================= */

:root {
  /* Цвета */
  --bg: #edeff1;          /* бетон — светлая основа */
  --surface: #ffffff;
  --surface-2: #f6f7f8;
  --ink: #0f1b2d;         /* графитово-синий — типографика */
  --ink-2: #2a3647;
  --muted: #5b6675;
  --muted-2: #8a93a0;
  --line: #d9dde2;
  --line-2: #e7e9ec;
  --accent: #f0a92e;      /* мёд — единственный акцент */
  --accent-hi: #ffc35a;
  --accent-ink: #7a4f00;
  --accent-soft: #fdf1da;
  --navy: #0f1b2d;
  --navy-2: #17263d;
  --navy-3: #22344f;
  --on-navy: #e9edf3;
  --on-navy-muted: #9aa7b8;
  --ok: #1f7a52;
  --ok-soft: #e3f3ea;
  --err: #b4380b;
  --err-soft: #fbe9e1;
  --water: #c9d8e6;
  --land: #f3f4f2;

  /* Типографика */
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Геометрия */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --shadow-1: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .05);
  --shadow-2: 0 10px 30px rgba(15, 27, 45, .12), 0 2px 6px rgba(15, 27, 45, .06);
  --shadow-3: 0 24px 60px rgba(15, 27, 45, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; }
p { margin: 0; }
/* Переносы: заголовки балансируются, в абзацах нет одиноких слов в последней строке */
h1, h2, h3, h4, .h1, .h2, .h3, .hero__title { text-wrap: balance; }
p, li, dd, blockquote, .lead { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.no-scroll { overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Типографическая шкала ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.04;
}
.h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 5.6vw, 76px); letter-spacing: -.025em; line-height: 1.02; }
.h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -.02em; line-height: 1.08; }
.h3 { font-family: var(--f-body); font-weight: 650; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.01em; }
.h4 { font-weight: 650; font-size: 18px; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); line-height: 1.5; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum"; letter-spacing: -.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 10px; height: 11px; background: var(--accent); clip-path: var(--hex); }
.on-dark .eyebrow { color: var(--on-navy-muted); }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 600; font-size: 15px; letter-spacing: .005em; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink); }
.btn--accent:hover { --btn-bg: var(--accent-hi); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.btn--ghost-light:hover { --btn-bd: #fff; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Демо-плашка ---------- */
.demo-bar {
  background: var(--accent); color: var(--ink);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em;
}
.demo-bar .container { display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 30px; text-align: center; }
.demo-bar b { font-weight: 700; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 239, 241, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.92); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 34px; height: 38px; position: relative; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__word { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: .02em; line-height: 1; }
.logo__sub { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 400; }
.nav { display: flex; gap: 0; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 9px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(15,27,45,.06); color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 2px; background: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header__phone { font-family: var(--f-mono); font-size: 14px; font-weight: 500; white-space: nowrap; }
.header__phone small { display: block; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
/* Кнопка звонка в шапке — только на телефонах, где номер не помещается */
.header__call { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); place-items: center; color: var(--ink); flex: none; }
.header__call svg { width: 20px; height: 20px; }
.header__btn-short { display: none; }
/* Мессенджеры */
.msgr { display: flex; flex-wrap: wrap; gap: 8px; }
.msgr__btn { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface); white-space: nowrap; text-decoration: none; }
.msgr__btn:hover { border-color: var(--ink); }
/* На тёмном и светлом фоне (подвал, меню, блок заявки): цвет текста берётся от блока */
.msgr--light .msgr__btn { background: transparent; color: inherit; border-color: currentColor; opacity: .85; }
.msgr--light .msgr__btn:hover { opacity: 1; }
.msgr__btn.is-pending { border-style: dashed; opacity: .55; cursor: default; }
.msgr__btn.is-pending::after { content: "скоро"; margin-left: 6px; font-size: 11px; font-weight: 400; }
.footer .msgr { margin-top: 16px; }
.contact-list dd .msgr { margin-top: 6px; font-weight: 400; }
.contact-legal { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px 22px; }
.contact-legal p { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.contact-sub { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.burger { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); border: 1.5px solid var(--line); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .25s var(--ease), background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; top: 0; z-index: 60; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; padding: 18px var(--gutter) 28px;
  transform: translateY(-100%); transition: transform .35s var(--ease); visibility: hidden;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; height: 54px; margin-bottom: 18px; }
.mobile-menu__top .logo__sub { color: var(--on-navy-muted); }
.mobile-menu .burger { display: inline-flex; border-color: rgba(255,255,255,.25); }
.mobile-menu .burger span::before, .mobile-menu .burger span::after { background: #fff; }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 22px; font-weight: 500; }
.mobile-menu nav a.is-active { color: var(--accent); }
.mobile-menu nav a svg { width: 20px; height: 20px; opacity: .5; }
.mobile-menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.mobile-menu__foot .tel { font-family: var(--f-mono); font-size: 20px; }

/* ---------- Подвал ---------- */
.footer { background: var(--navy); color: var(--on-navy); padding: 72px 0 32px; margin-top: 0; }
.footer a:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .logo__sub { color: var(--on-navy-muted); }
.footer h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer__about { color: var(--on-navy-muted); margin-top: 20px; max-width: 34ch; font-size: 15px; }
.footer__contact { font-family: var(--f-mono); font-size: 15px; }
.footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13px; color: var(--on-navy-muted); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__meta-note { margin-top: 16px; max-width: 100ch; color: var(--on-navy-muted); font-size: 12px; line-height: 1.5; }
.placeholder-note { font-family: var(--f-mono); font-size: 11px; letter-spacing: .03em; color: var(--muted-2); }
.on-dark .placeholder-note, .footer .placeholder-note { color: #7f8da0; }

/* ---------- Секции ---------- */
main { display: block; min-height: 60vh; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--white { background: var(--surface); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy .lead, .section--navy .muted { color: var(--on-navy-muted); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head > div { max-width: 760px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 16px; }

.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.page-head .lead { margin-top: 18px; }
.page-head .eyebrow { margin-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 22px; font-family: var(--f-mono); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }

/* Плашка «демо» */
.demo-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px dashed #e4b765;
  white-space: nowrap;
}
.on-dark .demo-tag, .section--navy .demo-tag { background: rgba(240,169,46,.12); color: var(--accent-hi); border-color: rgba(240,169,46,.4); }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); border: 1px dashed #e4b765;
  font-size: 14px; color: var(--ink-2);
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-ink); }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.page-enter { animation: pageIn .45s var(--ease) both; }
/* Только прозрачность: transform на main сломал бы position: fixed у панели фильтров и нижней панели объекта */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Чипы, бейджи ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2);
  white-space: nowrap;
}
.badge--rent { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge--sale { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.badge--glass { background: rgba(255,255,255,.92); border-color: transparent; color: var(--ink); }
.badge--database { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.uk-soon { vertical-align: middle; height: 30px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--ink-2); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--sm { min-height: 32px; padding: 0 10px 0 12px; font-size: 13px; }
.chip--x svg { width: 14px; height: 14px; opacity: .6; }
.chip--x:hover svg { opacity: 1; }

/* Сегментированный переключатель */
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); gap: 2px; }
.seg button { min-height: 38px; padding: 0 16px; border-radius: 4px; font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s; }
.seg button svg { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg--dark { background: var(--navy-2); border-color: var(--navy-3); }
.seg--dark button { color: var(--on-navy-muted); }
.seg--dark button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }

/* ---------- Поля форм ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field__label .opt { font-weight: 400; color: var(--muted-2); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.textarea { padding: 12px 14px; min-height: 104px; resize: vertical; line-height: 1.5; }
.select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f1b2d' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9c0c8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(240,169,46,.35); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err); background: #fffaf8; }
.field__error { font-size: 13px; color: var(--err); display: flex; gap: 6px; align-items: flex-start; }
.field__hint { font-size: 12px; color: var(--muted); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range .input { font-family: var(--f-mono); font-size: 15px; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap__unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted-2); pointer-events: none; font-family: var(--f-mono); }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; width: 22px; height: 22px; border-radius: 5px; border: 1.5px solid #b9c0c8; background: #fff; display: grid; place-items: center; margin-top: 0; transition: background .15s, border-color .15s; }
.check__box svg { width: 14px; height: 14px; color: var(--ink); opacity: 0; transform: scale(.6); transition: .15s; }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 3px solid var(--accent); outline-offset: 2px; }
.check input[aria-invalid="true"] + .check__box { border-color: var(--err); }
.check a { text-decoration: underline; text-underline-offset: 2px; }

/* Радио-плитки (тип обращения) */
.tiles { display: grid; grid-template-columns: repeat(var(--tile-columns, 4), 1fr); gap: 8px; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; inset: 0; }
.tile span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 600; font-size: 15px; background: var(--surface);
  transition: .15s; cursor: pointer;
}
.tile input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Карточка объекта ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-cases__more, .home-reviews__more { display: none; }
.grid-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r);
  overflow: hidden; border: 1px solid var(--line-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe3e8; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__badges { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.pcard__title { font-weight: 650; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__addr { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.pcard__addr svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }
.pcard__specs { display: flex; gap: 0; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.pcard__specs > div { flex: 1; min-width: 0; }
.pcard__specs > div:first-child { flex: 0 0 auto; }
.pcard__specs > div + div { padding-left: 14px; margin-left: 14px; border-left: 1px solid var(--line-2); }
.pcard__specs dt { font-size: 11px; color: var(--muted-2); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.pcard__specs dd { margin: 2px 0 0; font-family: var(--f-mono); font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__specs dd small { font-weight: 400; color: var(--muted); font-size: 12px; }
.pcard__specs dt.pcard__ppm-label { margin-top: 8px; }
.pcard__specs dd.pcard__ppm { margin-top: 2px; font-size: 16px; font-weight: 600; color: var(--ink); }
.pcard__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); position: relative; z-index: 2; margin-top: 2px; }
.pcard__more svg { width: 16px; height: 16px; transition: transform .2s; }
.pcard:hover .pcard__more svg { transform: translateX(3px); }
.pcard--database .pcard__media img { filter: grayscale(.35); }
.pcard--database .pcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, .56);
  pointer-events: none;
}
.pcard--database .pcard__badges { z-index: 2; }
.pcard--database .pcard__more { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Спрос на помещения ---------- */
.demand-head { padding-bottom: clamp(32px, 4vw, 48px); }
.demand-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.demand-head__row > div { max-width: 820px; }
.demand-head__row .btn { flex: none; }
.demand-note { max-width: 900px; margin-top: 26px; }
.demand-section { padding-top: clamp(36px, 5vw, 64px); }
.demand-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.demand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.demand-card { min-width: 0; padding: 26px 24px 20px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color .2s; }
.demand-card:hover { border-color: var(--ink-2); }
.demand-card__head h3 { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.1; letter-spacing: -.025em; }
.demand-card__head time { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.demand-card__specs { display: grid; gap: 8px; margin: 30px 0 28px; }
.demand-card__specs > div { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.25fr); gap: 14px; align-items: baseline; }
.demand-card__specs dt { color: var(--muted); font-size: 14px; }
.demand-card__specs dd { min-width: 0; margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demand-card__manager { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 13px; align-items: center; margin: 0 0 20px; }
.demand-card__manager-photo { display: block; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.demand-card__manager-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.demand-card__manager-photo--lead img { object-position: center 32%; }
.demand-card__manager-info { min-width: 0; display: grid; gap: 2px; }
.demand-card__manager-info > a { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.demand-card__manager-info > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.demand-card__manager-info > small { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.demand-card__foot { min-height: 34px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: flex-end; }
.demand-card__offer { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; text-align: right; }
.demand-card__offer:hover { text-decoration: underline; text-underline-offset: 3px; }
.demand-card__offer svg { width: 15px; height: 15px; }

/* Плейсхолдер изображения при ошибке загрузки */
.img-fallback { position: relative; }
.img-fallback::after {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #e3e6ea 0 12px, #dde1e6 12px 24px);
  color: var(--muted); font-family: var(--f-mono); font-size: 12px; text-align: center; padding: 10px;
}

/* ---------- Карточка менеджера ---------- */
.mcard { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); position: relative; transition: transform .25s var(--ease), box-shadow .25s; }
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.mcard__photo { aspect-ratio: 4 / 4.4; overflow: hidden; background: #d8dde3; position: relative; }
.mcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: grayscale(.25); transition: filter .3s, transform .6s var(--ease); }
.mcard:hover .mcard__photo img { filter: none; transform: scale(1.03); }
/* Зерно (noise) поверх настоящих фото сотрудников */
.mcard__photo:has(img:not(.ph))::after, .mgr-hero__photo:has(img:not(.ph))::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.mcard__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mcard__name { font-weight: 650; font-size: 18px; letter-spacing: -.01em; }
.mcard__name a::after { content: ""; position: absolute; inset: 0; }
.mcard__role { font-size: 14px; color: var(--muted); }
.mcard__spec { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.mcard__foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.mcard__foot--link { justify-content: flex-end; }
.mcard__foot .pcard__more { font-size: 14px; color: var(--ink); }

/* ---------- Страница команды ---------- */
.team-groups { padding-bottom: 96px; display: grid; gap: clamp(56px, 7vw, 88px); }
.team-group__head { margin-bottom: clamp(24px, 3vw, 36px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.team-group__head .h2 { max-width: 980px; }
.team-leadership { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); gap: 24px; align-items: stretch; }
.team-leadership__cards { display: grid; }
.team-leadership__cards .mcard { height: 100%; }
.team-message { margin: 0; height: 100%; box-sizing: border-box; padding: clamp(24px, 2.5vw, 36px); background: var(--navy); color: #fff; border-radius: var(--r); position: relative; overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.team-message::after { content: ""; position: absolute; width: 190px; height: 220px; right: -66px; bottom: -84px; background: var(--accent); opacity: .1; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.team-message blockquote { margin: 0; position: relative; z-index: 1; align-self: center; }
.team-message .eyebrow { color: var(--accent); margin-bottom: 16px; }
.team-message p { max-width: 72ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; color: var(--on-navy); }
.team-message p + p { margin-top: 12px; }
.team-message figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 3px; position: relative; z-index: 1; }
.team-message figcaption b { font-size: 16px; }
.team-message figcaption span { font-size: 13px; color: var(--on-navy-muted); }
.team-join { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(32px, 6vw, 88px); padding: 40px 32px; border-radius: var(--r-lg); background: var(--navy); color: #fff; }
.team-join__intro { min-width: 0; padding-top: clamp(0px, 1vw, 12px); }
.team-join__intro .eyebrow { color: var(--accent); }
.team-join__intro .h2 { margin-top: 18px; max-width: 12ch; }
.team-join__intro p { max-width: 42ch; margin-top: 24px; color: var(--on-navy-muted); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
.team-join__form { min-width: 0; }
.team-join__form > .muted { max-width: 52ch; margin: 8px 0 24px; line-height: 1.5; }

/* ---------- Главная: hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(130px, 13vw, 170px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(240,169,46,.14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(80,120,180,.18), transparent 60%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(36px, 5.4vw, 80px); letter-spacing: -.03em; line-height: 1.0; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { margin-top: 26px; font-size: clamp(17px, 1.45vw, 20px); color: var(--on-navy-muted); max-width: 48ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__meta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--f-mono); font-size: 13px; color: var(--on-navy-muted); }
.hero__meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero__meta span::before { content: ""; width: 6px; height: 7px; clip-path: var(--hex); background: var(--accent); }

/* Соты: фирменный элемент */
.comb { --w: clamp(104px, 11.2vw, 168px); --g: 8px; --h: calc(var(--w) * 1.1547); position: relative; width: calc(var(--w) * 3 + var(--g) * 2); height: calc(var(--h) * 2.5 + var(--g) * 1.8); margin-left: auto; }
.comb__cell {
  position: absolute; width: var(--w); height: var(--h); clip-path: var(--hex); overflow: hidden; background: var(--navy-3);
  opacity: 0; transform: scale(.85); animation: cellIn .8s var(--ease) forwards;
}
.comb__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.comb__cell:hover img { transform: scale(1.08); }
.comb__cell--accent { background: var(--accent); color: var(--ink); display: grid; place-items: center; text-align: center; }
.comb__cell--accent b { display: block; font-family: var(--f-display); font-weight: 600; font-size: calc(var(--w) * .3); line-height: 1; }
.comb__cell--accent span { display: block; font-size: calc(var(--w) * .078); font-weight: 600; line-height: 1.25; margin-top: 6px; padding: 0 16%; }
.comb__cell--accent .demo-tag { margin-top: 8px; font-size: 9px; padding: 2px 5px; background: rgba(255,255,255,.4); border-color: rgba(15,27,45,.25); color: var(--ink); }
.comb__cell--line { background: transparent; }
.comb__cell--line::before { content: ""; position: absolute; inset: 0; clip-path: var(--hex); background: rgba(255,255,255,.08); }
/* Расположение ячеек: ряды по 2-3 со смещением */
.comb__cell:nth-child(1) { left: calc(var(--w) * .5 + var(--g) * .5); top: 0; animation-delay: .05s; }
.comb__cell:nth-child(2) { left: calc(var(--w) * 1.5 + var(--g) * 1.5); top: 0; animation-delay: .12s; }
.comb__cell:nth-child(3) { left: 0; top: calc(var(--h) * .75 + var(--g) * .9); animation-delay: .19s; }
.comb__cell:nth-child(4) { left: calc(var(--w) + var(--g)); top: calc(var(--h) * .75 + var(--g) * .9); animation-delay: .26s; }
.comb__cell:nth-child(5) { left: calc(var(--w) * 2 + var(--g) * 2); top: calc(var(--h) * .75 + var(--g) * .9); animation-delay: .33s; }
.comb__cell:nth-child(6) { left: calc(var(--w) * .5 + var(--g) * .5); top: calc(var(--h) * 1.5 + var(--g) * 1.8); animation-delay: .40s; }
.comb__cell:nth-child(7) { left: calc(var(--w) * 1.5 + var(--g) * 1.5); top: calc(var(--h) * 1.5 + var(--g) * 1.8); animation-delay: .47s; }
@keyframes cellIn { to { opacity: 1; transform: none; } }

/* Быстрый подбор */
.quick { position: relative; z-index: 3; margin-top: calc(clamp(96px, 10vw, 130px) * -1); }
.quick__card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 22px; }
.quick__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.quick__head h2 { font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.quick__grid { display: grid; grid-template-columns: 1.1fr 1.1fr 1.3fr auto; gap: 12px; align-items: end; }
.quick__grid .btn { min-height: 48px; }

/* О компании (главная) */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.dirs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dirs li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dirs .hexicon { width: 44px; height: 50px; }
.dirs h3 { font-size: 18px; font-weight: 650; }
.dirs p { color: var(--muted); margin-top: 4px; font-size: 15px; }
.hexicon { display: grid; place-items: center; clip-path: var(--hex); background: var(--ink); color: var(--accent); }
.hexicon svg { width: 20px; height: 20px; }
.hexicon--accent { background: var(--accent); color: var(--ink); }
.hexicon--light { background: var(--surface-2); color: var(--ink); }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: clamp(40px, 5vw, 64px); }
.principles > div { background: var(--surface); padding: 26px 22px; }
.principles h3 { font-size: 17px; font-weight: 650; margin: 14px 0 6px; }
.principles p { color: var(--muted); font-size: 15px; }

/* Табы */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }

/* Услуги */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service {
  position: relative; border-radius: var(--r-lg); overflow: hidden; padding: clamp(28px, 4vw, 48px); min-height: 460px;
  display: flex; flex-direction: column; isolation: isolate;
}
.service--dark { background: var(--navy); color: #fff; }
.service--accent { background: var(--accent); color: var(--ink); }
.service__bg { position: absolute; inset: 0; z-index: -1; }
.service__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; mix-blend-mode: luminosity; }
.service--accent .service__bg img { opacity: .16; mix-blend-mode: multiply; }
.service h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.02em; margin-top: 18px; }
.service p { margin-top: 14px; max-width: 46ch; font-size: 16px; opacity: .85; }
.service ul { margin: 22px 0 28px; display: grid; gap: 10px; }
.service li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.service li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.service .btn { margin-top: auto; align-self: flex-start; }
.service .eyebrow { color: inherit; opacity: .75; }
.service--accent .eyebrow::before { background: var(--ink); }

/* Кейсы */
.ccard { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.ccard:hover { border-color: var(--ink); }
.ccard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; }
.ccard__media .demo-tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); }
.ccard__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ccard__type { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ccard__title { font-size: 19px; font-weight: 650; line-height: 1.25; }
.ccard__result { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); }
.ccard__result b { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; margin-bottom: 4px; }

.case-full { display: grid; grid-template-columns: .95fr 1.05fr; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.case-full + .case-full { margin-top: 24px; }
.case-full__media { position: relative; min-height: 320px; }
.case-full__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-full__media .demo-tag { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,.94); }
.case-full__body { padding: clamp(24px, 3.5vw, 44px); }
.case-full__steps { display: grid; gap: 18px; margin-top: 24px; }
.case-full__steps > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.case-full__steps dt { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.case-full__steps dd { margin: 0; color: var(--ink-2); }
.case-full__mgr { display: flex; gap: 12px; align-items: center; margin-top: 24px; padding: 12px; border-radius: var(--r); background: var(--surface-2); }
.case-full__mgr img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.case-full__mgr a { font-weight: 600; }
.case-full__mgr a:hover { text-decoration: underline; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--surface); border-radius: var(--r); padding: 26px; border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 18px; }
.review__q { font-size: 16px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; }
.review__q.is-open { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.review__more { align-self: flex-start; margin-top: -10px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__ava { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--line-2); color: var(--ink); display: grid; place-items: center; font-weight: 600; }
.review__who { min-width: 0; flex: 1; font-size: 14px; }
.review__who b { display: block; }
.review__who span { color: var(--muted); }
.review__reply { background: var(--surface-2); border-radius: calc(var(--r) / 2); padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.review__reply b { display: block; margin-bottom: 4px; color: var(--ink); }
.review__reply p { margin: 0; }
.review__src { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.review__src > a, .review__src > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.review__src > a:hover { color: var(--ink); }
/* Звёзды и отметка источника 2ГИС */
.stars { color: #f5a623; letter-spacing: 1px; white-space: nowrap; font-size: 16px; line-height: 1; }
.stars__off { color: var(--line-2); }
.gis-mark { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 6px; background: #19aa1e; color: #fff; font-weight: 700; font-size: 12px; line-height: 1.2; letter-spacing: .02em; white-space: nowrap; }
.gis-mark--lg { font-size: 18px; padding: 8px 12px; border-radius: 10px; }
.gis-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 24px; padding: 20px 24px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.gis-summary__score { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.gis-summary__score > b { font-size: 40px; line-height: 1; font-weight: 700; }
.gis-summary__score .stars { font-size: 20px; display: block; margin-bottom: 4px; }
.gis-summary__score span:not(.stars):not(.stars__off) { color: var(--muted); font-size: 14px; }
.gis-summary__pending { color: var(--muted); font-size: 14px; }
.gis-note { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; color: var(--muted); font-size: 14px; max-width: 760px; }
.gis-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* CTA / форма на главной */
.cta-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.cta-block .h2 { margin-top: 18px; }
.cta-block__aside { display: grid; gap: 14px; margin-top: 32px; }
.cta-block__aside a { display: flex; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: 17px; }
.cta-block__aside svg { width: 18px; height: 18px; color: var(--accent); }
.form-card { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.form-demo-note { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.form-demo-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.form-context { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14px; }
.form-context__label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.form-context__position { color: var(--muted); }
.form-context ul { display: flex; flex-wrap: wrap; gap: 6px; }
.form-context li { padding: 4px 9px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; }
.form-context li b { font-weight: 600; }
.form-context__obj { display: flex; gap: 12px; align-items: center; }
.form-context__obj img { width: 56px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }
.form-context__obj small { display: block; font-family: var(--f-mono); color: var(--muted); font-size: 12px; }

/* Результат формирования заявки */
.lead-result { display: flex; flex-direction: column; gap: 18px; }
.lead-result__icon { width: 56px; height: 64px; clip-path: var(--hex); background: var(--accent); display: grid; place-items: center; }
.lead-result__icon svg { width: 26px; height: 26px; }
.lead-result h3 { font-family: var(--f-display); font-weight: 500; font-size: 26px; letter-spacing: -.02em; }
.pipeline { display: grid; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.pipeline li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; font-size: 14px; background: var(--surface); }
.pipeline li + li { border-top: 1px solid var(--line-2); }
.pipeline .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.pipeline .dot svg { width: 14px; height: 14px; }
.pipeline .is-done .dot { background: var(--ok-soft); color: var(--ok); }
.pipeline .is-off .dot { background: var(--surface-2); color: var(--muted-2); border: 1.5px dashed var(--muted-2); }
.pipeline .is-off { background: var(--surface-2); color: var(--muted); }
.pipeline small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: right; }
.payload { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.payload summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14px; background: var(--surface-2); display: flex; justify-content: space-between; align-items: center; list-style: none; }
.payload summary::-webkit-details-marker { display: none; }
.payload summary svg { width: 16px; height: 16px; transition: transform .2s; }
.payload[open] summary svg { transform: rotate(180deg); }
.payload table { width: 100%; border-collapse: collapse; font-size: 13px; }
.payload td { padding: 8px 14px; border-top: 1px solid var(--line-2); vertical-align: top; }
.payload td:first-child { width: 38%; color: var(--muted); font-family: var(--f-mono); font-size: 12px; }
.payload pre { margin: 0; padding: 14px; background: var(--navy); color: #cfe0f5; font-family: var(--f-mono); font-size: 12px; line-height: 1.5; overflow: auto; max-height: 320px; white-space: pre-wrap; word-break: break-word; }
.payload__tabs { display: flex; gap: 4px; padding: 8px 10px 0; background: var(--surface); border-top: 1px solid var(--line-2); }
.payload__tabs button { font-size: 13px; padding: 6px 10px; border-radius: 4px 4px 0 0; color: var(--muted); font-weight: 600; }
.payload__tabs button[aria-pressed="true"] { color: var(--ink); background: var(--surface-2); }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 17, 28, .62); backdrop-filter: blur(4px); animation: fadeIn .25s both; }
.modal__dialog {
  position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  padding: clamp(22px, 3vw, 36px); animation: modalIn .35s var(--ease) both;
}
.modal__close { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.modal__close:hover { background: var(--line-2); }
.modal__close svg { width: 18px; height: 18px; }
.modal__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; padding-right: 48px; }
.modal__sub { color: var(--muted); margin-top: 8px; margin-bottom: 22px; font-size: 15px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(8, 13, 22, .94); display: grid; grid-template-rows: auto 1fr auto; animation: fadeIn .2s both; color: #fff; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-family: var(--f-mono); font-size: 13px; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 64px; min-height: 0; }
.lightbox__stage { overflow: hidden; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); object-fit: contain; border-radius: 4px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; }
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 10px; } .lightbox__nav--next { right: 10px; }
.lightbox__thumbs { display: flex; gap: 8px; justify-content: center; padding: 14px; overflow-x: auto; }
.lightbox__thumbs button { width: 72px; height: 52px; border-radius: 4px; overflow: hidden; opacity: .5; flex: none; border: 2px solid transparent; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }

/* Тост */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 99; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); font-size: 14px; box-shadow: var(--shadow-3); opacity: 0; transition: .3s var(--ease); pointer-events: none; max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; }
.toast.is-on { opacity: 1; transform: translateX(-50%); }
.toast svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- Каталог ---------- */
.catalog-mode { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 24px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.catalog-mode__item { min-height: 48px; padding: 8px 16px; display: flex; align-items: center; gap: 14px; justify-content: space-between; border-radius: calc(var(--r-sm) - 2px); font-weight: 600; color: var(--muted); }
.catalog-mode__item b { font-size: 13px; font-weight: 600; }
.catalog-mode__item.is-active { background: var(--ink); color: #fff; }
.catalog-database-note { max-width: 780px; margin-top: 18px; }
.catalog-loading { min-height: 220px; display: grid; place-items: center; color: var(--muted); font-family: var(--f-mono); }
.catalog { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 80px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border-radius: var(--r); border: 1px solid var(--line-2); max-height: calc(100vh - var(--header-h) - 32px); display: flex; flex-direction: column; }
.filters__head { display: none; }
.filters__body { padding: 20px; overflow-y: auto; overflow-x: hidden; display: grid; gap: 22px; }
.filters__group { display: grid; gap: 10px; }
.filters__group + .filters__group { padding-top: 20px; border-top: 1px solid var(--line-2); }
.filters__title { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; font-family: var(--f-mono); color: var(--ink-2); }
.filters__title button { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.filters__foot { padding: 14px 20px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.filters .seg { width: 100%; }
.filters .seg button { flex: 1; justify-content: center; }
.checklist { display: grid; gap: 4px; }
.checklist label { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: var(--r-sm); cursor: pointer; font-size: 15px; transition: background .12s; }
.checklist label:hover { background: var(--surface-2); }
.checklist .count { margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: var(--muted-2); }
.checklist input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checklist input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.checklist input:checked + .check__box svg { opacity: 1; transform: none; }
.checklist input:focus-visible + .check__box { outline: 3px solid var(--accent); outline-offset: 2px; }
.range-error { font-size: 13px; color: var(--err); background: var(--err-soft); padding: 8px 10px; border-radius: var(--r-sm); }
.geo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.geo-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line); text-align: left; font-size: 13px; font-weight: 600; line-height: 1.25; transition: .15s; background: var(--surface); }
.geo-btn svg { width: 20px; height: 20px; }
.geo-btn:hover { border-color: var(--ink-2); }
.geo-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.geo-btn[aria-pressed="true"] svg { color: var(--accent); }
.geo-state { font-size: 13px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--accent-soft); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.geo-state button { font-weight: 600; text-decoration: underline; flex: none; }

.results-bar { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.results-count { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.results-count span { color: var(--muted); }
.results-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.results-tools .select { min-height: 42px; width: auto; font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; min-height: 0; }
.filters-open { display: none; }
.results-note { margin-bottom: 18px; }
.catalog-more { display: flex; justify-content: center; margin-top: 28px; }
.empty {
  text-align: center; padding: clamp(40px, 6vw, 72px) 24px; background: var(--surface); border-radius: var(--r); border: 1.5px dashed var(--line);
  display: grid; justify-items: center; gap: 14px;
}
.empty .hexicon { width: 64px; height: 72px; }
.empty .hexicon svg { width: 28px; height: 28px; }
.empty h3 { font-family: var(--f-display); font-weight: 500; font-size: 24px; }
.empty p { color: var(--muted); max-width: 46ch; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.cant-find { margin-top: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--navy); color: #fff; overflow: hidden; position: relative; }
.cant-find .hexicon { width: 64px; height: 72px; background: var(--accent); color: var(--ink); }
.cant-find .hexicon svg { width: 28px; height: 28px; }
.cant-find h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(19px, 2vw, 25px); letter-spacing: -.02em; }
.cant-find p { color: var(--on-navy-muted); margin-top: 6px; }

/* ---------- Карта ---------- */
.map { position: relative; border-radius: var(--r); overflow: hidden; background: var(--land); border: 1px solid var(--line-2); user-select: none; -webkit-user-select: none; touch-action: none; }
.map--catalog { height: min(640px, 72vh); }
.map--mini { height: 340px; touch-action: pan-y; }
.map svg.map__svg { width: 100%; height: 100%; display: block; cursor: grab; }
.map.is-panning svg.map__svg { cursor: grabbing; }
.map.mode-radius svg.map__svg, .map.mode-polygon svg.map__svg { cursor: crosshair; }
.map__district { fill: #e9ece8; stroke: #c9cfd6; stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill .2s; }
.map__district.is-active { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.map__district-label { font-family: var(--f-mono); fill: #8a93a0; text-transform: uppercase; letter-spacing: .08em; pointer-events: none; }
.map__water { fill: var(--water); }
.map__river { fill: none; stroke: var(--water); stroke-linecap: round; stroke-linejoin: round; }
.map__road { fill: none; stroke: #fff; stroke-linecap: round; }
.map__road--main { stroke: #fbe3b5; }
.map__tiles { pointer-events: none; }
.map__district--over { fill: rgba(240,169,46,.12); stroke-dasharray: 8 6; pointer-events: none; }
.map__disclaimer a { color: inherit; text-decoration: underline; }
/* Логотип Яндекса: по условиям Tiles API — в углу карты, без своих отступов (они уже в файле), кликабельный */
.map__logo { position: absolute; left: 0; bottom: 0; z-index: 2; display: none; line-height: 0; }
.map--logo .map__logo { display: block; }
.map__grid { stroke: rgba(15,27,45,.045); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map__label-water { font-family: var(--f-body); font-style: italic; fill: #7d97b0; pointer-events: none; }
.map__marker { cursor: pointer; }
.map__marker .hx { fill: var(--ink); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill .15s; }
.map__marker.is-sale .hx { fill: var(--accent); }
.map__marker text { font-family: var(--f-mono); font-weight: 700; fill: #fff; pointer-events: none; }
.map__marker.is-sale text { fill: var(--ink); }
.map__marker:hover .hx, .map__marker.is-selected .hx { fill: #c2410c; }
.map__marker.is-selected text, .map__marker:hover text { fill: #fff; }
.map__marker.is-database .hx { fill: var(--muted-2); stroke: #fff; }
.map__marker.is-database.is-sale .hx { fill: var(--line); stroke: var(--muted); }
.map__marker.is-database text { fill: #fff; }
.map__marker.is-database.is-sale text { fill: var(--ink-2); }
.map__marker.is-database:hover .hx, .map__marker.is-database.is-selected .hx { fill: var(--muted); stroke: #fff; }
.map__marker.is-database:hover text, .map__marker.is-database.is-selected text { fill: #fff; }
.map__marker.is-dim { opacity: .28; }
.map__marker--office .hx { fill: var(--accent); }
/* Группа близких объектов: шестиугольник с числом и полупрозрачным контуром */
.map__cluster .hx-ring { fill: var(--ink); opacity: .2; transition: opacity .15s; }
.map__cluster.is-sale .hx-ring { fill: var(--accent); opacity: .35; }
.map__cluster.is-database .hx-ring, .map__cluster.is-database.is-sale .hx-ring { fill: var(--muted-2); opacity: .16; }
.map__cluster:hover .hx-ring { opacity: .35; }
.map__marker:focus-visible { outline: none; }
.map__marker:focus-visible .hx { stroke: #c2410c; stroke-width: 3; }
.map__geo { fill: rgba(240,169,46,.18); stroke: var(--accent); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.map__geo--draft { fill: rgba(240,169,46,.1); stroke-dasharray: 6 5; }
.map__geo-pt { fill: #fff; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.map__geo-pt--first { fill: var(--accent); cursor: pointer; }
.map__geo-center { fill: var(--ink); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.map__controls { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; z-index: 2; }
.map__controls button { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-1); display: grid; place-items: center; border: 1px solid var(--line-2); }
.map__controls button:hover { background: var(--surface-2); }
.map__controls svg { width: 18px; height: 18px; }
.map__disclaimer { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-family: var(--f-mono); font-size: 11px; color: var(--muted); background: rgba(255,255,255,.88); padding: 5px 8px; border-radius: 4px; max-width: calc(100% - 24px); }
.map__legend { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 12px; font-size: 12px; background: rgba(255,255,255,.92); padding: 6px 10px; border-radius: 4px; box-shadow: var(--shadow-1); }
.map__legend span { display: inline-flex; align-items: center; gap: 6px; }
.map__legend-hx { width: 12px; height: 14px; flex: none; }
.map__legend-hx path { fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; }
.map__legend-hx.is-sale path { fill: var(--accent); }
.map__legend-hx.is-database path { fill: var(--muted-2); stroke: var(--muted); }
.map__legend-hx.is-database.is-sale path { fill: var(--line); stroke: var(--muted); }
.map__legend-hx.is-group { width: 16px; height: 18px; }
.map__legend-hx text { font-family: var(--f-mono); font-size: 9px; font-weight: 700; fill: #fff; }
.map__toolbar { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 3; background: var(--ink); color: #fff; border-radius: var(--r); padding: 10px 12px; box-shadow: var(--shadow-3); display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; width: max-content; max-width: calc(100% - 24px); font-size: 14px; }
.map__toolbar .hint { color: var(--on-navy-muted); }
.map__toolbar input[type="range"] { accent-color: var(--accent); width: 140px; }
.map__toolbar .btn--sm { min-height: 34px; }
.map__toolbar .mono { color: var(--accent); font-weight: 600; min-width: 52px; display: inline-block; }
.map-popup { position: absolute; z-index: 4; width: 316px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-3); overflow: hidden; animation: modalIn .25s var(--ease) both; }
.map-popup__media { position: relative; height: 130px; }
.map-popup__media img { width: 100%; height: 100%; object-fit: cover; }
.map-popup__media .pcard__badges { left: 10px; top: 10px; right: 46px; flex-wrap: nowrap; overflow: hidden; }
.map-popup__media .badge { flex-shrink: 0; padding: 0 8px; }
.map-popup__media .badge--glass { flex-shrink: 1; min-width: 0; display: block; line-height: 24px; overflow: hidden; text-overflow: ellipsis; }
.map-popup__close { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; z-index: 2; }
.map-popup__close svg { width: 14px; height: 14px; }
.map-popup__body { padding: 14px; display: grid; gap: 8px; }
.map-popup__title { font-weight: 650; line-height: 1.25; }
.map-popup__meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 14px; font-weight: 600; }
.map-popup__meta span:first-child { color: var(--muted); font-weight: 400; }
/* Список объектов в одной точке (группа на максимальном приближении) */
.map-popup--list .map-popup__body { padding-top: 16px; }
.map-popup--list .map-popup__title { padding-right: 36px; }
.map-popup__list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; display: grid; gap: 6px; }
.map-popup__list button { width: 100%; text-align: left; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.map-popup__list button:hover, .map-popup__list button:focus-visible { border-color: var(--ink); }
.map-popup__item { font-size: 14px; font-weight: 600; line-height: 1.3; }
.map-popup__list .map-popup__meta { font-size: 12px; gap: 8px; }
.map-layout { display: grid; gap: 24px; }

/* ---------- Объект ---------- */
.obj-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: flex-end; margin-bottom: 24px; }
.obj-head h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -.02em; line-height: 1.08; max-width: 22ch; }
.obj-head__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.obj-head__addr { margin-top: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.obj-head__addr svg { width: 16px; height: 16px; }
.object-database-note { margin: -4px 0 24px; max-width: 900px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 22px; padding: 8px 12px 8px 8px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-2); }
.back-link:hover { border-color: var(--ink); }
.back-link svg { width: 16px; height: 16px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(300px, 44vw, 560px); border-radius: var(--r-lg); overflow: hidden; }
.gallery button { position: relative; overflow: hidden; background: #dfe3e8; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery__more { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.94); color: var(--ink); padding: 8px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; }
.gallery__more svg { width: 16px; height: 16px; }
.obj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; margin-top: 40px; align-items: start; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.specs > div { background: var(--surface); padding: 18px; }
.specs > div:last-child:nth-child(3n+1) { grid-column: span 3; }
.specs > div:last-child:nth-child(3n+2) { grid-column: span 2; }
.specs dt { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.specs dd { margin: 6px 0 0; font-weight: 600; font-size: 18px; }
.specs dd.mono { font-size: 19px; }
.obj-section { margin-top: 44px; }
.obj-section h2 { font-size: 22px; font-weight: 650; margin-bottom: 16px; letter-spacing: -.01em; }
.prose p + p { margin-top: 14px; }
.prose { color: var(--ink-2); font-size: 17px; max-width: 70ch; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.plan:hover { border-color: var(--ink-2); }
.plan__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.plan__media img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plan__title { padding: 10px 12px; font-size: 14px; font-weight: 600; border-top: 1px solid var(--line-2); }
#plans { scroll-margin-top: calc(var(--header-h) + 16px); }
.lightbox__top { flex-wrap: wrap; gap: 10px 16px; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.features svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }
.aside-card { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line-2); padding: 24px; display: grid; gap: 18px; box-shadow: var(--shadow-1); }
.aside-card__price { font-family: var(--f-mono); font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.aside-card__price small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.aside-card__id { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.mgr-mini { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line-2); }
.mgr-mini img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.mgr-mini__name { font-weight: 650; }
.mgr-mini__name a:hover { text-decoration: underline; }
.mgr-mini__role { font-size: 13px; color: var(--muted); }
.mgr-mini__contacts { grid-column: 1 / -1; display: grid; gap: 6px; font-size: 14px; }
.mgr-mini__contacts a { display: flex; gap: 10px; align-items: center; font-family: var(--f-mono); min-height: 32px; }
.mgr-mini__contacts svg { width: 16px; height: 16px; color: var(--muted); }
.obj-mobile-bar { display: none; }
/* Нижняя панель «Позвонить / Оставить заявку» — на планшетах и телефонах, где в шапке нет кнопки заявки */
.action-bar { display: none; }

/* ---------- Менеджер ---------- */
.mgr-top { padding-top: 28px; padding-bottom: clamp(48px, 6vw, 88px); }
.mgr-hero { display: grid; grid-template-columns: 420px 1fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.mgr-hero__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.8; background: #d8dde3; }
.mgr-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.mgr-hero__photo .demo-tag { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94); }
.mgr-hero__info { display: flex; flex-direction: column; justify-content: center; }
.mgr-hero__role { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 18px; }
.mgr-hero__contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mgr-hero__count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.mgr-hero__count > b { font-size: 44px; line-height: 1; }
.mgr-hero__count > div > span { display: block; font-size: 17px; }
.mgr-hero__count > div > .mgr-hero__split { color: var(--muted); font-size: 14px; margin-top: 2px; }
.mgr-hero__bio { margin-top: 20px; font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.manager-mode { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 28px; }
.manager-database-note { margin-bottom: 28px; }
.mgr-more { display: flex; justify-content: center; margin-top: 28px; }
.mgr-more[hidden] { display: none; }
.contact-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 15px; }
.contact-pill:hover { border-color: var(--ink); }
.contact-pill svg { width: 18px; height: 18px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats > div { background: var(--surface); padding: 22px; }
.stats b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; line-height: 1; }
.stats span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.stats span.demo-tag { display: inline-flex; margin-top: 10px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 26px; }
.info-card h3 { font-size: 13px; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14px; }

/* ---------- Шаги / преимущества ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; position: relative; }
.steps li { position: relative; padding: 0 20px 0 0; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 54px; height: 62px; clip-path: var(--hex); background: var(--ink); color: var(--accent); font-family: var(--f-mono); font-weight: 600; font-size: 15px; margin-bottom: 20px; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 54px; right: 0; top: 31px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; font-weight: 650; }
.steps p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.section--navy .steps li::before { background: var(--accent); color: var(--ink); }
.section--navy .steps li::after { background: repeating-linear-gradient(90deg, var(--navy-3) 0 6px, transparent 6px 12px); }
.section--navy .steps p { color: var(--on-navy-muted); }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefits--2 { grid-template-columns: repeat(2, 1fr); }
.benefit { padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); }
.benefit .hexicon { width: 46px; height: 52px; margin-bottom: 18px; }
.benefit h3 { font-size: 18px; font-weight: 650; }
.benefit p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.section--navy .benefit { background: var(--navy-2); border-color: var(--navy-3); }
.section--navy .benefit p { color: var(--on-navy-muted); }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type-card { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 1 / 1; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; isolation: isolate; }
.type-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.type-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,27,45,0) 30%, rgba(15,27,45,.88)); }
.type-card:hover img { transform: scale(1.05); }
.type-card h3 { font-size: 20px; font-weight: 650; }
.type-card p { font-size: 14px; opacity: .8; margin-top: 6px; }
.type-card .count { font-family: var(--f-mono); font-size: 12px; margin-top: 14px; display: inline-flex; gap: 8px; align-items: center; color: var(--accent-hi); }
.type-card .count svg { width: 14px; height: 14px; }

.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0; }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.page-hero .lead { color: var(--on-navy-muted); margin-top: 22px; }
.page-hero .crumbs { color: var(--on-navy-muted); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero__media { position: relative; aspect-ratio: 1 / 1.05; max-height: 520px; justify-self: end; width: 100%; }
.page-hero__media .hex-img { position: absolute; clip-path: var(--hex); overflow: hidden; }
.page-hero__media .hex-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media .hex-img:nth-child(1) { width: 68%; aspect-ratio: .866; right: 0; top: 0; }
.page-hero__media .hex-img:nth-child(2) { width: 40%; aspect-ratio: .866; left: 4%; bottom: 0; }
.page-hero__media .hex-img--accent { background: var(--accent); }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-media__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.split-media__img img { width: 100%; height: 100%; object-fit: cover; }
.checks { display: grid; gap: 12px; margin-top: 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; color: var(--accent-ink); flex: none; margin-top: 2px; }
.section--navy .checks svg { color: var(--accent); }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-list { display: grid; gap: 0; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line-2); overflow: hidden; }
.contact-list > a, .contact-list > div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 22px; align-items: center; }
.contact-list > * + * { border-top: 1px solid var(--line-2); }
.contact-list > a:hover { background: var(--surface-2); }
.contact-list .hexicon { width: 42px; height: 48px; }
.contact-list dt { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-list dd { margin: 4px 0 0; font-weight: 600; font-size: 18px; }

/* Политика */
.legal { background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line-2); max-width: 860px; }
.legal h2 { font-size: 20px; font-weight: 650; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.legal ul + p, .legal p + ul { margin-top: 10px; }
.legal__ph { background: #fff3c4; color: var(--ink); padding: 0 4px; border-radius: 4px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1440px) {
  .header__inner { gap: 20px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 7px; font-size: 14px; }
}
/* Девять разделов меню: на узком десктопе номер заменяется компактной кнопкой. */
@media (max-width: 1520px) {
  .header__call { display: grid; }
  .header__phone { display: none; }
}
@media (max-width: 1280px) {
  .header__inner { gap: 14px; }
  .nav a { padding: 8px 6px; font-size: 13.5px; }
  .header__btn-full { display: none; }
  .header__btn-short { display: inline; }
  .grid-cards--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .action-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .action-bar .btn { flex: 1; padding: 0 10px; }
  .action-bar__call svg { width: 18px; height: 18px; }
  .footer { padding-bottom: 100px; }
  .toast { bottom: 96px; }
  .nav, .header__actions .btn { display: none; }
  .burger { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .header__phone { display: block; }
  .header__call { display: none; }
  .hero__grid, .page-hero__grid { grid-template-columns: 1fr; }
  .comb { margin: 8px auto 0; --w: clamp(92px, 19vw, 150px); }
  .page-hero__media { display: none; }
  .quick__grid { grid-template-columns: 1fr 1fr; }
  .quick__grid .btn { grid-column: 1 / -1; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-leadership { grid-template-columns: minmax(220px, .85fr) minmax(0, 2fr); }
  .team-join { grid-template-columns: 1fr; }
  .team-join__intro .h2 { max-width: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about-split, .cta-block, .split-media, .contacts-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 54px 1fr; gap: 0 20px; padding: 0 0 26px; }
  .steps li::before { grid-row: 1 / 3; margin: 0; }
  .steps li::after { left: 26px; top: 62px; bottom: 0; right: auto; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px); }
  .section--navy .steps li::after { background: repeating-linear-gradient(180deg, var(--navy-3) 0 6px, transparent 6px 12px); }
  .steps h3 { padding-top: 6px; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .type-card { aspect-ratio: 3 / 4; }
  .catalog { grid-template-columns: 1fr; }
  .filters-open { display: inline-flex; }
  .filters {
    position: fixed; z-index: 80; inset: 0; top: 0; max-height: none; border-radius: 0; border: 0;
    transform: translateX(-100%); transition: transform .3s var(--ease); visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
  .filters__head h2 { font-size: 18px; font-weight: 650; }
  .filters__head button { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
  .filters__head svg { width: 18px; height: 18px; }
  .filters__body { flex: 1; }
  .obj-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .mgr-hero { grid-template-columns: 1fr; }
  .mgr-hero__photo { max-width: 420px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats--3 > div:last-child { grid-column: 1 / -1; }
  .case-full { grid-template-columns: minmax(0, 1fr); }
  .case-full__media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .header__phone { display: none; }
  .header__call { display: grid; }
  .header__actions { gap: 10px; }
  .logo__word { font-size: 21px; }
  .logo__mark { width: 30px; height: 34px; }
  .demo-bar .container { font-size: 11px; }
  .grid-cards, .grid-cards--4 { grid-template-columns: 1fr; }
  #featured > :nth-child(n + 4) { display: none; }
  .home-cases .section-head .link-arrow { display: none; }
  .home-reviews .section-head .link-arrow { display: none; }
  .home-cases__more, .home-reviews__more { display: inline-flex; margin-top: 24px; }
  .demand-head__row, .demand-tools { align-items: stretch; flex-direction: column; }
  .demand-head__row .btn { width: 100%; }
  .demand-tools .seg { display: flex; width: 100%; }
  .demand-tools .seg button { flex: 1; justify-content: center; padding: 0 8px; }
  .demand-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-leadership { grid-template-columns: 1fr; }
  .team-join { gap: 24px; padding: 20px; }
  .catalog-mode { display: grid; width: 100%; }
  .catalog-mode__item { padding: 8px 12px; }
  .quick__grid { grid-template-columns: 1fr; }
  .quick__card { padding: 18px; }
  .hero { padding-bottom: 130px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .comb { --w: clamp(84px, 27vw, 120px); --g: 6px; }
  .principles { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr; gap: 10px; }
  .type-card { aspect-ratio: 16 / 10; padding: 14px; }
  .type-card h3 { font-size: 16px; }
  .type-card p { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding-top: 52px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .gallery button:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .gallery button:not(:first-child) { aspect-ratio: 4 / 3; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs > div:last-child:nth-child(n) { grid-column: auto; }
  .specs > div:last-child:nth-child(odd) { grid-column: span 2; }
  .features { grid-template-columns: 1fr; }
  .cant-find { grid-template-columns: 1fr; text-align: left; }
  .cant-find .btn { width: 100%; }
  .info-grid { grid-template-columns: 1fr; }
  .stats > div { padding: 16px; }
  .results-tools { width: 100%; }
  .results-tools .seg { flex: 1; }
  .results-tools .seg button { flex: 1; justify-content: center; }
  .results-tools .select { flex: 1; min-width: 0; }
  .filters-open { flex: 1; }
  .map--catalog { height: 68vh; min-height: 420px; border-radius: var(--r-sm); }
  .map__toolbar { top: auto; bottom: 44px; left: 12px; right: 12px; transform: none; width: auto; }
  .map__toolbar input[type="range"] { flex: 1; min-width: 100px; }
  .map__legend { display: none; }
  .map-popup { left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; }
  /* Логотип Яндекса нельзя перекрывать */
  .map--logo .map-popup, .map--logo .map__toolbar { bottom: 52px; }
  .lightbox__stage { padding: 0 8px; }
  .lightbox__nav { background: rgba(0,0,0,.45); }
  .modal { padding: 0; align-items: end; }
  .modal__dialog { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 94vh; max-height: 94dvh; width: 100%; }
  .obj-mobile-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .obj-mobile-bar .btn { flex: 1; padding: 0 10px; }
  .obj-mobile-bar .obj-mobile-bar__call { flex: 0 0 48px; padding: 0; }
  .obj-mobile-bar__call svg { width: 20px; height: 20px; }
  .has-mobile-bar .action-bar { display: none; }
  .has-mobile-bar .footer { padding-bottom: 100px; }
  .case-full__steps > div { grid-template-columns: 1fr; gap: 4px; }
  .contact-list dd { font-size: 16px; word-break: break-word; }
}
@media (max-width: 380px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .btn { padding: 0 16px; }
  .seg button { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
