/* СТРОГИЙ СБРОС И ШРИФТЫ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #050505;
    color: white;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* ================== НАВБАР ================== */
.main-nav {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-out;
}

.main-nav.nav-hidden {
    transform: translateY(-100%);
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3333, #ff6666);
    z-index: 1001;
    transition: width 0.1s linear;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-link {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 4px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin: 0 15px;
    font-size: 12px;
    letter-spacing: 2px;
    transition: 0.2s ease;
}

.nav-links a:hover {
    color: white;
}

.nav-social a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 15px;
    font-size: 18px;
    transition: 0.2s ease;
}

.nav-social a:hover {
    color: white;
}

/* ================== АНИМАЦИИ (ПЛАВНОЕ ПОЯВЛЕНИЕ) ================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================== HERO SECTION ================== */
.hero-section {
    height: 100vh;
    background: url('../images/0.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: 64px;
    letter-spacing: 10px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 4px;
    margin-bottom: 40px;
}

/* ================== КНОПКИ (ИЗ ЛАУНЧЕРА) ================== */
.action-container {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 340px;
}

.launcher-button {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.launcher-button:hover {
    background: white;
    color: black;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.launcher-button.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.launcher-button.secondary:hover {
    border-color: white;
    color: white;
}

.error-span {
    font-size: 11px;
    color: #ff3333;
    margin-top: 10px;
    opacity: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.2s ease;
    position: absolute;
    bottom: -25px;
}

/* ================== КОНТЕНТ ================== */
.main-content,
.classes-section,
.cta-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 24px;
    letter-spacing: 6px;
    margin-bottom: 60px;
    color: rgba(255, 255, 255, 0.8);
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 18px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.feature-image {
    flex: 1;
    height: 300px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 51, 51, 0.25);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ================== КАРТОЧКИ КЛАССОВ ================== */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.class-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    text-align: center;
    transition: 0.2s ease;
}

.class-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.class-icon {
    font-size: 32px;
    margin-bottom: 20px;
    color: white;
}

.class-card h3 {
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.class-role {
    display: block;
    font-size: 10px;
    color: #ff3333;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.class-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

/* ================== СИСТЕМА РЕДКОСТЕЙ ================== */
.rarity-section {
    margin-bottom: 80px;
}

.rarity-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.rarity-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid;
    transition: 0.2s ease;
}

.rarity-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
}

.rarity-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.rarity-name {
    display: block;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rarity-range {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* Цвета редкостей */
.rarity-poor {
    border-left-color: #9a9a9a;
    color: #9a9a9a;
}

.rarity-common {
    border-left-color: #ffffff;
    color: #ffffff;
}

.rarity-uncommon {
    border-left-color: #1eff00;
    color: #1eff00;
}

.rarity-rare {
    border-left-color: #0070ff;
    color: #0070ff;
}

.rarity-epic {
    border-left-color: #a335ee;
    color: #a335ee;
}

.rarity-legendary {
    border-left-color: #ff8000;
    color: #ff8000;
}

.rarity-mythic {
    border-left-color: #e6cc80;
    color: #e6cc80;
}

.rarity-ancient {
    border-left-color: #00ccff;
    color: #00ccff;
}

.rarity-divine {
    border-left-color: #ff5555;
    color: #ff5555;
}

/* ================== КРАФТ ================== */
.crafting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.craft-card {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 40px 20px;
    text-align: center;
    transition: 0.2s ease;
    background: rgba(0, 0, 0, 0.2);
}

.craft-card:hover {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.profession-icon {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.craft-card h3 {
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.craft-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

/* ================== CTA И ФУТЕР: АБСОЛЮТНЫЙ ХАРДКОР ================== */
.cta-section {
    position: relative;
    text-align: center;
    padding: 150px 20px;
    margin: 80px auto 0;
    max-width: 100%;
    overflow: hidden;
    background: transparent;
    border-top: 1px solid rgba(255, 51, 51, 0.2);
    border-bottom: 1px solid rgba(255, 51, 51, 0.2);
}

/* 1. ФОН */
.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: grayscale(70%) contrast(1.2) brightness(0.6);
}

/* 2. ЗАТЕНЕНИЕ И МРАК ПО КРАЯМ  */
.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #050505 0%, rgba(5, 5, 5, 0.4) 30%, rgba(5, 5, 5, 0.4) 70%, #050505 100%);
    z-index: 1;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 15px;
    letter-spacing: 8px;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 51, 51, 0.4);
}

.cta-text {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 50px;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ================== КНОПКИ-СКОСЫ СО СВОИМИ ЦВЕТАМИ ================== */
.cta-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.cta-social-btn {
    position: relative;
    padding: 16px 40px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.cta-social-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    transition: height 0.3s ease;
    z-index: -1;
}

.cta-social-btn:hover {
    color: #fff;
    transform: translateY(-5px);
    background: transparent;
}

.cta-social-btn:hover::before {
    height: 100%;
}

.cta-social-btn i {
    font-size: 18px;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.cta-social-btn:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

/* DISCORD ЦВЕТА */
.cta-social-btn.discord::before {
    background: linear-gradient(0deg, rgba(88, 101, 242, 0.9), rgba(88, 101, 242, 0.3) 100%);
}

.cta-social-btn.discord:hover {
    border-color: #5865F2;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.8);
}

/* VK ЦВЕТА */
.cta-social-btn.vk::before {
    background: linear-gradient(0deg, rgba(0, 119, 255, 0.9), rgba(0, 119, 255, 0.3) 100%);
}

.cta-social-btn.vk:hover {
    border-color: #0077FF;
    text-shadow: 0 0 10px rgba(0, 119, 255, 0.8);
}

/* TELEGRAM ЦВЕТА */
.cta-social-btn.tg::before {
    background: linear-gradient(0deg, rgba(34, 158, 217, 0.9), rgba(34, 158, 217, 0.3) 100%);
}

.cta-social-btn.tg:hover {
    border-color: #229ED9;
    text-shadow: 0 0 10px rgba(34, 158, 217, 0.8);
}

/* ================== ФУТЕР - Минимализм ================== */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 3px;
    background: #050505;
    position: relative;
    z-index: 2;
}

/* Разделительная линия между миром и футером */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

/* ================== VULKAN ENGINE СЕКЦИЯ ================== */
.vulkan-section {
    background: linear-gradient(180deg, #050505 0%, #110000 50%, #050505 100%);
    padding: 100px 20px;
    border-top: 1px solid rgba(255, 51, 51, 0.1);
    border-bottom: 1px solid rgba(255, 51, 51, 0.1);
}

.vulkan-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.vulkan-red {
    color: #ff3333;
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
    font-weight: 900;
}

.vulkan-desc {
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.8;
    font-size: 14px;
}

/* Статистика (FPS) */
.stats-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 51, 51, 0.05);
    border: 1px solid rgba(255, 51, 51, 0.2);
    padding: 30px 40px;
    border-radius: 4px;
    min-width: 250px;
    box-shadow: inset 0 0 20px rgba(255, 51, 51, 0.02);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stat-number .plus {
    color: #ff3333;
}

.stat-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Технологии (Карточки) */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    text-align: center;
    transition: 0.3s ease;
}

.tech-card:hover {
    border-color: rgba(255, 51, 51, 0.4);
    transform: translateY(-5px);
    background: rgba(255, 51, 51, 0.02);
}

.tech-icon {
    font-size: 36px;
    color: #ff3333;
    margin-bottom: 20px;
}

.tech-card h3 {
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: #fff;
}

.tech-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.nav-link.vulkan-link {
    color: #ff3333 !important;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.4);
}

/* ================== УЛУЧШЕНИЯ ТИПОГРАФИКИ И HERO ================== */
h1 {
    font-family: 'Cinzel', 'Montserrat', serif;
    font-size: 72px;
    letter-spacing: 15px;
    text-shadow: 0 0 30px rgba(255, 51, 51, 0.4);
}

.hero-badge {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #ff3333;
    color: #ff3333;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 20px;
    background: rgba(255, 51, 51, 0.1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

.hero-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ================== СЕКЦИЯ VULKAN ================== */
.vulkan-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 51, 51, 0.6));
    animation: pulseLogo 3s infinite alternate;
}

@keyframes pulseLogo {
    0% {
        filter: drop-shadow(0 0 15px rgba(255, 51, 51, 0.4));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 30px rgba(255, 51, 51, 0.8));
        transform: scale(1.05);
    }
}

/* ================== ДОРОЖНАЯ КАРТА ================== */
.roadmap-section {
    padding: 100px 20px;
    background: transparent;
    max-width: 1000px;
    margin: 0 auto;
}

.roadmap-desc {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 60px;
    font-size: 14px;
    letter-spacing: 2px;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 5px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 51, 51, 0.8) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 25px;
    width: 14px;
    height: 14px;
    border-radius: 0;
    transform: rotate(45deg);
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    transition: 0.3s ease;
}

@keyframes pulse-diamond {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.4);
        transform: rotate(45deg) scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 51, 51, 0);
        transform: rotate(45deg) scale(1.1);
        border-color: rgba(255, 51, 51, 0.8);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0);
        transform: rotate(45deg) scale(1);
    }
}

