:root {
  --bg: #f4f1ec;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-border: rgba(0, 0, 0, 0.06);
  --text-main: #1f1f1f;
  --text-sub: #6a6967;
  --text-soft: #8a8885;
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.05);
  --divider: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.language {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  font-size: 14px;
}

.language a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s ease;
}

.language a:hover {
  color: var(--text-main);
}

.language a.is-active {
  color: var(--text-main);
  font-weight: 600;
}

.language-separator {
  color: var(--text-soft);
}

.profile {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.profile-left {
  width: 160px;
  flex: 0 0 160px;
  text-align: center;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.name {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
}

.profile-right {
  flex: 1;
  min-width: 0;
  padding-top: 18px;
}

.profile-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-icons a,
.profile-icons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.profile-icons img {
  width: 20px;
  height: 20px;
  opacity: 0.82;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-icons a:hover img,
.profile-icons button:hover img {
  opacity: 1;
  transform: scale(1.08);
}

.bio {
  max-width: 640px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 34px;
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 102px;
  padding: 10px 12px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.08);
}

.card-left,
.card-right {
  flex: 0 0 auto;
}

.card-left img,
.card-right img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.card-center {
  flex: 1;
  min-width: 0;
  padding: 0 2px;
}

.card-id {
  margin-bottom: 4px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.4;
}

.card-text {
  color: var(--text-main);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.divider {
  height: 1px;
  margin: 8px 0 14px;
  background: var(--divider);
}

.footer {
  margin-top: 34px;
  text-align: center;
  color: var(--text-sub);
  font-size: 13px;
}

@media (max-width: 900px) {
  .container {
    padding: 20px 16px 44px;
  }

  .language {
    margin-bottom: 24px;
  }

  .profile {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }

  .profile-left {
    width: 120px;
    flex-basis: auto;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .profile-right {
    padding-top: 0;
  }

  .profile-icons {
    justify-content: center;
  }

  .bio {
    max-width: 100%;
  }

  .cards {
    margin-top: 28px;
    gap: 12px;
  }

  .card {
    min-height: 92px;
    padding: 10px;
    gap: 12px;
  }

  .card-left img {
    width: 72px;
    height: 72px;
  }

  .card-right {
    display: none;
  }

  .card-id {
    font-size: 12px;
  }

  .card-text {
    font-size: 15px;
  }
}