@charset "UTF-8";

/*!
Theme Name: DokiBase.Ru
Author: Akinin Yura

*/
* {
    box-sizing: border-box;
}


html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    font-size: 14px;
    padding: 0;
    margin: 0;
    font-family: "-apple-system", BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}

h1 {
    font-size: 14px;
}

h2 {
    font-size: 1.125em;
}

h3 {
    font-size: 1em;
}

a {
    color: rgb(0, 0, 0);
}

a,
a:link,
a:active,
a:visited {
    transition: color 0.25s ease-out;
    outline: none;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: #609adf;
    cursor: pointer;
}

:active,
:hover,
:focus {
    outline: 0;
    outline-offset: 0;
}

p {
    margin: 0px;
}

/* HEADER */
.nav-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-header-logo .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a202c;
}

.logo-img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.nav-header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-header-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-user {
    color: #4a5568;
}

.user-name {
    font-weight: 500;
    color: #2d3748;
}

.logout-form {
    display: inline;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #cbd5e0;
    color: #2d3748;
}

.btn-outline:hover {
    background-color: #f7fafc;
}

.btn-secondary {
    background-color: #edf2f7;
    color: #2d3748;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* ---------- */

/* WRAP SITE */
.wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0px;
}

.content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    align-content: start;
    gap: 20px;
}


/* BREADCRUMB */
.breadcrumb-wrap {
    grid-column: 1/4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0 40px 0 40px;
    background-color: transparent;
}

.breadcrumb-item {
    font-size: 13px;
    color: #6c757d;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: #adb5bd;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #212529;
    font-weight: 500;
}

/*-------------------------------------------------------------------------------------------------*/


/* NAVIGATION */
.nav-left {
    width: 260px;
    top: 76.48px;
    height: calc(100vh - 76.48px);
    position: sticky;
    padding: 0;
    background: #f9fafc;
    border-right: 1px solid #e0e6ed;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
    z-index: 100;
}

.nav-left-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 20px;
    box-sizing: border-box;
}

.navbar-left {
    flex: 1;
    /* занимает всё доступное пространство */
}

.navbar-left-section {
    margin-bottom: 32px;
}

.navbar-left-section-title {
    color: #9ca3af;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-left: 10px;
}

ul.navbar-left-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

ul.navbar-left-list li {
    border-radius: 8px;
    transition: background 0.2s, transform 0.1s;
}

ul.navbar-left-list li:hover {
    background: #e5efff;
    transform: translateX(2px);
}

ul.navbar-left-list li.active {
    background: #dbeafe;
}

ul.navbar-left-list li>a {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul.navbar-left-list li>a:hover {
    color: #2563eb;
}

.navbar-left-list-icon {
    font-size: 16px;
    color: #6b7280;
    width: 20px;
    text-align: center;
}

.navbar-left-list-item {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

/* Scrollbar */
.nav-left::-webkit-scrollbar {
    width: 6px;
}

.nav-left::-webkit-scrollbar-track {
    background: transparent;
}

.nav-left::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

/* ---------- */
/* STANDART BLOCK */
.st-block {
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.st-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.st-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.st-block-title>h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.st-block-icon>i,
.st-block-setting>i {
    font-size: 20px;
    color: #4a4a4a;
}

.st-block-setting {
    cursor: pointer;
}

.st-block-content {
    margin-top: 10px;
}

/* PAGE LOGIN */
/* Основной контейнер */
.page-login {
    height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #c4b5fd 0%, #fefefe 100%);
    position: relative;
}

.page-login::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(167, 139, 250, 0.5), transparent 70%);
    z-index: -1;
}

.page-login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    padding: 60px 40px;
    align-items: center;
}

/* Левая часть */
.page-login-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 40px 20px 40px;
    height: 100%;
}

