.article-wrapper {
    max-width: 1000px;
    margin: 40px auto 80px auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.article-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.article-tag {
    background-color: rgba(0,0,0,0.05);
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--color-text-dark);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 40px;
}

.content-body {
    font-size: 1.15rem;
    color: #555;
}

/* Контентные ссылки (LAG-291): shorthand [INTERNAL-LINK] и обычные markdown-
   ссылки разворачиваются в <a>, но глобальный reset (a { text-decoration: none;
   color: inherit }) делал их невидимыми. Делаем ссылку заметной: цвет,
   подчёркивание с аккуратным отступом, курсор- руку. */
.content-body a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    cursor: pointer;
}

.content-body a:hover {
    color: var(--color-link-hover);
    text-decoration-thickness: 2px;
}

.content-body p {
    margin-bottom: 25px;
}

.content-body h2 {
    font-size: 1.8rem;
    color: var(--color-text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid var(--color-accent);
}

.content-body h3 {
    font-size: 1.4rem;
    color: var(--color-text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-body ul {
    list-style: none;
    margin-bottom: 25px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
}

.content-body li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.content-body li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

/* Нумерованные списки (LAG-334): <ol> показывает числа, а не галочку из
   .content-body li::before. Восстанавливаем list-style (глобальный reset
   ul{list-style:none} его не трогает, но * {padding:0} обнуляет отступ под
   маркер у ol — возвращаем padding-left), и гасим ::before только для прямых
   потомков ol, чтобы вложенные <ul> сохраняли галочку. Карточный фон/скругление
   — паритет с <ul> для единого вида списков в теле статьи. */
.content-body ol {
    list-style: decimal;
    margin-bottom: 25px;
    background: #f9f9f9;
    padding: 25px 25px 25px 50px;
    border-radius: 15px;
}

.content-body ol > li {
    padding-left: 0;
    margin-bottom: 10px;
}

.content-body ol > li::before {
    content: none;
}

/* Контентные таблицы (LAG-293): мягкие бордеры, акцентная шапка,
   чередование строк even/odd, компактный размер, скруглённые углы —
   вписываются в пастельный дизайн, а широкие таблицы на мобильных
   прокручиваются по горизонтали без разрыва вёрстки. */
.content-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.content-body table thead th {
    background: var(--color-accent);
    color: var(--color-text-dark);
    font-weight: 700;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.content-body table tbody th,
.content-body table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.content-body table tbody tr:nth-child(odd) {
    background: var(--color-bg);
}

.content-body table tbody tr:nth-child(even) {
    background: var(--color-white);
}

.content-body table tbody tr:hover {
    background: rgba(204, 245, 198, 0.45);
}

.content-body table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .content-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.custom-quote {
    background-color: rgba(255, 200, 221, 0.2);
    border-left: 5px solid var(--color-accent);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
}

.share-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-bg);
    padding: 20px;
    border-radius: 15px;
    margin-top: 50px;
}

.share-label {
    font-weight: 700;
}

.share-icons {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: 0.3s;
    cursor: pointer;
}

.sb-vk { background: #0077FF; }
.sb-telegram { background: #0088cc; }

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.bottom-sections-wrapper {
    max-width: var(--container-width);
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #FF6B6B;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 1200px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.card-sm {
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card-sm:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 180px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.card-link {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.popular-badge-sm {
    background: #FF6B6B;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    align-self: flex-start;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .article-wrapper {
        padding: 25px;
        margin: 20px 0;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-hero-img {
        height: 250px;
    }

    .share-block {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
