/* ОСНОВНЫЕ СТИЛИ СТАТЬИ */
.article-content {
    line-height: 1.7;
    color: #333;
    font-size: 18px;

    box-sizing: border-box;
    justify-content: space-between;
}

/* ЗАГОЛОВКИ */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.vacancies-form-section.dop .form-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}

.vacancies-form-section .form-title {
    color: #fff !important;
}

.article-content h2 {
    padding-bottom: 15px;
}

/* .article-content h2:first-of-type {
    margin-top: 1em;
} */

.article-content h4 {
    font-size: 1.25em;
    color: #7f8c8d;
}

/* АБЗАЦЫ */
.article-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* ЖИРНЫЙ ТЕКСТ */
.article-content b,
.article-content strong {
    color: #2c3e50;
    font-weight: 700;
}

/* СПИСКИ */
.article-content ul,
.article-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.article-content li {
    margin-bottom: 0.8em;
    position: relative;
}

.article-content ul li {
    list-style-type: none;
    padding-left: 1.5em;
}

.article-content ul li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.article-content ol {
    counter-reset: item;
}

.article-content ol li {
    counter-increment: item;
    list-style-type: none;
    padding-left: 2em;
}

.article-content ol li:before {
    content: counter(item) ".";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
    min-width: 1.5em;
}

/* ВЛОЖЕННЫЕ СПИСКИ */
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin: 0.5em 0 0.5em 1.5em;
}

.article-content ul ul li:before {
    content: "○";
    color: #7f8c8d;
    font-size: 0.9em;
}

/* ТАБЛИЦЫ */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table.prosthesis-table {
    background: white;
    border: 1px solid #e0e0e0;
}

.article-content table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 18px 15px;
    font-size: 17px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content table th:last-child {
    border-right: none;
}

.article-content table td {
    padding: 16px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    background: white;
}

.article-content table tr:nth-child(even) td {
    background: #f9f9f9;
}

.article-content table tr:hover td {
    background: #f1f9ff;
}

.article-content table td ul {
    margin: 0;
    padding-left: 1.2em;
}

.article-content table td li {
    margin-bottom: 5px;
    font-size: 15px;
}

.article-content table td li:before {
    content: "✓";
    color: #27ae60;
    font-size: 0.9em;
}

/* ПОДПИСИ К ТАБЛИЦАМ */
.article-content .table-caption {
    display: block;
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    margin: 20px 0 10px;
    font-size: 0.95em;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
}

/* IFRAME (ВСТРАИВАЕМЫЙ КОНТЕНТ) */
.article-content iframe {
    display: block;
    max-width: 100%;
    margin: 2em auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ИЗОБРАЖЕНИЯ (не аватар автора в карточке) */
.article-content img:not(.article-author-avatar) {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* ЦИТАТЫ И ВЫДЕЛЕНИЯ */
.article-content blockquote {
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin: 2em 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.article-content blockquote p {
    margin: 0;
}

/* КОД И ПРЕФОРМАТИРОВАННЫЙ ТЕКСТ */
.article-content pre,
.article-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: #f5f7f9;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
    color: #e74c3c;
}

.article-content pre {
    padding: 15px;
    overflow-x: auto;
    margin: 1.5em 0;
    border-left: 3px solid #3498db;
    background: #f8fafc;
}

/* ССЫЛКИ */
.article-content a {
    /* color: #3498db; */
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
}

/* КНОПКИ (если будут) */
.article-content .button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.article-content .button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* РАЗДЕЛИТЕЛИ */
.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    margin: 3em 0;
}

/* СПЕЦИАЛЬНЫЕ КЛАССЫ */
.article-content .important {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 1.5em 0;
    border-radius: 0 4px 4px 0;
}

.article-content .note {
    background: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin: 1.5em 0;
    border-radius: 0 4px 4px 0;
}

.article-content .warning {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 15px 20px;
    margin: 1.5em 0;
    border-radius: 0 4px 4px 0;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .article-content {
        font-size: 16px;
        padding: 15px 0;
    }

    .article-content .container {
        padding: 0 10px;
    }

    .article-content h2 {
        font-size: 1.6em;
    }

    .article-content h3 {
        font-size: 1.3em;
    }

    .article-content table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
    }

    .article-content table th,
    .article-content table td {
        padding: 12px 10px;
        min-width: 120px;
    }

    .article-content iframe {
        max-width: 100% !important;
        height: auto !important;
        min-height: 300px;
    }

    /* Адаптивность для блока формы */
    .article-content .vacancies-form-section .form-wrapper {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .article-content .form-image {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .article-content {
        font-size: 15px 0;
    }

    .article-content h2 {
        font-size: 1.4em;
    }

    .article-content ul,
    .article-content ol {
        padding-left: 1.5em;
    }

    .article-content .table-caption {
        font-size: 0.85em;
    }
}


.article-content h2.visible,
.article-content h3.visible,
.article-content table.visible,
.article-content .vacancies-form-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ВЫДЕЛЕНИЕ ТЕКСТА ПРИ ВЫБОРЕ */
.article-content ::selection {
    background: rgba(52, 152, 219, 0.3);
    color: #000;
}

.article-content ::-moz-selection {
    background: rgba(52, 152, 219, 0.3);
    color: #000;
}

/* СКРОЛЛБАР */
.article-content ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.article-content ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.article-content ::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.article-content ::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}