:root {
    --primary-color: #2e3e68;
    --secondary-color: #3b528a;
    --accent-color: #5aa4e5;
    --accent-glow: rgba(90, 164, 229, 0.4);
    --bg-dark: #0f192a;
    --bg-light: #182844;
    --text-light: #e6e6e6;
    --text-muted: #b0b0b0;
    --discord-color: #5865F2;
    --cart-btn-bg: #2196F3;
    --cart-btn-hover-bg: #1976D2;
    --cart-icon-bg: #42A5F5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #000, var(--bg-dark));
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    background-attachment: fixed;
}

.hero-title-image, .btn-primary, .online-players, .section-title, .product-card, .servers-section, .socials-section, .last-purchases-section, .product-categories, .product-search {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title-image { animation-delay: 0.2s; }
.btn-primary { animation-delay: 0.4s; }
.online-players { animation-delay: 0.6s; }
.servers-section { animation-delay: 0.8s; }
.section-title { animation-delay: 1.0s; }
.product-categories { animation-delay: 1.2s; }
.product-search { animation-delay: 1.4s; }
.product-card:nth-child(1) { animation-delay: 1.6s; }
.product-card:nth-child(2) { animation-delay: 1.8s; }
.product-card:nth-child(3) { animation-delay: 2.0s; }
.socials-section { animation-delay: 2.2s; }
.last-purchases-section { animation-delay: 2.4s; }

.header, .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header {
    background-image: linear-gradient(to top, rgba(24, 40, 68, 0.8), rgba(24, 40, 68, 0.8)), url('https://i.pinimg.com/originals/f7/1f/bd/f71fbdb5bb4b4609cef1e0a32db4d3f9.gif');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--accent-color);
}

.header-logo .logo-image {
    height: 50px;
    transition: transform 0.3s;
    filter: drop-shadow(0 0 8px var(--accent-color));
}

