/* === ЦВЕТА КОМПАНИИ VAXORE === */
:root {
    --primary: #55467b;
    --primary-light: #6e5b9e;
    --bg: #0d0d0d;
    --card: #161616;
    --text: #e0e0e0;
    --gray: #888888;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

/* Чёрный фон */
body { 
    background-color: #000000;
    color: var(--text); 
    overflow-x: hidden; 
}

/* === ШАПКА === */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(85, 70, 123, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1800px;
    margin: 0 auto;
}

.header-brand { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.company-icon { 
    width: 35px; 
    height: 35px; 
}

.logo { 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: #fff; 
    letter-spacing: 1px; 
}

.header-subtitle { 
    color: var(--gray); 
    font-size: 0.9rem; 
    letter-spacing: 1px; 
}

.animated-separator { 
    width: 100%; 
    height: 1.5px; 
    background: rgba(85, 70, 123, 0.2); 
    position: absolute; 
    bottom: 0;
    left: 0;
    overflow: hidden; 
}

.glowing-line { 
    position: absolute; 
    left: -300px; 
    width: 300px; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, #fff, transparent); 
    animation: slide 3.5s linear infinite; 
}

@keyframes slide { 
    0% { left: -300px; } 
    100% { left: 100%; } 
}

/* === ОСНОВНОЙ МАКЕТ === */
.main-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    padding: 40px 5%;
    max-width: 1800px;
    margin: 0 auto;
}

.news-container {
    flex-grow: 1;
    max-width: 950px;
}

/* === SKELETON === */
.skeleton {
    background: linear-gradient(90deg, #1e1e2a 25%, #2a2a3a 50%, #1e1e2a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--card);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 35px;
    border-left: 4px solid var(--primary);
}

.skeleton-title {
    height: 28px;
    width: 70%;
    margin-bottom: 15px;
}

.skeleton-date {
    height: 14px;
    width: 40%;
    margin-bottom: 20px;
}

.skeleton-text {
    height: 80px;
    width: 100%;
    margin-bottom: 20px;
}

.skeleton-button {
    height: 44px;
    width: 150px;
}

.skeleton-sidebar-item {
    margin-bottom: 20px;
}

.skeleton-product {
    height: 24px;
    width: 60%;
    margin-bottom: 10px;
}

.skeleton-release {
    height: 60px;
    width: 100%;
    margin-bottom: 15px;
}

/* === КАРТОЧКА НОВОСТИ === */
.news-card {
    background: var(--card);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 35px;
    border: 1px solid rgba(255,255,255,0.03);
    border-left: 4px solid var(--primary);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
}

.news-card.show {
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px rgba(85, 70, 123, 0.15); 
    border-left-color: var(--primary-light); 
}

/* Значок ЗАКРЕПЛЕНО (без анимации, с иконкой) */
.pinned-badge {
    position: absolute;
    top: 25px; 
    right: 25px;
    background: rgba(85, 70, 123, 0.15);
    color: var(--primary-light);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(85, 70, 123, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pinned-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.news-date { 
    color: var(--primary-light); 
    font-weight: 700; 
    font-size: 0.85rem; 
    margin-bottom: 12px; 
}

.news-title { 
    font-size: 1.8rem; 
    color: #fff; 
    margin-bottom: 20px; 
    line-height: 1.3; 
}

.news-image { 
    width: 100%; 
    border-radius: 8px; 
    margin-bottom: 25px; 
    cursor: pointer; 
    transition: transform 0.3s ease; 
}

.news-image:hover { 
    transform: scale(1.02); 
}

.news-content { 
    line-height: 1.7; 
    color: #ccc; 
    white-space: pre-wrap; 
    margin-bottom: 30px; 
    font-size: 1rem; 
}

/* === КНОПКА СКАЧИВАНИЯ === */
.news-attachment {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(85, 70, 123, 0.1);
    border: 1px solid var(--primary);
    color: #fff; 
    text-decoration: none; 
    border-radius: 8px; 
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.news-attachment svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.news-attachment:hover { 
    background: var(--primary); 
    box-shadow: 0 0 20px rgba(85, 70, 123, 0.5);
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === САЙДБАР РЕЛИЗОВ === */
.sidebar {
    width: 350px;
    flex-shrink: 0;
    background: var(--card);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.03);
    position: sticky;
    top: 110px;
}

.sidebar-title { 
    font-size: 1.2rem; 
    color: #fff; 
    margin-bottom: 20px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}

.product-group { margin-bottom: 30px; }
.product-name { 
    color: var(--primary-light); 
    font-weight: 700; 
    margin-bottom: 15px; 
    font-size: 1.1rem; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.product-name::before { content: ''; display: block; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }

.release-item { 
    padding-left: 15px; 
    border-left: 2px solid rgba(85, 70, 123, 0.2); 
    margin-bottom: 15px; 
    position: relative;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.release-item.show {
    opacity: 1;
    transform: translateX(0);
}

.release-item::before { 
    content: ''; 
    position: absolute; 
    left: -5px; 
    top: 5px; 
    width: 8px; 
    height: 8px; 
    background: var(--bg); 
    border: 2px solid var(--primary-light); 
    border-radius: 50%; 
}

.release-version { color: #fff; font-weight: 600; font-size: 0.95rem; margin-bottom: 2px;}
.release-date { color: var(--gray); font-size: 0.75rem; margin-bottom: 8px; }
.release-desc { color: #aaa; font-size: 0.85rem; margin-bottom: 10px; line-height: 1.5; }
.release-link { color: var(--primary-light); text-decoration: none; font-size: 0.85rem; display: inline-block; font-weight: 600; transition: 0.2s;}
.release-link:hover { text-decoration: underline; color: #fff; transform: translateX(3px); }

/* === КНОПКА "НАВЕРХ" === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(85,70,123,0.4);
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: #fff;
    margin-top: 15px;
    text-align: center;
    font-size: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-light);
}

/* === АДАПТИВ === */
@media (max-width: 1000px) {
    .main-layout { flex-direction: column; padding: 20px 5%; }
    .sidebar { width: 100%; position: static; margin-top: 10px; }
    .header-content { padding: 15px 5%; flex-direction: row; }
    .header-subtitle { display: none; }
}