* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a2a 0%, #0f0f2a 100%);
    color: #e0e0ff;
    min-height: 100vh;
}

/* ===== МЕНЮ ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(100, 100, 200, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
}

.nav-btn {
    position: relative;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e0e0ff;
    background: rgba(30, 30, 70, 0.8);
    border: 1px solid rgba(100, 100, 200, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.1s ease;
    text-align: center;
    text-decoration: none;
}

.nav-btn:active {
    transform: scale(0.97);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: rgba(80, 80, 150, 0.6);
    border-color: rgba(100, 100, 255, 0.6);
}

.auth-btn {
    background: linear-gradient(135deg, #2a2a6a, #1a1a4a);
    border-color: #aa88ff;
    margin-left: auto;
}

/* Для ПК (ширина экрана больше 768px) */
@media (min-width: 769px) {
    .main-nav.scrolled {
        background: rgba(5, 5, 20, 0.98);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    body {
        padding-top: 70px;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* Для мобильных (ширина экрана до 768px) */
@media (max-width: 768px) {
    .main-nav {
        position: relative;
    }
    
    body {
        padding-top: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #e0e0ff;
        font-size: 28px;
        cursor: pointer;
        padding: 8px 12px;
    }
    
    .nav-buttons {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid rgba(100, 100, 200, 0.3);
    }
    
    .nav-buttons.show {
        display: flex;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .auth-btn {
        margin-left: 0;
    }
}

/* ===== АНИМАЦИОННЫЙ БЛОК ===== */
.hero-animation {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

.animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0a0a2a 0%, #030318 100%);
    background-image: url('/assets/images/space-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#solarCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== БЛОК ОПИСАНИЯ ПРОЕКТА ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.project-description {
    background: rgba(10, 10, 30, 0.4);
    border-radius: 32px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(100, 100, 200, 0.2);
    backdrop-filter: blur(2px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(100, 100, 200, 0.3);
}

.project-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a0a0ff 50%, #6a6aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.engine-badge {
    display: inline-block;
    background: rgba(50, 50, 100, 0.5);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(100, 100, 200, 0.5);
    color: #aaaaff;
}

.project-lead {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.project-lead strong {
    color: #aa88ff;
}

.world-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    background: rgba(20, 20, 50, 0.6);
    backdrop-filter: blur(4px);
    padding: 1rem;
    border-radius: 16px;
    min-width: 100px;
    border: 1px solid rgba(100, 100, 200, 0.3);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 100, 255, 0.6);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffaa66;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.features {
    background: rgba(30, 30, 60, 0.4);
    border-radius: 24px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: #ccaaee;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.75rem;
    background: rgba(20, 20, 50, 0.5);
    border-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.features-list li:hover {
    background: rgba(80, 80, 150, 0.4);
    transform: translateX(5px);
}

.developer {
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    margin-top: 1rem;
}

.developer-name {
    color: #ffaa66;
    font-weight: 700;
    font-size: 1.3rem;
}

/* ===== НОВОСТИ ===== */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff, #a0a0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: rgba(20, 20, 50, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(100, 100, 200, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(100, 100, 255, 0.5);
}

.news-content {
    padding: 1.2rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffaa66;
    line-height: 1.3;
}

.news-date {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #d0d0ff;
}

.news-source {
    font-size: 0.7rem;
    opacity: 0.5;
}

.news-source a {
    color: #aaaaff;
    text-decoration: none;
}

.news-source a:hover {
    text-decoration: underline;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background: rgba(50, 50, 120, 0.8);
    width: 100%;
    max-width: 300px;
    border: 1px solid rgba(100, 100, 200, 0.4);
    border-radius: 12px;
    color: #e0e0ff;
    cursor: pointer;
    transition: all 0.1s ease;
}

.load-more-btn:hover {
    background: rgba(80, 80, 150, 0.6);
    border-color: rgba(100, 100, 255, 0.6);
}

.load-more-btn:active {
    transform: scale(0.97);
}

/* Адаптивность новостей */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1 fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1 fr;
    }
}

/* ===== ФУТЕР ===== */
.footer {
    margin-top: 3rem;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(100, 100, 200, 0.3);
    background: rgba(5, 5, 20, 0.8);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-group {
    min-width: 120px;
}

.footer-group h4 {
    font-size: 0.8rem;
    color: #aaaaff;
    margin-bottom: 0.5rem;
}

.footer-group a {
    display: block;
    padding: 0.2rem 0;
    font-size: 0.7rem;
    background: none;
    border: none;
    color: #b0b0d0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-group a:hover {
    color: #ffaa66;
}

.footer-copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.7rem;
    opacity: 0.5;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .nav-buttons {
        justify-content: center;
    }
    .auth-btn {
        margin-left: 0;
    }
    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    .project-description {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    .world-stats {
        gap: 1rem;
    }
    .stat-item {
        min-width: 80px;
        padding: 0.75rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .features-list {
        grid-template-columns: 1fr;
    }
    .developer {
        font-size: 1rem;
    }
    .developer-name {
        font-size: 1.1rem;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 760px) {
    .project-title {
        font-size: 1.8rem;
    }
    .world-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .stat-item {
        min-width: auto;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .news-title {
        font-size: 1rem;
    }
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ "О ПРОЕКТЕ" ===== */
.about-project-page .history-block,
.about-project-page .youtube-block,
.about-project-page .achievements-block,
.about-project-page .support-block {
    background: rgba(30, 30, 60, 0.4);
    border-radius: 24px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.about-project-page h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: #ccaaee;
}

.about-project-page p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #d0d0ff;
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    margin: 1rem 0;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.playlist-link {
    text-align: center;
    margin-top: 1rem;
}

.playlist-link a {
    color: #ffaa66;
    text-decoration: none;
}

.playlist-link a:hover {
    text-decoration: underline;
}

.achievement-card {
    background: rgba(20, 20, 50, 0.6);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(100, 100, 200, 0.3);
}

.achievement-card p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.achievement-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 1rem;
}

.support-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.support-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #2a2a6a, #1a1a4a);
    border: 1px solid #aa88ff;
    border-radius: 30px;
    color: #e0e0ff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(170, 136, 255, 0.3);
}

/* ===== БЛОК ВИДЕО-ИСТОРИИ (страница "О проекте") ===== */
.history-videos-block {
    background: rgba(30, 30, 60, 0.4);
    border-radius: 24px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.history-videos-block h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: #ccaaee;
}

.history-videos-block > p {
    text-align: center;
    margin-bottom: 2rem;
}

.videos-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-card {
    background: rgba(20, 20, 50, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(100, 100, 200, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(100, 100, 255, 0.5);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.2rem;
}

.video-number {
    display: inline-block;
    background: rgba(255, 170, 102, 0.2);
    color: #ffaa66;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffaa66;
}

.video-date {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 0.75rem;
}

.video-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d0d0ff;
}

.video-description p {
    margin-bottom: 0.5rem;
}

.video-ps {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(100, 100, 200, 0.2);
}

.more-videos-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.more-videos-link a {
    color: #ffaa66;
    text-decoration: none;
}

.more-videos-link a:hover {
    text-decoration: underline;
}

/* Адаптивность для видео-блока */
@media (max-width: 768px) {
    .video-title {
        font-size: 1rem;
    }
    
    .video-description {
        font-size: 0.8rem;
    }
    
    .video-ps {
        font-size: 0.75rem;
    }
}

/* ===== БЛОК МОДЕЛЬ ЗВЕЗДНОЙ СИСТЕМЫ (страница "О проекте") ===== */
.starsystem-video-block {
    background: rgba(30, 30, 60, 0.4);
    border-radius: 24px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.starsystem-video-block h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: #ccaaee;
}

.starsystem-video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.starsystem-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.starsystem-description {
    margin-top: 1.2rem;
    padding: 1rem;
    background: rgba(20, 20, 50, 0.4);
    border-radius: 16px;
    text-align: center;
}

.starsystem-description p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #d0d0ff;
}

.starsystem-date {
    font-size: 0.85rem;
    opacity: 0.7;
}

.starsystem-link {
    margin-top: 0.75rem;
}

.starsystem-link a {
    color: #ffaa66;
    text-decoration: none;
}

.starsystem-link a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .starsystem-video-block {
        padding: 1rem;
    }
    
    .starsystem-description p {
        font-size: 0.85rem;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ НОВОСТЕЙ ===== */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.news-modal-content {
    background: #0a0a2a;
    border: 1px solid rgba(100, 100, 200, 0.5);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    color: #e0e0ff;
}

.news-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #ffaa66;
}

.news-modal-content h2 {
    color: #ffaa66;
    margin-bottom: 0.5rem;
    padding-right: 30px;
}

.news-modal-date {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.news-modal-content-text {
    line-height: 1.5;
    margin: 1rem 0;
}

.read-more-btn {
    background: rgba(80, 80, 150, 0.5);
    border: 1px solid rgba(100, 100, 200, 0.4);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    cursor: pointer;
    margin-top: 0.5rem;
    color: #aaaaff;
}

.read-more-btn:hover {
    background: rgba(100, 100, 200, 0.5);
}

/* ===== СЛАЙДЕР В МОДАЛЬНОМ ОКНЕ ===== */
.modal-slider {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.slider-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    border-radius: 12px;
    background: #0a0a2a;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;  /* ← добавляем */
}

.slider-slide.active {
    opacity: 1;
    pointer-events: auto;  /* ← только активный слой получает клики */
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0a0a2a;
}

/* Для очень высоких картинок */
.slider-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-prev:hover, .slider-next:hover {
    background: rgba(0,0,0,0.8);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #ffaa66;
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .news-image {
        max-height: 150px;
    }
}

.news-short-content {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0.5rem 0;
    color: #d0d0ff;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modal-no-image {
    text-align: center;
    padding: 2rem;
    background: rgba(20,20,50,0.5);
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* ===== УВЕЛИЧЕННЫЕ ШРИФТЫ ДЛЯ ПК ===== */
@media (min-width: 1200px) {
    .news-title { font-size: 1.4rem; }
    .news-date { font-size: 0.9rem; }
    .news-short-content { font-size: 1rem; }
    .news-source { font-size: 0.9rem; }
    .read-more-btn { font-size: 0.9rem; padding: 0.5rem 1rem; }
}

/* ===== МОДАЛЬНОЕ ОКНО ШИРЕ ===== */
@media (min-width: 768px) {
    .news-modal-content {
        max-width: 800px;
        width: 90%;
    }
}

/* ===== ТЕЛЕФОНЫ: 1 КАРТОЧКА ===== */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== КАРТОЧКА БЕЗ ИЗОБРАЖЕНИЯ ===== */
.news-card.no-image .news-image-container {
    display: none;
}

.news-card.no-image .news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.news-card.no-image .news-short-content {
    text-align: center;
}

/* ===== КНОПКА ОТКРЫТИЯ HD ИЗОБРАЖЕНИЯ ===== */
.hd-download-btn {
    display: inline-block;
    background: rgba(50, 50, 120, 0.8);
    border: 1px solid #aa88ff;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    color: #e0e0ff;
    text-decoration: none;
    margin-top: 0.5rem;
}

.hd-download-btn:hover {
    background: rgba(100, 100, 200, 0.6);
}

/* ===== МОДАЛЬНОЕ ОКНО ПУБЛИКАЦИИ ===== */
.publish-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    background: rgba(10, 10, 30, 0.95);
    border: 1px solid rgba(100, 100, 200, 0.5);
    border-radius: 16px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.publish-animation {
    position: relative;
    width: 60px;
    height: 60px;
}

.publish-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffaa66;
    border-radius: 50%;
}

.publish-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
}

.publish-satellite {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #88ccff;
    border-radius: 50%;
}

.publish-result {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.publish-result.success {
    background: #2a6a2a;
    color: #88ff88;
    border: 1px solid #88ff88;
}

.publish-result.error {
    background: #6a2a2a;
    color: #ff8888;
    border: 1px solid #ff8888;
}

/* ===== УНИВЕРСАЛЬНАЯ АНИМАЦИЯ ЗАГРУЗКИ ===== */
.loading-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    background: rgba(10, 10, 30, 0.95);
    border: 1px solid rgba(100, 100, 200, 0.5);
    border-radius: 16px;
    z-index: 3000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.loading-animation-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
}

.loading-center-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
}

.loading-star1, .loading-star2 {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffaa66;
    border-radius: 50%;
}

.loading-star1 {
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
}

.loading-star2 {
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
}

.loading-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
}

.loading-satellite {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #88ccff;
    border-radius: 50%;
    transition: transform 0.05s linear;
}

.loading-result {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.loading-result.success {
    background: #2a6a2a;
    color: #88ff88;
    border: 1px solid #88ff88;
}

.loading-result.error {
    background: #6a2a2a;
    color: #ff8888;
    border: 1px solid #ff8888;
}

/* В модальном окне GIF на всю ширину */
.modal-slider .slider-slide img[src$=".gif"] {
    max-height: 400px;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* ===== КАРТИНКИ НОВОСТЕЙ (ЕДИНСТВЕННЫЙ ПРАВИЛЬНЫЙ БЛОК) ===== */
.news-image-container {
    width: 100%;
    height: auto;
    min-height: 150px;
    background: #0a0a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain !important;
    object-position: center;
    background: #0a0a2a;
}

/* Для GIF */
.news-image[src$=".gif"] {
    object-fit: contain !important;
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .news-image {
        max-height: 150px !important;
    }
}

/* ===== МОБИЛЬНОЕ МЕНЮ (БЕЗ БУРГЕРА, ПРОСТОЙ ПЕРЕНОС) ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav-container {
        display: block;
        padding: 0.5rem;
    }
    
    .nav-buttons {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-btn {
        display: inline-block;
        width: auto;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .main-nav {
        position: relative;
        top: auto;
        transform: none;
        padding: 0;
    }
    
    body {
        padding-top: 0;
    }
}

/* ===== КНОПКА "НАВЕРХ" ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(50, 50, 120, 0.8);
    border: 1px solid rgba(100, 100, 200, 0.4);
    border-radius: 50%;
    color: #e0e0ff;
    font-size: 24px;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    background: rgba(80, 80, 150, 0.9);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
}