/* === Фон страницы === */
body {
  margin: 0;
  padding: 0;
  background: #e8e8e8;
  font-family: 'Inter', sans-serif;
  color: #333;
}

.page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

/* === Карточка профиля === */
.profile-card {
  background: #ffffff;
  border-radius: 2rem;
  padding: 3rem 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow:
          10px 10px 20px rgba(0,0,0,0.1),
          -10px -10px 20px rgba(255,255,255,0.7);
  text-align: center;
}

/* === Обертка: аватар + user_tag === */
.avatar-tag-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
          inset 4px 4px 8px rgba(0,0,0,0.1),
          inset -4px -4px 8px rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-tag {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  box-shadow:
          4px 4px 8px rgba(0, 0, 0, 0.05),
          -4px -4px 8px rgba(255, 255, 255, 0.8);
  background: #f5e0d4;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.user-tag i {
  margin: 0;
  font-size: 1em;
  color: #555;
}

/* === Имя и подпись === */
.name {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  font-weight: 700;
}

.tagline {
  font-size: 1rem;
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
}

/* === Контакты === */
.contacts {
  display: flex;
  flex-wrap: wrap;        /* чтобы переносить элементы */
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 100%;        /* ограничить ширину контейнера */
  overflow-wrap: break-word; /* чтобы ломать длинные слова */
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  transition: transform .2s, color .2s;
  white-space: normal;    /* позволить переносить */
  max-width: 100%;        /* чтобы не выходить за пределы */
  word-break: break-word; /* переносить длинные слова */
}
.contact-link i,
.contact-link img {
  margin: 0;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.contact-link:hover {
  color: #0073e6;
  transform: translateY(-2px);
}

/* === Навыки === */
.skills-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e8e1f1;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  box-shadow:
          4px 4px 8px rgba(0,0,0,0.05),
          -4px -4px 8px rgba(255,255,255,0.8);
  font-size: 0.9rem;
  color: #333;
  white-space: nowrap;
  transition: transform .2s;
}
.skill-pill i,
.skill-pill img {
  margin: 0;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}
.skill-pill:hover {
  transform: translateY(-2px);
}

/* === Медиа-запросы для мобильных устройств === */
@media (max-width: 600px) {
  .profile-card {
    padding: 1.5rem 1rem;
    max-width: 100%;
  }

  .avatar-tag-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }

  .avatar {
    width: 90px;
    height: 90px;
  }

  .name {
    font-size: 1.6rem;
    text-align: center;
    word-break: break-word;
  }

  .tagline {
    font-size: 0.9rem;
    text-align: center;
    padding: 0 0.5rem;
  }

  .name, .tagline {
    word-break: break-word;
  }

  .user-tag {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }

  .contacts {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .contact-link {
    font-size: 0.9rem;
    justify-content: center;
    text-align: center;
    word-break: break-word;
  }

  .skills {
    gap: 0.5rem;
  }

  .skill-pill {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }

  .skills-title {
    font-size: 1.1rem;
  }
}
