* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #0a0c10;
  color: #eef2ff;
  line-height: 1.5;
  min-height: 100vh;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, #48bbff, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary, .btn-outline {
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary {
  background: #3b82f6;
  border: none;
  color: white;
  box-shadow: 0 0 8px rgba(59,130,246,0.5);
}

.btn-primary:hover {
  background: #2563eb;
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  border: 1px solid #48bbff;
  color: #48bbff;
}

/* Hero */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  flex-wrap: wrap;
}

.gradient-text {
  background: linear-gradient(145deg, #48bbff, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Прогресс-бары */
.progress-bar-wrapper {
  background: #1e293b;
  border-radius: 30px;
  height: 10px;
  overflow: hidden;
  flex: 1;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  width: 0%;
  height: 100%;
  border-radius: 30px;
  transition: width 0.35s ease;
}

.lang-progress-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  background: #11161f;
  padding: 0.8rem 1.2rem;
  border-radius: 20px;
}

.lang-name {
  min-width: 130px;
  font-weight: 500;
}

/* сетка карточек */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem 5%;
}

.lang-card {
  background: rgba(20, 28, 38, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 32px;
  padding: 1.8rem;
  border: 1px solid rgba(72, 187, 255, 0.2);
  transition: all 0.2s;
}

.lang-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
}

/* профиль */
.profile-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.profile-header {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.avatar-large {
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, #2d3a5e, #0f172a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  border: 2px solid #48bbff;
}

.stat-card {
  background: #0f141c;
  padding: 1.5rem;
  border-radius: 28px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.badge {
  background: #1e293b;
  padding: 0.4rem 1rem;
  border-radius: 60px;
  font-size: 0.85rem;
}

.locked {
  opacity: 0.4;
  filter: grayscale(0.3);
}

/* Дополнительные стили для профиля */
.level-badge {
  display: inline-block;
  margin-top: 0.5rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(72, 187, 255, 0.4);
  color: #48bbff;
  padding: 0.3rem 0.9rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
}

.percent { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: #94a3b8; }
.streak, .modules-done { font-size: 1.5rem; font-weight: 700; color: #48bbff; }

.lang-progress-list { margin: 1rem 0; }
.lang-progress-list span { min-width: 80px; text-align: right; font-size: 0.85rem; color: #94a3b8; }

.achievements { margin-top: 2rem; }
.achievements h3 { margin-bottom: 0.5rem; }