/* Основные переменные для цветов */
:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 211 100% 55%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --radius: 0.5rem;
}

/* Основные стили */
.help-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Exo 2", sans-serif;
  color: hsl(var(--foreground));
}

/* Заголовок страницы */
.help-header {
  margin-bottom: 2rem;
}

.help-title {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

/* Аккордеон */
.help-accordion {
  margin-bottom: 2rem;
}

.help-accordion-item {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  background-color: hsl(var(--card));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.help-accordion-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.help-accordion-trigger {
  width: 100%;
  padding: 1.25rem;
  text-align: left;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: all 0.2s ease;
}

.help-accordion-trigger:hover {
  background-color: hsl(var(--muted));
}

.help-accordion-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.help-accordion-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.help-accordion-item.active .help-accordion-icon {
  transform: rotate(180deg);
}

.help-accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.help-accordion-item.active .help-accordion-content {
  padding: 1.25rem;
  max-height: 5000px; /* Достаточно большое значение для любого контента */
}

/* Стили для контента аккордеона */
.help-accordion-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.help-accordion-content ol,
.help-accordion-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.help-accordion-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.help-accordion-content img.illu {
  display: block;
  margin: 1.5rem 0;
  padding: 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.help-accordion-content img.illu:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1.01);
}

/* Выделение важного текста */
.help-important {
  color: hsl(var(--destructive));
  font-weight: 600;
}

/* Ссылки */
.help-link {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: all 0.2s ease;
}

.help-link:hover {
  text-decoration: underline;
  color: hsl(var(--primary) / 0.8);
}

/* Видео */
.help-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.help-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Подсказка внизу страницы */
.help-footer-tip {
  background-color: hsl(var(--muted));
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 2rem;
  border-left: 4px solid hsl(var(--primary));
}

/* Адаптивность */
@media (max-width: 768px) {
  .help-title {
    font-size: 1.75rem;
  }
  
  .help-accordion-trigger {
    font-size: 1rem;
    padding: 1rem;
  }
  
  .help-accordion-content {
    padding: 0;
  }
  
  .help-accordion-item.active .help-accordion-content {
    padding: 1rem;
  }
  
  .help-accordion-content img.illu {
    max-width: 100%;
  }
}
