/* Общие стили сайта (вынесены из встроенных <style> страниц) */
/* РћР±С‰РёРµ СЃС‚РёР»Рё СЃР°Р№С‚Р° (РІС‹РЅРµСЃРµРЅС‹ РёР· РІСЃС‚СЂРѕРµРЅРЅС‹С… <style> СЃС‚СЂР°РЅРёС†) */
body {
    background: linear-gradient(135deg, #eef2f7 0%, #dce5f0 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1 0 auto;
}
.navbar {
    background: #2c3e50 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 2rem 0 1rem;
}
.course-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.course-card .card-img-top {
    height: 160px;
    object-fit: contain;
    background: #f4f6f9;
    padding: 1rem;
}
.course-card .card-body {
    padding: 1.25rem;
}
.course-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    min-height: 3rem;
}
.course-card .card-text {
    font-size: 0.85rem;
    color: #7f8c8d;
}
.course-card a.stretched-link {
    color: inherit;
    text-decoration: none;
}
.course-card a.stretched-link:hover .card-title {
    color: #3498db;
}
.info-card {
    border-left: 4px solid #3498db;
    border-radius: 8px;
    background: #fff;
    padding: 1.25rem;
    height: 100%;
    transition: transform 0.2s;
}
.info-card:hover {
    transform: translateX(4px);
}
.info-card h5 {
    color: #2c3e50;
    font-weight: 600;
}
.info-card a {
    text-decoration: none;
    color: #2c3e50;
}
.info-card a:hover {
    color: #3498db;
}
.archive-toggle {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
    margin-bottom: 1.5rem;
}
.archive-toggle:hover, .archive-toggle:focus {
    color: #3498db;
}
.archive-toggle .bi-chevron-down {
    transition: transform 0.2s;
}
.archive-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}
.archive-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.archive-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
    text-decoration: none;
    color: #2c3e50;
}
.archive-item:hover {
    background: #f4f6f9;
    color: #3498db;
}
.archive-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 1rem;
    flex-shrink: 0;
}
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem 0;
    margin-top: 3rem;
}
.page-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
    display: inline-block;
}
.epigraph {
    background: #f1f4f8;
    border-right: 4px solid #3498db;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    color: #5d6d7e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: right;
    font-style: italic;
}
.section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: color 0.2s, box-shadow 0.2s;
}
.section-toggle:hover, .section-toggle:focus {
    color: #3498db;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.section-toggle .bi-chevron-down {
    margin-left: auto;
    transition: transform 0.2s;
}
.section-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}
.content-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.content-card a, .lab-card a {
    color: #2980b9;
}
.content-list {
    padding-left: 1.75rem;
    margin-bottom: 0;
}
.content-list > li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
}
.content-list ul {
    margin-top: 0.4rem;
}
.resource-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.resource-list > li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.45rem 0;
    border-bottom: 1px solid #ecf0f1;
    line-height: 1.45;
}
.resource-list > li:last-child {
    border-bottom: none;
}
.resource-list img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.resource-group-divider {
    border: 0;
    border-top: 1px dashed #bdc3c7;
    margin: 0.75rem 0;
}
.lab-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.lab-card h5 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}
.content-card p img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
.content-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 1rem 0 0.5rem;
}
.content-card hr {
    margin: 1rem 0;
}
.content-card pre {
    background: #f4f6f9;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
}
.content-card .content-list ul {
    margin-top: 0.35rem;
}
.works-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.works-table {
    margin-bottom: 0;
}
.works-table thead th {
    background: #2c3e50;
    color: #ecf0f1;
    font-weight: 600;
    border: none;
    white-space: nowrap;
}
.works-table td {
    vertical-align: middle;
}
.works-table tbody tr:hover {
    background: #f4f8fb;
}
.year {
    color: #2980b9;
    font-weight: 600;
    white-space: nowrap;
}
.work-title {
    color: #2c3e50;
}
.file-link {
    display: inline-block;
    line-height: 0;
}
.file-link img {
    width: 22px;
    height: 22px;
}
.card-soft {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: 100%;
}
.task-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.task-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
}
.checklist {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.checklist > li {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #ecf0f1;
    line-height: 1.55;
}
.checklist > li:last-child {
    border-bottom: none;
}
.checklist > li > i {
    color: #3498db;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.checklist-note {
    background: #fdf6e3;
    border-left: 4px solid #f1c40f;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin-top: 1rem;
}
.content-card table td {
    vertical-align: top;
}
.content-card a {
    color: #2980b9;
}
.photo-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
}
.photo-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.book-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.book-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.book-cover {
    width: 140px;
    height: 180px;
    object-fit: contain;
    background: #f4f6f9;
    border-radius: 6px;
    flex-shrink: 0;
}
.book-citation {
    font-weight: 600;
    margin-bottom: 0;
}
.book-annotation {
    font-size: 0.95rem;
    color: #34495e;
    text-align: justify;
}
.book-card a {
    color: #2980b9;
}
.pub-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.pub-list {
    padding-left: 1.75rem;
    margin-bottom: 0;
}
.pub-list > li {
    margin-bottom: 0.9rem;
    line-height: 1.5;
}
.pub-list a {
    color: #2980b9;
    word-break: break-all;
}
.category-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 2rem 0 1rem;
}
.category-title img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.position-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.position-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.position-period {
    color: #2980b9;
    font-weight: 600;
    min-width: 9rem;
}
.position-title {
    font-weight: 600;
    color: #2c3e50;
}
.position-org {
    color: #7f8c8d;
}
.toggle-btn .label-collapsed {
    display: inline;
}
.toggle-btn .label-expanded {
    display: none;
}
.toggle-btn[aria-expanded="true"] .label-collapsed {
    display: none;
}
.toggle-btn[aria-expanded="true"] .label-expanded {
    display: inline;
}
.details-body {
    border-top: 1px solid #ecf0f1;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 0.95rem;
}
.details-body ul {
    padding-left: 1.25rem;
}
.details-body li {
    margin-bottom: 0.35rem;
}
.details-body a {
    color: #2980b9;
}
.achievements-title {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}
.book-header {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}
.back-link {
    color: #2980b9;
    text-decoration: none;
}
.back-link:hover {
    color: #3498db;
}
.toc-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7f8c8d;
    margin: 1.5rem 0 0.5rem;
}
.toc-section {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.toc-chapter {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}
.toc-list, .toc-sublist {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.toc-list > li {
    position: relative;
    padding: 0.2rem 0 0.2rem 1.1rem;
    line-height: 1.45;
}
.toc-list > li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.75em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3498db;
}
.toc-sublist {
    margin-top: 0.2rem;
    padding-left: 1.25rem;
    border-left: 2px solid #e5ecf3;
}
.toc-sublist > li {
    padding: 0.15rem 0;
    font-size: 0.95rem;
    color: #34495e;
}

/* РћС‚Р»РёС‡РёСЏ РѕС‚РґРµР»СЊРЅС‹С… СЃС‚СЂР°РЅРёС†: СЃС‚РёР»Рё РѕРіСЂР°РЅРёС‡РµРЅС‹ РєР»Р°СЃСЃРѕРј <body> */
/* index.shtml */
body.page-variant-1 .section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
    display: inline-block;
}