.timeline-item.active .timeline-dot {
    background: #080808;
    border-color: #ff3333;
    animation: pulse-diamond 2s infinite;
}

.timeline-item.completed .timeline-dot {
    background: #ff3333;
    border-color: #ff3333;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
}

.timeline-item.pending .timeline-dot {
    border-color: rgba(255, 255, 255, 0.05);
}

.timeline-content {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    position: relative;
    top: 0;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-content {
    border-left-color: rgba(255, 51, 51, 0.4);
}

.timeline-item.active .timeline-content {
    border-left-color: #ff3333;
    background: linear-gradient(90deg, rgba(255, 51, 51, 0.05) 0%, transparent 100%);
}

.timeline-item.pending .timeline-content {
    opacity: 0.3;
}

.timeline-content h3 {
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
}

.timeline-item.completed .timeline-content h3 {
    color: #ff3333;
}

.timeline-content p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.progress-container {
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 1px;
}

.progress-label {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 500;
}

.progress-percentage {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: 0;
    position: relative;
    transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: width;
}

.timeline-item.completed .progress-fill {
    background: linear-gradient(90deg, #ff3333, #ff6666);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
}

.timeline-item.active .progress-fill {
    background: linear-gradient(90deg, #ffffff, #cccccc);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.timeline-item.pending .progress-fill {
    background: linear-gradient(90deg, #444444, #666666);
}

.timeline-item.active .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

.timeline-item.reveal .progress-fill {
    opacity: 1;
}

.timeline-item.reveal:not(.active) .progress-fill {
    width: 0;
}

/* ================== КНОПКИ СОЦСЕТЕЙ (CTA) ================== */
.cta-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cta-social-btn {
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.cta-social-btn:hover {
    transform: translateY(-3px);
}

.cta-social-btn.discord:hover {
    background: #5865F2;
    border-color: #5865F2;
}

.cta-social-btn.vk:hover {
    background: #0077FF;
    border-color: #0077FF;
}

.cta-social-btn.tg:hover {
    background: #229ED9;
    border-color: #229ED9;
}

/* Кастомный скроллбар для модалки */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #050505;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 51, 51, 0.5);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #ff3333;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #020202;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 2px;
    transition: 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff3333;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.8);
}

html {
    scrollbar-width: thin;
    scrollbar-color: #ff3333 #020202;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.timeline-item.active .timeline-dot {
    background: #ffffff;
    border-color: #fff;
    animation: pulseDot 2s infinite;
}

.timeline-item.completed .timeline-dot {
    background: #ff3333;
    border-color: #ff3333;
    box-shadow: 0 0 15px #ff3333;
}

/* ================== СЕКЦИЯ НОВОСТЕЙ ================== */
.news-section {
    position: relative;
    padding: 100px 20px;
    z-index: 10;
    background: transparent;
    max-width: 1200px;
    margin: 0 auto;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.4), #ff3333, rgba(255, 51, 51, 0.4), transparent);
    pointer-events: none;
}

.news-section::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #080808;
    border: 1px solid #ff3333;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.8), inset 0 0 3px rgba(255, 51, 51, 0.5);
    pointer-events: none;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: rgba(255, 51, 51, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 0, 0, 0.8) 100%);
    position: relative;
    z-index: 1;
}

