:root {
    --bg-color: rgb(8, 5, 57);          /* Dark indigo */
    --accent-color: rgb(87, 255, 255);    /* Bright cyan */
    --panel-bg: rgba(20, 17, 51, 0.6);
    --border-color: rgba(87, 255, 255, 0.2);
    --text-main: rgb(200,220,255);
    --text-muted: #a0a0b5;
}

@font-face {
    font-family: 'GOST type B';
    src: url('fonts/gost/gosttypeb.eot'); /* IE9 Compat Modes */
    src: url('fonts/gost/gosttypeb.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/gost/gosttypeb.woff') format('woff'), /* Modern Browsers */
         url('fonts/gost/gosttypeb.ttf')  format('truetype'), /* Safari, Android, iOS */
         url('fonts/gost/gosttypeb.svg#Gost Type B') format('svg'); /* Legacy iOS */
}



/* Базовые стили и сброс (из твоего darkshustreestyle.css) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    background-color: rgb(15, 8, 47);
    font-family: "Play", sans-serif;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgb(200,220,255);
    scroll-behavior: smooth;
}

/* Класс для ссылок */
a {
    color: #57ffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.doc-link {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(87, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.doc-link:hover {
    border-bottom-color: var(--accent-color);
    opacity: 0.9;
}



/* Главный контейнер-сетка */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 1. ВЕРХНЯЯ СТРОКА (HEADER) */
header {
    background-color: rgba(25, 33, 78, 0.95);
    border-bottom: 1px solid rgba(87, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
}




.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}





.main-site-link {
    display: flex;
    align-items: center;
    gap: 10px;                     /* Фиксированный зазор между логотипом 40px и текстом */
    border-bottom: none !important;
    transition: transform 0.2s ease;
}

/* Стили для самого текста "shustree" в шапке */
.top-bar-text {
    font-family: 'GOST type B', sans-serif;
    font-size: 1.45rem;            /* Пропорциональный размер под высоту логотипа 40px */
    font-weight: 400;
    font-style: italic;            /* Фирменный курсив */
    color: var(--accent-color);    /* Используем вашу переменную яркого бирюзового циана */
    letter-spacing: 1.5px;
    line-height: 1;
    transform: translateY(2px);
    opacity: 0.95;                 /* В шапке на внутренних страницах делаем бренд сразу четким */
    
    /* Аккуратное, ненавязчивое свечение, адаптированное под меньший размер букв */
    text-shadow: 0 0 10px rgba(87, 255, 255, 0.4),
                 0 0 20px rgba(87, 255, 255, 0.15);
                 
    transition: text-shadow 0.2s ease;
}

/* При ховере на ВСЮ ссылку — заставляем картинку разгораться сильнее синхронно с текстом */
.main-site-link:hover .brand-logo {
    filter: drop-shadow(0 0 14px rgba(87, 255, 255, 0.7)) 
            drop-shadow(0 0 28px rgba(87, 255, 255, 0.3));
}


/* При ховере на всю ссылку-бренд слегка усиливаем плотность неона, без смены цвета */
.main-site-link:hover .top-bar-text {
    text-shadow: 0 0 14px rgba(87, 255, 255, 0.7),
                 0 0 28px rgba(87, 255, 255, 0.3);
}

/* Корректировка для мобильных устройств, чтобы элементы не зажимались */
@media only screen and (max-width: 480px) {
    .top-bar-text {
        font-size: 1.4rem;         /* Чуть уменьшаем на смартфонах */
        letter-spacing: 1px;
    }
    .main-site-link {
        gap: 8px;
    }
}


.brand-logo {
    height: 36px; /* Оптимальная высота под размер шрифта */
    width: auto;
    display: block;
    /* Сдвигаем картинку ровно на 2 пикселя вверх для оптического выравнивания */
    /* transform: translateY(-2px);*/
    /* Добавляем базовое мягкое свечение для графического знака */
    filter: drop-shadow(0 0 10px rgba(87, 255, 255, 0.4)) 
            drop-shadow(0 0 20px rgba(87, 255, 255, 0.1));
            
    /* Плавный переход для фильтра при наведении */
    transition: filter 0.2s ease;
    
}









