:root {
  --bg: #0b0b0f;
  --txt: #fff;
  --muted: #aaa;
  --accent: #ff4da6;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--txt);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* topnav */
.topnav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.topnav .navlink { text-decoration: none; font-weight: 600; color: var(--muted); }
.topnav .navlink.active { color: var(--accent); }

/* search */
.searchbar { text-align: center; margin: 14px 0; }
.searchbar input {
  width: 60%;
  max-width: 420px;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,.08);
  color: var(--txt);
}
.searchbar input::placeholder { color: var(--muted); }

/* categories */
.categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.categories button {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: #222;
  color: var(--muted);
}
.categories button.active { background: var(--accent); color: #fff; }

/* grid (главная) */
.girls-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .girls-grid { grid-template-columns: repeat(2, 1fr); }
}
.girl-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: #111;
}
.girl-card .card-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.girl-card .card-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.0));
}
.meta-row { display: flex; justify-content: space-between; align-items: center; }
.name { margin: 0; font-size: 16px; font-weight: bold; }
.badge.chats {
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}
.desc { margin: 6px 0 0; font-size: 13px; line-height: 1.3; color: #ddd; }
