*{                                                  /*Обнуление всех рамок и отступов, шрифт по умолчанию веде устанавливаем 16, от него будем отталкиваться...*/
    padding: 0;
    margin: 0;
    font-size: 22px;
    border: 0 ;
    font-family: "Times_New_Roman", sans-serif;
}

html{
    background:  url('../images/fon_head.png') no-repeat ;/*Устанавливаем фоновую картинку  без повтрения*/
    background-attachment: fixed;                   /*Фиксируем картинку на видимой части страницы*/
    background-size:cover;                          /*Покрываем всю видимую часть страницы картинкой*/
    width: 100%;                                    /*Ширина блока*/
    height: 100%;                                   /*Высота блока*/
}


body{

}

#wrapper {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    /*border: 3px solid #395ae0;  Рамку блоку толщину и цвет*/

}

/*****************************************Шапка сайта начало**********************************************************/
/*****************************************Шапка сайта начало**********************************************************/
.main_menu_header{
    width: 99.8%;
    margin: auto;
    display: flex;
    /*border: 3px solid #5de039;*/
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 100px;
    background: url('../images/fon_head.png') no-repeat;
    background-size: cover; /* высота 120px, ширина автоматически */
    background-position: right center; /* прижимаем к правому краю для стыковки с центром */
    box-shadow: 5px 5px 15px rgb(0, 12, 75); /* смещение X, смещение Y, размытие, цвет */
}


.main_menu_header_left {
    width: 150px;

    /*border: 2px solid #2e89ff;*/
    height: 100px;
}
.main_menu_header_left img{
    width: 150px;

    /*border: 2px solid #2e89ff;*/
    height: 100px;
}

.main_menu_header_center {
    flex: 1;
    background: url('../images/logo_name.png') no-repeat center;
    background-size: contain;
    /*border: 2px solid #2e89ff;*/
    height: 100px;
    padding-top: 10px;
}


.main_menu_header_right {
    width: 110px;

    /*border: 2px solid #f8970a;*/
    height: 100px;
    min-width: 50px;
    text-align: center;
    padding-top: 5px;
    padding-right: 5px;
}
/*****************************************Шапка сайта Окончание**********************************************************/

/*****************************************Шапка сайта Меню начало**********************************************************/

.main_menu_header nav ul {
    list-style-type: none; /* убираем маркеры в  списке навигации */
    margin-top: 2px;
}

.main_menu_header nav li{
    width: 90%;
    color: rgb(2, 2, 255);                             /* устанавливаем серый цвет в  ссылке */
    font-weight: bold;                          /* Делаем жирнее ссылку */
    padding: 3px 5px 3px 5px;                   /*Внутренние отступы основного меню ссылок внутри блока*/

    font-size: 1.2em;                           /*Размер шрифта текста в блоке*/

    box-shadow: 0 0 10px rgb(119, 153, 227);   /* отбрасывание тени элемента*/
    background: rgba(255,255,255,.2) no-repeat fixed; /*Осветление видимой части с контентом*/

}
.main_menu_header a{
    text-decoration: none;                      /* убираем подчеркивание ссылок */
    color: #4738f8;                             /* устанавливаем серый цвет в  ссылке */
    display: inline-block;
    font-size: 0.9em;                           /*Размер шрифта текста в блоке*/
}
.main_menu_header a:hover{
    background: rgba(148, 122, 210, 0.34) no-repeat fixed; /*Осветление видимой части с контентом*/
}


/*****************************************Шапка сайта Меню Окончание **********************************************************/


