
@font-face {
    font-family: PFDinDisplayPro;
    src: url('fonts/PFDinDisplayPro-Bold.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: PFDinDisplayPro;
    src: url('fonts/PFDinDisplayPro-Regular.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: PFDinDisplayPro;
    src: url('fonts/PFDinDisplayPro-Light.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    font-family: 'PFDinDisplayPro', sans-serif;
    background: #000;
}

.form {
    width: 100%;
    max-width: 1920px;
    min-height: 800px;
    margin: 0 auto;
    position: relative;
    background-image: url(images/osnova.png);
    background-repeat: no-repeat;
    background-size: cover;
    overflow-y: auto;
}


@keyframes logo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logo-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.form .Group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: absolute;
    top: 37px;
    left: 0;
    right: 0;
}
.form .Group a {
    display: inline-block;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background-color: rgb(75, 0, 130);
    border-radius: 5px;
    transition: 0.3s;
}
.form .Group a:hover { background-color: rgb(128, 0, 128); }

.form .donateBuy {
    position: absolute;
    left: 1260px;
    top: 20px;
    width: 255px;
    height: 60px;
    background: linear-gradient(45deg, #6a0dad, #8a2be2);
    color: #fff;
    border: none;
    outline: none;
    font-size: 17px;
    border-radius: 30px;
    transition: all 0.5s;
}
.form .donateBuy:hover { transform: scale(1.05); cursor: pointer; }

#discord, #vk, #twitter, #youtube {
    position: absolute;
    left: 0;
    width: 80px;
    height: 80px;
    cursor: pointer;
}
#discord { top: 330px; }
#vk { top: 410px; }
#twitter { top: 490px; }
#youtube { top: 570px; }

.form .banner-text {
    position: absolute;
    left: 403px;
    top: 340px;
    color: #fff;
    font-size: 42px;
    line-height: 1.2;
    z-index: 139;
    max-width: 600px;
}
.form .banner-text h1 { 
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 15px;
}
.form .banner-text h4 {
    font-size: 18px;
    color: rgb(171,171,171);
    line-height: 1.5;
    margin-bottom: 20px;
}

.form .banner-text .PLAY {
    position: relative;
    margin: 40px auto 0 auto;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(45deg, #6a0dad, #8a2be2);
    width: 300px;
    height: 70px;
    border: none;
    outline: none;
    border-radius: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.form .banner-text .PLAY:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.5);
}
.form .banner-text .PLAY:before {
    font-family: FontAwesome;
    content: "\f04b";
    position: absolute;
    left: 20px;
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
}
.form .banner-text .PLAY:hover:before {
    left: 15px;
}

.form .person {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 95px;
    width: 40%;
    max-width: 493px;
    height: auto;
    z-index: 122;
    animation: show 5s;
}
.form .person img { width: 100%; height: auto; display: block; }

@keyframes show { from {opacity: 0;} to {opacity: 1;} }


.form .onlineserver {
    position: absolute;
    top: 650px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 132;
}
.form .onlineserver h4, .form .onlineserver h2 {
    display: block;
    font-family: "PFDinDisplayPro";
    color: #fff;
    margin: 5px 0;
    line-height: 1.3;
    font-size: 24px;
}


.gallery {
    margin-top: 100px;
    text-align: center;
    padding: 20px 0;
    background-color: #111;
}
.gallery h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}
.gallery-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.gallery-images img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.gallery-images img:hover { transform: scale(1.1); }


.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.image-modal[style*="flex"] {
    display: flex !important;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(255, 107, 107, 0.8);
}


@media screen and (max-width: 1024px) {
    .form .Group, .form .donateBuy { display: none; }

    .burger-icon {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        z-index: 1500;
        cursor: pointer;
    }
    .burger-icon span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    body.modal-open .burger-icon { display: none !important; }

    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background-color: rgba(0,0,0,0.95);
        z-index: 1400;
        transform: translateY(-100%);
        transition: transform 0.5s ease;
    }
    .burger-menu.open { transform: translateY(0); }

    .burger-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    .burger-links a {
        color: #fff;
        text-decoration: none;
        font-size: 28px;
        padding: 12px 25px;
        transition: color 0.3s ease;
    }
    .burger-links a:hover { color: rgb(128,0,128); }

    

    .form .banner-text {
        position: relative;
        text-align: center;
        left: 0;
        top: 80px;
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
    }
    .form .banner-text h1 { font-size: 3rem; }
    .form .banner-text h4 { font-size: 2rem; }
    .form .banner-text .PLAY {
        position: relative;
        margin: 40px auto 0 auto;
        font-size: 22px;
        width: 80%;
        max-width: 300px;
        height: 60px;
    }
    .form .person { display: none; }
    .form .onlineserver {
        position: relative;
        margin: 20px auto 0 auto;
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .form .banner-text h1 { font-size: 2.5rem; }
    .form .banner-text h4 { font-size: 1.8rem; }
    .form .banner-text .PLAY, .burger-links a { font-size: 20px; }
    
    
}

@media screen and (min-width: 1025px) {
    .burger-menu { display: none !important; }
    .burger-icon { display: none !important; }
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для упрощенной версии */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #8a2be2, #6a0dad);
    color: #fff;
    box-shadow: 0 6px 18px rgba(138, 43, 226, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.features {
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 60px;
    font-weight: 900;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #8a2be2, #6a0dad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.feature-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Улучшенная мобильная оптимизация */
@media (max-width: 768px) {
    .play-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    .play-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .server-info {
        padding: 15px !important;
        margin: 10px 0 !important;
        word-wrap: break-word !important;
    }
    
    .server-info p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        margin: 8px 0 !important;
        overflow-wrap: break-word !important;
    }
    
    .btn {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        text-align: center !important;
        min-height: 44px !important;
    }
    
    .download-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .download-buttons .btn {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .steps {
        gap: 10px !important;
    }
    
    .step {
        padding: 10px !important;
        flex-direction: column !important;
        text-align: center !important;
        word-wrap: break-word !important;
    }
    
    .step p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    .main-content {
        padding: 20px 0 !important;
    }
    
    .play-section {
        padding: 20px 0 !important;
    }
    
    /* Исправление обрезания текста */
    h1, h2, h3, p, span, div {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Улучшение для длинных слов */
    .server-info, .download-section, .connection-info, .instructions {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}

@media (max-width: 480px) {
    .play-title {
        font-size: 1.5rem !important;
        line-height: 1.1 !important;
    }
    
    .play-subtitle {
        font-size: 0.8rem !important;
    }
    
    .server-info p {
        font-size: 0.8rem !important;
    }
    
    .btn {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
    }
    
    .step p {
        font-size: 0.8rem !important;
    }
    
    .container {
        padding: 0 10px !important;
    }
    
    /* Дополнительная оптимизация для очень маленьких экранов */
    .fixed-logo {
        top: 10px !important;
        left: 10px !important;
    }
    
    .fixed-logo .logo {
        width: 30px !important;
        height: 30px !important;
    }
    
    .fixed-logo .logo-text {
        font-size: 12px !important;
    }
    
    .navbar {
        padding: 10px 0 !important;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .nav-actions {
        display: none !important;
    }
    
    /* Бургер-меню стили */
    .burger-icon {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        gap: 4px;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        padding: 12px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 48px;
        height: 48px;
    }

    .burger-icon:hover {
        background: rgba(0, 0, 0, 0.5);
    }

    .burger-icon span {
        width: 20px;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
        transform-origin: center;
        margin: 0 auto;
    }

    .burger-icon.cross span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        opacity: 0;
    }

    .burger-icon.cross span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .burger-icon.cross span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        opacity: 0;
    }

    .burger-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 2000;
        transform: translateY(-100%);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
    }

    .burger-menu.open {
        transform: translateY(0);
        opacity: 1;
    }

    .close-icon {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 2001;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .close-icon:hover {
        background: rgba(0, 0, 0, 0.5);
        transform: scale(1.1);
    }

    .close-icon span {
        width: 20px;
        height: 3px;
        background: #ff6b6b;
        border-radius: 2px;
        position: absolute;
        transition: all 0.3s ease;
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    }

    .close-icon span:nth-child(1) {
        transform: rotate(45deg);
    }

    .close-icon span:nth-child(2) {
        transform: rotate(-45deg);
    }

    .burger-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        gap: 30px;
    }

    .burger-links a {
        color: #fff;
        text-decoration: none;
        font-size: 2rem;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .burger-links a:hover {
        color: #8a2be2;
    }

    .burger-actions {
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 30px;
    }

    .btn-donate-mobile {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        padding: 12px 24px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
        color: #fff !important;
        text-decoration: none !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border: 1px solid rgba(138, 43, 226, 0.3) !important;
        min-width: 160px;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .btn-donate-mobile::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .btn-donate-mobile:hover::before {
        left: 100%;
    }

    .btn-donate-mobile:hover {
        transform: translateY(-2px) !important;
        background: rgba(138, 43, 226, 0.2) !important;
        border-color: rgba(138, 43, 226, 0.5) !important;
        box-shadow: 0 8px 25px rgba(138, 43, 226, 0.2) !important;
        color: #fff !important;
    }

    .btn-donate-mobile i {
        font-size: 1rem !important;
        color: #8a2be2 !important;
        transition: all 0.3s ease !important;
    }

    .btn-donate-mobile:hover i {
        color: #fff !important;
        transform: scale(1.1) !important;
    }
}