/* Поисковый блок (заглушка для твоего кастомного движка) */
.search-box {
    flex-grow: 1;
    max-width: 500px;
    position: relative;
}
.search-box form {
    display: flex;
    width: 100%;
}
.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background-color: rgba(15, 8, 47, 0.8);
    border: 1px solid rgba(87, 255, 255, 0.3);
    border-radius: 4px;
    color: #57ffff;
    font-family: "Play", sans-serif;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.3s ease;
}
.search-input:focus {
    border-color: #57ffff;
    box-shadow: 0 0 8px rgba(87, 255, 255, 0.2);
}
.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #57ffff;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-btn:hover {
    color: #ff53b7;
}

/* Главное навигационное меню */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}


.nav-link {
    font-family: "Play", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: rgba(140, 255, 255, 0.99);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.5s ease, text-shadow 0.5s ease; /* Изменил время на 0.5s для синхронности */
    margin-right: 27px;
    position: relative;         /* Важно: контекст для линии */
    text-decoration: none;      /* На всякий случай гасим стандартное подчеркивание */
    display: inline-block;
}

/* Альтернативный вариант линии (слева направо) */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;                   /* Начинаем с нуля слева */
    height: 2px;
    background-color: rgb(87, 255, 255);
    box-shadow: 0 0 8px rgba(87, 255, 255, 0.6);
    transition: width 0.5s ease; /* Заполняет пространство слева направо за 0.5с */
}

/* Эффект при наведении */
.nav-link:hover {
    color: rgb(87, 255, 255);
    text-shadow: 0 0 8px rgba(87, 255, 255, 0.4);
}

/* Эффект при наведении & СТИЛЬ ДЛЯ АКТИВНОЙ СТРАНИЦЫ */
.nav-link:hover,
.nav-link.active {
    color: rgb(87, 255, 255);
    text-shadow: 0 0 8px rgba(87, 255, 255, 0.4);
}

/* Активация полной ширины линии при наведении & ДЛЯ АКТИВНОЙ СТРАНИЦЫ */
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}




.lang-switcher {
    display: flex;
    gap: 8px;
    font-size: 1em;
}
.lang-link {
    color: rgba(200,200,255, 0.5);
}
.active {
    color: rgb(200,200,255);
    font-weight: 700;
}
.lang-link:hover {
    color: rgba(87,255,255);
}



/* ОСНОВНОЙ ЛЕЙАУТ (Sidebar + Content) */
.main-layout {
    display: flex;
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}





/* 3. РУБРИКАТОР (SIDEBAR) */
aside {
    width: 300px;
    border-right: 1px solid rgba(87, 255, 255, 0.05);
    padding: 30px 20px 30px 0;
    overflow-y: auto;
}
.sidebar-menu {
    list-style: none;
}
.sidebar-item {
    margin-bottom: 10px;
}
.sidebar-link {
    display: block;
    padding: 10px 12px;
    color: rgb(200,220,255);
    border-radius: 4px;
    font-size: 0.95em;
    transition: all 0.2s ease;
}
.sidebar-link:hover {
    background-color: rgba(87, 255, 255, 0.05);
    color: #57ffff;
    padding-left: 16px;
}

/* АКТИВНЫЙ элемент первого уровня (Сюда добавили !important и font-weight) */
.sidebar-link.active {
    background-color: rgba(87, 255, 255, 0.05);
    color: rgb(87, 255, 255) !important; /* Твой фирменный циановый */
    font-weight: 700;
    padding-left: 16px;
    text-shadow: 0 0 8px rgba(87, 255, 255, 0.3);
}


.sublink:hover {
    color: rgb(87,255,255);
}




.sublink:hover {
    color: rgb(87,255,255);
}



/* Стиль для активных вложенных ссылок (sublink) */
.sublink.active {
    color: rgb(87, 255, 255) !important;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(87, 255, 255, 0.4);
}

