/* CSS Variables */
:root {
  /* Colors */
  --primary-light: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-light: #06d6a0;
  --secondary-dark: #059669;

  /* Dark theme colors */
  --dark-800: #1e293b;
  --dark-900: #0f172a;
  --dark-700: #334155;

  /* Light theme colors */
  --light-50: #f8fafc;
  --light-100: #f1f5f9;

  /* Gray colors */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Typography */
  --font-family: 'Inter', sans-serif;

  /* Spacing */
  --header-height: 4.5rem;
  --container-padding: 1rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 0.875rem;

  /* Shadows */
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-colors: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  --transition-transform: transform 0.3s ease;
}

/* Dark theme variables */
[data-theme="dark"] {
  --bg-primary: var(--dark-900);
  --bg-secondary: var(--dark-800);
  --bg-tertiary: var(--dark-700);
  --text-primary: var(--light-100);
  --text-secondary: var(--gray-300);
  --border-color: var(--gray-700);
  --shadow: var(--shadow-dark);
}

/* Light theme variables */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: #e2e8f0;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition-colors);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-colors);
}

[data-theme="dark"] .header {
  background-color: rgba(30, 41, 59, 0.8);
}

.header__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.header__logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

[data-theme="dark"] .header__logo-icon {
  background-color: var(--primary-dark);
}

.header__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.theme-toggle {
  padding: 0.5rem;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: var(--transition-colors);
  color: var(--text-primary);
}

.theme-toggle:hover {
  background-color: var(--gray-100);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: var(--gray-700);
}

/* Main content */
.main {
  padding-top: var(--header-height);
}

/* Section styles */


.section--hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

[data-theme="dark"] .section--hero {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}

.section--alt {
  background-color: var(--bg-secondary);
}

/* Card styles */
.card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: var(--transition-colors);
}

.card--exchange {
  backdrop-filter: blur(10px);
  padding: 1.5rem;
}

.card--feature {
  padding: 1.5rem;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-colors);
  gap: 0.5rem;
}

.btn--primary {
  background-color: var(--primary-light);
  color: white;
}

.btn--primary:hover {
  background-color: var(--primary-dark);
}

[data-theme="dark"] .btn--primary {
  background-color: var(--primary-dark);
}

[data-theme="dark"] .btn--primary:hover {
  background-color: var(--primary-light);
}

.btn--full {
  width: 100%;
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition-colors);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

/* Icon styles */
.icon {
  width: 1.5rem;
  height: 1.5rem;
}

.icon--large {
  width: 3rem;
  height: 3rem;
}

/* Footer styles */
.footer {
  background-color: var(--dark-800);
  color: white;
  padding: 3rem 0;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer__section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition-colors);
}

.footer__links a:hover {
  color: white;
}

.footer__bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-400);
}

/* Empty state styles */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-state .icon--large {
  color: var(--gray-400);
  margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header__logo-text {
    font-size: 1.125rem;
  }

  .section {
    padding: 2rem 0;
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-cols-3 {
    grid-template-columns: repeat(1, 1fr);
  }
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

/* Section styles */
.section {
    padding: 3rem 0;
}

.section:first-child {
    padding-top: 2rem;
}

.section:last-child {
    padding-bottom: 3rem;
}



/* Убираем нижние margin у последних элементов в секциях */
.section > .container > *:last-child {
    margin-bottom: 0;
}

/* Section styles */
.section--alt {
    background-color: var(--bg-secondary);
}

/* Убираем margin у последних элементов */
.section > .container > *:last-child {
    margin-bottom: 0;
}

.icon {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: inline-block;
    vertical-align: middle;
}