/* ******************************** главное окно авторизации ****** ****************************************/
.main_content_auth {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #24243e;
    background: linear-gradient(135deg, #373b44, #4286f4);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 320px;
    text-align: center;
    color: #fff;
}

/* Заголовки и тексты */
.check_auth_text {
    margin: 10px 0 5px;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

/* Поля ввода */
.check_auth_input,
.check_auth_captcha_input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.check_auth_input:focus,
.check_auth_captcha_input:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px #e1a82a;
}
/* Кнопка Войти */
.check_auth_input_btn {
    background: #e1a82a;
    color: #1e1e2f;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.check_auth_input_btn:hover {
    background: #f4c542;
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(225, 168, 42, 0.5);
}

/* Ошибка входа */
.incorrect_password {
    background: rgba(255, 50, 50, 0.2);
    border: 1px solid rgba(255, 50, 50, 0.4);
    color: #ff7070;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
}

/* Блок капчи */
.check_auth_captcha_group_div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

.check_auth_captcha_div img {
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    height: 40px;
}

.check_auth_captcha_input_div {
    flex: 1;
    margin-left: 10px;
}

/* *********************** главное окно авторизации окончание ****************************************** */




/* *********************** кнопки  и оформление главной страницы начало ****************************************** */

.container {
    position: absolute;
    width: 100%;
    top: 103px;
    height: calc(100vh - 103px);
    max-height: calc(100vh - 103px);
    overflow: hidden;
}

.background-img {
    top: 100px;
    width: 100%;
    height: calc(100vh - 103px);
}

.power_music    {top: 7%;   left: 45.5%; }
.power_boevik   {top: 24.4%;left: 35%; }
.power_komedii  {top: 37%;  left: 35%; }
.power_uzhasi   {top: 55.5%;left: 33.5%; }
.power_fant     {top: 68%;  left: 33.5%; }
.power_wow      {top: 84.3%;  left: 45.6%; }
.power_mult     {top: 97%;  left: 45%; }
.power_more     {top: 45%;  left: 88.5%; }

.power_music, .power_boevik, .power_komedii, .power_uzhasi, .power_fant, .power_wow, .power_mult, .power_more {
    position: absolute;

    text-decoration: none;
    transform: translate(-50%, -50%); /* Центрирует смайл */
    z-index: 2;
}

.power_music img, .power_wow img, .power_mult img{
    width: 2.5vw;
}
.power_boevik img,
.power_komedii img, .power_uzhasi img,
.power_fant img{
    width: 4vw;
}

.power_more img {
    width: 6vw;
}

.power_music:hover img, .power_boevik:hover img,
.power_komedii:hover img, .power_uzhasi:hover img,
.power_fant:hover img, .power_wow:hover img,
.power_mult:hover img, .power_more:hover img{
    filter: drop-shadow(0 0 15px #ff0000) brightness(1.5);
    transform: rotate(15deg) scale(1.1);
    transition: all 0.4s ease;
}
/* *********************** кнопки  и оформление главной страницы окончание ****************************************** */

.main_content{

}


.main_content_find{
    display: flex;
    flex-direction: row;
    flex: 1;
    position: fixed;
    top: 105px;
    left: 0;
    width: 100%;
    /*border: 3px solid #e70115;*/

}
#search_form_txt{

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    /*border: 3px solid #5de039;*/

}

#search_form_txt button{
    background: none;
}

.find{
    width: 27px; /* Ширина */
    display: inline-block;
    margin-top: 6px;
    margin-left: 0;


}

/* Обводим блок с кнопкой */
.find {
    display: block;
    outline: 2px solid #ffd700;
    outline-offset: -2px; /* Outline заходит внутрь */
    border-radius: 30%; /* если картинка круглая */
    padding: 0;
    background: #1a1a1a;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);

}
.find:hover {
    outline-color: #ffed4e;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    outline-offset: -1px; /* Можно немного поиграть с offset при ховере */
}



#poisk {
    background-color: #1a1a1a;
    border: 2px solid #ffd700;
    border-radius: 25px;
    padding: 3px 20px;
    font-size: 16px;
    width: 220px;
    outline: none;
    color: #ffd700; /* Золотой цвет текста */
    font-family: "Arial", sans-serif; /* Или любой другой шрифт */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    margin-top: 4px;
}

#poisk::placeholder {
    color: #b8860b; /* Темно-золотой для placeholder */
    opacity: 0.8;
}

#poisk:focus {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    border-color: #ffed4e;
}


/********************************************************* Левая  выдвигающаяся панель *****************************************/
/* Кнопка-гамбургер */
.menu_toggle {
    position: fixed;
    top: 105px;
    left: 15px;

    cursor: pointer;

    font-size: 1.0em ;

    z-index: 6000;

    background-color: #1a1a1a;
    border: 2px solid #ffd700;
    border-radius: 25px;
    padding: 2px 10px;

    width: auto;
    outline: none;
    color: #ffd700; /* Золотой цвет текста */
    font-family: "Arial", sans-serif; /* Или любой другой шрифт */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    margin-top: 1px;
}