.news-date {
    font-size: 10px;
    color: #ff3333;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: bold;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.read-more-btn {
    align-self: flex-start;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.news-card:hover .read-more-btn {
    background: #ff3333;
    border-color: #ff3333;
}

.hidden-article {
    display: none;
}

/* ================== МОДАЛЬНОЕ ОКНО (ЧИТАЛКА) ================== */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.article-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-box {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #0a0a0a;
    border: 1px solid rgba(255, 51, 51, 0.3);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-modal.active .modal-box {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
}

.close-modal:hover {
    color: #ff3333;
    transform: rotate(90deg);
}

.modal-header {
    padding: 40px 40px 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.3;
}

.modal-header .modal-date {
    font-size: 12px;
    color: #ff3333;
    letter-spacing: 3px;
}

.modal-body {
    padding: 30px 40px;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 15px;
}

/* Стилизация текста внутри модалки */
.modal-body h3,
.modal-body h4 {
    color: #fff;
    margin: 30px 0 15px 0;
    letter-spacing: 1px;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.modal-body strong {
    color: #ff3333;
}

/* ================== КНОПКИ СОЦСЕТЕЙ В МОДАЛКЕ ================== */
.modal-social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.modal-social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.modal-social-btn:hover::before {
    left: 100%;
}

.modal-social-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.modal-social-btn:hover i {
    transform: scale(1.2);
}

/* ==========================================
   ЭКСТРА-ВИЗУАЛ: CANVAS ФОН
   ========================================== */
#bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* ==========================================
   МИНИМАЛИСТИЧНЫЙ ПРЕЛОАДЕР (САЙТ)
   ========================================== */
#simpleLoadingContainer {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #050505;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.simple-loader {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #ff4400;
    border-radius: 50%;
    animation: simple-spin 0.8s linear infinite;
    margin-bottom: 25px;
}

@keyframes simple-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes simple-pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #ff4400;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ================== ТАБЛИЦЫ В НОВОСТЯХ ================== */
.news-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 14px;
    letter-spacing: 1px;
}

.news-table thead th {
    background: rgba(255, 51, 51, 0.1);
    color: #ff3333;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid rgba(255, 51, 51, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 2px;
    font-size: 12px;
}

.news-table thead th:last-child {
    border-right: none;
}

.news-table tbody td {
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.news-table tbody td:last-child {
    border-right: none;
}

.news-table tbody tr:hover td {
    background: rgba(255, 51, 51, 0.05);
}

.news-table tbody tr:last-child td {
    border-bottom: none;
}

.news-table tbody td strong {
    color: #ff3333;
    font-weight: 700;
}

/* ================== ИЗОБРАЖЕНИЯ В НОВОСТЯХ ================== */
.modal-body .news-image {
    width: 100%;
    max-width: 100%;
    margin: 25px 0;
    border: 1px solid rgba(255, 51, 51, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-body .news-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.15);
}

/* ================== ПОДПИСИ ПОД ИЗОБРАЖЕНИЯМИ В НОВОСТЯХ ================== */
.modal-body .news-image-caption {
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 8px;
    margin-bottom: 35px;
    padding: 8px 20px;
    position: relative;
    transition: all 0.3s ease;
}

.modal-body .news-image-caption::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255, 51, 51, 0.3);
    margin: 0 auto 10px auto;
    transition: width 0.3s ease;
}

