Загрузка данных


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px;
}

#app {
  max-width: 1100px;
  width: 100%;
  background: white;
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header, .footer {
  background: #ffffff;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eaeef2;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer {
  border-top: 1px solid #eaeef2;
  border-bottom: none;
  justify-content: center;
  color: #5e6f8d;
  font-size: 0.9rem;
  background: #fafbfc;
}

.header .logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: #1a2b4a;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header .logo i {
  color: #3b7cff;
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 500;
  color: #1a2b4a;
  cursor: pointer;
  transition: 0.15s;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a i {
  font-size: 1rem;
}

.nav-links a:hover {
  background: #eef2f7;
}

.nav-links a.active {
  background: #e0e8ff;
  color: #1a4cff;
}

.user-badge {
  background: #eef2f7;
  padding: 6px 16px 6px 12px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #1a2b4a;
  font-size: 0.95rem;
}

.user-badge i {
  color: #3b7cff;
}

.logout-btn {
  background: #fee9e7;
  color: #c2413a;
  border: none;
  padding: 6px 14px;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.15s;
  text-decoration: none;
}

.logout-btn:hover {
  background: #fcd4d0;
}

.page-content {
  padding: 28px 28px 20px;
  flex: 1;
}

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  padding: 30px 20px;
  background: #f9faff;
  flex: 1;
}

.auth-card {
  background: white;
  padding: 40px 36px;
  border-radius: 40px;
  box-shadow: 0 8px 28px rgba(0, 20, 50, 0.06);
  width: 100%;
  max-width: 400px;
}

.auth-card h2 {
  font-weight: 600;
  font-size: 1.8rem;
  color: #0b1c3a;
  margin-bottom: 8px;
}

.auth-card p {
  color: #5e6f8d;
  margin-bottom: 28px;
}

.auth-card input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #d9e0eb;
  border-radius: 60px;
  font-size: 0.95rem;
  margin-bottom: 16px;
  background: #f8faff;
  transition: 0.15s;
}

.auth-card input:focus {
  outline: none;
  border-color: #3b7cff;
  box-shadow: 0 0 0 3px rgba(59, 124, 255, 0.15);
}

.auth-card .auth-btn {
  width: 100%;
  background: #1a4cff;
  border: none;
  padding: 14px;
  border-radius: 60px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.15s;
  margin-top: 8px;
}

.auth-card .auth-btn:hover {
  background: #0037d6;
  transform: scale(1.01);
}

.auth-card .switch-link {
  color: #1a4cff;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.95rem;
  margin-top: 16px;
  display: inline-block;
}

.auth-error {
  color: #c2413a;
  background: #fff0ee;
  padding: 8px 16px;
  border-radius: 60px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
}

.welcome-block {
  margin-bottom: 30px;
}

.welcome-block h1 {
  font-size: 2rem;
  color: #0b1c3a;
}

.welcome-block p {
  color: #3f5270;
  font-size: 1rem;
}

.slider-container {
  background: #f6f9ff;
  border-radius: 24px;
  padding: 20px 20px 12px;
  margin-top: 12px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.slider-track::-webkit-scrollbar {
  height: 6px;
}

.slider-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.slider-item {
  flex: 0 0 180px;
  background: white;
  border-radius: 24px;
  padding: 16px 12px 14px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  border: 1px solid #edf2f9;
}

.slider-item img {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  object-fit: cover;
  background: #d9e0eb;
  margin-bottom: 10px;
}

.slider-item .name {
  font-weight: 600;
  color: #0b1c3a;
}

.slider-item .city {
  font-size: 0.8rem;
  color: #5e6f8d;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 4px;
}

.slider-controls button {
  background: white;
  border: 1px solid #d9e0eb;
  border-radius: 40px;
  padding: 6px 18px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.1s;
}

.slider-controls button:hover {
  background: #eef2f7;
}

.search-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.search-bar input {
  flex: 1 1 180px;
  padding: 12px 18px;
  border: 1px solid #d9e0eb;
  border-radius: 60px;
  background: #f8faff;
  font-size: 0.95rem;
}

.search-bar input:focus {
  outline: none;
  border-color: #3b7cff;
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.friend-card {
  background: white;
  border-radius: 24px;
  padding: 18px 12px 16px;
  text-align: center;
  border: 1px solid #edf2f9;
  transition: 0.1s;
}

.friend-card img {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  object-fit: cover;
  background: #d9e0eb;
  margin-bottom: 10px;
}

.friend-card .name {
  font-weight: 600;
  color: #0b1c3a;
}

.friend-card .city {
  color: #5e6f8d;
  font-size: 0.9rem;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: #5e6f8d;
  padding: 40px;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-group button {
  background: #f0f4fe;
  border: none;
  padding: 8px 20px;
  border-radius: 60px;
  font-weight: 500;
  color: #1a2b4a;
  cursor: pointer;
  transition: 0.1s;
}

.filter-group button.active-filter {
  background: #1a4cff;
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  background: #eef2f7;
  transition: 0.1s;
  border: 1px solid #eaeef2;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}

@media (max-width: 600px) {
  .header { flex-direction: column; align-items: stretch; }
  .nav-links { margin-left: 0; justify-content: center; }
  .user-badge { justify-content: center; }
}