/* SDR Manager Playbook 2026-2027 - Единый курс */
/* Минималистичный, профессиональный дизайн */

:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #5a5a7a;
  --border: #e8e8f0;
  --primary: #1a1a2e;
  --accent: #3b82f6;
  --accent-light: #eff6ff;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.nav a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.nav a.active {
  background: var(--primary);
  color: white;
}

/* Main container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* Hero section */
.hero {
  background: var(--primary);
  color: white;
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 13px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 800px;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  opacity: 0.85;
}

/* Grid layout */
.grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

/* Table of contents */
.toc-list {
  list-style: none;
}

.toc-item {
  margin-bottom: 8px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: var(--surface);
}

.toc-link:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.toc-link.current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.toc-num {
  width: 32px;
  height: 32px;
  background: var(--bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.toc-link.current .toc-num {
  background: rgba(255,255,255,0.2);
}

.toc-text {
  flex: 1;
}

.toc-title {
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.toc-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.toc-link.current .toc-desc {
  color: rgba(255,255,255,0.8);
}

/* Main content */
.main-content {
  min-width: 0;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

/* Module cards on index */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.module-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.module-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.module-card p {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 16px;
}

.module-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Lesson content */
.lesson {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.lesson-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lesson h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.lesson-meta {
  display: flex;
  gap: 8px;
}

.lesson-tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

.lesson-tag.practice {
  background: var(--success-light);
  color: var(--success);
}

.lesson-tag.theory {
  background: var(--accent-light);
  color: var(--accent);
}

.lesson-content {
  color: var(--text);
}

.lesson-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 12px;
}

.lesson-content ul, .lesson-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.lesson-content li {
  margin: 8px 0;
}

.lesson-content p {
  margin: 12px 0;
}

/* Info boxes */
.info-box {
  padding: 16px 20px;
  border-radius: 10px;
  margin: 16px 0;
}

.info-box.tip {
  background: var(--success-light);
  border-left: 4px solid var(--success);
}

.info-box.warning {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
}

.info-box.note {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
}

.info-box strong {
  display: block;
  margin-bottom: 4px;
}

/* Code blocks */
pre, .template {
  background: #1a1a2e;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 16px 0;
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.template-title {
  font-size: 14px;
  font-weight: 600;
}

.copy-btn {
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* Navigation buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-btn.secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.nav-btn.secondary:hover {
  background: var(--surface);
  border-color: var(--accent);
}

.nav-btn.primary {
  background: var(--primary);
  color: white;
}

.nav-btn.primary:hover {
  background: #2a2a4e;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  background: var(--success-light);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Footer */
.footer {
  margin-top: 48px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero {
    padding: 32px 24px;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .container {
    padding: 20px 16px 60px;
  }
  
  .sidebar {
    position: static;
  }
  
  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  .header, .sidebar, .nav-buttons {
    display: none;
  }
  
  .grid {
    display: block;
  }
  
  .card, .lesson {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