/* Стили для выпадающих списков на чистом CSS */
.collapsible-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.collapsible-trigger::after {
    content: '▼';
    font-size: 0.7em;
    color: rgba(87, 255, 255, 0.5);
    transition: transform 0.2s ease;
}
.submenu-toggle {
    display: none;
}
.sidebar-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 15px;
    border-left: 1px solid rgba(87, 255, 255, 0.1);
    margin-left: 12px;
    margin-top: 5px;
}
.sidebar-submenu li a {
    display: block;
    padding: 6px 12px;
    font-size: 0.9em;
    color: rgba(200, 200, 255, 0.87);
}
/* Логика раскрытия */
.submenu-toggle:checked ~ .sidebar-submenu {
    max-height: 500px; /* Достаточная высота для раскрытия */
    transition: max-height 0.5s ease-in;
}
.submenu-toggle:checked ~ .collapsible-trigger::after {
    transform: rotate(-180deg);
    color: rgb(220,255,255);
}




.geo-restricted-list{
	list-style-type: square; 
	margin-left: 20px; 
	margin-bottom: 15px; 
	color: rgba(200, 220, 255, 0.85);
}








/* ЗОНА КОНТЕНТА */
main {
    flex: 1;
    padding: 30px 0 30px 40px;
    min-width: 0; /* предотвращает распирание flex-элемента */
}
.content-body {
    max-width: 800px;
    line-height: 1.6;
}
.content-body h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: rgb(87,255,255);
    text-shadow: 0 0 15px rgba(87, 255, 255, 0.2);
}
.content-body p {
    margin-bottom: 20px;
    margin-top: 20px;
    color: rgb(210, 230, 255);
    font-size: 1.1em;
}


blockquote {
  margin: 20px 0;
  padding: 10px 20px;
  border-left: 2px solid rgb(87,255,255); /* Thick left accent border */
  background-color: rgb(15,8,35);     /* Light background tint */
  color: rgb(200,220,255);
}


/* Кнопка-репозиторий */
.github-btn-box {
    margin: 30px 0;
}
.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgb(87, 255, 255) 0%, rgb(0, 200, 200) 100%);
    color: rgb(17, 25, 47) !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(87, 255, 255, 0.3);
    transition: all 0.2s ease;
}
.github-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 255, 255, 0.5);
    background: linear-gradient(135deg, rgb(87, 255, 255) 0%, rgb(0, 200, 200) 100%);
}

/* 2. ФУТЕР (FOOTER) */


/* --- Новая стилизация Футера --- */
.footer {
    width: 100%;
    margin-top: 100px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center; /* Центрируем саму оболочку на экране */
    box-sizing: border-box;
}

.footer-content {
    width: 100%;
    max-width: 600px;      /* Строго по ширине ваших карточек и headline_box */
    padding: 0 15px;       /* Защитные поля для мобилок */
    text-align: left;      /* Железное выравнивание по левому краю везде */
    
    /* Технологичная разделяющая полоса */
    border-top: 1px solid rgba(87, 255, 255, 0.45); 
    padding-top: 30px;
    position: relative;
}

/* Маленький неоновый маркер в начале полосы для стиля */
.footer-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15px;
    width: 40px;
    height: 1px;
    background: rgb(255, 99, 178); /* Фирменный розовый неон */
    box-shadow: 0 0 10px rgb(255, 90, 174);
}

/* Базовое состояние строк: строгий приглушенный стиль */
.footer-content p {
    margin-bottom: 16px;
    opacity: 0.75; 
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-content p:last-child {
    margin-bottom: 0;
}

/* Легкая анимация раскрытия при наведении мыши на футер */
.footer-content:hover p {
    opacity: 0.95; /* Текст становится значительно четче, но не перетягивает внимание */
}

/* Индивидуальный интерактив для ссылок при наведении на конкретную строку */
.footer .link.bottom {
    font-size: 0.95rem;
    color: rgba(220, 220, 255, 0.85);
    display: inline-block;
    transition: color 0.3s ease;
}

.footer .link.bottom:hover {
    color: rgb(87, 255, 255); /* Подсвечиваем бирюзой при фокусе */
    opacity: 1 !important;
}

/* Специфичные блоки внутри футера */
.lang-switcher-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Красивые аккуратные отступы между ссылками вместо жестких маргинов */
}

