body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1a1826 0%, #2a2f45 100%);
  color: lime !important;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

header {
  position: sticky;
  top: 0;
  background: rgba(20, 20, 35, 0.94);
  backdrop-filter: blur(10px);
  padding: 12px 0 4px 0;
  border-bottom: 1px solid #3a3f5a;
  z-index: 100;
}

header h1 {
  margin: 0 0 10px 0;
  font-size: 2.1rem;
  letter-spacing: 1.8px;
  font-weight: 800;
  text-align: center;
  color: #a5d8ff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0 0 12px 0;
}

nav a {
  color: #b0d4ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 6px 16px;
  border-radius: 12px;
  transition: all 0.18s ease;
}

nav a:hover {
  color: #5ac8ff;
  background: rgba(50, 60, 90, 0.5);
  transform: translateY(-1px);
}

/* ──────────────────────────────────────── */

.block {
  background: #1f2235;
  border: 1px solid #3a4060;
  border-radius: 20px;
  margin: 48px auto;
  max-width: 820px;
  padding: 44px 28px 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Разные оттенки для каждого блока */
#about  { background: linear-gradient(145deg, #1f2235, #252945); }
#skills { background: linear-gradient(145deg, #22263a, #282c4a); }
#hobbies { background: linear-gradient(145deg, #25293e, #2b2f50); }
#contacts { background: linear-gradient(145deg, #1e2337, #24293f); }

.center {
  text-align: center;
}

h2 {
  margin: 0 0 28px 0;
  font-size: 2.1rem;
  font-weight: 700;
  color: #7ac4ff;
  letter-spacing: 0.8px;
  position: relative;
  display: inline-block;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #5ab9ff;
  border-radius: 3px;
}

/* Обо мне */
.about-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.avatar {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  margin-bottom: 12px;
}

.about-info ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  font-size: 1.08rem;
}

.about-info li {
  margin: 10px 0;
}

/* Навыки */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px 24px;
  justify-items: center;
  margin-top: 24px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.skill {
  background: #2a2f48;
  border: 1.5px solid #40486b;
  border-radius: 16px;
  width: 140px;
  min-height: 160px;
  padding: 18px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.18s ease;
}

.skill:hover {
  border-color: #60c0ff;
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.skill span {
  font-size: 1.15rem;
  font-weight: 700;
  color: #80d0ff;
}

.skill div {
  font-size: 1.4rem;
  font-weight: 600;
  color: #a0e0ff;
}

/* Увлечения */
.hobbies-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.hobbies-text p {
  margin: 0 0 20px 0;
}

/* Контакты */
.contacts-list {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}

.tel {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #60cfff;
  background: #2a334d;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.18rem;
  text-decoration: none;
  transition: all 0.18s;
}

.tel:hover {
  background: #3a4462;
  color: #ffffff;
  transform: translateY(-2px);
}

.phone {
  background: #2a334d;
  color: #e0f0ff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 500;
}

.copyright {
  margin-top: 28px;
  color: #8a98c2;
  font-size: 0.96rem;
  opacity: 0.85;
}

/* Мобильная адаптация */
@media (max-width: 760px) {
  header h1 { font-size: 1.8rem; }
  h2 { font-size: 1.8rem; }
  .block {
    margin: 32px 3vw;
    padding: 32px 5vw 24px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contacts-list {
    flex-direction: column;
    gap: 16px;
  }
}