:root {
  --primary-color: #10b981;
  --primary-light: #d1fae5;
  --primary-dark: #059669;
  --secondary-color: #6366f1;
  --secondary-light: #e0e7ff;
  --accent-color: #f59e0b;
  --accent-light: #fef3c7;
  --text-color: #1f2937;
  --text-muted: #6b7280;
  --bg-color: #f8fafc;
  --bg-card: #ffffff;
  --code-bg: #1e293b;
  --code-text: #e2e8f0;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #f0f9ff 100%);
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Navigation */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav-logo svg {
  width: 22px;
  height: 22px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 0.25rem;
  background: #f1f5f9;
  padding: 0.2rem;
  border-radius: 8px;
}

.nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.7);
}

.nav-link.active {
  color: white;
  background: var(--primary-color);
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.nav-link-dropdown {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1000;
  margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-item:only-child {
  border-radius: 8px;
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.dropdown-item.active {
  background: var(--primary-color);
  color: white;
}

.dropdown-item.active:hover {
  background: var(--primary-dark);
}

.nav-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-progress span:first-child {
  display: none;
}

.progress-bar {
  width: 80px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #047857 50%, #065f46 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
  margin: 0;
  font-size: 1.25rem;
  opacity: 0.9;
  position: relative;
  font-weight: 300;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-top: 1.5rem;
  position: relative;
}

/* Table of Contents */
.toc {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  box-shadow: var(--shadow-lg);
}

.toc h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.toc-item:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.toc-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.toc-text {
  font-weight: 500;
  font-size: 0.95rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Section */
section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

section:hover {
  box-shadow: var(--shadow-lg);
}

h2 {
  color: var(--text-color);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h2 .section-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

h3 {
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-color);
}

p {
  margin: 0 0 1rem;
  color: var(--text-color);
}

/* Cards */
.card {
  background: linear-gradient(135deg, var(--bg-color) 0%, #ffffff 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: all 0.2s ease;
}

.card:hover {
  border-left-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.card-purple {
  border-left-color: var(--secondary-color);
  background: linear-gradient(135deg, var(--secondary-light) 0%, #ffffff 100%);
}

.card-amber {
  border-left-color: var(--accent-color);
  background: linear-gradient(135deg, var(--accent-light) 0%, #ffffff 100%);
}

/* Code */
code {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
  font-weight: 500;
}

pre {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1rem 0;
  border: 1px solid #334155;
  position: relative;
}

pre::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 20px 0 0 #f59e0b, 40px 0 0 #22c55e;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* HTTP Methods */
.method {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.5rem;
}

.get {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.post {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.put {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.delete {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.patch {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Status Codes */
.status-code {
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.status-200 {
  color: #16a34a;
  background: #dcfce7;
}

.status-201 {
  color: #0891b2;
  background: #cffafe;
}

.status-400 {
  color: #d97706;
  background: #fef3c7;
}

.status-401 {
  color: #dc2626;
  background: #fee2e2;
}

.status-403 {
  color: #9333ea;
  background: #f3e8ff;
}

.status-404 {
  color: #ea580c;
  background: #ffedd5;
}

.status-500 {
  color: #dc2626;
  background: #fee2e2;
}

/* Lists */
ul,
ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

li {
  margin: 0.5rem 0;
  padding-left: 0.5rem;
}

li::marker {
  color: var(--primary-color);
}

/* Note/Tip/Warning */
.note {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border: 1px solid #93c5fd;
  border-left: 4px solid #3b82f6;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.note::before {
  content: '💡';
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
}

.warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.warning::before {
  content: '⚠️';
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
}

.tip {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  border: 1px solid #6ee7b7;
  border-left: 4px solid #10b981;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.tip::before {
  content: '✅';
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
}

/* Quiz Styles */
.quiz-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.question {
  background: linear-gradient(135deg, var(--bg-color) 0%, #ffffff 100%);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--secondary-color);
  transition: all 0.2s ease;
}

.question:hover {
  box-shadow: var(--shadow-sm);
}

.question h3 {
  margin: 0 0 1rem;
  color: var(--text-color);
  font-size: 1.1rem;
}

.options {
  list-style: none;
  padding: 0;
  margin: 0;
}

.options li {
  padding: 1rem 1.25rem;
  margin: 0.5rem 0;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.options li:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
  transform: translateX(4px);
}

.options li.selected {
  border-color: var(--primary-color);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.options li.correct {
  border-color: #22c55e;
  background: #dcfce7;
}

.options li.incorrect {
  border-color: #ef4444;
  background: #fee2e2;
}

.quiz-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.quiz-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.result {
  padding: 2rem;
  margin-top: 2rem;
  border-radius: var(--radius-md);
  display: none;
  text-align: center;
}

.result.show {
  display: block;
}

.result.pass {
  background: linear-gradient(135deg, #dcfce7 0%, #ecfdf5 100%);
  border: 2px solid #22c55e;
}

.result.fail {
  background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
  border: 2px solid #ef4444;
}

.result h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  justify-content: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  margin-top: 3rem;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-inner {
    padding: 0.5rem 1rem;
  }

  .nav-logo span,
  .nav-progress span:first-child {
    display: none;
  }

  .progress-bar {
    width: 60px;
  }

  .user-name {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  section {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
  }

  .nav-inner {
    padding: 0.4rem 0.75rem;
    flex-wrap: wrap;
  }

  .nav-logo {
    font-size: 0.9rem;
  }

  .nav-logo svg {
    width: 20px;
    height: 20px;
  }

  .nav-progress {
    display: none;
  }

  .nav-links {
    gap: 0.15rem;
    padding: 0.15rem;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }

  /* Mobile dropdown */
  .nav-dropdown {
    position: static;
  }

  .dropdown-menu {
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    min-width: auto;
    margin-top: 0.25rem;
  }

  .user-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }

  .logout-btn {
    padding: 0.25rem;
  }

  .logout-btn svg {
    width: 16px;
    height: 16px;
  }

  .toc {
    margin: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .toc h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .toc-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .toc-item {
    padding: 0.75rem;
  }

  .toc-number {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .toc-text {
    font-size: 0.9rem;
  }

  header {
    padding: 2.5rem 1rem;
  }

  header h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  header p {
    font-size: 1rem;
  }

  .header-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    margin-top: 1rem;
  }

  h2 {
    font-size: 1.35rem;
    flex-wrap: wrap;
  }

  h2 .section-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  h4 {
    font-size: 1rem;
  }

  /* Cards */
  .card {
    padding: 1rem;
    margin: 1rem 0;
  }

  /* Code blocks */
  pre {
    padding: 1rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
  }

  pre::before {
    display: none;
  }

  code {
    font-size: 0.8em;
    padding: 0.15rem 0.35rem;
  }

  /* Feature grid */
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .feature-title {
    font-size: 0.9rem;
  }

  .feature-desc {
    font-size: 0.8rem;
  }

  /* Tables */
  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem -1rem;
    padding: 0 1rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
    min-width: 100px;
  }

  /* Вертикальная таблица на мобильных */
  .comparison-table.mobile-stack {
    display: block;
  }

  .comparison-table.mobile-stack thead {
    display: none;
  }

  .comparison-table.mobile-stack tbody,
  .comparison-table.mobile-stack tr {
    display: block;
  }

  .comparison-table.mobile-stack tr {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .comparison-table.mobile-stack td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: right;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    white-space: normal;
  }

  .comparison-table.mobile-stack td:last-child {
    border-bottom: none;
  }

  .comparison-table.mobile-stack td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    padding-right: 1rem;
    flex-shrink: 0;
  }

  /* Note/Tip/Warning */
  .note,
  .warning,
  .tip {
    padding: 1rem 1rem 1rem 3rem;
    font-size: 0.9rem;
  }

  .note::before,
  .warning::before,
  .tip::before {
    left: 0.75rem;
    font-size: 1.25rem;
  }

  /* Quiz */
  .quiz-container {
    padding: 1.25rem;
  }

  .question {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  .question h3 {
    font-size: 1rem;
    line-height: 1.4;
  }

  .options li {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .quiz-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }

  .result {
    padding: 1.5rem;
  }

  .result h3 {
    font-size: 1.25rem;
  }

  /* Footer */
  footer {
    padding: 2rem 1rem;
  }

  /* Lists */
  ul,
  ol {
    padding-left: 1.25rem;
  }

  li {
    font-size: 0.95rem;
  }

  /* Login */
  .login-section {
    padding: 1rem;
  }

  .login-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .login-logo {
    width: 64px;
    height: 64px;
  }

  .login-card h2 {
    font-size: 1.4rem;
  }

  .login-card>p {
    font-size: 0.9rem;
  }

  .dev-login-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav-links {
    justify-content: flex-start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 1.3rem;
  }

  header p {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  section {
    padding: 1.25rem;
  }

  pre {
    font-size: 0.7rem;
    padding: 0.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.6rem 0.4rem;
    font-size: 0.8rem;
  }

  .question h3 {
    font-size: 0.95rem;
  }

  .options li {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.5s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 5px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.feature-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all 0.2s ease;
}

.tab:hover {
  color: var(--primary-color);
  background: var(--primary-light);
}

.tab.active {
  color: var(--primary-color);
  background: var(--primary-light);
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: -2px;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 100%;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background: var(--bg-color);
}

.comparison-table tr:hover {
  background: var(--primary-light);
}

/* ==================== */
/* Стили авторизации    */
/* ==================== */

.login-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #f0f9ff 100%);
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  max-width: 400px;
  width: 100%;
  border: 1px solid var(--border-color);
}

.login-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.login-logo svg {
  color: white;
}

.login-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  border: none;
  padding: 0;
  justify-content: center;
}

.login-card>p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

#telegram-login-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.login-hint {
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.login-hint small {
  font-size: 0.85rem;
}

/* Информация о пользователе в навигации */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.8rem;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 0.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.logout-btn svg {
  width: 18px;
  height: 18px;
}

.logout-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Обновление nav-inner для пользователя */
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Завершённые секции */
section.completed {
  position: relative;
}

section.completed::after {
  content: '✓';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
}

/* Кнопка для режима разработки */
.dev-login-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dev-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Адаптивность для авторизации */
@media (max-width: 768px) {
  .login-card {
    padding: 2rem;
  }
}