.footer-github a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-github svg {
    vertical-align: middle;
    transition: transform 0.3s ease;
    transform: translateY(-2px);
}

.footer-github:hover svg {
    transform: rotate(12deg) scale(1.1); /* Интерактивный микро-эффект для иконки гитхаба */
}


/* Адаптивность для мобильных устройств */
@media only screen and (max-width: 577px) {
    .footer {
        margin-top: 60px; /* Чуть прижимаем на смартфонах */
    }
    .footer-content {
        padding: 0 20px;
    }
    .footer-content::before {
        left: 20px;
    }
    .footer-content p {
        font-size: 1.1em; /* Соответствие вашей мобильной типографике */
        line-height: 1.5;
        opacity: 0.9; /* На мобильных экранах (где нет ховера мыши) сразу даем чуть больше читаемости */
    }
}





/* ==========================================
   БЛОК ОБРАТНОЙ СВЯЗИ (ARTICLE FEEDBACK)
   ========================================== */
.article-feedback {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(87, 255, 255, 0.05);
    text-align: center;
}

.article-feedback p {
    color: rgba(200, 220, 255, 0.6);
    font-size: 0.9em;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Общие стили для кнопок фидбека */
.btn-feedback-yes, 
.btn-feedback-no {
    background: rgba(20, 24, 35, 0.6);
    border: 1px solid rgba(200, 220, 255, 0.1);
    color: rgb(200, 220, 255);
    padding: 8px 20px;
    font-size: 0.88em;
    font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Ховер для кнопки "Да" (Фирменный Циан) */
.btn-feedback-yes:hover {
    border-color: #57ffff;
    color: #57ffff;
    background: rgba(87, 255, 255, 0.03);
    box-shadow: 0 0 12px rgba(87, 255, 255, 0.15);
    text-shadow: 0 0 8px rgba(87, 255, 255, 0.3);
}

/* Ховер для кнопки "Нет" (Приглушенный Красный/Аварийный) */
.btn-feedback-no:hover {
    border-color: #ff5773;
    color: #ff5773;
    background: rgba(255, 87, 115, 0.03);
    box-shadow: 0 0 12px rgba(255, 87, 115, 0.15);
    text-shadow: 0 0 8px rgba(255, 87, 115, 0.3);
}

/* Состояние Active (при клике) для физического отклика */
.btn-feedback-yes:active,
.btn-feedback-no:active {
    transform: scale(0.96);
}











/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .logo {
        text-align: center;
    }
    .search-box {
        max-width: 100%;
        order: -1; /* Поиск остается на самом верху мобильного экрана */
    }
    
    /* Меню уезжает вниз, как на главной, и выстраивается в столбик */
    .nav-menu {
        flex-direction: column; /* Выстраиваем элементы вертикально */
        align-items: center;    /* Центрируем ссылки по горизонтали */
        gap: 12px;              /* Уменьшаем или настраиваем отступ между строками */
        
        order: 2;
        padding-top: 15px;      /* Немного увеличили верхний отступ для баланса */
        border-top: 1px solid rgba(87, 255, 255, 0.05);
    }

    .nav-menu { display: none; }
    .lang-switcher-mobile {
        margin-top:27px;
        display: flex;
        flex-direction: column; /* Выстраивает ссылки строго друг под другом */
        gap: 12px;              /* Задает одинаковый, аккуратный зазор между строками */
        margin-bottom: 20px;
    }
    
    .nav-link {
        padding: 6px 0; /* Увеличивает кликабельную зону */
        width: auto;    /* Если нужно, чтобы они центрировались как полноценные блоки */
    }

    .main-layout {
        flex-direction: column;
        padding: 0 15px;
    }
    aside {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(87, 255, 255, 0.1);
        padding: 20px 0;
        max-height: none;
    }
    main {
        padding: 20px 0;
    }
    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

