:root {
    --vtg-modal-duration: 500ms;
    --brand-blue: #1B4F97;
    --brand-gold: #E6BA17;
    --brand-orange: #E66617;
    --color-border: hsl(216, 44%, 32%);
}

body {
    margin: 0;
    min-height: 100vh;
    color: #f7f7ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

.body_bg::before {
    content: "";
    width: 100%;
    height: 100%;
    background: radial-gradient(circle farthest-side at 0 3.5rem, hsl(216, 44%, 24%) 0%, hsl(216, 44%, 8%) 50%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
}

/* --- Верхняя полоса предупреждения --- */
.top-alert {
    position: relative;
    z-index: 20;
    background: radial-gradient(circle at 0 0, rgba(27, 79, 151, 0.4) 0, rgba(11, 22, 40, 0.98) 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}
.top-alert .alert-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.top-alert .alert-icon {
    color: var(--brand-gold);
    font-size: 0.9rem;
}
.top-alert .alert-text {
    letter-spacing: 0.04em;
}
.top-alert .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #facc15;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}
.top-alert .dot-blue {
    background: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* --- Модальное окно с предупреждениями --- */
.btn-secondary, .btn-secondary:hover, .btn-secondary:active {
    background: #E66617;
    color: black;
    border: 0;
}

.modal-alert {
    --brand-vt-orange: #E66617;

    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, .375);
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.modal-alert.active {
    display: flex;
}

.modal-container {
    margin: 1rem;
    width: min(100%, 40rem);
    height: min-content;
    background: rgba(11, 22, 40, 0.96);
    border: 0.125rem solid var(--brand-vt-orange);
    border-radius: 1rem;
}

.modal-header,
.modal-footer { border: none;}
.modal-header * { color: var(--brand-vt-orange); }

.modal-close {
    margin-left: auto;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.modal-close::before {
    content: "\f00d";
    font-family: "FontAwesome";
}


/* --- Навбар --- */
.navbar {
    background-color: rgba(11, 22, 40, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 10;
}
.navbar-brand img {
    height: 50px;
    filter: drop-shadow(0 0 8px rgba(27, 79, 151, 0.3));
}
.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    margin: 0 12px;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.nav-link:hover { color: var(--brand-gold) !important; }
.dropdown-menu-dark {
    background: rgba(11, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
}
.dropdown-item {
    color: rgba(255,255,255,0.8);
}
.dropdown-item:hover {
    background: rgba(27, 79, 151, 0.3);
    color: var(--brand-gold);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 80px 0 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: transparent;
}

#constellation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
#constellation-canvas.visible {
    opacity: 1;
}

.hero-dark-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 22, 40, 0.75);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-logo-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    font-weight: 300;
}

.hero-metrics {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.meta-card {
    background: rgba(11, 22, 40, 0.7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    padding: 0.9rem 1.2rem;
    backdrop-filter: blur(8px);
    min-width: 90px;
    flex: 1 1 auto;
    max-width: 130px;
    text-align: center;
}
.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.3rem;
}
.meta-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.hero-btn {
    background: var(--brand-gold);
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    color: #0b1628;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(230, 186, 23, 0.3);
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    text-decoration: none;
}
.hero-btn:hover {
    background: #fff;
    transform: translateY(-3px);
}

/* --- Таймлайн --- */
.timeline-section {
    padding: 80px 0 60px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-top: 50px;
    margin-bottom: 50px;
    background: transparent;
}

.tl-wrapper {
    position: relative;
    padding: 40px 0 20px 0;
}

.tl-line {
    position: absolute;
    top: 50px;
    left: 5%;
    width: 90%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.tl-scroll-wrapper {
    overflow-x: auto;
    padding: 0 20px 40px 20px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 60px;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
}
.tl-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.tl-scroll-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
.tl-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--brand-gold); border-radius: 10px; }

.tl-node {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-top: 25px;
}

.tl-dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(11, 22, 40, 0.9);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
    margin-top: -25px; 
}

.tl-node:hover .tl-dot,
.tl-node.active .tl-dot {
    border-color: var(--brand-gold);
    background: rgba(27, 79, 151, 0.3);
    box-shadow: 0 0 20px rgba(230, 186, 23, 0.4);
    transform: scale(1.1);
}

.tl-description-area {
    margin-top: 30px;
    text-align: center;
    padding: 10px 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.9);
}
.tl-description-area h4 {
    color: var(--brand-gold);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.tl-description-area p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
}

/* --- Блок "Актуально" --- */
.notice-wrapper {
    margin-bottom: 80px;
    margin-top: 50px;
}
.notice-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: radial-gradient(
        circle at 0 0, 
        rgba(27, 79, 151, 0.34) 0, 
        rgba(11, 22, 40, 0.96) 42%, 
        rgba(2, 0, 29, 0.98) 100%
    );
    padding: 1.5rem;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
    position: relative;
    overflow: hidden;
}
.notice-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #ffe1d7;
}
.notice-main {
    font-size: 1.1rem;
    max-width: 26rem;
}
.notice-main strong {
    font-weight: 600;
    color: var(--brand-gold);
}

