:root {
  --bg: #111417;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #f6f7f3;
  --muted: #c6c9c2;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #6ee7b7;
  --accent-dark: #0f766e;
  --warm: #f5c66b;
  --shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(110, 231, 183, 0.26), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(245, 198, 107, 0.2), transparent 22rem),
    linear-gradient(145deg, #111417 0%, #18211f 52%, #25231c 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(680px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 34px 0;
}

.profile-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 5vw, 38px);
  background: rgba(17, 20, 23, 0.74);
  box-shadow: 0 28px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}

.language-button {
  min-width: 44px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.language-button.is-active {
  color: #06130f;
  border-color: transparent;
  background: var(--accent);
  font-weight: 800;
}

.avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(110, 231, 183, 0.48);
  border-radius: 50%;
  color: #082019;
  background: linear-gradient(145deg, var(--accent), var(--warm));
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(110, 231, 183, 0.18);
}

.site-address {
  margin: 24px 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 1;
}

.profile-text {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.link-card {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 183, 0.62);
  background: var(--panel-strong);
  outline: none;
}

.link-card strong {
  display: block;
  font-size: 1.06rem;
}

.link-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.93rem;
}

.arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06130f;
  background: var(--accent);
  font-weight: 900;
}

.footer-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 520px) {
  .page-shell {
    align-items: flex-start;
    padding: 18px 0;
  }

  .profile-card {
    min-height: calc(100vh - 36px);
  }

  .language-switch {
    justify-content: flex-start;
  }

  .avatar {
    width: 70px;
    height: 70px;
    font-size: 1.25rem;
  }

  .link-card {
    align-items: flex-start;
    min-height: 88px;
  }
}