.modal-body .news-image:hover+.news-image-caption,
.modal-body .news-image-caption:hover {
    color: rgba(255, 255, 255, 0.7);
}

.modal-body .news-image:hover+.news-image-caption::before,
.modal-body .news-image-caption:hover::before {
    width: 60px;
    background: #ff3333;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

/* ================== ПАГИНАЦИЯ НОВОСТЕЙ ================== */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-pagination.visible {
    opacity: 1;
    transform: translateY(0);
}

.load-more-btn {
    background: rgba(255, 51, 51, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 51, 51, 0.3);
    padding: 14px 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.2), transparent);
    transition: left 0.5s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    background: rgba(255, 51, 51, 0.15);
    border-color: #ff3333;
    box-shadow: 0 0 25px rgba(255, 51, 51, 0.3);
    transform: translateY(-2px);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(3px);
    animation: bounceDown 0.6s infinite;
}

/* Анимация загрузки */
.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.load-more-btn.loading span {
    animation: pulseText 0.8s infinite;
}

.load-more-btn.loading i {
    animation: spin 0.8s linear infinite;
}

/* Кнопка "ВСЕ НОВОСТИ ЗАГРУЖЕНЫ" */
.load-more-btn.disabled {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.02);
}

.load-more-btn.disabled:hover {
    box-shadow: none;
    transform: none;
}

