@charset "UTF-8"; /*# The coding page CSS */
/**
 * =============================================================================
 * @encoding UTF-8
 * @author [Zerohold](//zerohold.sd1.su)
 * @project [Portal AI](//portal.sd1.su)
 * @summary Основные стили портала
 * @created 2025-10
 * @modified 2025-11
 *
 * @link https://portal.sd1.su/css/main.css
 * @file D:/kz/kz-sd1.su/portal.sd1.su/css/main.css
 *
 * @remarks
 * - Inline комментарии запрещены
 * =============================================================================
 */

/* Переменные CSS (Custom Properties) */
:root
{
  /* Цветовая палитра */
  --color-primary: #007bff;
  --color-primary-dark: #0056b3;
  --color-secondary: #6c757d;
  --color-success: #28a745;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
  --color-light: #f8f9fa;
  --color-dark: #343a40;
  --color-white: #ffffff;

  /* Цвета текста */
  --color-text-primary: #212529;
  --color-text-secondary: #6c757d;
  --color-text-muted: #868e96;

  /* Цвета фона */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #e9ecef;

  /* Размеры шрифтов */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Расстояние между буквами */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Радиусы скругления */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 0.75rem;
  --border-radius-2xl: 1rem;

  /* Тени */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Расстояния */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Переходы */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Контейнер */
  --container-max-width: 1200px;
  --container-padding: 1rem;

  /* Универсальные стили */

  /* Стили для всей страницы */
  --body-background-color:rgb(255,255,255);
  --body-background-image:none;
  --body-h-color:rgb(26,27,28);
  --body-text-color:rgb(88,88,88);

  /* Стили для header */
  --header-background-color:rgb(255,255,255);
  --header-background-image:none;
  --header-hover-box-shadow: 0 0 5px #333;

  /* Стили для breadcrumb */
  --breadcrumb-background-color:rgb(255,255,255);
  --breadcrumb-background-image:none;
  --breadcrumb-text-color:rgb(0,0,0);
  --breadcrumb-link-color:rgb(32,110,193);
  --breadcrumb-link-hover-color:rgb(0,0,0);
  --breadcrumb-divider:"›";/* Разделитель в хлебных крошках */

  /* Стили для main */
  --main-background-color:rgb(255,255,255);
  --main-background-image:none;
  --main-text-color:rgb(0,0,0);
  --main-link-color:rgb(0,89,168);
  --main-link-hover-color:rgb(0,0,0);
  --main-link-visited-color:rgba(75,132,168,.1);
  --main-font-family:system-ui,sans-serif;
  /* 'Franklin Gothic Medium' */

  /* Стили для пагинации */
  --pagination-border-color:rgb(231,232,234);

  --pagination-link-background-color:rgb(231,232,234);
  --pagination-link-color:rgb(112,115,123);
  --pagination-link-hover-background-color:rgb(26,27,29);
  --pagination-link-hover-color:rgb(255,255,255);
  --pagination-link-active-background-color:rgb(26,27,29);
  --pagination-link-active-color:rgb(255,255,255);

  /* Стили для h1 */
  --h1-background-color:rgb(247,247,247);
  --h1-background-image:none;
  --h1-text-color:var(--body-h-color);

  /* Стили для Элементов */
  --items-background-color:rgb(255,255,255);
  --items-background-image:linear-gradient(rgb(255,255,255) 0%,#f8f8f8 50%,#f2f2f2 100%);

  /* Стили для aside */
  --aside-background-color:rgb(255,255,255);
  --aside-background-image:none;
  --aside-section-background-color:rgb(247,247,247);
  --aside-text-color:rgb(0,0,0);
  --aside-link-color:rgb(110,110,110);
  --aside-link-hover-color:rgba(0,0,0,.08);

  /* Стили для footer */
  --footer-background-image:none;
  --footer-background-color:rgb(26,27,29);
  --footer-text-color:rgb(255,255,255);
  --footer-link-color:rgb(255,255,255);
  --footer-link-hover-color:rgb(32,110,193);

  /* Стили для контента внутри статей */

  /* Стили для таблиц */
  --table-row-odd-background-color:rgb(255,255,255);
  --table-row-even-background-color:#f9f9f9;
  --table-row-hover-background-color:#d8fdd6;
}

h1
{text-align: center;}
/* Стилизация логотипа */
.header-logo
{
  width: 48px;
  height: 48px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='48' height='48' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='24' cy='24' r='22' fill='%232563eb' stroke='%231d4ed8' stroke-width='2'/%3e%3cg transform='translate(12, 12)'%3e%3crect x='0' y='8' width='24' height='16' rx='2' fill='white' stroke='%232563eb' stroke-width='1.5'/%3e%3crect x='10' y='8' width='4' height='16' fill='%232563eb'/%3e%3ccircle cx='12' cy='16' r='1.5' fill='white'/%3e%3crect x='2' y='4' width='20' height='2' rx='1' fill='%232563eb' opacity='0.3'/%3e%3crect x='2' y='26' width='20' height='2' rx='1' fill='%232563eb' opacity='0.3'/%3e%3ccircle cx='6' cy='12' r='1' fill='%232563eb' opacity='0.5'/%3e%3ccircle cx='18' cy='12' r='1' fill='%232563eb' opacity='0.5'/%3e%3ccircle cx='6' cy='20' r='1' fill='%232563eb' opacity='0.5'/%3e%3ccircle cx='18' cy='20' r='1' fill='%232563eb' opacity='0.5'/%3e%3c/g%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Основной контент главной страницы */
.main-content
{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Секция постов */
.posts-section
{
  margin-top: 2rem;
}

/* Карточка поста */
.post-card
{
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease;
}

.post-card:hover
{
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Заголовок поста */
.post-title
{
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Содержимое поста */
.post-content
{
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Метаданные поста */
.post-meta
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Автор поста */
.post-author
{
  font-weight: 500;
}

/* Дата поста */
.post-date
{
  color: var(--text-muted);
}

/* Кнопки действий с постом */
.post-actions
{
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}


/* Пустое состояние (когда нет постов) */
.no-posts
{
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.no-posts-icon
{
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-posts-title
{
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.no-posts-text
{
  font-size: 1rem;
  line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 768px)
{
  .main-content
  {
    padding: 1rem;
  }

  .post-card
  {
    padding: 1rem;
  }

  .post-meta
  {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .post-actions
  {
    justify-content: center;
  }
}

/* Дополнительные цвета для иконок */
.icon-purple { color: #8b5cf6; }
.icon-orange { color: #f97316; }
.icon-green { color: #22c55e; }
.icon-teal { color: #14b8a6; }
.icon-red { color: #ef4444; }
.icon-blue { color: #3b82f6; }
.icon-pink { color: #ec4899; }

/* Градиентный текст */
.gradient-text
{
  background: linear-gradient(135deg, var(--primary), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Сетка AI сервисов - простая и надежная */
.ai-services-grid
{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Карточки проектов в сетке - минимальные изменения */
.ai-services-grid .project-card
{
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  padding: 1.5rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Преимущества AI - исправляем grid на flexbox */
.advantages-grid
{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.advantages-grid .benefit-card
{
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 250px;
  padding: 1.5rem;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Цвета для темной темы */
[data-theme="dark"]
{
  --bg-secondary: #1f2937;
  --bg-tertiary: #111827;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --border-color: #374151;
}

[data-theme="dark"] .post-card
{
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .post-card:hover
{
  background: rgba(255, 255, 255, 0.08);
}

/* Стили для секций с цветами */
.bg-secondary
{
  background-color: var(--bg-secondary);
}

.bg-tertiary
{
  background-color: var(--bg-tertiary);
}

.text-muted
{
  color: var(--text-muted);
}

/* Стили для workflow секции */
.workflow-container
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 2rem;
}

.workflow-container::before
{
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #f59e0b);
  z-index: 0;
}

.workflow-step
{
  background: white;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 4px solid var(--primary);
  transition: all 0.3s ease;
  text-align: center;
}

.workflow-step:hover
{
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Стили для карточек проектов и преимуществ */
.project-card,
.benefit-card,
.payment-card
{
  background: white;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.project-card:hover,
.benefit-card:hover
{
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.payment-card
{
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.payment-card ul
{
  list-style: none;
  padding: 0;
  margin: 0;
}

.payment-card li
{
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Стили для контактных ссылок */
.contact-link
{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: white;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-secondary);
}

.contact-link:hover
{
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: var(--primary);
}

/* Адаптивность для мобильных */
@media (max-width: 768px)
{
  .workflow-container
  {
    flex-direction: column;
    gap: 1rem;
  }

  .workflow-container::before
  {
    display: none;
  }

  .workflow-step
  {
    width: 100px;
    height: 100px;
  }

  .project-card,
  .benefit-card,
  .payment-card
  {
    padding: 1.5rem;
  }
}

/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПОРТАЛА */

/* Размеры текста */
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }
.text-5xl { font-size: 3rem; }
.text-xl { font-size: var(--font-size-xl); }
.text-lg { font-size: var(--font-size-lg); }
.text-sm { font-size: var(--font-size-sm); }

/* Отступы */
.mb-16 { margin-bottom: 4rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }

.mt-12 { margin-top: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-3 { margin-top: 0.75rem; }

.mr-3 { margin-right: 0.75rem; }
.mr-2 { margin-right: 0.5rem; }

.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

.gap-8 { gap: 2rem; }
.gap-6 { gap: 1.5rem; }
.gap-4 { gap: 1rem; }
.gap-3 { gap: 0.75rem; }
.gap-2 { gap: 0.5rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Max width */
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Цвета фона */
.bg-white { background-color: #ffffff; }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }

/* Responsive - базовые медиа-запросы */
@media (min-width: 640px) {
  .ai-services-grid .project-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (min-width: 768px) {
  .ai-services-grid .project-card {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

@media (min-width: 1024px) {
  .ai-services-grid .project-card {
    flex: 0 0 calc(25% - 1rem);
  }
}

/* СТИЛИ ДЛЯ СТРАНИЦ АУТЕНТИФИКАЦИИ */

/* Обертка страницы аутентификации (auth wrapper) */
.page-container
{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--color-bg-tertiary);
  padding: var(--spacing-md);
}

/* Основная карточка аутентификации (auth card) */
.auth-card
{
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
}

/* Контент вкладок (tab content) */
.tab-content
{
  display: none;
}

.tab-content.active
{
  display: block;
  animation: contentFadeIn 0.4s ease-in-out;
}

@keyframes contentFadeIn
{
  from
  {
    opacity: 0;
    transform: translateY(10px);
  }
  to
  {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Кастомный чекбокс (custom checkbox) */
.form-check
{
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.form-check-input
{
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.1em;
  vertical-align: top;
  background-color: var(--color-bg-primary);
  border: 1px solid #ced4da;
  border-radius: var(--border-radius-sm);
  appearance: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.form-check-input:checked
{
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
  background-size: 65%;
  background-position: center;
  background-repeat: no-repeat;
}

.form-check-input:focus
{
  border-color: var(--color-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-check-label
{
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  cursor: pointer;
}

/* Анимация для карточки (card animation) */
.animate-zoom-in
{
  animation: zoomIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes zoomIn
{
  from
  {
    transform: scale(0.95);
    opacity: 0;
  }
  to
  {
    transform: scale(1);
    opacity: 1;
  }
}

/* НОВЫЕ СТИЛИ ДЛЯ ПРИВЕТСТВЕННОЙ СЕКЦИИ */

.hero-section
{
  position: relative;
  color: white;
  padding: 8rem 0;
  overflow: hidden;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient-animation 15s ease infinite;
  border-bottom: 5px solid var(--primary-dark);
}

@keyframes gradient-animation
{
  0%
  {
    background-position: 0 50%;
  }
  50%
  {
    background-position: 100% 50%;
  }
  100%
  {
    background-position: 0 50%;
  }
}

.hero-content
{
  position: relative;
  z-index: 1;
  animation: fade-in-up 1s ease-out forwards;
}

@keyframes fade-in-up
{
  from
  {
    opacity: 0;
    transform: translateY(20px);
  }
  to
  {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-icon
{
  color: #fcd34d; /* Яркий желтый */
  text-shadow: 0 0 20px rgba(252, 211, 77, 0.8), 0 0 30px rgba(252, 211, 77, 0.5);
  animation: float-glow 4s ease-in-out infinite;
}

@keyframes float-glow
{
  0%, 100%
  {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50%
  {
    transform: translateY(-15px) scale(1.05);
    opacity: 0.9;
  }
}

.hero-title,
.hero-subtitle
{
  animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
  animation-delay: 0.2s;
}

@keyframes text-focus-in
{
  0%
  {
    filter: blur(12px);
    opacity: 0;
  }
  100%
  {
    filter: blur(0px);
    opacity: 1;
  }
}

.hero-buttons .btn
{
  animation: fade-in-up 0.8s ease-out backwards;
}

.hero-buttons .btn:nth-child(1)
{
  animation-delay: 0.4s;
}

.hero-buttons .btn:nth-child(2)
{
  animation-delay: 0.6s;
}


/* Фоновые анимированные фигуры */
.hero-section::before
{
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float-shape 15s infinite linear;
  z-index: 0;
}

.hero-section::after
{
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: float-shape 20s infinite linear reverse;
  z-index: 0;
}

@keyframes float-shape
{
  0%
  {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25%
  {
    transform: translateY(20px) translateX(-30px) rotate(90deg);
  }
  50%
  {
    transform: translateY(-20px) translateX(30px) rotate(180deg);
  }
  75%
  {
    transform: translateY(30px) translateX(20px) rotate(270deg);
  }
  100%
  {
    transform: translateY(0) translateX(0) rotate(360deg);
  }
}

/* Стили для страницы ошибки 404 */
.error-container
{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.error-content
{
  max-width: 800px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.error-icon
{
  text-align: center;
  padding: 40px 20px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.error-page-icon
{
  font-size: 4rem;
  opacity: 0.7;
}

.error-details
{
  padding: 40px;
}

.error-title
{
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 2rem;
}

.error-message
{
  color: #6c757d;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.error-suggestions
{
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #007bff;
}

.error-suggestions h3
{
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.2rem;
}

.error-suggestions ul
{
  margin: 0;
  padding-left: 20px;
  color: #495057;
}

.error-suggestions li
{
  margin-bottom: 8px;
  line-height: 1.5;
}

.error-actions
{
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.error-info
{
  background: #e9ecef;
  padding: 20px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.error-info p
{
  margin: 5px 0;
  color: #495057;
}

.error-code
{
  font-weight: bold;
  color: #dc3545;
}

.error-debug
{
  margin-top: 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
}

.error-debug h4
{
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 1rem;
}

.error-debug details
{
  font-size: 0.85rem;
}

.error-debug pre
{
  background: #2d3748;
  color: #e2e8f0;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0;
}

/* Адаптивность */
@media (max-width: 768px)
{
  .error-container
  {
    padding: 15px;
  }

  .error-content
  {
    margin: 0;
  }

  .error-details
  {
    padding: 25px 20px;
  }

  .error-title
  {
    font-size: 1.5rem;
  }

  .error-actions
  {
    flex-direction: column;
  }

  .btn
  {
    width: 100%;
    text-align: center;
  }
}

/* Стили для страницы ошибки 500 */
.error-container.error-500 {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.error-content.error-500 {
    max-width: 900px;
}

.error-icon.error-500 {
    background: #f8d7da;
}

.error-title.error-500 {
    color: #721c24;
}

.error-explanation,
.error-solutions {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #dc3545;
}

.error-explanation h3,
.error-solutions h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.error-explanation p,
.error-solutions p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

.error-solutions ul {
    margin: 0;
    padding-left: 20px;
    color: #495057;
}

.error-solutions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.debug-section {
    margin-bottom: 20px;
}

.debug-section h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.error-message-box,
.error-trace {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 0;
    font-size: 0.85rem;
}

.error-footer {
    background: #fff3cd;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
}

.error-footer p {
    margin: 0 0 10px 0;
    color: #856404;
    line-height: 1.5;
}

.contact-info {
    font-size: 0.9rem;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Стили для предварительного просмотра изображений */
.image-preview-container
{
  position: relative;
  max-width: 100%;
  max-height: 400px; /* Ограничение высоты для больших изображений */
  overflow: hidden;
  border-radius: var(--border-radius);
  border: 1px solid #dee2e6;
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px; /* Минимальная высота, чтобы контейнер не схлопывался */
}

.image-preview-container img
{
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain; /* Изображение будет вписано в контейнер с сохранением пропорций */
  display: block;
}
