/* =========================================================================
   Слой «схематичный прототип» (wireframe) поверх styles.css.
   Серые тона, системный шрифт, без теней и анимаций,
   изображения — условные обозначения. Структура и логика не меняются.
   ========================================================================= */

:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --ink: #1a1a1a;
  --ink-2: #333333;
  --muted: #666666;
  --muted-2: #8c8c8c;
  --line: #c8c8c8;
  --line-2: #dddddd;
  --accent: #bdbdbd;
  --accent-hi: #cfcfcf;
  --accent-ink: #333333;
  --accent-soft: #f0f0f0;
  --navy: #e6e6e6;
  --navy-2: #eeeeee;
  --navy-3: #cccccc;
  --on-navy: #1a1a1a;
  --on-navy-muted: #555555;
  --ok: #333333;
  --ok-soft: #e6e6e6;
  --water: #d9d9d9;
  --land: #f7f7f7;

  --f-display: Arial, "Helvetica Neue", system-ui, sans-serif;
  --f-body: Arial, "Helvetica Neue", system-ui, sans-serif;
  --f-mono: ui-monospace, Consolas, "Courier New", monospace;

  --r-sm: 4px;
  --r: 4px;
  --r-lg: 6px;
  --shadow-1: none;
  --shadow-2: none;
  --shadow-3: 0 0 0 1px var(--line);
}

/* Без анимаций и эффектов наведения */
/* Keep loading feedback active; only the prototype's decorative motion is disabled. */
*:not(.roi-loader__cell):not(.roi-loader__mark), *::before, *::after { animation: none !important; }
*, *::before, *::after { transition: none !important; }
html { scroll-behavior: auto; }
.reveal { opacity: 1; transform: none; }
.pcard:hover, .mcard:hover, .btn:hover { transform: none; }
.pcard:hover .pcard__media img, .mcard:hover .mcard__photo img, .type-card:hover img, .gallery button:hover img { transform: none; }
.pcard:hover { border-color: var(--ink-2); }
.mcard__photo img { filter: none; }

/* Заголовки: системный шрифт, плотное начертание */
.h1, .h2, .hero__title, .display, .modal__title, .results-count, .obj-head h1, .service h3,
.empty h3, .cant-find h3, .lead-result h3, .stats b, .logo__word {
  font-weight: 700; letter-spacing: -.01em;
}
.hero__title em { color: inherit; font-style: normal; }

