/* ========== СБРОС СТИЛЕЙ И БАЗОВЫЕ НАСТРОЙКИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #cfcfcf;
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
}

/* ========== ИНТЕРАКТИВНЫЕ ЧАСТИЦЫ ========== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.3s ease-out;
}

/* Анимация плавного появления */
@keyframes particleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.particle {
    animation: particleFadeIn 1s ease-out forwards;
}


/* ========== ШАПКА ========== */
header {
    background-color: #FFFFFF;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.text-logo h1 {
    font-size: 28px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.5px;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.text-a {
    text-decoration: none;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
    padding: 8px 0;
}

.text-a:hover {
    opacity: 0.7;
}

#LK {
    background-color: #000000;
    color: #FFFFFF !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

#LK:hover {
    background-color: #333333;
    opacity: 1 !important;
    transform: translateY(-1px);
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

/* ========== ПОДПИСЬ АВТОРА ========== */
.author-signature {
    position: fixed;
    bottom: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', monospace;
    font-size: 13px;
    z-index: 100;
}

.author-name {
    color: #6B7280; /* Серый цвет как в Unreal Engine */
    font-weight: 500;
    letter-spacing: 0.3px;
}

.author-separator {
    color: #9CA3AF;
    font-weight: 400;
}

.author-role {
    color: #6B7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
}

/* Адаптивность для подписи */
@media (max-width: 768px) {
    .author-signature {
        bottom: 15px;
        right: 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .author-signature {
        bottom: 10px;
        right: 15px;
        gap: 8px;
    }
    
    .author-name {
        font-size: 11px;
    }
    
    .author-role {
        font-size: 10px;
    }
}

/* ========== БЛОК ПОДДЕРЖКИ НА ГЛАВНОЙ ========== */
.support-section {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.support-card {
    background-color: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.support-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 25px;
}

.support-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.support-item {
    font-size: 16px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-icon {
    font-size: 20px;
}

/* ========== ПОДВАЛ САЙТА ========== */
.site-footer {
    background-color: #000000;
    color: #FFFFFF;
    padding: 40px 20px 60px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-item {
    font-size: 14px;
    color: #CCCCCC;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-icon {
    font-size: 18px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: #CCCCCC;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #FFFFFF;
}

.footer-copyright {
    font-size: 13px;
    color: #999999;
}

/* Подпись автора поверх подвала */
.author-signature {
    position: fixed;
    bottom: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', monospace;
    font-size: 13px;
    z-index: 100;
    color: #6B7280;
}

.author-name {
    color: #6B7280;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.author-separator {
    color: #9CA3AF;
    font-weight: 400;
}

.author-role {
    color: #6B7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
}

/* Адаптивность для подвала */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-item {
        justify-content: center;
    }
    
    .footer-link {
        text-align: center;
    }
    
    .site-footer {
        padding: 30px 20px 50px;
    }
    
    .author-signature {
        bottom: 15px;
        right: 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 25px;
    }
    
    .footer-section h3 {
        font-size: 14px;
    }
    
    .footer-item {
        font-size: 13px;
    }
    
    .footer-link {
        font-size: 13px;
    }
    
    .author-signature {
        bottom: 10px;
        right: 15px;
        gap: 8px;
    }
    
    .author-name {
        font-size: 11px;
    }
    
    .author-role {
        font-size: 10px;
    }
}

/* ========== ТОНКАЯ ПОЛОСА С КОНТАКТАМИ ========== */
.contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    color: #FFFFFF;
    padding: 8px 40px 8px 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 99;
    transition: transform 0.3s ease;
}

.contact-bar.hidden {
    transform: translateY(100%);
}

.contact-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.contact-close:hover {
    color: #FFFFFF;
}

.contact-text {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-bar {
        padding: 10px 35px 10px 15px;
        font-size: 12px;
    }
    
    .contact-text {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .contact-bar {
        padding: 8px 30px 8px 12px;
        font-size: 11px;
    }
    
    .contact-text {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Адаптивность для блока поддержки */
@media (max-width: 768px) {
    .support-section {
        margin: 40px auto 30px;
    }
    
    .support-card {
        padding: 25px 20px;
    }
    
    .support-card h2 {
        font-size: 20px;
    }
    
    .support-item {
        font-size: 15px;
    }
}

.content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

/* Контейнер логотипа - на заднем плане */
.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;  /* Увеличено с 400px до 600px (в 1.5 раза) */
    height: 600px; /* Увеличено с 400px до 600px (в 1.5 раза) */
    z-index: 1;
    pointer-events: none;
}

/* Логотип Unreal Engine */
.ue-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;      /* Прозрачность 1 (было 0.15) */
    border-radius: 50%;
}

/* Заголовок */
.text-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 40px;
    letter-spacing: -1px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

/* Кнопка Вход */
.btn-content button {
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    padding: 18px 80px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.btn-content button:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-content button:active {
    transform: translateY(0);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }
    
    .text-logo h1 {
        font-size: 22px;
    }
    
    .navbar ul {
        gap: 20px;
    }
    
    .text-a {
        font-size: 14px;
    }
    
    #LK {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .logo-container {
        width: 375px;  /* 600px / 1.6 для мобильных */
        height: 375px;
    }
    
    .text-content h1 {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    .btn-content button {
        padding: 15px 50px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .navbar ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-container {
        width: 300px;  /* 600px / 2 для маленьких экранов */
        height: 300px;
    }
    
    .text-content h1 {
        font-size: 28px;
    }
    
    .btn-content button {
        padding: 14px 40px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }
}

/* Эффект печатной машинки */
.text-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 40px;
    letter-spacing: -1px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-right: 3px solid #000000;
    white-space: nowrap;
    width: 0;
    animation: typing 3.5s steps(30, end) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #000000; }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .text-content h1 {
        font-size: 36px;
        white-space: normal;
        border-right: none;
        animation: none;
        width: auto;
    }
}

/* Глассморфизм для шапки */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Усиление эффекта при скролле */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Эффект зернистости на фон */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}