.content_menu_left {
    background: linear-gradient(135deg, #030b2a 0%, #0b153f 30%);/**/
    /*background-size: cover;
    background-attachment: inherit; Фиксируем картинку на видимой части страницы*/

    backdrop-filter: blur(10px); /* размытие фона */
    background-position: center center; /* Позиция */
    top: 130px;
    bottom: 10px;
    width: 350px;
    /*min-height: 1300vh;*/
    /*border: 1px solid #1ea18d;                Рамка блока толщина и цвет*/
    box-shadow: 5px 5px 15px rgba(28, 56, 126, 0.93); /* смещение X, смещение Y, размытие, цвет */
    opacity: 0.95; /* делаем прозрачным */
    min-height: 90vh;

    position: fixed; /* или fixed — если должна быть приклеена к экрану */
    /*border: red 2px solid;*/
    /* *************анимация скрытия;**************     */
    transition: transform 0.3s ease;
    left: 0;
    transform: translateX(-100%); /* скрыто слева */

    z-index: 990;
    margin-top: 20px;
    margin-left: 5px;
    /*bottom: max(30px, env(safe-area-inset-bottom)); можно позже доработать чтобы на мобильнике не скакал div при пролистывании страницы*/
}

.content_menu_left.hidden {
    /*transform: translateX(5%);  ← ЧТО ЭТО? Это не "скрыто"! */
    transform: translateX(0); /* показано */
}

.content_menu_right {
    background: linear-gradient(135deg, #030b2a 0%, #0b153f 30%);/**/
    /*background-size: cover;
    background-attachment: inherit; Фиксируем картинку на видимой части страницы*/
    background-size: 2500px; /*Покрываем всю видимую часть страницы картинкой*/
    backdrop-filter: blur(10px); /* размытие фона */
    background-position: center center; /* Позиция */
    top: 130px;
    bottom: 10px;
    width: 350px;
    right: 0;
    transform: translateX(100%); /* скрыто справа */
    /*min-height: 1300vh;*/
    /*border: 1px solid #1ea18d;                Рамка блока толщина и цвет*/
    box-shadow: 5px 5px 15px rgba(28, 56, 126, 0.96); /* смещение X, смещение Y, размытие, цвет */
    opacity: 0.95; /* делаем прозрачным */
    min-height: 90vh;

    position: fixed; /* или fixed — если должна быть приклеена к экрану */
    /*border: red 2px solid;*/
    /* *************анимация скрытия;**************     */
    transition: transform 0.3s ease;


    z-index: 990;
    margin-top: 20px;
    margin-left: 5px;
    /*bottom: max(30px, env(safe-area-inset-bottom)); можно позже доработать чтобы на мобильнике не скакал div при пролистывании страницы*/
}

.content_menu_left.hidden {
    /*transform: translateX(5%);  ← ЧТО ЭТО? Это не "скрыто"! */
    transform: translateX(0); /* показано */
}

.content_menu_right.hidden {
    /*transform: translateX(5%);  ← ЧТО ЭТО? Это не "скрыто"! */
    transform: translateX(0);
}


.content_menu_left_head, .content_menu_right_head {
    text-align: center;
    color: #215626; /* устанавливаем зеленый  цвет в  ссылке */
    font-weight: bold;
    font-size: 2.8em;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    margin-top: 115px;
}


.content_menu_left_body {
    text-align: left;
    font-weight: bold;
    /*border: 1px solid #27a41d;                Рамка блока толщина и цвет*/
    /*border: 2px solid #a11e32;                Рамка блока толщина и цвет*/
    /* АДАПТИВНАЯ ВЫСОТА С ПРОКРУТКОЙ */
    height: 90vh ;  /*Динамическая высота */
    /*min-height: 200px;  Минимальная высота */
    overflow-y: hidden;
    overflow-x: hidden;

    /* ПЛАВНОЕ ИЗМЕНЕНИЕ ВЫСОТЫ */
    transition: max-height 0.01s ease;
}

.content_menu_left_body ul {
    max-height: calc(100vh - 170px); /* Ограничиваем высоту списка */
    overflow-y: auto; /* Добавляем прокрутку */
    margin-bottom: 100px; /* Оставляем место для tooltip */

}

.content_menu_left_body li {

    color: rgb(3, 90, 141); /* устанавливаем серый цвет в  ссылке */
    overflow: hidden; /* добавляет прокрутку при необходимости */
    hyphens: auto; /*добавляет переносы с дефисами */
    padding-top: 10px;
    padding-left: 5px;

}

.content_menu_left_body a {
    font-size: 1.4em;
    color: rgb(3, 90, 141); /* устанавливаем серый цвет в  ссылке */
    text-decoration: none
}


/********************************************************* Левая  выдвигающаяся панель  окончание *****************************************/



.list_elems{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: aqua;

}

.list_elems_goriz{
    display: flex;
    margin-top: 135px;
    width: 100%;
    min-height: calc(100vh - 145px);

    box-sizing: border-box;
}

.list_elems_vert1{
    display: flex;
    flex-direction: column;
    text-align: left;
    position: fixed; /* ФИКСИРОВАН */
    left: 0;
    top: 1px;
    background: rgba(11, 1, 54, 0.16) no-repeat fixed;
    width: 350px;
    height: calc(100vh - 105px);
    box-shadow: 1px 1px 15px rgb(98, 0, 73);
    z-index: 100;

    box-sizing: border-box;

}

.list_elems_vert2{
    background: rgba(11, 1, 54, 0.16) no-repeat fixed;
    flex: 1;
    box-shadow: 1px 1px 15px rgb(98, 0, 73);
    /*border: 3px solid #fa9209;*/
    min-height: calc(100vh - 150px);
    /*overflow-y: auto;*/
    z-index: 90;

    background: linear-gradient(135deg, #030b2a 0%, #0b153f 30%);/**/

    border-radius: 16px;
    border: 2px solid #3d3d3d;
    color: #e5e5e5;
    position: relative;

    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    box-sizing: border-box;
    padding: 15px;

}

.list_elems_vert3{
    position: fixed; /* ФИКСИРОВАН */
    right: 0;
    top: 1px;
    background: rgba(11, 1, 54, 0.16) no-repeat fixed;
    width: 350px;
    height: calc(100vh - 105px);
    box-shadow: 1px 1px 15px rgb(98, 0, 73);
    z-index: 100;

    box-sizing: border-box;
}

/************************* разрисовка скрола центрального блока начало ***************/
.list_elems_vert2_scroll::-webkit-scrollbar {
    width: 8px;
    border: 2px solid #000000;

}

.list_elems_vert2_scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.list_elems_vert2_scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffd700 0%, #c0c0c0 100%);
    border-radius: 4px;
}

.list_elems_vert2_scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f1254 0%, #e0e0e0 100%);
}

/********************далее элементы в таблице красиво оформленные начало **********************************/
.list_elems_vert2_scroll{
    height: calc(100vh - 280px); /* или любая другая фиксированная высота */
    overflow-y: auto;

}
/************************* разрисовка скролла центрального блока окончание ***************/

.list_elems_vert2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
    transparent 0%,
    #ffd700 20%,
    #c0c0c0 50%,
    #ffd700 80%,
    transparent 100%);
}

