/* === Проверка коммерческой недвижимости Москвы — стили === */
:root {
  --bg: #f4f3ef; --ink: #1a1e26; --muted: #66707a;
  --accent: #0d6b5c; --accent-light: #e0efec;
  --gold: #a8781f; --gold-light: #f4ead6;
  --line: #e1dfd9; --card: #ffffff;
  --risk: #b3382c; --warn: #b97a1c; --ok: #1a7f4b;
  --radius: 10px; --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif;
       background: var(--bg); color: var(--ink); min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Topbar */
.topbar { background: #1a1e26; color: #fff; position: sticky; top: 0; z-index: 100; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between;
                max-width: 960px; margin: 0 auto; padding: 0 1rem; height: 52px; }
.logo { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.logo-icon { color: var(--accent); font-size: 1.4rem; }
.logo-accent { color: var(--accent); }
.topnav { display: flex; gap: .5rem; }
.topnav a { color: #b9c6cf; font-size: .85rem; padding: .3rem .6rem;
            border-radius: 6px; transition: .15s; text-decoration: none; }
.topnav a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Views */
.page { display: none; max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem; }
.page.active { display: block; }

/* Hero / Search */
.hero { text-align: center; padding: 2rem 0 1.5rem; }
.hero h1 { font-size: 1.65rem; line-height: 1.25; font-weight: 700; margin-bottom: .5rem; }
.hero-sub { color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }
.search-form { max-width: 580px; margin: 0 auto; position: relative; }
.search-box { display: flex; gap: 0; border-radius: var(--radius); overflow: hidden;
              box-shadow: var(--shadow); background: var(--card); }
.search-box input { flex: 1; border: none; padding: .85rem 1rem; font-size: 1rem;
                    outline: none; background: transparent; }
.btn-search { background: var(--accent); color: #fff; border: none; padding: .85rem 1.6rem;
              font-size: .95rem; font-weight: 600; cursor: pointer; transition: .2s; }
.btn-search:hover { background: #0a5a4d; }
.suggestions { position: absolute; top: 100%; left: 0; right: 0; background: var(--card);
               border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
               z-index: 50; display: none; max-height: 220px; overflow-y: auto; }
.suggestions.show { display: block; }
.suggestions div { padding: .6rem 1rem; font-size: .9rem; cursor: pointer; border-bottom: 1px solid var(--line); }
.suggestions div:hover { background: var(--accent-light); }
.tier-select { display: flex; gap: .5rem; margin-top: .7rem; justify-content: center; flex-wrap: wrap; }
.tier-opt { display: flex; align-items: center; gap: .35rem; padding: .35rem .7rem;
            border: 1px solid var(--line); border-radius: 999px; font-size: .8rem;
            cursor: pointer; transition: .15s; background: var(--card); }
.tier-opt input { display: none; }
.tier-opt.active { border-color: var(--accent); background: var(--accent-light); }
.tier-name { font-weight: 600; }
.tier-price { color: var(--accent); font-weight: 700; }
.hero-trust { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap;
              margin-top: 1.2rem; font-size: .78rem; color: var(--muted); }
.hero-trust span { opacity: .7; }

/* Report */
.report-head { margin-bottom: 1rem; }
.report-nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.report-nav button { background: var(--card); border: 1px solid var(--line); padding: .35rem .7rem;
                     border-radius: 999px; font-size: .78rem; cursor: pointer; transition: .15s; }
.report-nav button:hover { border-color: var(--accent); }
.report-nav button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.report-body { display: grid; gap: .7rem; }

/* Score ribbon */
.score-ribbon { background: var(--card); border-radius: var(--radius); padding: 1rem 1.1rem;
                box-shadow: var(--shadow); }
.score-ribbon .score-row { display: flex; align-items: center; gap: .8rem;
                           justify-content: space-between; flex-wrap: wrap; }
.score-badge { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: 1.4rem; }
.score-badge small { font-size: .6rem; font-weight: 400; color: var(--muted); display: block; }
.score-detail { color: var(--muted); font-size: .88rem; flex: 1; min-width: 200px; }
.score-meta { display: flex; gap: .6rem; font-size: .78rem; color: var(--muted); margin-top: .4rem; flex-wrap: wrap; }
.btn-pdf { background: var(--accent); color: #fff; border: none; padding: .45rem .9rem;
           border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer;
           transition: .15s; white-space: nowrap; flex-shrink: 0; }
.btn-pdf:hover { background: #0a5a4d; }
.btn-share { background: transparent; border: 1px solid var(--accent); color: var(--accent);
             padding: .4rem .9rem; border-radius: 8px; font-size: .8rem; font-weight: 600;
             cursor: pointer; transition: .15s; }
.btn-share:hover { background: var(--accent-light); }
.btn-link { background: none; border: none; color: var(--accent); font-size: .85rem;
            cursor: pointer; text-decoration: underline; padding: 0; }
.small { color: var(--muted); font-size: .82rem; }

/* История проверок */
.history-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
                padding: .9rem 1.1rem; margin-bottom: .6rem; cursor: pointer; transition: .15s;
                box-shadow: var(--shadow); }
.history-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.history-item .hi-top { display: flex; align-items: center; justify-content: space-between;
                        gap: .6rem; flex-wrap: wrap; }
.history-item .addr { font-weight: 600; font-size: .95rem; }
.history-item .hi-meta { display: flex; gap: .5rem; font-size: .75rem; color: var(--muted);
                         margin-top: .3rem; flex-wrap: wrap; }
.provider-badge { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem;
                  padding: .1rem .5rem; border-radius: 999px; font-weight: 600; }
.provider-badge.live { background: #e2f2e8; color: var(--ok); }
.provider-badge.demo { background: var(--gold-light); color: var(--warn); }
.pill { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 600; }
.pill.ok { background: #e2f2e8; color: var(--ok); }
.pill.warn { background: var(--gold-light); color: var(--warn); }
.pill.risk { background: var(--risk); color: #fff; }
.pill.unknown { background: #e8eaed; color: #666; }

/* Object Card */
.object-card { background: var(--card); border-radius: var(--radius); padding: 1rem 1.1rem;
               box-shadow: var(--shadow); }
.object-card h3 { font-size: .92rem; margin-bottom: .4rem; color: var(--muted); }
.object-card .addr { font-size: 1.05rem; font-weight: 600; }
.object-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
               gap: .5rem; margin-top: .7rem; }
.object-grid dt { font-size: .72rem; color: var(--muted); }
.object-grid dd { font-size: .92rem; font-weight: 600; }

/* Checklist */
.checklist { background: var(--card); border-radius: var(--radius); padding: .6rem 0;
             box-shadow: var(--shadow); }
.checklist-title { font-size: .82rem; font-weight: 600; padding: .4rem 1.1rem; color: var(--muted);
                    text-transform: uppercase; letter-spacing: .05em; }
.check-item { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem 1.1rem;
              font-size: .88rem; border-top: 1px solid var(--line); }
.check-item .status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
                          margin-top: .4rem; }
.check-item .status-dot.ok { background: var(--ok); }
.check-item .status-dot.warn { background: var(--warn); }
.check-item .status-dot.risk { background: var(--risk); }
.check-item .status-dot.unknown { background: #c0c5cc; }
.check-item .check-detail { color: var(--muted); font-size: .82rem; }
.check-item .check-cat { font-size: .68rem; color: var(--muted); background: var(--bg);
                          padding: 0 .4rem; border-radius: 4px; }

/* Geodata */
.geodata { background: var(--card); border-radius: var(--radius); padding: 1rem 1.1rem;
           box-shadow: var(--shadow); }
.geodata h3 { font-size: .92rem; margin-bottom: .6rem; color: var(--muted); }
.geo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; }
.geo-item { background: var(--bg); border-radius: 6px; padding: .6rem .8rem; }
.geo-item .geo-val { font-size: 1.1rem; font-weight: 700; }
.geo-item .geo-label { font-size: .75rem; color: var(--muted); }

/* Tiers page */
.container { max-width: 700px; margin: 0 auto; }
.container h2 { font-size: 1.1rem; margin: 1.5rem 0 .7rem; }
.tiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
              gap: .6rem; margin-bottom: 1rem; }
.tier-card { background: var(--card); border-radius: var(--radius); padding: 1rem;
             box-shadow: var(--shadow); border: 1px solid var(--line); }
.tier-card h3 { font-size: 1rem; }
.tier-card .tier-price { font-size: 1.3rem; font-weight: 700; color: var(--accent);
                          display: block; margin: .3rem 0; }
.tier-card ul { list-style: none; font-size: .82rem; color: var(--muted); }
.tier-card ul li::before { content: '✓ '; color: var(--ok); }
.tier-card.promo { border-color: var(--accent); }

/* About */
.about-content { background: var(--card); border-radius: var(--radius); padding: 1.4rem;
                  box-shadow: var(--shadow); font-size: .9rem; }
.about-content ul { margin: .5rem 0 0 1.2rem; font-size: .85rem; color: var(--muted); }
.about-content li { margin-bottom: .3rem; }
.about-content h3 { font-size: .92rem; margin-top: 1rem; }
.roadmap { display: grid; gap: .5rem; margin-top: .5rem; }
.roadmap-item { border-left: 3px solid var(--accent); padding: .3rem 0 .3rem .7rem;
                font-size: .82rem; }
.roadmap-item .rm-phase { font-weight: 600; color: var(--accent); }
.roadmap-item .rm-date { color: var(--muted); font-size: .78rem; }

/* Footer */
.footer { margin-top: 2rem; border-top: 1px solid var(--line);
          padding: 1rem; font-size: .74rem; color: var(--muted); text-align: center; }

/* Loading */
.loader { display: flex; justify-content: center; gap: .5rem; padding: 2rem; }
.loader div { width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
              animation: bounce 1.2s infinite; }
.loader div:nth-child(2) { animation-delay: .2s; }
.loader div:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-10px); } }

/* Mobile */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.25rem; }
  .tier-select { gap: .3rem; }
  .tier-opt { font-size: .74rem; padding: .25rem .5rem; }
  .search-box input { font-size: .9rem; padding: .7rem .8rem; }
  .btn-search { padding: .7rem 1rem; font-size: .88rem; }
  .score-ribbon .score-row { flex-direction: column; align-items: flex-start; }
  .topnav { gap: 0; }
  .topnav a { font-size: .8rem; padding: .25rem .45rem; }
  .object-grid { grid-template-columns: repeat(2, 1fr); }
  .geo-grid { grid-template-columns: repeat(2, 1fr); }
}