/* personal/popov_books.shtml */
body.page-variant-2 .book-cover {
    width: 120px;
    height: 170px;
    object-fit: contain;
    background: #f4f6f9;
    border-radius: 6px;
    flex-shrink: 0;
}
body.page-variant-2 .book-citation {
    font-weight: 600;
    color: #2c3e50;
}

/* personal/publications.shtml */
body.page-variant-3 .file-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.4rem;
    text-decoration: none;
    vertical-align: middle;
}
body.page-variant-3 .file-link img {
    width: 18px;
    height: 18px;
}

/* popov_books/toc1.shtml, popov_books/toc2.shtml, popov_books/toc3.shtml, popov_books/toc4.shtml, popov_books/toc5.shtml, popov_books/toc6.shtml */
body.page-variant-4 .page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
    display: inline-block;
}

/* ===== РЎС‚СЂР°РЅРёС†Р° РєСѓСЂСЃР° В«Р‘Р°Р·С‹ РґР°РЅРЅС‹С…В» ===== */
.page-hero {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #fff;
    padding: 3rem 0;
    border-radius: 0 0 1rem 1rem;
    margin-bottom: 2rem;
}
.page-hero h1 { font-weight: 300; letter-spacing: 1px; }
.page-hero .lead { opacity: 0.9; }
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.quick-nav a {
    background: #fff;
    color: #2c3e50;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.quick-nav a:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}
.accordion-item {
    border-color: #e9ecef;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
    color: #2c3e50;
    background: #f8f9fa;
}
.accordion-button:not(.collapsed) {
    background: #eaf3fb;
    color: #2c3e50;
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }
.accordion-body ol { margin-bottom: 0; padding-left: 1.5rem; }
.accordion-body ol li { padding: 0.35rem 0; line-height: 1.5; }
.book-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e9ecef;
}
.book-item:last-child { border-bottom: none; }
.book-item > i {
    color: #3498db;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.book-item a { color: #2c3e50; text-decoration: none; font-weight: 500; }
.book-item a:hover { color: #3498db; }
.book-item .text-muted { font-size: 0.85rem; }
.lecture-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 0.25rem;
}
.lecture-item:hover { background: #f4f6f9; color: #2c3e50; }
.lecture-item > div { flex: 1; }
.lecture-item > .bi-file-earmark-pdf { color: #95a5a6; font-size: 1.2rem; flex-shrink: 0; }
.lecture-num {
    background: #3498db;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    min-width: 52px;
    text-align: center;
    flex-shrink: 0;
}
.lecture-num-plain { background: #95a5a6; }
.lecture-item.special .lecture-num { background: #e74c3c; }
.video-card {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    color: #2c3e50;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    color: #2c3e50;
}
.video-card .platform-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.video-card.yt .platform-icon { color: #ff0000; }
.video-card.vk .platform-icon { color: #0077ff; }
.coeff-badge {
    display: inline-block;
    min-width: 3.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}
.coeff-1 { background: #d4edda; color: #155724; }
.coeff-08 { background: #fff3cd; color: #856404; }
.coeff-05 { background: #f8d7da; color: #721c24; }
.stats-table th { background: #3498db; color: #fff; font-weight: 600; border: none; }
.stats-table td { vertical-align: middle; }

/* Р—Р°РіРѕР»РѕРІРєРё Р»РѕРіРёС‡РµСЃРєРёС… СЂР°Р·РґРµР»РѕРІ (СЃС‚РёР»СЊ РёР· dbms_new.shtml). РўРѕР»СЊРєРѕ РїСЂСЏРјС‹Рµ Р·Р°РіРѕР»РѕРІРєРё РєР°СЂС‚РѕС‡РµРє:
   Р·Р°РіРѕР»РѕРІРєРё РіСЂСѓРїРї Р°РєРєРѕСЂРґРµРѕРЅР° РЅРµ Р·Р°С‚СЂР°РіРёРІР°СЋС‚СЃСЏ */
.content-card > h2.accordion-header {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
    display: inline-block;
}