.results-header {
    background: linear-gradient(135deg, #101628 0%, rgba(55, 73, 136, 0.94) 100%);
    color: #ffd700;
    padding: 18px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    border: 1px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    position: relative;
}

.results-header::after {
    content: '✨';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 15px;
}

.result-card {
    background: linear-gradient(135deg, #101628 0%, rgba(55, 73, 136, 0.94) 100%);
    border-radius: 16px;
    padding-left: 15px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;

}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffd700 0%, #c0c0c0 100%);
}

.result-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
    transparent 30%,
    rgba(255, 215, 0, 0.1) 50%,
    transparent 70%);
    transition: transform 0.6s ease;
    transform: rotate(45deg) translate(-20%, -20%);
}

.result-card:hover::after {
    transform: rotate(45deg) translate(20%, 20%);
}

.result-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}



.card-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.card-name a {
    text-decoration: none;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    color: #ffd700;
}
.card-orig_name{
    display: flex;
    flex-direction: row;
    font-size: 0.7em;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    /*border: 1px solid #ffd700;*/

}
.card-orig_name img{
    width: 50px;
}
.card-orig_name span{
    font-size: 0.9em;
    padding-top: 4px;
    padding-left: 10px;
}

.card-genre, .card-year, .card-location  {
    color: #c0c0c0;
    font-size: 0.95em;
    margin-bottom: 8px;
    font-style: italic;
    position: relative;
    z-index: 2;
}



.result-card_goriz:has(.card-type),.result-card_goriz:has(.card-year),.result-card_goriz:has(.card-location){
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* ← ключевое свойство! */
    align-items: center; /* выравнивание по вертикали */
    padding: 5px 10px;
    /*border: 1px solid #ffd700;*/
    min-width: 100px;
    width: auto;
}
.card-code, .grade, .grade-no-tooltip, .card-location {
    background: linear-gradient(135deg, #101628 0%, rgba(55, 73, 136, 0.94) 100%);
    color: #ffd700;
    padding: 5px 5px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.7em;
    display: flex;
    justify-content: left;

    border: 1px solid #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    min-width: 100px;
    width: auto;
    z-index: 2;

}

.card-code a{
    color: #ffd700;
    /*text-decoration: none;*/
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    font-size: 1.2em;
    padding-left: 5px;
}

.grade {

    width: max-content;
    background: linear-gradient(135deg, #101628 0%, rgba(55, 73, 136, 0.94) 100%);
    animation: pulse-bright 2s infinite;/**/

}

.grade:hover::after {
    content: attr(title);
    position: absolute;

    left: 15px;
    right: -25px;
    bottom: 40px;

    background: linear-gradient(135deg, #101628 0%, rgba(55, 73, 136, 0.94) 100%);
    color: #ffd700;
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #ffd700;

    box-sizing: border-box;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 10;

    white-space: normal;
    word-wrap: break-word;
    overflow-y: auto;
    text-align: left;
    font-size: 14px;
    line-height: 1.1;
    height: 300px;
    min-width: 250px;

}

@keyframes pulse-bright {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.8),
        0 0 0 0 rgba(255, 107, 107, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0),
        0 0 0 30px rgba(255, 107, 107, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.8),
        0 0 0 0 rgba(255, 107, 107, 0.6);
        transform: scale(1);
    }
}


.grade-no-tooltip {

    width: max-content;
    background: linear-gradient(135deg, #152810 0%, rgba(55, 73, 136, 0.94) 100%);
}


/* В CSS добавить: */
.grade, .grade-no-tooltip{
    cursor: pointer; /* Курсор "помощь" (знак вопроса) */
    position: relative;
    padding: 5px;
}


.card-type {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    color: #1a1a1a;
    padding: 5px 5px;
    border-radius: 6px;
    font-size: 0.7em;
    font-weight: 600;

    justify-content: right;
    border: 1px solid #e0e0e0;

    z-index: 2;
    min-width: 100px;
    width: auto;

}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #374988EF 0%, #101628  100%);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 1em;
    position: relative;
    overflow: hidden;
}

/* Псевдоэлемент только когда нет картинки */
.card-image:not(:has(img))::before{
    content: '🎬';
    font-size: 3em;
    opacity: 0.3;
}

/* Если есть картинка - убираем псевдоэлемент */
.card-image:has (img)::before {
    display: none;
}


.card-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffd700;
    text-decoration: none;
}