/* --- Вкладки и Карточки --- */
.projects-section { padding: 80px 0; }
.tabs-wrapper {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}
.nav-tabs {
    border-bottom: none !important;
    justify-content: center;
}
.nav-tabs .nav-link {
    color: rgba(255,255,255,0.7);
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    margin: 0 20px;
    padding: 12px 20px;
    position: relative;
    transition: all 0.3s ease;
}
.nav-tabs .nav-link.active {
    color: var(--brand-gold);
    background: transparent;
    border-bottom-color: var(--brand-gold);
    transform: translateY(-1px); 
}
.nav-tabs .nav-link:hover { 
    color: #fff; 
    border-bottom-color: rgba(255,255,255,0.3);
}

.project-card {
    background: radial-gradient(circle at 0 0, rgba(27, 79, 151, 0.15) 0, rgba(11, 22, 40, 0.96) 55%);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    transition: 0.3s;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-height: 280px;
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    z-index: 10;
}
.status-online { color: hsl(142, 69%, 58%); border-color: rgba(74, 222, 128, 0.3); }
.status-offline { color: hsl(0, 0%, 75%); border-color: hsla(0, 0%, 75%, 0.3); }
.status-dev { color: #facc15; border-color: rgba(250, 204, 21, 0.3); }
.status-version { color: #60a5fa; border-color: rgba(96, 165, 250, 0.3); }

.project-icon-wrapper {
    margin-top: 10px;
    margin-bottom: 0.5rem;
}
.project-icon {
    font-size: 2.8rem;
    color: var(--brand-gold);
}
.project-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.project-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.project-link-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    background: transparent;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
}
.project-link-btn:hover {
    background: var(--brand-gold);
    color: #0b1628;
}

/* --- Счетчики (исправленные границы) --- */
.stats-section {
    padding: 60px 0 40px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: none;
    margin-bottom: 0;
}
.stat-item {
    text-align: center;
    padding: 1rem;
}
.stat-number {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    color: var(--brand-gold);
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(230, 186, 23, 0.2);
}
.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
}

/* --- Футер --- */
footer {
    background: rgba(11, 22, 40, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 20px 0;
}
.footer-brand {
    margin-bottom: 1rem;
}
.footer-brand img {
    height: 40px;
    margin-right: 10px;
}
.footer-brand span {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #fff;
}
.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.6;
}
.footer-title {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.6rem;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--brand-gold);
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}
.footer-contact-item i {
    color: var(--brand-gold);
    width: 20px;
    text-align: center;
}
.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}
.footer-socials a {
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    transition: 0.3s;
}
.footer-socials a:hover {
    color: var(--brand-gold);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.return-banner-wrapper {
    margin-top: 20px;
}
.return-banner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.return-banner .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.return-banner .dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 22, 0.35);
    z-index: 1;
    pointer-events: none;
}
.return-banner .bg-years {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 2;
}
.return-banner .bg-years .year {
    font-weight: 800;
    color: hsla(0, 0%, 100%, 1);
    opacity: 0.5;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.02em;
    text-shadow: 0 0 40px rgba(230, 186, 23, 0.1);
}
.return-banner .bg-years .year-left {
    font-size: clamp(2rem, 7vw, 8rem);
}
.return-banner .bg-years .year-center {
    font-size: clamp(3.2rem, 10vw, 10rem);
    opacity: 0.5;
    text-shadow: 0 0 60px rgba(230, 186, 23, 0.08);
    transform: translateX(-5%);
}
.return-banner .bg-years .year-right {
    font-size: clamp(2rem, 7vw, 8rem);
}

.return-banner .banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
}
.return-banner .banner-content .top-line {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.return-banner .banner-content .main-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 400;
    color: #FCE8C7;
    text-shadow: 2px 5px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 0;
    font-family: 'Georgia', serif;
    margin-bottom: 0.5rem;
}
.return-banner .banner-content .jubilee-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}
.return-banner .banner-content .info-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}
.return-banner .banner-content .info-row .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.return-banner .banner-content .info-row .dot-yellow {
    background: #facc15;
}
.return-banner .banner-content .info-row .dot-blue {
    background: #60a5fa;
}
.return-banner .banner-content .bottom-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}
.return-banner .banner-content .bottom-line .brand-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}
.return-banner .banner-content .bottom-line .lunch-text {
    font-size: 0.85rem;
    opacity: 0.8;
}