﻿/* CSS файл для template3 */

/* Стили для форматирования статьи на странице post detail */

/* Основной контейнер статьи */
.main-content-text {
  line-height: 1.8;
  color: #334155;
}

/* Заголовки */
.main-content-text h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e3a5f;
}

.main-content-text h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
  color: #1e3a5f;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.main-content-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1e3a5f;
}

.main-content-text h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.25rem;
  margin-bottom: 0.625rem;
  color: #334155;
}

.main-content-text h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #475569;
}

.main-content-text h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Параграфы */
.main-content-text p {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

/* Ссылки */
.main-content-text a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.main-content-text a:hover {
  color: #1e3a5f;
  border-bottom-color: #3b82f6;
}

/* Списки */
.main-content-text ul,
.main-content-text ol {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.75rem;
}

.main-content-text ul {
  list-style-type: disc;
}

.main-content-text ol {
  list-style-type: decimal;
}

.main-content-text li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.main-content-text li::marker {
  color: #3b82f6;
}

/* Вложенные списки */
.main-content-text ul ul,
.main-content-text ol ol,
.main-content-text ul ol,
.main-content-text ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Цитаты */
.main-content-text blockquote {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  border-left: 4px solid #3b82f6;
  background-color: #f8fafc;
  color: #475569;
  font-style: italic;
}

.main-content-text blockquote p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Код */
.main-content-text code {
  background-color: #f1f5f9;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #e11d48;
  font-family: 'Courier New', Courier, monospace;
}

.main-content-text pre {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #1e293b;
  border-radius: 0.5rem;
  overflow-x: auto;
}

.main-content-text pre code {
  background-color: transparent;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.875rem;
}

/* Таблицы */
.main-content-text table {
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.main-content-text thead {
  background-color: #1e3a5f;
}

.main-content-text th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-content-text td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.main-content-text tbody tr:last-child td {
  border-bottom: none;
}

.main-content-text tbody tr:hover {
  background-color: #f8fafc;
}

/* Изображения */
.main-content-text img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Горизонтальная линия */
.main-content-text hr {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: none;
  border-top: 2px solid #e2e8f0;
}

/* Сильное выделение */
.main-content-text strong {
  font-weight: 700;
  color: #1e3a5f;
}

/* Курсив */
.main-content-text em {
  font-style: italic;
}

/* Подчеркивание */
.main-content-text u {
  text-decoration: underline;
  text-decoration-color: #3b82f6;
  text-underline-offset: 2px;
}

/* Зачеркнутый текст */
.main-content-text del,
.main-content-text s {
  text-decoration: line-through;
  color: #94a3b8;
}

/* Маркированный текст */
.main-content-text mark {
  background-color: #fef08a;
  padding: 0.125rem 0.25rem;
  border-radius: 0.125rem;
}

/* Абзац с отступом */
.main-content-text .indent {
  padding-left: 2rem;
}

/* Выравнивание текста */
.main-content-text .text-left {
  text-align: left;
}

.main-content-text .text-center {
  text-align: center;
}

.main-content-text .text-right {
  text-align: right;
}

.main-content-text .text-justify {
  text-align: justify;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .main-content-text h1 {
    font-size: 1.75rem;
  }

  .main-content-text h2 {
    font-size: 1.5rem;
  }

  .main-content-text h3 {
    font-size: 1.25rem;
  }

  .main-content-text h4 {
    font-size: 1.125rem;
  }

  .main-content-text p,
  .main-content-text li {
    font-size: 0.95rem;
  }

  .main-content-text table {
    font-size: 0.875rem;
  }

  .main-content-text th,
  .main-content-text td {
    padding: 0.5rem 0.75rem;
  }
}
ntvk-tag.ntvk-frame.banner {
    zoom: 0.8;
}