﻿/* === Базовые переменные и сброс === */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #475569;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* === Градиентный фон === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* === Контейнер === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === Хедер === */
.header {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: var(--transition);
}

.nav a:hover {
  color: var(--text-primary);
}

.nav a:hover::after {
  width: 100%;
}

/* === Главный заголовок === */
.hero {
  padding: 4rem 0;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* === Секции глав === */
.chapter {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.6s ease-out;
  transition: var(--transition);
}

.chapter:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  border-color: var(--primary-color);
}

.chapter-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.chapter-number {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chapter h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.chapter-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Параграфы === */
.paragraph {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.paragraph:hover {
  border-left-color: var(--accent-color);
  transform: translateX(5px);
}

.paragraph h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.paragraph-number {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.paragraph p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.paragraph strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* === Списки === */
.paragraph ul,
.paragraph ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.paragraph li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.paragraph li::marker {
  color: var(--primary-color);
}

/* === Таблицы === */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

thead {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

td {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

/* === Блоки с подсказками === */
.tip,
.warning,
.info {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.tip {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: var(--success-color);
}

.warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: var(--warning-color);
}

.info {
  background: rgba(99, 102, 241, 0.1);
  border-left-color: var(--primary-color);
}

.tip-title,
.warning-title,
.info-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tip .tip-title { color: var(--success-color); }
.warning .warning-title { color: var(--warning-color); }
.info .info-title { color: var(--primary-color); }

/* === Кнопки навигации === */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.btn {
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}

/* === Анимации === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Адаптивность === */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .chapter {
    padding: 1.5rem;
  }

  .chapter h2 {
    font-size: 1.75rem;
  }

  .paragraph {
    padding: 1.5rem;
  }

  .paragraph h3 {
    font-size: 1.5rem;
  }

  .nav {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .nav-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Скроллбар === */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}


/* === Список глав внутри части === */
.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.chapter-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.chapter-item:hover {
  border-color: var(--primary-color);
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.chapter-item-number {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  min-width: 3.5rem;
  text-align: center;
}

.chapter-item-content {
  flex: 1;
}

.chapter-item-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.chapter-item-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* === Статистика === */
.stats {
  margin-top: 4rem;
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-xl);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* === Адаптивность для списка глав === */
@media (max-width: 768px) {
  .chapter-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .chapter-item-number {
    align-self: flex-start;
  }

  .btn-small {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* === Схема архитектуры === */
.architecture-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.layer {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.layer:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.layer-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.layer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.layer-desc {
  font-size: 0.875rem;
  opacity: 0.9;
}

.layer-4 {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: white;
}

.layer-3 {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
}

.layer-2 {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.layer-1 {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
}

/* === Блоки кода === */
.code-block {
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.code-header {
  background: var(--bg-primary);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.code-block pre {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-primary);
  overflow-x: auto;
}

.code-block code {
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-primary);
}

/* === Адаптивность для схемы === */
@media (max-width: 768px) {
  .architecture-diagram {
    padding: 1rem;
  }

  .layer {
    padding: 1rem;
  }

  .layer-title {
    font-size: 1rem;
  }

  .layer-desc {
    font-size: 0.75rem;
  }

  .code-block pre {
    padding: 1rem;
  }

  .code-block code {
    font-size: 0.75rem;
  }
}


/* === Карточки движков === */
.engine-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.engine-card {
  flex: 1;
  max-width: 300px;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.engine-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.blink-card {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
}

.webkit-card {
  background: linear-gradient(135deg, #007aff, #5856d6);
  color: white;
}

.engine-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.engine-name {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.engine-platform {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.engine-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.9;
}

.engine-vs {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* === Адаптивность для карточек движков === */
@media (max-width: 768px) {
  .engine-comparison {
    flex-direction: column;
    gap: 1rem;
  }

  .engine-card {
    max-width: 100%;
  }

  .engine-vs {
    font-size: 1.5rem;
  }
}


/* === Timeline для Android === */
.android-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.android-timeline::before {
  content: '';
  position: absolute;
  left: 2.5rem;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

.timeline-year {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  min-width: 4rem;
  text-align: center;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.timeline-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* === Fragmentation Chart === */
.fragmentation-chart {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.chart-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.bar-label {
  min-width: 150px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.bar-fill {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.bar-fill:hover {
  transform: scaleX(1.02);
  box-shadow: var(--shadow-md);
}

/* === Comparison Table === */
.comparison-table {
  margin: 2rem 0;
}

.comparison-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.125rem;
}

/* === Адаптивность === */
@media (max-width: 768px) {
  .android-timeline::before {
    left: 1.5rem;
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .timeline-year {
    align-self: flex-start;
  }

  .chart-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .bar-label {
    min-width: auto;
  }

  .bar-fill {
    width: 100%;
  }
}


/* === iOS Evolution === */
.ios-evolution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.evolution-item {
  flex: 1;
  max-width: 350px;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.evolution-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.uiwebview {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
}

.wkwebview {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
}

.evolution-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.evolution-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.evolution-period {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.evolution-features {
  list-style: none;
  padding: 0;
  text-align: left;
}

.evolution-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
}

.evolution-features li:last-child {
  border-bottom: none;
}

.evolution-arrow {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-muted);
}

/* === Process Diagram === */
.process-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.process-card {
  flex: 1;
  max-width: 300px;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.app-process {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.webkit-process {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
}

.process-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.process-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-desc {
  font-size: 0.875rem;
  opacity: 0.9;
}

.process-connection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.connection-line {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.connection-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === Checklist === */
.checklist {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.checklist-category {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.checklist-item {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.checklist-item:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

/* === Адаптивность === */
@media (max-width: 768px) {
  .ios-evolution,
  .process-diagram {
    flex-direction: column;
    gap: 1rem;
  }

  .evolution-item,
  .process-card {
    max-width: 100%;
  }

  .evolution-arrow {
    transform: rotate(90deg);
  }

  .connection-line {
    width: 50px;
  }
}


/* === Platform Comparison === */
.platform-comparison {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.platform-header {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.platform-badge {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.android-badge {
  background: linear-gradient(135deg, #3ddc84, #0f9d58);
  color: white;
}

.ios-badge {
  background: linear-gradient(135deg, #007aff, #5856d6);
  color: white;
}

.comparison-table-full {
  width: 100%;
}

.comparison-table-full td:nth-child(2) {
  background: rgba(61, 220, 132, 0.05);
}

.comparison-table-full td:nth-child(3) {
  background: rgba(0, 122, 255, 0.05);
}

/* === Tools Comparison === */
.tools-comparison {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.tool-card {
  flex: 1;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.chrome-devtools {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(52, 168, 83, 0.1));
}

.safari-inspector {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.1));
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.tool-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.tool-platform {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tool-features {
  list-style: none;
  padding: 0;
}

.tool-features > li {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-color);
}

.tool-features > li > strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.tool-features ul {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.tool-features ul li {
  padding: 0.25rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  position: relative;
  padding-left: 1rem;
}

.tool-features ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* === Адаптивность === */
@media (max-width: 768px) {
  .platform-header {
    flex-direction: column;
    gap: 1rem;
  }

  .tools-comparison {
    flex-direction: column;
  }

  .comparison-table-full {
    font-size: 0.875rem;
  }

  .comparison-table-full th,
  .comparison-table-full td {
    padding: 0.5rem;
  }
}


/* === Архитектурная диаграмма для фреймворков === */
.framework-architecture {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.framework-layer {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.framework-layer:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.framework-layer-4 {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: white;
}

.framework-layer-3 {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
}

.framework-layer-2 {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.framework-layer-1 {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
}

.framework-layer-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.framework-layer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.framework-layer-desc {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* === Адаптивность === */
@media (max-width: 768px) {
  .framework-architecture {
    padding: 1rem;
  }

  .framework-layer {
    padding: 1rem;
  }

  .framework-layer-title {
    font-size: 1rem;
  }

  .framework-layer-desc {
    font-size: 0.75rem;
  }
}


/* === DevTools Overview === */
.devtools-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.devtools-tab {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.devtools-tab:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.tab-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tab-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.tab-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === Адаптивность === */
@media (max-width: 768px) {
  .devtools-overview {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
  }

  .devtools-tab {
    padding: 1rem;
  }

  .tab-icon {
    font-size: 1.5rem;
  }

  .tab-name {
    font-size: 0.875rem;
  }
}