.page-login-info-text {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

.page-login-info-bottom-links {
    margin-top: 24px;
}

.page-login-info-links a {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
    margin-right: 16px;
}

.page-login-info-links a:hover {
    text-decoration: underline;
}

/* Правая часть */
.page-login-r {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

/* Форма с анимацией */
.page-login-cont {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 420px;
    width: 100%;
    /* Анимация */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideIn 0.6s ease forwards;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок */
.page-login-title h1 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
}

/* Форма */
.page-login-form-log {
    display: flex;
    flex-direction: column;
}

.page-login-form-log label {
    font-size: 14px;
    font-weight: 500;
    margin: 16px 0 6px;
}

.page-login-form-log input {
    padding: 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fbff;
}

.page-login-form-log input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Нижний блок формы */
.page-login-form-ft {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 24px;
}

.page-login-form-ft label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.forgot a {
    color: #3b82f6;
    text-decoration: none;
}

.forgot a:hover {
    text-decoration: underline;
}

/* Кнопка */
.main-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin: 20px 0 20px 0;
}

.main-btn:hover {
    background: #1d4ed8;
}

/* Регистрация */
.signup-link {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.signup-link a {
    color: #2563eb;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .page-login-container {
        gap: 40px;
    }

    .page-login-info-text {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .page-login-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .page-login-info {
        padding: 0;
    }

    .page-login-r {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .page-login-cont {
        padding: 30px 20px;
    }

    .page-login-info-text {
        font-size: 22px;
    }
}

/* ITEM NEWS SINGLE */
article.item-news {
    grid-column: 1/4;
    margin-bottom: 2rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
}

.item-news-poster {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    border-radius: 20px;
}

.item-news-poster>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.item-news-inf {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    top: 40px;
    padding: 1rem;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
}

.item-news-inf-header {
    width: 100%;
}

.item-news-inf-footer {
    width: 100%;
}

.item-news-cat a {
    color: #84c3ff;
    font-weight: 600;
}

.item-news-title h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.item-news-content {
    max-width: 900px;
    margin: 40px auto;
    line-height: 1.5;
    font-size: 1rem;
}


/* CATERGORY */
section.cat-page {
    grid-column-start: 1;
    grid-column-end: 4;
}

.cat-page-header {}

.cat-page-title {}

.cat-page-title h1 {
    font-size: 24px;
    font-weight: bold;
}

.cat-page-content {}

/* CATEGORY NEWS */
article.item-cat-news {
    display: flex;
    gap: 20px;
}

.item-cat-news-poster {}

.item-cat-news-poster img {
    object-fit: cover;
    width: 320px;
    height: 160px;
    border-radius: 10px;
}

.item-cat-news-inf {}

.item-cat-news-cat {}

.item-cat-news-cat a {
    color: #84c3ff;
    font-weight: 600;
}

.item-cat-news-title {}

.item-cat-news-title h2 {
    font-weight: 600;
}

/* SECTION TERMS */
.section-terms {
    grid-column: 1/4;
    padding: 0 40px 0 40px;
}

.section-terms-header {}

.section-terms-title {}

.section-terms h1 {
    font-size: 24px;
    font-weight: bold;
}

.section-terms-content {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.section-terms-content-bar {
    grid-column: 1/5;
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.section-terms-content-filter {}

.section-terms-content-filter {}

.section-terms-content-filter {
    margin-right: 10px;
    font-weight: 500;
    font-size: 14px;
}

.section-terms-content-filter .filter-select {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid rgba(0, 123, 255, 0.3);
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.section-terms-content-filter .filter-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
    outline: none;
}

.section-terms-content-search {}

article.section-terms-item {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.section-terms-category {
    width: 100%;
}

.section-terms-category a {
    color: #2b76d0;
}

.section-terms-item-title {}

.section-terms-item-title h3 {
    width: 100%;
    font-weight: 600;
    margin: 0;
}

/* ITEM TERM */
.item-term-page {
    grid-column: 1/4;
    display: grid;
    grid-template-columns: 0.75fr 0.25fr;
    padding: 0 40px 0 40px;
}

article.item-term {}

.item-term-category a {
    color: #0056b3;
    font-weight: 600;
}

.item-term-title {
    margin-top: 5px;
}

.item-term-title h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.item-term-content {
    margin-top: 20px;
    line-height: 1.5;
}

/*-------------------------------------------------------------------------------------------------*/


/* PAGINATION*/
.custom-pagination-wrapper {
    grid-column: 1/5;
    margin-top: 20px;
    text-align: center;
}

.custom-pagination {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    white-space: nowrap;
}

.custom-pagination .page-btn {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: #007bff;
    background-color: white;
    border-right: 1px solid #ddd;
    cursor: pointer;
}

.custom-pagination .page-btn:last-child {
    border-right: none;
}

.custom-pagination .page-btn:hover {
    background-color: #f2f2f2;
}

.custom-pagination .page-btn.active {
    background-color: #007bff;
    color: white;
    cursor: default;
}

.custom-pagination .page-btn.disabled {
    background-color: #f2f2f2;
    color: #888;
    cursor: not-allowed;
}


/*-------------------------------------------------------------------------------------------------*/

/* SECTION ARTICLES */
.section-articles {
    grid-column: 1/4;
    padding: 0 40px 40px 40px;
}

.section-articles-content {
    margin-top: 40px;
}

.section-articles-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

article.section-articles-item {}

.section-articles-item-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/*-------------------------------------------------------------------------------------------------*/

/* SECTION DOCUMENTS */
/* SECTION TERMS */
.section-documents {
    grid-column: 1/4;
    padding: 0 40px 40px 40px;
}

.section-documents-info {}

.section-documents-title {
    display: flex;
    gap: 10px;
    align-items: center;
}

.section-documents-title-ic {
    font-size: 42px;
    color: #007bff;
}

.section-documents h1 {
    font-size: 32px;
    font-weight: bold;
}

.section-documents-desc {
    font-size: 16px;
    line-height: 1.5;
    text-indent: 2em;
    text-align: justify;
}

.section-documents-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.section-documents-content {
    margin-top: 40px;
}

.section-documents-content-bar {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.section-documents-content-filter {}

.section-documents-content-search {}

.section-documents-content-filter button {
    background: rgba(0, 127, 96, 0.5);
    border-radius: 5px;
    border: none;
    padding: 7px 10px 7px 10px;
    color: rgba(255, 255, 255, 1.0);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    gap: 7px;
    align-items: center;
}

.section-documents-list {
    margin-top: 20px;
}

.section-documents-list-header,
.section-documents-list-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 120px;
    gap: 10px;
    padding: 1rem;
    align-items: center;
}

.section-documents-list-header {
    font-weight: 600;
    font-size: 0.9rem;
    background: #f1f5f9;
    border-bottom: 1px solid rgba(224, 224, 224, 0.3);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.item-document-header-l {}

.item-document-header-r {
    display: flex;
    gap: 10px;
    align-items: center;
}

.section-documents-list-item {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.section-documents-list-item:hover {
    background: #f9fafc;
}

.section-documents-item-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.section-documents-item-category a {
    font-weight: 500;
    color: #888;
}

.section-documents-item-type,
.item-document-type,
.item-document-formtype {
    background: #eff6ff;
    color: #3b82f6;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    width: fit-content;
}

.item-document-footer {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.item-document-footer-stat {
    display: flex;
    gap: 10px;
    align-items: center;
}

.item-document-footer-but {
    display: flex;
    gap: 10px;
    align-items: center;
}

.item-document-footer-pub {}

.item-document-footer-com {}

.item-document-footer-view {}

.section-documents-item-comments {
    display: flex;
    align-items: center;
}

/*-------------------------------------------------------------------------------------------------*/

/* ITEM TERM */
.item-document-page {
    grid-column: 1/4;
    display: grid;
    grid-template-columns: 1fr 0.25fr;
    gap: 20px;
    padding: 0 40px 0 40px;
    align-items: start;
}

article.item-document {}

.item-document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-document-category a {
    color: #0056b3;
    font-weight: 600;
}

.item-document-type {}

.item-document-formtype {}

.item-document-title {
    margin-top: 5px;
}

.item-document-title h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.item-document-content {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5em;
    text-indent: 2em;
    text-align: justify;
}

.item-document-content a {
    color: #3b82f6;
    text-decoration: none;
}

.item-document-down {
    min-width: 350px;
}

.item-document-down-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.item-document-down-ic {
    font-size: 24px;
    color: #007bff;
}

.item-document-down-desc {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 450;
    margin-top: 10px;
}

.item-document-down-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.item-document-down-file {
    display: inline-block;
    padding: 0.75em 1.5em;
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;

}

/*-------------------------------------------------------------------------------------------------*/


/* Общие кнопки/выпадающие списки и т.д. */

/* Контейнер dropdown */
.but-dropdown {
    position: relative;
    display: inline-block;
}

/* Кнопка */
.but-dropdown-toggle {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Меню фильтра */
.but-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

/* Показываем меню при фокусе */
.but-dropdown:focus-within .but-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.but-dropdown-btn {
    display: flex;
    gap: 10px;
}

/* Кнопка "Применить" */
.but-dropdown-apply-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 0.4rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* строка поиска */
.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.search-input {
    flex: 1 1 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #3498db;
    outline: none;
}

.search-submit {
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-submit:hover {
    background-color: #2980b9;
}

/*-------------------------------------------------------------------------------------------------*/

/* SECTION NPA */
.section-npa {
    grid-column: 1/4;
    padding: 0 40px 40px 40px;
}

.section-npa-header {}

.section-npa-title {}

.section-npa h1 {
    font-size: 24px;
    font-weight: bold;
}

.section-npa-content {
    margin-top: 40px;
}

.section-npa-list {}

.section-npa-list-header,
.section-npa-list-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 120px;
    gap: 10px;
    padding: 1rem;
    align-items: center;
}

.section-npa-list-header {
    font-weight: 600;
    font-size: 0.9rem;
    background: #f1f5f9;
    border-bottom: 1px solid rgba(224, 224, 224, 0.3);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.section-npa-list-item {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.section-npa-list-item:hover {
    background: #f9fafc;
}

.section-npa-list-item-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.section-npa-list-item-title a {
    font-weight: 500;
    color: #888;
}


.item-npa-page {
    grid-column: 1/4;
    padding: 40px;
    display: grid;
    gap: 40px;
}

article.item-npa {}

.item-npa-info {}

.item-npa-info-header {}

.item-npa-status {
    font-weight: 600;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    color: rgba(255, 255, 255, 1.0);
}

.item-npa-status-active {
    background: rgba(87, 198, 99, 1.0);
}

.item-npa-emblem {
    text-align: center;
}

.item-npa-title {
    max-width: 900px;
    margin: 20px auto;
}

.item-npa-title h1 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

.item-npa-first-date {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.item-npa-info-content {
    max-width: 900px;
    margin: 20px auto;
    font-size: 16px;
    line-height: 1.5em;
    text-indent: 2em;
}

.item-npa-info-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.item-npa-info-ic {
    font-size: 16px;
}

.item-npa-structure {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.5em;
}

.item-npa-structure ul {
    list-style: none;
}

.item-npa-structure-chapter {
    font-weight: 600;
}

.item-npa-structure-article {
    font-weight: 450;
}

.item-npa-structure-title {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
}

.item-npa-subpage {}

.item-npa-subpage-info {}

.item-npa-subpage-info-center {
    max-width: 900px;
    margin: 20px auto;
}

.item-npa-subpage-info-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.item-npa-subpage-title-doc {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

.item-npa-subpage-title-chapter {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.item-npa-subpage-title {}

.item-npa-subpage-title h1 {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

/*-------------------------------------------------------------------------------------------------*/

/* ITEM ARTICLE */
article.item-article {
    grid-column: 1/4;
    padding: 0 40px 0 40px;
}

.item-article-poster {
        position: relative;
    overflow: hidden;
}

.item-article-poster-img {
    width: 100%;
    max-height: 750px;
    object-fit: cover;
    border-radius: 20px;
}

.item-article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.item-article-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.item-article-overlay-foot {
    display: flex;
    gap: 10px;
    align-self: flex-end;
}

.item-article-author {

}
.item-article-author,
.item-article-date {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.85em;
    padding: 4px 8px;
    border-radius: 4px;
}

.item-article-wrap {
    max-width: 900px;
    margin: 20px auto;
}

.item-article-header {}

.item-article-title {}

.item-article-title h1 {
    font-size: 32px;
    font-weight: bold;
}

.item-article-content {
    font-size: 16px;
    line-height: 1.5em;
    text-indent: 2em;
}

/*-------------------------------------------------------------------------------------------------*/

/* USER ACCOUNT */
.user-account {
    grid-column: 1/4;
    padding: 40px;
    display: grid;
    grid-template-columns: 0.2fr 0.8fr;
    gap: 20px;
}

.user-account-card {
    grid-column: 1/3;
    display: grid;
    grid-template-columns: 100px 0.6fr 0.4fr;
    gap: 20px;
    align-items: start;
}

.user-account-avatar {}

.user-account-avatar img {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.user-account-inf {}

.user-account-name {
    font-weight: bold;
    font-size: 16px;
}

.user-account-pos {}

.user-account-but {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.user-account-l {}

.user-account-r {}


/*------------------------------------------------------------------------------------------------*/

/* MAIN PAGE */
.main-article {
    grid-column: 1/4;
}

.main-doc {
    grid-column: 1/3;
}


.main-article-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

article.main-articles-item {}

.main-articles-item-poster {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.section-articles-item-img {
    width: 100%;
    height: auto;
    display: block;
}

.main-articles-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.main-articles-item-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.main-articles-item-cat img {
    width: 16px;
    height: 16px;
}

.main-articles-item-date {
    align-self: flex-end;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.85em;
    padding: 4px 8px;
    border-radius: 4px;
}

.main-articles-item h2 {
    font-weight: 500;
    color: #111;
    text-decoration: none;
}

.main-doc-content {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.main-doc-item {}


.main-doc-list-header,
.main-doc-list-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 140px 40px 40px;
    gap: 15px;
    padding: 20px;
    align-items: center;
}

.main-doc-list-header {
    font-weight: 600;
    font-size: 0.9rem;
    background: #f1f5f9;
    border-radius: 10px;
}

.main-doc-list-item {
    transition: background 0.2s ease;
}

.main-doc-list-item:hover {
    background: #f9fafc;
    border-radius: 10px;
}

.main-doc-list-item-fd {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.main-doc-item-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-doc-item-title a {
    color: #111;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-doc-item-category {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-doc-item-category a {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #111;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-doc-item-category-icon {
    max-height: 32px;
}

.main-doc-item-type {
    background: #eff6ff;
    color: #3b82f6;
}

.main-doc-item-form-typical {
    background: #00E675;
}

.main-doc-item-form-variant {
    background: #F7DC0B;
}

.main-doc-item-type,
.main-doc-item-form {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    width: fit-content;
    overflow: hidden;
    text-overflow: ellipsis;
}


.main-doc-item-comments {
    display: flex;
    align-items: center;
}


.main-term {
    grid-column: 3/4;
}

.main-term-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 20px;
}

.main-term-item {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.75rem;
}

.term-category {
    color: #1a73e8;
    font-weight: 500;
    text-decoration: none;
}

.term-category:hover {
    text-decoration: underline;
}

.term-name a {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-top: 0.25rem;
}

.term-name a:hover {
    color: #1a73e8;
}

.no-terms {
    font-style: italic;
    color: #888;
}

.main-npa {
    grid-column: 1/4;
}

.main-npa-content {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.main-npa-list {}

.main-npa-list-item,
.main-npa-list-header {
    display: grid;
    grid-template-columns: 1fr 350px 250px;
    gap: 15px;
    padding: 20px;
    align-items: center;
}

.main-npa-list-header {
    font-weight: 600;
    font-size: 0.9rem;
    background: #f1f5f9;
    border-radius: 10px;
}

.main-npa-list-item {
    transition: background 0.2s ease;
}

.main-npa-list-item:hover {
    background: #f9fafc;
    border-radius: 10px;
}

.main-npa-list-item-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-npa-list-item-title a {
    color: #111;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-npa-list-item-type {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #111;
    font-weight: 500;
}

.main-npa-list-item-type img {
    max-width: 32px;
}

.main-npa-list-item-category {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #111;
    font-weight: 500;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-npa-list-item-category-icon {
    max-height: 32px;
}


/* SHARE */
.sharebox-container {
    position: relative;
    padding: 0;
    margin: 0;
}

.sharebox-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.sharebox-menu {
    position: absolute;
    right: 0;
    top: 110%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sharebox-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sharebox-menu a,
.sharebox-menu button {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
}

.sharebox-menu a:hover,
.sharebox-menu button:hover {
    background-color: #f0f0f0;
}

.sharebox-message {
    position: absolute;
    top: -25px;
    right: 0;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
    display: none;
}

/*-------------------------------------------------------------------------------------------------*/



.icon-reveal-button {
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 40px;
    padding: 0 12px;
    border-radius: 20px;
    background-color: #f5f5f5;
    cursor: pointer;
    width: 44px;
    /* Изначально только иконка */
    transition: width 0.3s ease, background-color 0.3s ease;
}

.icon-reveal-icon {
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.icon-reveal-label {
    margin-left: 10px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #333;
    font-size: 14px;
}

/* Hover эффекты */
.icon-reveal-button:hover {
    width: 160px;
    background-color: #e0e0e0;
}

.icon-reveal-button:hover .icon-reveal-label {
    opacity: 1;
    transform: translateX(0);
}





/* TABLE CONTENT */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    color: #333;
}

tr {
    transition: background-color 0.2s ease;
}

tr:first-child {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

tr:not(:first-child):nth-child(even) {
    background-color: #fafafa;
}

tr:not(:first-child):hover {
    background-color: #f0f8ff;
}

td {
    padding: 12px 16px;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {

    table,
    tr,
    td {
        display: block;
        width: 100%;
    }

    tr {
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border-radius: 6px;
        overflow: hidden;
        background: #fff;
    }

    tr:first-child {
        display: none;
        /* скрываем "шапку" на мобильных, т.к. она дублируется в data-label */
    }

    td {
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #eee;
    }

    td::before {
        position: absolute;
        top: 12px;
        left: 16px;
        width: 45%;
        white-space: nowrap;
        font-weight: bold;
        color: #666;
        content: attr(data-label);
    }
}

/*-------------------------------------------------------------------------------------------------*/

/* TOOLTIP */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: max-content;
    max-width: 240px;
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 6px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    /* Расположение над элементом */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    /* Стрелка снизу подсказки */
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/*-------------------------------------------------------------------------------------------------*/


/* COMMENTS */
.db-comments {
    width: 100%;
}

.db-comments__title {
    font-weight: bold;
}

.db-comments__list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.db-comments__item {
    width: 100%;
}

.db-comments__meta {
    font-size: 12px;
    margin-bottom: 5px;
}

.db-comments__author {
    font-weight: bold;
}

.db-comments__content {
    margin-bottom: 10px;
}

.db-comments__reply-toggle {
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.db-comments__reply-form {
    margin-top: 10px;
}

.db-comments__textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    resize: vertical;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.db-comments__submit-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
}

.db-comments__submit-btn:hover {
    background: #0056b3;
}

.db-comments__empty {
    font-style: italic;
}

.db-comments__login-hint {
    font-size: 14px;
}

/*-------------------------------------------------------------------------------------------------*/

/* BLOCK TEXT WARNING*/
.bk-txt-warning {
    background-color: #f8d7da;
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
}

.bk-txt-warning-title {
    font-weight: bold;
    text-transform: uppercase;
    text-indent: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.bk-txt-warning-title i {
    font-size: 24px;
}

.bk-txt-warning-text {
    margin-top: 5px;
}

/*-------------------------------------------------------------------------------------------------*/

/*# sourceMappingURL=style.css.map */