*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  background-color: #fafafa;
  color: #111111;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: #fafafa;
  color: #111111;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lang-switch {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  line-height: 1;
  color: #666666;
}

.lang-switch a,
.lang-switch span {
  text-decoration: none;
  padding: 4px 2px;
  transition: color 0.15s ease;
}

.lang-switch a {
  color: #666666;
  font-weight: 400;
}

.lang-switch a:hover {
  color: #111111;
}

.lang-switch .lang-active {
  color: #111111;
  font-weight: 600;
}

.lang-switch .lang-sep {
  color: #cccccc;
  padding: 0;
  user-select: none;
}

.page {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.75rem;
}

.avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.avatar-initials {
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #666666;
}

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

.profile h1 {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #111111;
}

.bio {
  margin-top: 0.55rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #555555;
  max-width: 100%;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: #111111;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
  border-color: #cccccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.link-card:focus-visible,
.lang-switch a:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.link-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.link-icon--app {
  border-radius: 7px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.link-icon--x {
  background-color: #000000;
  border-radius: 7px;
  color: #ffffff;
}

.link-label {
  flex: 1;
  min-width: 0;
}

.link-chevron {
  flex-shrink: 0;
  color: #cccccc;
  font-size: 1.2rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.link-card:hover .link-chevron {
  color: #999999;
}

@media (max-width: 480px) {
  .lang-switch {
    top: 16px;
    right: 18px;
  }

  .page {
    padding: 3.5rem 1.5rem 2rem;
  }

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

  .avatar-initials {
    font-size: 1.4rem;
  }

  .profile h1 {
    font-size: 1.3rem;
  }

  .bio {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-card,
  .link-chevron,
  .lang-switch a {
    transition: none;
  }
}
