:root {
  --bg: #0b0b0d; /* глубокий тёмный фон */
  --card: #1c1c1c; /* чуть светлее карточка */
  --accent: #ffc800; /* жёлтый акцент */
  --text: #ffc800; /* основной текст */
  --muted: #d6c37a; /* приглушённый жёлтый */
  --glass: #ffffff08;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-family: Arial, sans-serif;
  color: var(--text);
}
.page-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.card {
  width: min(760px, 94%);
  background: linear-gradient(180deg, var(--card), #071019);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 10px 40px #00000099;
  text-align: center;
  border: 1px solid #ffffff08;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  margin-top: -80px;
  background: linear-gradient(135deg, #111, #222);
}
h1 {
  margin: 8px 0 4px;
  font-size: 1.6rem;
}
p#role {
  color: var(--muted);
  margin: 0 0 18px;
}

/* Primary action links */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}
.social-link .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-block;
  fill: currentColor;
}
.social-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 200, 0, 0.08);
  background-color: rgba(255, 200, 0, 0.04);
}
.social-link:active {
  transform: translateY(-1px) scale(0.98);
}
.social-link:focus {
  outline: 2px solid rgba(255, 200, 0, 0.12);
  outline-offset: 3px;
}

.portfolio {
  margin-top: 18px;
  text-align: left;
}
.hero {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;
}
.avatar-wrap {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #111, #222);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar {
  width: 88px;
  height: 88px;
  margin-top: 0;
}
.hero-text {
  text-align: left;
}
.lang-switch {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lang-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  color: var(--bg);
  background: var(--accent);
  border-color: rgba(255, 200, 0, 0.2);
}

/* Main large link buttons */
.primary-actions {
  margin-top: 18px;
}
.primary-actions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.big-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 200, 0, 0.08), transparent);
  border: 1px solid rgba(255, 200, 0, 0.18);
  text-decoration: none;
  color: var(--accent);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease;
}
.big-link .icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
}
.big-link span {
  font-weight: 600;
}
.big-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}
.big-link:active {
  transform: translateY(-2px) scale(0.995);
}

/* Footer icon row */
.icon-footer {
  margin-top: 22px;
  text-align: center;
}
.icon-footer ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 10px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.icon-footer a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
  border: none;
  transition: opacity 0.2s ease;
}
.footer-icon {
  width: 20px;
  height: 20px;
}
.icon-footer a:hover .footer-icon,
.icon-footer a:focus .footer-icon {
  opacity: 0.8;
}

.portfolio p {
  color: var(--muted);
  margin: 0 0 12px;
}
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.project {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
}
.project h3 {
  margin: 0 0 6px;
  color: var(--accent);
}
.project p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.project a {
  color: var(--accent);
  text-decoration: none;
}

/* About Me Section */
.about-me {
  margin: 18px 0;
  text-align: left;
}
.about-me details {
  background: linear-gradient(180deg, #ffc8000a, transparent);
  border: 1px solid #ffc8001f;
  border-radius: 10px;
  padding: 12px;
}
.about-me summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  padding: 6px 0;
  user-select: none;
  transition: opacity 0.2s ease;
}
.about-me summary:hover {
  opacity: 0.8;
}
.about-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ffc80014;
  color: var(--muted);
}
.about-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-content li {
  margin: 8px 0 8px 20px;
  line-height: 1.6;
  position: relative;
  padding-left: 12px;
}
.about-content li:before {
  content: "• ";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.site-footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.social-nav ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 10px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-info {
  margin: 10px 0 8px;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .social-link,
  .social-link:hover,
  .social-link:active {
    transition: none;
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero {
    grid-template-columns: 72px 1fr auto;
  }
  .avatar-wrap {
    width: 72px;
    height: 72px;
  }
  .avatar {
    width: 64px;
    height: 64px;
  }
  .lang-switch {
    flex-direction: row;
  }
  .lang-btn {
    padding: 6px;
  }
  .card {
    padding: 18px;
  }
  .big-link {
    padding: 12px;
  }
}