.header-logo .logo-image:hover {
    transform: scale(1.1);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.header-cart-btn {
    display: flex;
    align-items: center;
    background-color: var(--cart-btn-bg);
    border: none;
    border-radius: 12px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    min-width: 200px;
    justify-content: space-between;
}

.header-cart-btn:hover {
    background-color: var(--cart-btn-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cart-icon-wrapper {
    background-color: var(--cart-icon-bg);
    border-radius: 8px;
    padding: 8px 10px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.cart-icon {
    font-size: 1.2em;
    color: var(--text-light);
}

.cart-total-text {
    font-size: 1.1em;
    font-weight: 600;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.cart-arrow-icon {
    font-size: 1em;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.header-cart-btn:hover .cart-arrow-icon {
    transform: translateX(3px);
}

.hero-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-image: url('https://i.imgur.com/x6U1X2Q.png');
    background-size: cover;
    background-position: center;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(46, 62, 104, 0.8), rgba(24, 40, 68, 0.6));
    animation: pulseGlow 15s infinite ease-in-out;
    z-index: -1;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-image {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--accent-color));
    transition: transform 0.5s ease-out;
}

.hero-title-image:hover {
    transform: scale(1.02);
}

.btn {
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(46, 62, 104, 0.4);
}

.servers-section {
    padding: 20px 5%;
    text-align: center;
}

.server-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    display: inline-block;
    min-width: 300px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent-glow);
}

.server-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-version {
    color: var(--text-muted);
    background-color: var(--bg-dark);
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
}

.players-bar {
    margin-top: 15px;
}

.player-count {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.player-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

.progress-bar-container {
    background-color: var(--secondary-color);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    background-color: var(--accent-color);
    height: 100%;
    transition: width 0.5s ease-in-out;
}

.products-section {
    padding: 20px 5%;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.product-search {
    text-align: center;
    margin-bottom: 30px;
}

.product-search input {
    width: 300px;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid var(--secondary-color);
    background-color: var(--bg-light);
    color: var(--text-light);
    font-size: 1.1em;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.product-search input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

.product-card {
    position: relative;
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
    border: 2px solid var(--accent-color);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.5s ease;
    object-fit: cover;
    min-height: 150px;
    background-color: transparent; /* Изменено на прозрачный */
}

.product-card:hover img {
    transform: scale(1.1);
}

.btn-add-to-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-add-to-cart:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

.socials-section {
    padding: 40px 5%;
    text-align: center;
    background-color: var(--bg-light);
    border-radius: 15px;
    margin: 40px 5%;
}

.socials-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    min-width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link.discord {
    background-color: var(--discord-color);
}

.social-link.discord::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('https://dl.flathub.org/media/com/discordapp/Discord/ff7e7c619cfc681613a66e8dc5cea7cf/icons/128x128@2/com.discordapp.Discord.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-light);
    margin-top: 50px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: linear-gradient(145deg, var(--bg-light) 0%, var(--primary-color) 100%);
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 650px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s;
    border: 1px solid var(--secondary-color);
}

.close-btn {
    color: var(--text-light);
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--accent-color);
}

.modal-product-card {
    text-align: center;
}

.modal-product-card img {
    max-width: 80%;
    height: auto;
    max-height: 250px;
    margin-bottom: 20px;
}

.btn-add-to-cart-modal {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-add-to-cart-modal:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer p {
    margin: 0;
    font-size: 1.3em;
    font-weight: bold;
}

.btn-checkout {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
}

.btn-checkout.disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}
.btn-checkout.disabled:hover {
    transform: none;
    box-shadow: none;
    background-color: var(--secondary-color);
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-dark);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: inset 0 0 5px rgba(102, 252, 241, 0.2);
}

.cart-item-name {
    font-weight: bold;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.5em;
    cursor: pointer;
}

.empty-cart-message {
    text-align: center;
    color: #999;
    padding: 20px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-top: 15px;
}

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
}

.snow-container .snowflake {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: snowfall linear infinite;
    opacity: 0.6;
    filter: blur(0.5px);
}

@keyframes snowfall {
    0% { transform: translateY(-10px) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    100% { transform: translateY(100vh) translateX(100px); opacity: 0; }
}

.suffix-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.suffix-list-item {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.suffix-list-item:hover {
    transform: translateY(-3px);
}

.suffix-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.suffix-info img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.suffix-details {
    display: flex;
    flex-direction: column;
}

.suffix-details h4 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-light);
}

.suffix-details p {
    margin: 5px 0 0;
    font-size: 1em;
    color: var(--text-light);
    font-weight: bold;
}

.product-fly {
    position: fixed;
    z-index: 1000;
    width: 50px;
    height: 50px;
    opacity: 1;
    transition: transform 1.2s cubic-bezier(0.5, -0.75, 0.7, 0.4), opacity 0.8s ease-in;
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.category-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.info-modal-content {
    background: linear-gradient(145deg, #277ca3 0%, #6a3abf 100%);
    text-align: center;
    padding: 40px 20px;
}

.info-modal-icon {
    width: 60px;
    height: 60px;
    background-image: url('https://i.imgur.com/G7my4sV.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 10px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

.info-modal-content h3 {
    color: var(--text-light);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.info-modal-content p {
    color: var(--text-light);
    font-size: 1em;
    line-height: 1.4;
    margin-bottom: 10px;
}

.discord-link a {
    color: var(--text-light);
    font-weight: bold;
    text-decoration: none;
    background-color: #5865F2;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.discord-link a:hover {
    background-color: #4b57d2;
}

.info-modal-close {
    color: var(--text-light);
    top: 10px;
    right: 15px;
    font-size: 2em;
}

.payment-icons-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--accent-color);
}

.payment-icon {
    width: 65px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 7px rgba(207, 191, 207, 0.5));
}

.payment-icon:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 0 12px rgba(207, 191, 207, 0.8));
}

.payment-icon-mastercard {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Mastercard_2019_logo.svg/1200px-Mastercard_2019_logo.svg.png");
}

.payment-icon-visa {
    background-image: url("https://cdn.sanity.io/images/0k2k2bbv/production/41fe5e9d3f2cd4474a88020f15561b6eda43ebef-3840x2160.png");
}

.payment-icon-youmoney {
    background-image: url("https://yoomoney.ru/i/shop/iomoney_logo_color_example.png");
}

.payment-icon-qiwi {
    background-image: url("https://mobile-review.com/all/wp-content/uploads/2024/02/qiwi_logo.png");
}

.payment-icon-sberbank {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/2/27/Logo_Sberbank.svg/2560px-Logo_Sberbank.svg.png");
}

.payment-icon-maib {
    background-image: url("https://www.maib.md/uploads/custom_blocks/image_1633004921_8nR1jw3Qfu_auto__0.png")
}