* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  color: #1e293b;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Навигация (как на главной) */
.navbar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo a {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.logo a:hover {
  color: #5a9cce;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #5a9cce;
  transition: all 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

/* Основной контент */
.main {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem;
  width: 100%;
}

/* Hero секция (сужена по высоте) */
.hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 24px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, #0f172a 0%, #2c5f8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 0.95rem;
  color: #475569;
}

/* Контейнер "Обо мне" */
.about-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Основной блок с информацией */
.about-main {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 32px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(44,95,138,0.1);
}

.about-photo {
  flex-shrink: 0;
  width: 320px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.about-photo:hover img {
  transform: scale(1.02);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0f172a 0%, #2c5f8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1rem;
}

/* Статистика */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  background: #f1f5f9;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #2c5f8a;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* Дополнительная информация */
.about-additional {
  background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
  border-radius: 32px;
  padding: 2rem;
  border: 1px solid rgba(44,95,138,0.1);
}

.about-additional h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-additional p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 1rem;
}

.about-additional ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.about-additional ul li {
  background: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.85rem;
  color: #2c5f8a;
  border: 1px solid rgba(44,95,138,0.2);
  transition: all 0.3s ease;
}

.about-additional ul li:hover {
  background: #2c5f8a;
  color: white;
  border-color: #2c5f8a;
}

/* Футер */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.85rem;
  margin-top: auto;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .about-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }
  
  .about-photo {
    width: 280px;
    margin-bottom: 1rem;
  }
  
  .about-text h2 {
    text-align: center;
  }
  
  .about-stats {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .nav-links {
    justify-content: center;
    gap: 1rem;
  }
  
  .main {
    padding: 1rem;
  }
  
  .hero {
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .about-main {
    padding: 1rem;
  }
  
  .about-photo {
    width: 240px;
  }
  
  .about-text h2 {
    font-size: 1.4rem;
  }
  
  .about-additional {
    padding: 1.2rem;
  }
}