.card-image img{
    /*border: 2px solid #76e039;*/
    width: 100%;
    height: 99%;
    object-fit: contain; /* заполняет контейнер, сохраняя пропорции*/
    border: none;
    margin-top: 0;
    margin-bottom: 0;

}

.no-results {
    text-align: center;
    padding: 50px;
    color: #c0c0c0;
    font-size: 1.2em;
    background: linear-gradient(135deg, #101628 0%, rgba(55, 73, 136, 0.94) 100%);
    border-radius: 12px;
    border: 2px dashed #444;
    position: relative;
}

.no-results::before {
    content: '💎';
    font-size: 2em;
    display: block;
    margin-bottom: 15px;
}

/* Анимация блеска */
@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.result-card:hover::after {
    animation: shine 1.5s ease-in-out;
}

.result-card::before,
.result-card::after {
    pointer-events: none; /* ← чтобы на курсор анимация не влияла */
}

/********************далее элементы в таблице красиво оформленные окончание **********************************/


/****************** Левая и правая поисковая форма начало****************/


.search_form_left_select_multi, .search_form_right_select_multi, .search_form_left_select,  .search_form_right_select_multi{
    display: flex;
    flex-direction:column;
    text-align: center;
    width: 330px;
    margin-top: 5px;
    margin-left: 10px;
    margin-right: 20px;
    max-height: 20vh; /* Максимальная высота с прокруткой */
    color: #ffd700;
    position: relative; /* Добавил для позиционирования */
    text-shadow: 0 0 15px rgba(255, 215, 0, 1);
    /* border: red solid 5px;*/

}
.search_form_left_select_multi:has(#genre), .search_form_right_select_multi:has(#years){
    display: flex;
    flex-direction:column;
    text-align: center;
    height: 100%; /* Занимает всю доступную высоту */
    min-height: calc(75vh - 240px); /* Минимальная высота до низа экрана */
    /* border: #5860f1 solid 5px;*/
}

.search_form_right_select_multi:has(#years){
    min-height: calc(75vh - 450px); /* Минимальная высота до низа экрана */
}
.search_form_right_check {
    display: flex;
    flex-direction:row;
    text-align: center;
    margin: 5px 10px;
    gap: 10px;
    padding: 5px 10px;
    color: #ffd700;
    position: relative; /* Добавил для позиционирования */
    text-shadow: 0 0 15px rgba(255, 215, 0, 1);
    /*border: red solid 5px; */

}
.search_form_right_check:has(span) {
    display: block;
    text-align: center;
    /*border: red solid 1px; */
    padding-top: 10px;
    font-size: 1.3em;
}

.search_form_left_select_multi label, .search_form_right_select_multi label, .search_form_right_check{
    margin-top: 5px;
    margin-left: 5px;
    width: 330px;
    font-size: 1.3em;
}

#grades{
    overflow: hidden;
}
/* Мультиселект Жанры*/
#genre, #media_types, #years{

    box-sizing: border-box;
    height: auto;        /* авто-высота */
    border-radius: 8px;
    /*border: #22ff00 solid 10px!important;*/

}
#genre::-webkit-scrollbar, #media_types::-webkit-scrollbar, #years::-webkit-scrollbar{
    width: 9px; /* Ширина скроллбара + отступы */

}

#genre::-webkit-scrollbar-track, #media_types::-webkit-scrollbar-track, #years::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    margin: 5px;
    width: 4px; /* Ширина скроллбара + отступы */
}

#genre::-webkit-scrollbar-thumb, #media_types::-webkit-scrollbar-thumb, #years::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffd700 0%, #c0c0c0 100%);
    border-radius: 5px;
    border-right: 4px solid transparent; /* Правый отступ */
    margin: 5px;

}

#genre::-webkit-scrollbar-thumb:hover, #media_types::-webkit-scrollbar-thumb:hover, #years::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f1254 0%, #e0e0e0 100%);
}

/* Общий стиль для всех опций */
#genre option, #media_types option, #years option {
    margin: 2px 0;
    border-radius: 5px;
}

/* СТИЛЬ ДЛЯ ВЫБРАННЫХ ОПЦИЙ */
#genre option:checked, #media_types option:checked, #years option:checked  {
    background: linear-gradient(135deg, #1a3b8d 0%, #2a4b9d 100%) !important;
    color: #ffd700 !important;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}


.search_form_left_select_multi select, .search_form_right_select_multi select{
    background: linear-gradient(135deg, #101628 0%, rgba(55, 73, 136, 0.94) 100%);
    color: #ffd700;
}

/* стили мультисеректа  окончание*/


/*******************   Общее для селектов левой и правой формы******************/
#search_form_left select, #search_form_right select {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffd700;
    border: 1px solid #ffd700;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    margin-top: 10px;

}



#search_form_left select option, #search_form_right select option{
    background: #17213d!important;
    color: #e5e5e5;
    padding: 5px 10px;
    border-bottom: 1px solid #333;
    font-size: 15px;
}

