@font-face {
    font-family: 'Minecraft Rus';
    src: url('fonts/minecraft-rus.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Minecraft Rus', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1e3c72, #2a5298, #1e3c72);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Элементы с анимацией */
.hero h1 {
    animation: none;
    opacity: 1;
}

.hero p {
    animation: none;
    opacity: 1;
}

.hero .btn-primary {
    animation: none;
    opacity: 1;
}

.versions h2 {
    animation: none;
    opacity: 1;
}

.versions p {
    animation: none;
    opacity: 1;
}

.versions-grid {
    opacity: 1;
    animation: none;
}

.version-card {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}



footer {
    animation: none;
    opacity: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    background: transparent;
    color: white;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #ff9d00, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #ff8c00;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.btn-primary:hover {
    background-color: #ff6b00;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.5);
}

.versions {
    padding: 60px 0;
}

.versions h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff9d00;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.versions p {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 50px;
    font-size: 1.2rem;
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.version-card {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.version-card h3 {
    color: #ff9d00;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 600;
}

.version-card p {
    color: #909090;
    margin-bottom: 20px;
    font-size: 1rem;
    flex-grow: 1;
}

.btn-info {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    margin-top: auto;
}

.btn-info:hover {
    background: linear-gradient(135deg, #7a1dd1, #3b0072);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.version-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px rgba(0,0,0,0.3);
    border-color: #444;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #1a1a1a;
    margin: 4% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 1000px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close {
    color: #ff9d00;
    float: right;
    font-size: 40px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
    margin-top: -15px;
    margin-right: -10px;
}

.close:hover,
.close:focus {
    color: #ff6b00;
    text-decoration: none;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.modal-header h2 {
    color: #ff9d00;
    margin: 0;
    font-size: 2.2rem;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .versions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .version-card {
        padding: 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .container {
        width: 95%;
        padding: 0 15px;
    }
}

.version-features {
    background: #252525;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.version-features h3 {
    color: #ff9d00;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.version-features ul {
    list-style-type: none;
}

.version-features li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
}

.version-features li::before {
    content: '•';
    color: #ff9d00;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.modal.show .version-features li {
    opacity: 1;
    transform: translateX(0);
}

.version-features li:nth-child(1) { transition: all 0.4s ease 0.1s; }
.version-features li:nth-child(2) { transition: all 0.4s ease 0.2s; }
.version-features li:nth-child(3) { transition: all 0.4s ease 0.3s; }
.version-features li:nth-child(4) { transition: all 0.4s ease 0.4s; }
.version-features li:nth-child(5) { transition: all 0.4s ease 0.5s; }

.version-description {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(10px);
}

.modal.show .version-description {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease 0.2s;
}

.version-images {
    display: flex;
    flex-direction: column;
}

.version-images h3 {
    color: #ff9d00;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid #333;
    background: #252525;
    opacity: 0;
    transform: scale(0.9);
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.image-item:hover img {
    transform: scale(1.05);
}

.modal.show .image-item {
    opacity: 1;
    transform: scale(1);
}

.modal.show .image-item:nth-child(1) { transition: all 0.4s ease 0.6s; }
.modal.show .image-item:nth-child(2) { transition: all 0.4s ease 0.7s; }
.modal.show .image-item:nth-child(3) { transition: all 0.4s ease 0.8s; }
.modal.show .image-item:nth-child(4) { transition: all 0.4s ease 0.9s; }

/* Image preview modal */
.image-preview {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.image-preview-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.image-preview-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid #ff9d00;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.image-preview.show .image-preview-content img {
    opacity: 1;
    transform: scale(1);
}

.download-btn-container {
    text-align: center;
    margin-top: 30px;
}

.btn-download {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn-download:hover {
    background: linear-gradient(135deg, #7a1dd1, #3b0072);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

footer {
    background-color: #0a0a0a;
    color: #777;
    text-align: center;
    padding: 30px 0;
    margin-top: 80px;
    border-top: 1px solid #333;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}