.article-meta-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-family: sans-serif;
    font-size: 14px;
    color: #333;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    width: 100%;
}
  
.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 120px;
}
  
.meta-item i {
    color: #666;
    font-size: 16px;
}
  
.meta-label {
    font-weight: 500;
    color: #777;
}
  
.meta-value {
    font-weight: 600;
}

.container-transparent .article-image {
    width: 100%;
}

/* .container-box-transparent {
    display: flex;
} */

.container-transparent .article-image img {
    width: 100%;
    height: 350px;
    margin: 0 0 30px;
    border-radius: 15px;
    float: none;
    -webkit-align-self: flex-start;
    -ms-flex-item-align: start;
    align-self: flex-start;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    background-position: 0 0;
    background-size: cover;
    object-fit: cover;
}

.article-content {
    width: 100%;
}

.toc {
    border: 1px solid #e0e0e0;
    padding: 20px 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 30px 0;
    font-family: sans-serif;
}
  
.toc-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
}
  
.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    display: none;
}

.table-of-contents.active .toc .toc-title {
  margin-bottom: 15px;
}

.table-of-contents.active .toc ul {
  display: block;
}

.toc-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.table-of-contents.active .toc-arrow {
  transform: rotate(180deg);
}
  
.toc li {
    margin-bottom: 15px;
    padding-left: 15px;
    position: relative;
}
  
.toc li.h2 a {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    color: #2b2b2b;
    text-decoration: underline;
}
  
.toc li.h2 a:hover {
    text-decoration: none;
    color: #2b2b2b;
}
  
.toc li.h3 {
    margin-left: 30px;
    text-align: left;
    font-size: 15px;
    line-height: unset;
}
  
.toc li.h3 a {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    color: #2b2b2b;
    text-decoration: underline;
    text-transform: none;
}

.toc li.h3 a:hover {
    text-decoration: none;
    color: #2b2b2b;
}

.share-block {
    position: relative;
    display: inline-block;
    float: right;
    margin-top: 30px;
    width: 130px;
}

.share-title {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    user-select: none;
}

.share-icon {
    margin-left: 5px;
    transform: rotate(38deg);
}

.share-list {
    display: none;
    position: absolute;
    top: 25px;
    left: 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 100;
}

.share-block.active .share-list {
    display: block;
}

.share-btn {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    text-decoration: none;
    color: #333;
}

.share-btn img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.share-btn:last-child {
    margin-bottom: 0;
}

.article-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px; /* или нужная вам высота */
    overflow: hidden;
}

.article-image img {
    max-width: 100%;
    max-height: 600px;
    height: auto;
    object-fit: contain; /* сохраняет пропорции */
}

/* Общий стиль таблицы */
table {
    border-collapse: collapse; /* убираем двойные границы */
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    background-color: #fff;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* для плавности на iOS */
}

.table-wrapper table {
  min-width: 600px; /* чтобы таблица не сжималась слишком сильно */
}

/* Заголовки */
table thead th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: bold;
    padding: 10px;
    border-bottom: 2px solid #ddd;
    text-align: left;
}

/* Ячейки */
table td {
    padding: 10px;
    border-bottom: 1px solid #eee; /* горизонтальные линии */
}

/* Полосатые строки */
table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Эффект наведения */
table tbody tr:hover {
    background-color: #f1f7ff;
    transition: background-color 0.2s ease-in-out;
}

/* Вертикальные разделители */
table td,
table th {
    border-right: 1px solid #eee;
    text-align: center;
}

table td:last-child,
table th:last-child {
    border-right: none; /* убираем у последнего столбца */
}

/* Адаптивность */
@media (max-width: 768px) {
    table {
        font-size: 12px;
    }
    table th,
    table td {
        padding: 6px;
    }
}

.blog-page h2 {
  margin-top: 2.5rem; /* сверху побольше, чтобы отделять блоки */
  margin-bottom: 1rem;
}

.blog-page h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-page p {
  margin-top: 0;
  margin-bottom: 1.25rem; /* между абзацами */
  line-height: 1.6;       /* комфортная читаемость */
}

.blog-page ul, .blog-page ol {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;   /* чтобы маркеры не прилипали */
}

.blog-page li {
  margin-bottom: 0.5rem; /* немного воздуха между пунктами */
}

.blog-page blockquote {
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 4px solid #ddd;
  color: #555;
}

.blog-page img {
  margin: 2rem 0;
  max-width: 100%;
  height: auto;
  display: block;
}

.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px; /* контент | сайдбар */
  gap: 32px;
  align-items: start;
}
@media (max-width: 1200px) {
  .two-col-layout { display: block; }
  .news-sidebar { order: 2; }
}
/* Базовая косметика сайдбара/карточек */
.news-sidebar .sidebar-title { font-weight: 600; margin-bottom: 16px; }
/* Базовый вариант — колонка (для десктопа) */
.sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.sidebar-card__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.sidebar-card__title {
  display: block;
  margin-bottom: 6px;
  line-height: 1.25;
  font-weight: 600;
}

.sidebar-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #777;
}

/* На мобильных — строка (картинка слева, текст справа) */
@media (max-width: 1200px) {
  .sidebar-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .sidebar-card__image {
    flex: 0 0 96px;
  }

  .sidebar-card__image img {
    width: 96px;
    height: 96px;
    object-fit: cover;
  }

  .sidebar-card__body {
    flex: 1;
  }
}
.sidebar-card__more { text-decoration: underline; }

.two-col-layout .news-article.container {
  max-width: none; width: 100%;
  padding-left: 0; padding-right: 0;
  margin: 0;
}


.quiz-container {
  min-height: 600px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
}
.quiz-step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}
.quiz-step.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.option-card {
  transition: all 0.3s ease;
  cursor: pointer;
}
.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.option-card.selected {
  border-color: #10b981;
  background-color: #ecfdf5;
  transform: translateY(-2px);
}
.progress-bar {
  transition: width 0.5s ease;
}
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #d3d3d3;
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
}
input[type="date"] {
  background-color: white;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
}