#search_form_left select option:hover, #search_form_right select option:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    font-weight: bold;
}
/*   Общее для селектов левой и правой формы*/

/********************  Левая и правая поисковая форма окончание*******************/

/*********************************** Кнопка сброса фильтров начало ******************************/
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.reset-btn {
    background-color: #8B0000; /* Темно-красный как у поисковой кнопки */
    border: 2px solid #FF6B6B; /* Светло-красная обводка */
    border-radius: 25px;
    padding: 3px 15px;
    cursor: pointer;
    font-size: 16px;
    outline: none;
    color: #FFD700; /* Золотой цвет текста как у поиска */
    font-family: "Arial", sans-serif;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reset-btn:hover {
    background-color: #A52A2A;
    border-color: #FF5252;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

.reset-btn:active {
    background-color: #8B0000;
    transform: translateY(1px);
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.2);
}

.reset-btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.reset-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.7));
}

.reset-text {
    font-size: 0.95em;
}

/* Обводка для кнопки сброса (как у поисковой) */
.reset-btn {
    outline: 2px solid #8B0000;
    outline-offset: -2px;
}

.reset-btn:hover {
    outline-color: #FF5252;
    outline-offset: -1px;
}

/* Эффект свечения при наведении */
.reset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
    );
    transition: left 0.5s ease;
}

.reset-btn:hover::before {
    left: 100%;
}
/***********************************кнопка сбросов всех фильтров окончание******************************/


.single_elem{
    display: flex;
    flex-direction: column;
    align-content: center;
    width: 100%;
    margin-top: 120px;
    /*border: red 2px solid;*/
    font-size: 1.1em;

    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    color: #FFD700; /* Золотой цвет текста как у поиска */
    box-sizing: border-box;
}

/************************   далее одиночный элемент справочника или документа   начало ****************************/
.single-card-container_find, .single-card-container_find_doc {
    display: flex;
    text-align: right;
    width: fit-content; /* или max-content */
    justify-content: flex-end; /* Вместо right: 0 */
    margin-left: auto; /* Это вытолкнет элемент вправо */
    margin-top: -10px;
}

.single-card-container_find_doc{
    padding-bottom: 30px;
}
/* Компактная карточка на всю ширину */
.single-card-container {
    max-width: 2300px;
    margin: 10px auto 30px;
    padding: 0 20px;

}

.single-card-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);

}

.single-card-title {
    color: #ffd700;
    font-size: 2em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    margin-bottom: 5px;

}



.single-card-subtitle {
    color: #c0c0c0;
    font-size: 1.2em;
    font-style: italic;
    /* border: red solid 2px;*/

    /*padding-bottom: 5px;*/
}

.single-card_orig{
    display: inline-block;
    width: 60px;
    transform: translateY(6px);
    margin-bottom: 0;
    /*border: #33b924 solid 2px;*/
}
.single-card-subtitle span{
    display: inline-block;
    /*border: #daa6a6 solid 2px;*/


}

/* Основной блок в 2 колонки */
.single-card-main {
    display: flex;
    gap: 30px;
    background: rgba(16, 22, 40, 0.85);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    min-height: 500px;
}

