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

:root {
  --primary-color: #1a365d;
  --secondary-color: #2d5a8c;
  --accent-color: #f312b0;
  --success-color: #10b981;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s;
}

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

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Section Styles */
.section {
  background-color: var(--bg-white);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.section h2 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1rem;
}

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

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

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

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

.check-content {
  flex: 1;
}

.check-content strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.25rem;
}

.check-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.tool-tag {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* SQ3R Steps */
.sq3r-grid {
  display: grid;
  gap: 1.5rem;
}

.sq3r-step {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.sq3r-step h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sq3r-step h3 span {
  background-color: var(--accent-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.sq3r-step p {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.sq3r-step .tip {
  background-color: white;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.sq3r-step .tip strong {
  color: var(--success-color);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

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

.comparison-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.comparison-table th:first-child {
  border-radius: 0.5rem 0 0 0;
}

.comparison-table th:last-child {
  border-radius: 0 0.5rem 0 0;
}

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

.comparison-table tr:hover {
  background-color: #e8f4f8;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--primary-color);
}

.badge-winner {
  background-color: var(--success-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.badge-good {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

/* Verdict Box */
.verdict-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid var(--success-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.verdict-box h3 {
  color: var(--success-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verdict-box p {
  color: var(--text-dark);
  line-height: 1.7;
}

/* Quick Reference */
.quick-ref {
  background-color: var(--bg-light);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1.5rem;
}

.quick-ref h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.quick-ref code {
  background-color: var(--primary-color);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  text-align: center;
}

/* ============ БУРГЕР-МЕНЮ ============ */

.navbar-toggle {
  display: none;
  width: 36px;
  height: 28px;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
}

.navbar-toggle::before {
  content: '\2630'; /* ☰ */
  font-size: 1.5rem;
  color: white;
  display: block;
  text-align: center;
  line-height: 1;
}

.navbar-toggle.active::before {
  content: '\2715'; /* ✕ */
}

/* Мобильное меню */
@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }

  #navbar-menu {
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 99;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  #navbar-menu.active {
    display: flex;
  }

  #navbar-menu a {
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
  }

  #navbar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ============ АДАПТИВНАЯ ТАБЛИЦА ============ */

/* Обёртка для прокрутки на десктопе (если таблица широкая) */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-wrapper table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

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

@media (max-width: 768px) {
  .comparison-table {
    display: none;
  }

  .comparison-table-mobile {
    display: block;
  }

  .comparison-row {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .comparison-criterion {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.25rem;
  }

  .comparison-cell {
    margin: 0.5rem 0;
    line-height: 1.5;
  }

  .comparison-cell strong {
    display: inline-block;
    width: 100px;
    color: var(--text-dark);
    font-weight: 600;
  }

  .badge-winner,
  .badge-good {
    background-color: var(--success-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
  }
}* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a365d;
  --secondary-color: #2d5a8c;
  --accent-color: #f312b0;
  --success-color: #10b981;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s;
}

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

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Section Styles */
.section {
  background-color: var(--bg-white);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.section h2 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1rem;
}

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

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

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

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

.check-content {
  flex: 1;
}

.check-content strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.25rem;
}

.check-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.tool-tag {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* SQ3R Steps */
.sq3r-grid {
  display: grid;
  gap: 1.5rem;
}

.sq3r-step {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.sq3r-step h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sq3r-step h3 span {
  background-color: var(--accent-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.sq3r-step p {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.sq3r-step .tip {
  background-color: white;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.sq3r-step .tip strong {
  color: var(--success-color);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

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

.comparison-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.comparison-table th:first-child {
  border-radius: 0.5rem 0 0 0;
}

.comparison-table th:last-child {
  border-radius: 0 0.5rem 0 0;
}

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

.comparison-table tr:hover {
  background-color: #e8f4f8;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--primary-color);
}

.badge-winner {
  background-color: var(--success-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.badge-good {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

/* Verdict Box */
.verdict-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid var(--success-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.verdict-box h3 {
  color: var(--success-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verdict-box p {
  color: var(--text-dark);
  line-height: 1.7;
}

/* Quick Reference */
.quick-ref {
  background-color: var(--bg-light);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1.5rem;
}

.quick-ref h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.quick-ref code {
  background-color: var(--primary-color);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  text-align: center;
}

/* ============ БУРГЕР-МЕНЮ ============ */

.navbar-toggle {
  display: none;
  width: 36px;
  height: 28px;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
}

.navbar-toggle::before {
  content: '\2630'; /* ☰ */
  font-size: 1.5rem;
  color: white;
  display: block;
  text-align: center;
  line-height: 1;
}

.navbar-toggle.active::before {
  content: '\2715'; /* ✕ */
}

/* Мобильное меню */
@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }

  #navbar-menu {
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 99;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  #navbar-menu.active {
    display: flex;
  }

  #navbar-menu a {
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
  }

  #navbar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ============ АДАПТИВНАЯ ТАБЛИЦА ============ */

/* Обёртка для прокрутки на десктопе (если таблица широкая) */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-wrapper table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

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

@media (max-width: 768px) {
  .comparison-table {
    display: none;
  }

  .comparison-table-mobile {
    display: block;
  }

  .comparison-row {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .comparison-criterion {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.25rem;
  }

  .comparison-cell {
    margin: 0.5rem 0;
    line-height: 1.5;
  }

  .comparison-cell strong {
    display: inline-block;
    width: 100px;
    color: var(--text-dark);
    font-weight: 600;
  }

  .badge-winner,
  .badge-good {
    background-color: var(--success-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
  }
}