﻿:root {
  --bg: #2b1d14;
  --bg-2: #4a3022;
  --card: #6f4e37;
  --card-hover: #8b6347;
  --text: #f5ebe0;
  --accent: #d6b48a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg), var(--bg-2));
  display: flex;
  justify-content: center;
  padding: 48px 16px;
}

.container { width: 100%; max-width: 480px; text-align: center; }

.avatar {
  overflow: hidden;
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 2.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--card);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

h1 { font-size: 1.6rem; }
.profile p { color: var(--accent); margin: 6px 0 20px; }

.socials { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
}
.socials svg { width: 22px; height: 22px; }
.socials a:hover, .socials a:focus-visible {
  background: var(--accent); color: var(--bg);
  transform: translateY(-3px); outline: none;
}

.search {
  width: 100%;
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 999px;
  border: 1px solid var(--card);
  background: rgba(0, 0, 0, .25);
  color: var(--text);
  font-size: 1rem;
}
.search::placeholder { color: var(--accent); opacity: .7; }
.search:focus { outline: none; border-color: var(--accent); }

.empty { color: var(--accent); margin-top: 8px; }

.back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.back:hover { text-decoration: underline; }

.category { margin-bottom: 28px; text-align: left; }
.category h2 {
  font-size: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.links { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.links a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  position: relative;
  padding: 16px 20px;
  background: var(--btn-bg, var(--card));
  color: var(--btn-text, var(--text));
  text-decoration: none;
  font-weight: 600;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s;
}

.links a:hover, .links a:focus-visible {
  filter: brightness(.93);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.02);
  outline: none;
}

.links .icon { width: 22px; height: 22px; flex-shrink: 0; }
.links .label { flex: 1; text-align: center; }
.links .icon + .label { margin-right: 22px; }
.badge {
  position: absolute; top: -8px; right: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e0a458;
  color: #2b1d14;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.links li { opacity: 0; animation: fade .5s forwards; }

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

footer { margin-top: 40px; font-size: .8rem; color: var(--accent); opacity: .7; }
