:root {
    --bg-color: #0f0f0f;
    --card-color: #1a1a1a;
    --accent-color: #ff4757;
    --text-color: #ffffff;
    --secondary-text: #b0b0b0;
    --border-radius: 16px;
    --input-focus: rgba(255, 71, 87, 0.3);
    --neon-glow: 0 0 15px rgba(255, 71, 87, 0.5);
    --scrollbar-width: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: var(--scrollbar-width);
    height: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: calc(var(--scrollbar-width) / 2);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: calc(var(--scrollbar-width) / 2);
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b81;
}

/* Снег */
.snow {
    position: fixed;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.snowflake {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: falling linear infinite;
    pointer-events: none;
}

@keyframes falling {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 10px)) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('../img/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

header {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 71, 87, 0.2);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(255, 71, 87, 0.3));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

nav a:hover {
    color: var(--accent-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Герой секция */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(255, 71, 87, 0.1) 100%);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ff4757" opacity="0.05"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff4757, #ff8e53);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.announcements {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.announcement-card {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-radius: var(--border-radius);
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 71, 87, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--neon-glow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.announcement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

.announcement-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 71, 87, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.announcement-content {
    flex-grow: 1;
}

.announcement-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--accent-color);
    font-weight: 700;
}

.announcement-content p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.server-info {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.server-version {
    background: rgba(255, 71, 87, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 71, 87, 0.4);
    font-size: 14px;
}

.server-address {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 127, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 127, 0.3);
    font-size: 14px;
    font-weight: 600;
}

.online-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff7f;
    box-shadow: 0 0 8px #00ff7f;
    animation: pulse 2s infinite;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.play-btn {
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    width: 220px;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.play-btn:hover::before {
    left: 100%;
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    background: rgba(0, 255, 127, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 127, 0.2);
    font-weight: 600;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff7f;
    box-shadow: 0 0 10px #00ff7f;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        opacity: 1; 
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.7; 
    }
    100% { 
        transform: scale(1);
        opacity: 1; 
    }
}

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 500;
}

.mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid var(--secondary-text);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--secondary-text);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    animation: wheelScroll 2s infinite;
}

@keyframes wheelScroll {
    0%, 100% { 
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% { 
        transform: translateX(-50%) translateY(8px);
        opacity: 0.5;
    }
}

/* Основной контейнер */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: var(--border-radius);
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.3);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.select-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.select-btn {
    width: 100%;
    padding: 15px 20px;
    background: rgba(51, 51, 51, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.select-btn:hover {
    background: rgba(58, 58, 58, 0.9);
    border-color: var(--accent-color);
}

.select-btn::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff4757'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.select-btn.active::after {
    transform: rotate(180deg);
}

.items-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(51, 51, 51, 0.95);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-top: none;
    backdrop-filter: blur(15px);
    box-shadow: var(--neon-glow);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.select-wrapper.active .items-list {
    transform: scaleY(1);
    opacity: 1;
}

.category-name {
    padding: 12px 20px;
    background: rgba(68, 68, 68, 0.9);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}

.item:hover {
    background: rgba(68, 68, 68, 0.8);
    border-left-color: var(--accent-color);
    padding-left: 25px;
}

.item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.item:hover img {
    transform: scale(1.1) rotate(5deg);
}

.item-name {
    flex-grow: 1;
    font-weight: 500;
}

.item-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 71, 87, 0.5);
}

/* Формы */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--secondary-text);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(51, 51, 51, 0.8);
    border: 1px solid rgba(68, 68, 68, 0.8);
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: var(--transition);
    backdrop-filter: blur(5px);
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--input-focus);
    background: rgba(58, 58, 58, 0.9);
}

.error-message {
    position: absolute;
    right: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition);
}

.buy-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

.disclaimer {
    font-size: 12px;
    color: var(--secondary-text);
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

.disclaimer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* Покупки */
.purchase {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
    transition: var(--transition);
}

.purchase:hover {
    background: rgba(51, 51, 51, 0.3);
    padding-left: 10px;
    border-radius: 8px;
}

.purchase:last-child {
    border-bottom: none;
}

.purchase-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.purchase-details {
    flex-grow: 1;
}

.purchase-player {
    font-weight: 600;
    margin-bottom: 4px;
}

.purchase-item {
    color: var(--secondary-text);
    font-size: 14px;
}

.purchase-time {
    color: var(--secondary-text);
    font-size: 12px;
    text-align: right;
    min-width: 80px;
}

/* Футер */
footer {
    background: rgba(26, 26, 26, 0.95);
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 71, 87, 0.2);
    backdrop-filter: blur(10px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 35px;
    margin-bottom: 30px;
}

.footer-link {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background: var(--accent-color);
    transition: var(--transition);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(51, 51, 51, 0.5);
}

.copyright {
    font-size: 14px;
    color: var(--secondary-text);
    text-align: center;
    line-height: 1.6;
}

.payment-methods {
    display: flex;
    gap: 15px;
    align-items: center;
}

.payment-icon {
    height: 24px;
    width: auto;
    filter: brightness(0.8);
    transition: var(--transition);
}

.payment-icon:hover {
    filter: brightness(1);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .announcement-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .announcement-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .announcement-content h3 {
        font-size: 1.3rem;
    }
    
    .announcement-content p {
        font-size: 1rem;
    }
    
    .server-info {
        justify-content: center;
        gap: 15px;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .play-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }

    .announcements {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .announcement-card {
        padding: 15px;
    }
    
    .server-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .server-version,
    .server-address {
        width: 100%;
        justify-content: center;
    }
    
    .card h2 {
        font-size: 1.3rem;
    }
    
    .select-btn, .form-control, .buy-btn {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .purchase-icon {
        width: 32px;
        height: 32px;
    }
}