
/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Шапка */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  text-align: center;
}

.header h1 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

/* Хлебные крошки */
.breadcrumb {
  padding: 15px 20px;
  background: #e9ecef;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

/* Список файлов */
.file-list {
  list-style: none;
  padding: 0;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.3s;
}

.file-item:hover {
  background-color: #f1f3f5;
}

.directory {
  background-color: #e7f3ff;
}

.file {
  background-color: white;
}

/* Ссылки */
.file-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.file-link:hover {
  text-decoration: underline;
}

/* Информация о файле */
.file-info {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Кнопки загрузки */
.download-buttons {
  text-align: center;
  margin: 25px 0;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn span {
  font-size: 1.1rem;
}

.torrent-btn {
  background: #28a745;
  color: white;
}

.site-btn {
  background: #008cf0;
  color: white;
}

.yandex-btn {
  background: #ffc107;
  color: #212529;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Основной контент */
main {
  padding: 20px;
}

/* Общие стили для секций */
.section {
  padding: 30px;
  border-bottom: 1px solid #e9ecef;
  background: white;
}

.section:last-child {
  border-bottom: none;
}

/* Заголовки секций */
.section h2 {
  color: #28a745;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 600;
  position: relative;
  padding-left: 15px;
}

.section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  height: 0.3em;
  width: 8px;
  background: #007bff;
  border-radius: 4px;
}

/* Стили для списков */
.section ul,
.section ol {
  margin-left: 25px;
  margin-bottom: 20px;
}

.section li {
  margin-bottom: 12px;
  position: relative;
}

/* Нумерованный список (инструкция) */
.section ol {
  counter-reset: step-counter;
}

.section ol li {
  counter-increment: step-counter;
}

.section ol li::before {
  content: counter(step-counter);
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #007bff;
  color: white;
  text-align: center;
  line-height: 24px;
  font-size: 0.85rem;
  margin-right: 10px;
  font-weight: bold;
}

/* Маркированный список */
.section ul li::before {
  content: '•';
  color: #007bff;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Стили для выделенных элементов */
.section strong {
  color: #28a745;
  font-weight: 600;
}

/* Стили для кода */
.section code {
  background: #f8f9fa;
  padding: 2px 6px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #d63384;
}

/* Раздел «Системные требования» */
.requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.req-item {
  background: #e3f2fd;
  padding: 16px;
  border-radius: 6px;
  border-left: 4px solid #007bff;
  font-weight: 500;
  color: #1a1a1a;
}

/* Эффекты при наведении */
.section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}
/* Адаптивность (продолжение) */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  main {
    padding: 15px;
  }

  .section {
    padding: 20px 15px;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .breadcrumb {
    font-size: 0.8rem;
    padding: 10px 15px;
  }

  .requirements {
    grid-template-columns: 1fr;
  }

  .section code {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 15px;
  }

  .header h1 {
    font-size: 1.3rem;
  }

  .breadcrumb {
    font-size: 0.7rem;
  }

  .file-item {
    padding: 12px 15px;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.85rem;
  }

  .download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Улучшение доступности */
@media (prefers-contrast: high) {
  .section {
    border-color: #000;
  }

  .req-item {
    border-left-color: #000;
  }

  .breadcrumb a {
    text-decoration: underline;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  .container {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
  }

  .breadcrumb {
    background: #3d3d3d;
    border-bottom: 1px solid #555;
  }

  .section {
    background: #2d2d2d;
    border-bottom: 1px solid #444;
  }

  .req-item {
    background: #404050;
    border-left: 4px solid #66a3ff;
    color: #f0f0f0;
  }

  .section code {
    background: #3a3a3a;
    border: 1px solid #555;
    color: #ff88cc;
  }

  .file-link {
    color: #88ceff;
  }

  .directory {
    background-color: #353545;
  }

  .file {
    background-color: #2a2a2a;
  }
}

/* Оптимизация производительности — минимизация перерисовок */
.section,
.file-item,
.download-btn {
  will-change: transform, box-shadow;
}

/* Плавные переходы для всех анимируемых элементов */
* {
  transition: all 0.3s ease;
}

/* Убираем лишние переходы для элементов, где они не нужны */
* * {
  transition: none;
}

.section,
.file-item,
.download-btn {
  transition-property: transform, box-shadow, background-color;
}

/* Фиксация возможных проблем с рендерингом на мобильных */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Улучшение тактильной обратной связи на сенсорных устройствах */
.download-btn,
.file-link {
  -webkit-tap-highlight-color: transparent;
}

/* Оптимизация для печати */
@media print {
  body {
    color: #000;
    background: white;
  }

  .header,
  .breadcrumb,
  .download-buttons,
  .file-list {
    display: none;
  }

  .container,
  .section {
    box-shadow: none;
    border: none;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 90%;
  }
}