/* ---------- Условное обозначение изображения ---------- */
img.ph {
  box-sizing: border-box;
  background-color: #ececec;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect x='1' y='5' width='38' height='30' rx='2' fill='%23ececec' stroke='%23999' stroke-width='1.5'/%3E%3Ccircle cx='13' cy='15' r='3.5' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3Cpath d='M3 31l11-10 7 6 5-4 11 8' fill='none' stroke='%23999' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(to top right, transparent calc(50% - .6px), #bdbdbd calc(50% - .6px), #bdbdbd calc(50% + .6px), transparent calc(50% + .6px)),
    linear-gradient(to bottom right, transparent calc(50% - .6px), #bdbdbd calc(50% - .6px), #bdbdbd calc(50% + .6px), transparent calc(50% + .6px));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px 40px, 100% 100%, 100% 100%;
  border: 1px solid #bdbdbd;
  object-fit: fill !important;
}
/* Планировка: светлый «чертёжный» фон с сеткой и значком плана, без диагоналей */
img.ph--plan {
  background-color: #fafafa;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Crect x='2' y='2' width='40' height='40' fill='%23fafafa' stroke='%23888' stroke-width='2'/%3E%3Cpath d='M2 20h14M22 20h20M22 2v10M22 18v24M30 30h12' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E"),
    linear-gradient(#e6e6e6 1px, transparent 1px),
    linear-gradient(90deg, #e6e6e6 1px, transparent 1px);
  background-size: 44px 44px, 16px 16px, 16px 16px;
  background-repeat: no-repeat, repeat, repeat;
  border: 1px dashed #999;
}
.lightbox__stage img.ph--plan { height: auto; aspect-ratio: 4 / 3; }
.lightbox__thumbs img.ph--plan { background-size: 22px 22px, 8px 8px, 8px 8px; }
.mgr-mini img.ph, .case-full__mgr img.ph, .form-context__obj img.ph { background-size: 20px 20px, 100% 100%, 100% 100%; }
.lightbox__stage img.ph { width: min(1100px, 92vw); height: calc(100vh - 170px); height: calc(100dvh - 170px); max-height: none; }

/* ---------- Логотип-заглушка ---------- */
.logo__mark { border: 1.5px dashed #888; border-radius: 4px; display: grid; place-items: center; }
.logo__mark svg { display: none; }
.logo__mark::after { content: "лого"; font-family: var(--f-mono); font-size: 9px; color: #777; }

/* ---------- Плашки, бейджи, иконки ---------- */
.demo-bar { background: #1a1a1a; color: #fff; }
.demo-tag, .on-dark .demo-tag, .section--navy .demo-tag { background: #f0f0f0; color: #555; border: 1px dashed #999; }
.notice { background: #f5f5f5; border-color: #aaa; }
.notice svg { color: #555; }
.eyebrow::before { clip-path: none; width: 8px; height: 8px; background: #999; }
.hexicon, .hexicon--accent, .hexicon--light { clip-path: none; border-radius: 4px; background: #e6e6e6; color: #333; border: 1px solid var(--line); }
.badge--rent { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.badge--sale { background: #fff; border-color: #1a1a1a; color: #1a1a1a; }
.badge--glass { background: #fff; border-color: var(--line); }
.badge--database { background: #fff; border: 1px dashed #555; color: #1a1a1a; }
.lead-result__icon { clip-path: none; border-radius: 4px; background: #e6e6e6; border: 1px solid var(--line); width: 52px; height: 52px; }
.steps li::before { clip-path: none; border-radius: 4px; background: #e6e6e6; color: #1a1a1a; border: 1px solid var(--line); }
.section--navy .steps li::before { background: #fff; color: #1a1a1a; }

/* ---------- Кнопки ---------- */
.btn--accent { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--accent:hover { --btn-bg: #333; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost-light:hover { --btn-bd: var(--ink); }
.btn--light { --btn-bd: var(--line); }
.nav a.is-active::after { background: var(--ink); }

/* ---------- Тёмные секции становятся светло-серыми ---------- */
.hero, .page-hero, .service--dark, .cant-find, .footer { color: var(--ink); }
.hero { background: var(--navy); border-bottom: 1px solid var(--line); }
.hero::before { display: none; }
.hero__meta span::before { clip-path: none; background: #999; }
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero__media .hex-img { clip-path: none; }
.page-hero__media .hex-img:nth-child(1) { position: relative; inset: auto; width: 100%; height: 100%; aspect-ratio: auto; }
.page-hero__media .hex-img:nth-child(2) { display: none; }
.service { border: 1px solid var(--line); }
.service--accent { background: var(--surface-2); }
.service__bg { display: none; }
.service--accent .eyebrow::before { background: #999; }
.team-message { color: var(--ink); border: 1px solid var(--line); }
.team-message::after { display: none; }
.team-message .eyebrow { color: var(--muted); }
.team-message figcaption b { color: var(--ink); }
.team-join { background: var(--navy); color: var(--ink); border: 1px solid var(--line); }
.team-join__intro .eyebrow { color: var(--muted); }
.team-join__intro p { color: var(--muted); }
.team-join__form { border: 1px solid var(--line); }
.cant-find { border: 1px solid var(--line); }
.cant-find .hexicon { background: #fff; color: #333; }
.footer { border-top: 1px solid var(--line); }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.quick__card, .form-card, .aside-card { border: 1px solid var(--line); }

/* Главный экран: блок-заглушка вместо фотомозаики */
.hero__visual { position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 560px; justify-self: end; }
.hero__visual img { width: 100%; height: 100%; display: block; }
.hero__visual-note { position: absolute; left: 12px; bottom: 12px; font-family: var(--f-mono); font-size: 12px; background: #fff; border: 1px solid var(--line); padding: 4px 8px; border-radius: 4px; }
@media (max-width: 1080px) { .hero__visual { justify-self: stretch; max-width: none; } }

/* Карточки типов: подпись на белой подложке, а не поверх фото */
.type-card { color: var(--ink); border: 1px solid var(--line); }
.type-card::before { background: linear-gradient(180deg, transparent 52%, var(--surface) 52%); }
.type-card .count { color: var(--ink-2); }

/* Мобильное меню */
.mobile-menu { background: var(--surface); color: var(--ink); }
.mobile-menu nav a { border-bottom-color: var(--line-2); }
.mobile-menu nav a.is-active { color: var(--ink); text-decoration: underline; }
.mobile-menu .burger { border-color: var(--line); }
.mobile-menu .burger span::before, .mobile-menu .burger span::after { background: var(--ink); }

/* Чекбоксы и сегменты */
.check input:checked + .check__box, .checklist input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check__box svg { color: #fff; }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.tile input:checked + span { background: var(--ink); }
.geo-state { background: #f0f0f0; border: 1px dashed #aaa; }
.geo-btn[aria-pressed="true"] svg { color: #fff; }

/* ---------- Карта ---------- */
.map__district { fill: #efefef; stroke: #c4c4c4; }
.map__district.is-active { fill: #e0e0e0; stroke: #1a1a1a; }
.map__tiles { -webkit-filter: grayscale(1); filter: grayscale(1); opacity: .85; }
/* Фильтр на SVG целиком работает и в мобильном Safari; метки тура находятся в отдельном SVG. */
.map--tour .map__svg { -webkit-filter: grayscale(1); filter: grayscale(1); }
.map__district--over.is-active { fill: rgba(26, 26, 26, .06); }
.map__road { stroke: #ffffff; }
.map__road--main { stroke: #dadada; }
.map__label-water { fill: #999; }
.map__marker .hx { fill: #1a1a1a; }
.map__marker.is-sale .hx { fill: #ffffff; stroke: #1a1a1a; }
.map__marker:hover .hx, .map__marker.is-selected .hx { fill: #666; stroke: #fff; }
.map__marker.is-database .hx { fill: #999; stroke: #fff; }
.map__marker.is-database.is-sale .hx { fill: #d6d6d6; stroke: #777; }
.map__marker.is-database:hover .hx, .map__marker.is-database.is-selected .hx { fill: #777; stroke: #fff; }
.map__marker--office .hx { fill: #bdbdbd; }
.map__cluster .hx-ring, .map__cluster.is-sale .hx-ring { fill: #1a1a1a; opacity: .18; }
.map__cluster.is-database .hx-ring, .map__cluster.is-database.is-sale .hx-ring { fill: #888; opacity: .14; }
.map__legend-hx path { fill: #1a1a1a; stroke: #1a1a1a; }
.map__legend-hx.is-sale path { fill: #fff; }
.map__legend-hx.is-database path { fill: #999; stroke: #777; }
.map__legend-hx.is-database.is-sale path { fill: #d6d6d6; stroke: #777; }
.map__geo { fill: rgba(26, 26, 26, .08); stroke: #1a1a1a; }
.map__geo--draft { fill: rgba(26, 26, 26, .04); }
.map__geo-pt--first { fill: #bdbdbd; }
.map__toolbar { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.map__toolbar .hint { color: var(--muted); }
.map__toolbar .mono { color: var(--ink); }
.map__toolbar input[type="range"] { accent-color: #1a1a1a; }

/* Результат заявки */
.payload pre { background: #f5f5f5; color: #1a1a1a; border-top: 1px solid var(--line-2); }

:focus-visible { outline-color: #1a1a1a; }

/* ---------- Планировка из CRM: чертёж целиком, без обрезки ---------- */
img.plan-img { object-fit: contain; background: #fff; }
.plan__media img.plan-img { border: 1px solid #ddd; box-sizing: border-box; }
