@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');

body {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  background: 
    url('/img/bg.png') no-repeat center center fixed,
    radial-gradient(circle at top left,#0a0a0f,#050507);
  background-size: cover;
  color: #e0e0e0;
  padding: 40px;
}

h1 {
  color: #80ffb0;
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.tile {
  background: rgba(20,20,25,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(80,255,180,0.2);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.3s ease,border 0.3s ease, opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tile:hover {
  transform: translateY(-3px);
  border: 1px solid rgba(80,255,180,0.5);
}

h2 {
  margin: 0 0 12px 0;
  color: #80ffb0;
}

.card-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card {
  background: rgba(0,255,179,0.05);
  padding: 14px 18px;
  border-radius: 12px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  background: rgba(0,255,179,0.15);
}

.card-title {
  font-weight: 600;
  color: #80ffb0;
  font-size: 1rem;
}

.card-title a {
  color: #80ffb0;
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
}

.card-subtitle {
  font-size: 0.88rem;
  color: #aaa;
}

.card-desc {
  font-size: 0.87rem;
  color: #ccc;
  margin-top: 4px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.tag {
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(0,255,179,0.15);
  color: #00ffb3;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.tag:hover {
  background: rgba(0,255,179,0.3);
  color: #fff;
}

#pulsar-timer {
  margin-top: 6px;
  font-weight: 600;
  color: #ff7f50;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  color: #80ffb0;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-text {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #80ffb0;
}

/* ===== Друзья / коллеги ===== */
.friend-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(0, 255, 179, 0.05);
  border: 1px solid rgba(80, 255, 180, 0.2);
  border-radius: 16px;
  padding: 12px;
  transition: transform 0.3s ease, border 0.3s ease;
}

.friend-card:hover {
  transform: translateY(-3px);
  border-color: rgba(80, 255, 180, 0.5);
}

.friend-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.friend-avatar {
  width: 48px;       /* единый размер */
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 179, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease, border 0.3s ease;
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.friend-card:hover .friend-avatar {
  transform: scale(1.05);
  border-color: rgba(0, 255, 179, 0.8);
}

.friend-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.friend-name a {
  color: #80ffb0;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.friend-name a:hover {
  text-decoration: underline;
}

.friend-short {
  font-size: 0.88rem;
  color: #aaa;
  margin-top: 2px;
}

.friend-bottom {
  font-size: 0.88rem;
  color: #ccc;
  line-height: 1.4;
  margin-top: 4px;
  text-align: left;
}


.horizontal-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* разрешаем перенос */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    align-items: flex-start;
}

.horizontal-grid .tile {
    flex: 1 1 45%; /* каждый блок занимает примерно половину с учетом gap */
    min-width: 300px; /* минимальная ширина блока перед переносом */
}

.vk-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,255,179,0.2);
}


#contacts-tile a {
    color: #80ffb0;
    text-decoration: none;
}

#contacts-tile a:hover {
    text-decoration: underline;
}







