/* Общий стиль */
body {
  background-color: #0e1117;
  color: #f0f0f0;
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
}

/* Навигация */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161b22;
  padding: 15px 30px;
  border-bottom: 1px solid #30363d;
}

.logo {
  font-weight: 700;
  font-size: 1.2em;
  color: #58a6ff;
}

.navbar nav a {
  color: #f0f6fc;
  text-decoration: none;
  margin-left: 25px;
  transition: color 0.2s ease;
}

.navbar nav a:hover {
  color: #58a6ff;
}

/* Основная часть */
.main-container {
  display: flex;
  gap: 30px;
  padding: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.exchange-widget {
  flex: 1 1 65%;
  background: #161b22;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

.exchange-widget h2 {
  margin-top: 0;
  text-align: center;
  color: #58a6ff;
}

.user-panel {
  flex: 1 1 30%;
  background: #161b22;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Кнопки */
button {
  background: #238636;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #2ea043;
}

button.secondary {
  background: #30363d;
}

button.secondary:hover {
  background: #444c56;
}

/* Блок преимуществ */
.advantages {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.adv-item {
  background: #161b22;
  border-radius: 15px;
  padding: 20px;
  flex: 1 1 30%;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.adv-icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.adv-text {
  font-weight: 500;
  color: #c9d1d9;
}

/* Адаптивность */
@media (max-width: 900px) {
  .main-container {
    flex-direction: column;
  }
  .exchange-widget, .user-panel {
    flex: 1 1 100%;
  }
}