
:root{
  --bg:#f4f7fc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5edf7;
  --blue1:#2563eb;
  --blue2:#0ea5e9;
  --green:#16a34a;
  --red:#dc2626;
  --shadow:0 10px 25px rgba(0,0,0,.06);
  --radius:16px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu;
  background:var(--bg);
  color:var(--text);
}

/* HEADER */
.topbar{
  background:linear-gradient(90deg,var(--blue1),var(--blue2));
  padding:14px 0;
  color:#fff;
  box-shadow:var(--shadow);
}
.topbar__inner{
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 20px;
}
.brand{display:flex;gap:10px;align-items:center}
.brand__title{font-weight:700;font-size:18px}
.nav__link{
  margin-left:10px;
  padding:8px 14px;
  background:rgba(255,255,255,.15);
  border-radius:12px;
  text-decoration:none;
  color:#fff;
  font-weight:600;
}
.nav__link:hover{background:rgba(255,255,255,.25)}

/* CONTAINER */
.container{
  max-width:1200px;
  margin:30px auto;
  padding:0 20px;
}

/* STATS */
.stats{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:15px;
  margin-bottom:25px;
}
.stat{
  background:var(--card);
  padding:18px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid var(--line);
}
.stat__label{font-size:13px;color:var(--muted);font-weight:600}
.stat__value{font-size:24px;font-weight:800;margin-top:6px}

/* SEARCH */
.search{
  background:var(--card);
  padding:15px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid var(--line);
  margin-bottom:25px;
}
.search__form{
  display:flex;
  gap:10px;
}
.input{
  flex:1;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  font-weight:600;
}
.btn{
  padding:10px 16px;
  border:none;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}
.btn--primary{
  background:linear-gradient(90deg,var(--blue1),var(--blue2));
  color:#fff;
}
.btn--success{background:var(--green);color:#fff}

/* CARD */
.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid var(--line);
  padding:20px;
  margin-bottom:20px;
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:20px;
}

.phone-link{
  font-size:18px;
  font-weight:800;
  text-decoration:none;
  color:var(--blue1);
}
.badge{
  background:#e0f2fe;
  padding:4px 10px;
  border-radius:10px;
  font-size:12px;
  margin-left:8px;
  font-weight:600;
}

.meta__row{
  margin:6px 0;
  font-size:14px;
}

.details{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:6px;
  font-size:14px;
}

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
  margin-top:15px;
}

.block{
  background:#f8fafc;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
}
.block__title{
  font-weight:700;
  margin-bottom:8px;
  font-size:14px;
}

.money__row{
  display:flex;
  justify-content:space-between;
  margin-bottom:5px;
  font-size:14px;
}

.card__right{
  background:#f8fafc;
  padding:15px;
  border-radius:12px;
  border:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:12px;
}

.btn--map{
  background:#111827;
  color:#fff;
  text-align:center;
  padding:10px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
}

.empty{
  background:var(--card);
  padding:40px;
  text-align:center;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.rating{
  margin-top:40px;
}

@media(max-width:900px){
  .stats{grid-template-columns:repeat(2,1fr)}
  .card{grid-template-columns:1fr}
  .details{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
}


/* LOGO IMG */
.brand__logo-img, .logo-img{
  width:40px;height:40px;border-radius:12px;
  display:block;
}

/* LINKS / BADGES */
.link{color:var(--blue1);text-decoration:none;font-weight:600}
.link:hover{text-decoration:underline}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;
  font-weight:700;font-size:12px;
  border:1px solid var(--line); background:#fff;
}
.badge.danger{border-color:#fecaca;background:#fff1f2;color:#991b1b}
.badge.success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}
.object-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px}
.object-actions .link{display:inline-flex;align-items:center;gap:8px}

/* Login */
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.auth-card{max-width:420px;width:100%;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}
.auth-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.auth-head h1{margin:0;font-size:20px}