/* Левая колонка - фото и мета */
.single-card-left {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Фото */
.single-card-photo {
    width: 320px;
    height: 420px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.single-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.single-card-no-photo {
    color: rgba(255, 215, 0, 0.5);
    font-size: 3em;
}

/* Метаданные под фото */
.single-card-meta {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: rgba(55, 73, 136, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.2s ease;
}

.meta-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.meta-item.highlight {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
}

.meta-label {
    color: rgba(192, 192, 192, 0.9);
    font-size: 0.8em;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    color: #ffd700;
    font-size: 1.1em;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* Правая колонка - всё остальное */
.single-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Описание */
.single-card-description {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    flex-shrink: 0;
    min-height: 150px; /* Минимальная высота */
    height: auto; /* Авто-высота */
}

.description-label {
    color: #ffd700;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description-content {
    color: rgba(229, 229, 229, 0.95);
    line-height: 1.5;
    font-size: 1em;
    max-height: 300px; /* Было 150px, увеличиваем */
    overflow-y: auto;
    padding-right: 10px;
}


.description-content::-webkit-scrollbar {
    width: 6px;
}

.description-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

/* Детали в 2 колонки */
.single-card-details {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(55, 73, 136, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.detail-label {
    color: rgba(192, 192, 192, 0.9);
    font-size: 0.9em;
}

.detail-value {
    color: #ffd700;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.3);
}

/* Состав и комментарий */
.single-card-composition,
.single-card-comment {
    width: 500px !important;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.composition-label,
.comment-label {
    color: #ffd700;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.composition-content,
.comment-content {
    color: rgba(229, 229, 229, 0.9);
    line-height: 1.4;
    font-size: 0.95em;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Адаптивность */
@media (max-width: 1100px) {
    .single-card-main {
        flex-direction: column;
    }

    .single-card-left {
        flex: none;
        width: 100%;
        align-items: center;
    }

    .single-card-photo {
        width: 100%;
        max-width: 320px;
        height: 400px;
    }

    .meta-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .single-card-container {
        margin-top: 100px;
        padding: 0 10px;
    }

    .single-card-main {
        padding: 15px;
    }

    .meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .single-card-title {
        font-size: 1.6em;
    }
}

/* Конец описания страницы карточки  справочникка*/


/*Начало описания страницы с документом*/
/****************************************** СТРАНИЦА ДОКУМЕНТА ************************************************/


/********************** СТРАНИЦА ДОКУМЕНТА - ГОРИЗОНТАЛЬНЫЙ ВАРИАНТ **********************/




.single-doc-container {
    margin-top: 100px;
    padding-left: 240px; /* Отступ слева для фиксированной панели */
    color: #e5e5e5;
    margin-top: 100px;
    position: relative;
    z-index: 1;

}

/* ВЕРХНЯЯ ФИКСИРОВАННАЯ ШАПКА - ИСПРАВЛЕНА */
.doc-top-header {
    position: fixed;
    top: 102px;
    left: 5px;
    right: 5px;
    background: linear-gradient(135deg, #101628 0%, rgba(55, 73, 136, 0.95) 100%);
    border-radius: 16px;
    padding: 15px 25px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 150; /* Самый высокий z-index */
    height: 60px; /* Фиксированная высота */
    display: flex;
    flex-direction: row;
    justify-content: left;
    /*border: 2px solid rgb(8, 241, 206);*/
    text-align: center;
}

.doc-main-subtitle {
    color: #c0c0c0;
    font-size: 2.0em;
    font-style: italic;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    padding-top: 5px;
}

.doc-main-title {
    color: #ffd700;
    font-size: 1.5em;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);

    height: 62px; /* фиксированная высота */

    flex: 1;
    padding-top: 5px;

    /* Автоматическое уменьшение шрифта */
    /* font-size: min(1.9em, 1.9vh);  ограничение сверху */
    line-height: 1.3;

    /* Перенос текста */
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* максимум 2 строки */
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}



/* ЛЕВАЯ ПАНЕЛЬ: ФИКСИРОВАННАЯ информация о документе - ИСПРАВЛЕНА */
.doc-info-sidebar {
    position: fixed;
    top: 205px; /* Смещена вниз, чтобы не перекрывать шапку */
    left: 5px;
    width: 220px;
    background: linear-gradient(135deg, #101628 0%, rgba(55, 73, 136, 0.95) 100%);
    border-radius: 20px;
    padding: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    height: calc(100vh - 215px); /* Уменьшена высота */
    overflow-y: auto;
    z-index: 140; /* Ниже чем шапка */
    box-sizing: border-box;
}



.doc-sidebar-content {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    gap: 10px;
    white-space: nowrap;
    /*border: red solid 1px;*/

}

.doc-sidebar-content_1{
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    text-align: center;
    padding: 10px;
    border-radius: 20px;
    width: 175px;
    border: 2px solid rgba(255, 215, 0, 0.3);

}
.doc-sidebar-content_2{
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}
.doc-sidebar-content_3{
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.sidebar-meta-item {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);

}



.sidebar-meta-label {
    color: rgba(192, 192, 192, 0.9);
    font-size: 0.85em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-meta-value {
    color: #ffd700;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    word-break: break-all;

}

.doc-count-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    border: 2px solid #1a1a1a;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    margin-top: 10px;
}

.count-label {
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 5px;
}

.count-value {
    font-size: 1.8em;
    font-weight: bold;
}

/* ПРАВАЯ ЧАСТЬ: Сетка карточек - ИСПРАВЛЕНА */
.doc-main-content {

    display: flex;
    flex-direction: row;
    flex: 1;
    /*border: #2fff00 solid 2px;*/
    gap: 10px;
    flex-wrap: wrap; /* чтобы карточки переносились на другую строку */
    z-index: 10; /* Самый низкий */
    margin: 0;
}

/* Карточка элемента документа */
.doc-card {
    background: linear-gradient(135deg, #101628 0%, rgba(55, 73, 136, 0.7) 100%);
    border-radius: 16px;
    padding: 10px;
    border: 2px solid rgba(255, 215, 0, 0.25);
    position: relative;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    gap: 20px;
    height: 95%;
    width: 550px;
    min-width: 550px;
    border: #052bcb solid 2px;/**/
}
.doc-card_viewed { /* переопределяем для просмотрено*/
    background: linear-gradient(135deg, #101628 0%, rgba(55, 73, 136, 0.7) 100%);
    min-width: calc(100% - 270px);
    border-radius: 16px;
    padding: 10px;
    border: 2px solid rgba(255, 215, 0, 0.25);

    min-height: calc(100% - 238px);
    align-items: flex-start;

    position: fixed;
    left: 235px;
    right: 20px;
    top: 205px;

}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

/* Порядковый номер */
.doc-card-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    border: 2px solid #1a1a1a;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    z-index: 15;
}
.doc-card_vert{
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*border: 2px solid #d08719;*/
    flex: 1;
}
.doc-card_goriz{
    display: flex;
    flex-direction: row;
    background: rgba(0, 0, 0, 0.2);
    /*border: 3px solid #d01919;/**/
    justify-content: space-between; /* Разделяет элементы по краям */
    border-radius: 12px;
}

/* ЛЕВАЯ ЧАСТЬ карточки: Изображение + базовые параметры */
.card-left-part {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 100%;

}

/* Изображение вертикальное */
.card-image-wrapper {
    height: 250px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    margin: 5px;

}

.card-vertical-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;

}

.card-no-photo {
    color: rgba(255, 215, 0, 0.3);
    font-size: 2.5em;
}

/* Базовые параметры под изображением */
.card-basic-info {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
    margin: 5px;
    /*max-height: min-content;*/
}

.basic-info-dop{
    display: flex;
    flex-direction: row;

    /*border: red solid 2px;*/


}
.basic-info-item{
    width: 100%;
    /*border: #5eff00 solid 2px;*/

}

.basic-info-item_viewed{
    /*border: #5eff00 solid 2px;*/
    background: rgba(255, 255, 255, 0.05);
    padding:  10px 0;
    width: 100%;
    border-radius: 12px;
}

.basic-info-value_dop_info{
    flex: 1;
    text-align: center;
    /*border: #5eff00 solid 2px;*/
    background: rgba(0, 0, 0, 0.15);
    padding: 10px;
}
.basic-info-value_dop_info a {
    color: #ffd700;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
}

.basic-info-dop .basic-info-item{
    display: flex;
    flex-direction: column;

    width: 50%;
    background: rgba(0, 0, 0, 0.15);

    padding:  10px 0;
    /*border: #ff8800 solid 2px;*/
}
.basic-info-dop .basic-info-item:nth-child(2){
    margin-left: 10px;
}

.basic-info-label {
    color: rgba(192, 192, 192, 0.8);
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
}

.basic-info-value {
    color: #ffd700;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.3;
    font-size: 1.0em;
    text-align: center;

}



.name-text, .name-text_r{

    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);

    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: flex;
    text-align: left;
    flex-wrap: wrap; /* или wrap если хотите перенос на новую строку */
    padding-left: 30px;
    font-size: 1.2em;
}
.name-text{
    padding-top: 1px;
}
.name-text_r{
    font-size: 1.3em;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);

    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    justify-content: right;
    text-align: right;
    padding-left: 0;
    padding-right: 5px;
    padding-bottom: 2px;
}

.name-text_r img{

    /*border: #008cff solid 2px;*/
    width: 50px;
    padding-bottom: 3px;
}

.add-info-text {
    font-size: 0.9em;
    color: #c0c0c0;
    max-height: 80px;
    overflow: auto;
    padding-right: 5px;
}

.add-info-text::-webkit-scrollbar {
    width: 4px;
}

.add-info-text::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 2px;
}

/**************** ПРАВАЯ ЧАСТЬ карточки: Технические параметры ********************************/
.card-right-part {
    flex: 1;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    overflow-y: auto;
    max-height: 95%;
    margin: 5px;
    /*border: #2fff00 2px solid;*/
}

.card-right-part_viewed {
    flex: 1;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    overflow-y: auto;
    max-height: 95%;
    margin: 15px;
    height: min-content;
    /*border: #2fff00 2px solid;*/
}



.card-technical-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;

}

.tech-info-item {
    display: flex;
    flex-direction: column;
    padding: 1px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.05);
    min-height: 10px;

}

.tech-info-item:last-child {
    border-bottom: none;
}
.doc-card_goriz:has(.tech-info-label){
    display: flex;
    justify-content: left;
    flex: 1;
    /* border: #00ffb2 2px solid;*/

}
.tech-info-label {
    color: rgba(192, 192, 192, 0.9);
    font-size: 0.95em;
    font-weight: 500;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tech-info-label span{
    /* border: red 2px solid;*/
}

.tech-info-value {
    color: #ffd700;
    font-size: 1.1em;
    font-weight: 500;
    margin:  8px 0;
    word-break: break-word;
    /*border: #0048ff 2px solid;*/
    flex: 1;
}
.tech-info-value span{

    margin: 3px;
    padding: 5px;
}

/* Пустой документ */
.doc-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: rgba(16, 22, 40, 0.6);
    border-radius: 16px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    color: rgba(255, 215, 0, 0.5);
}

.empty-text {
    color: #c0c0c0;
    font-size: 1.3em;
}

/*Конец описания страницы с документом*/
/* костыли с формами*************************************************************************************/
.content_menu_right option, .content_menu_left option {
    font-size: 1.1em !important;
}
.content_menu_right select, .content_menu_left select{
    font-size: 1.1em !important;;
}
#type_doc option {
    font-size: 0.6em !important;
}
.content_menu_left label, .content_menu_right label{
    font-size: 1.1em;
}
input[type="checkbox"] {
    transform: scale(1.5); /* 1.5 - коэффициент увеличения */
    margin: 0 10px 0 5px; /* Добавляем отступы */
}