/* Счетчик новостей */
.news-counter {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

.news-counter span {
    color: #ff3333;
    font-weight: 700;
    font-size: 14px;
}

/* Анимации для кнопки */
@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ================== ТИПОГРАФИКА ВНУТРИ МОДАЛКИ ================== */

/* Заголовки H3 внутри новостей */
.modal-body h3 {
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 2px;
    margin: 35px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 51, 51, 0.15);
    position: relative;
}

.modal-body h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ff3333;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

/* Подзаголовки H4 (если будут) */
.modal-body h4 {
    color: #cccccc;
    font-size: 15px;
    letter-spacing: 1.5px;
    margin: 25px 0 10px 0;
    font-weight: 600;
}

/* Списки внутри новостей */
.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.modal-body ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
    transition: all 0.2s ease;
}

.modal-body ul li::before {
    content: '›';
    position: absolute;
    left: 5px;
    top: -1px;
    color: #ff3333;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.2s ease;
}

.modal-body ul li:hover {
    color: #ffffff;
}

.modal-body ul li:hover::before {
    transform: translateX(3px);
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.6);
}

/* Выделение важного текста */
.modal-body strong {
    color: #ff3333;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Параграфы в теле новости (уточнение) */
.modal-body p {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    font-size: 14px;
}

/* ================== СТИЛИ ДЛЯ <CODE> ================== */
code {
    background: rgba(255, 51, 51, 0.08);
    color: #ff6b6b;
    padding: 3px 9px;
    border-radius: 3px;
    font-family: 'Courier New', 'Fira Code', monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 51, 51, 0.2);
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 0 8px rgba(255, 51, 51, 0.05);
}

code:hover {
    background: rgba(255, 51, 51, 0.15);
    color: #ffffff;
    border-color: rgba(255, 51, 51, 0.5);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.15);
}

/* Code внутри модалки (чуть темнее фон) */
.modal-body code {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 51, 51, 0.25);
    color: #ff8c8c;
}

.modal-body code:hover {
    background: rgba(255, 51, 51, 0.2);
    color: #ffffff;
    border-color: #ff3333;
}

/* ================== ИЗОБРАЖЕНИЯ В НОВОСТЯХ (дополнение) ================== */
.modal-body .news-image {
    width: 100%;
    max-width: 100%;
    margin: 30px 0 5px 0;
    border: 1px solid rgba(255, 51, 51, 0.15);
    border-radius: 3px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.modal-body .news-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.2);
    border-color: rgba(255, 51, 51, 0.4);
}

.modal-body .news-image-caption {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 600;
}

/* ================== ZOOM ОВЕРЛЕЙ ДЛЯ ИЗОБРАЖЕНИЙ ================== */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(20px);
}

.image-zoom-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.zoom-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3333;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.zoom-close-btn:hover {
    background: rgba(255, 51, 51, 0.3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.4);
}

.zoomed-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid rgba(255, 51, 51, 0.1);
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.zoom-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    letter-spacing: 2px;
    pointer-events: none;
}

/* ================== ССЫЛКИ В ТЕЛЕ НОВОСТИ ================== */
.modal-body a {
    color: #cc3333;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-bottom: 1px dashed rgba(204, 51, 51, 0.4);
    transition: all 0.25s ease;
    padding-bottom: 1px;
}

.modal-body a:hover {
    color: #ffffff;
    border-bottom-style: solid;
    border-bottom-color: #ff3333;
    background: rgba(255, 51, 51, 0.06);
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 2px;
}

.modal-body p a {
    border-bottom-width: 1px;
}

.modal-body strong a {
    color: #ff4444;
    border-bottom: 1px solid rgba(255, 68, 68, 0.6);
    letter-spacing: 1px;
}

.modal-body strong a:hover {
    color: #ffffff;
    background: rgba(255, 51, 51, 0.1);
    border-bottom-color: #ff3333;
    box-shadow: 0 1px 0 rgba(255, 51, 51, 0.2);
    padding-left: 4px;
    padding-right: 4px;
}

/* ================== БЛОК ЗАДАЧ В ДЕВБЛОГЕ (СТАТИКА) ================== */
.dev-tasks {
    margin: 25px 0;
    border-left: 2px solid rgba(255, 51, 51, 0.2);
    padding-left: 20px;
}

.dev-task {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dev-task:last-child {
    border-bottom: none;
}

.task-marker {
    color: #ff3333;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.4;
    flex-shrink: 0;
}

.task-text {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    font-size: 14px;
}

.task-text strong {
    color: #ff3333;
    font-weight: 700;
}