/* ==================== */
/* FONTS AND VARIABLES */
/* ==================== */
html, body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
        }
        #wrapper, #wrapper-foot {
            transform: scale(0.9);
            transform-origin: 0 0;
            width: 111.11%;
            height: 111.11vh;
        }
@font-face {
    font-family: 'Rust';
    src: url('../fonts/rust1.ttf') format('truetype');
}

:root {
    /* Основные цвета */
    --primary-dark: #121212;
    --primary-darker: #0a0a0a;
    --primary-light: #1e1e1e;

    /* Акцентные цвета */
    --accent-primary: #FF6B35;
    --accent-secondary: #00A8E8;
    --accent-tertiary: #FFD166;

    /* Текст */
    --text-primary: #f5f5f5;
    --text-secondary: #b3b3b3;
    --text-accent: #FF6B35;

    /* Состояния */
    --success: #4CAF50;
    --warning: #FFC107;
    --error: #F44336;
    --info: #2196F3;

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    /*--gradient-dark: linear-gradient(135deg, #1e1e1e 0%, #121212 100%);*/

    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);

    /* Скругления */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 999px;

    /* Анимации */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============= */
/* BASE STYLES */
/* ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rust', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: url('../images/background_store_rust.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    letter-spacing: 1px;
    line-height: 1.6;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    opacity: 0.95;
    z-index: -1;
}

/* =============== */
/* NOTIFICATIONS */
/* =============== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    color: white;
    display: flex;
    align-items: center;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    font-size: 14px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    max-width: 400px;
    transform: translateX(0);
    transition: var(--transition-normal);
}

.notification.hide {
    transform: translateX(120%);
}

.notification i {
    margin-right: 12px;
    font-size: 20px;
}

.notification.success {
    background: rgba(76, 175, 80, 0.9);
    border-left: 4px solid var(--success);
}

.notification.error {
    background: rgba(244, 67, 54, 0.9);
    border-left: 4px solid var(--error);
}

.notification.warning {
    background: rgba(255, 193, 7, 0.9);
    border-left: 4px solid var(--warning);
    color: #333;
}

.notification.info {
    background: rgba(33, 150, 243, 0.9);
    border-left: 4px solid var(--info);
}

/* ============= */
/* PRELOADER */
/* ============= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-bottom-color: var(--accent-secondary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: 24px;
    position: relative;
}

.loader::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 4px solid transparent;
    border-radius: 50%;
    border-left-color: rgba(255, 107, 53, 0.2);
    border-right-color: rgba(0, 168, 232, 0.2);
    animation: spinReverse 2s linear infinite;
}

.loader-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 24px;
    text-align: center;
    position: relative;
}

.loader-text::after {
    content: '...';
    position: absolute;
    animation: dots 1.5s steps(5, end) infinite;
}

/* ============= */
/* HEADER */
/* ============= */
header {
    background: rgba(18, 18, 18, 0.95);
    padding: 12px 0; /* Уменьшил padding для меньшей высоты */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
    transition: var(--transition-normal);
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo {
    height: 40px; /* Немного уменьшил лого */
    margin-right: 12px;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4));
    transition: var(--transition-normal);
}

.logo-text {
    font-size: 24px; /* Уменьшил размер текста */
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.logo-text span {
    color: var(--accent-primary);
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -6px; /* Поднял подчеркивание ближе к тексту */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.logo-container:hover .logo-text::after {
    transform: scaleX(1);
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-button {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px; /* Немного уменьшил размер шрифта */
    padding: 8px 16px; /* Уменьшил padding */
    transition: var(--transition-normal);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.nav-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.nav-button.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.nav-button.active::after {
    display: none;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 10px; /* Уменьшил gap */
    position: relative;
    cursor: pointer;
    padding: 6px 10px; /* Уменьшил padding */
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 36px; /* Уменьшил аватар */
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    transition: var(--transition-normal);
}

.profile-name {
    font-size: 14px; /* Уменьшил размер текста */
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.profile-info:hover .profile-name {
    color: var(--accent-primary);
}

/* ================ */
/* MAIN CONTAINER */
/* ================ */
.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 181px);
    padding: 40px 24px;
    gap: 32px;
}

/* ================ */
/* SERVER SIDEBAR */
/* ================ */
.server-sidebar {
    width: 320px;
    background: rgba(30, 30, 30, 0.9);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(255, 107, 53, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    height: fit-content;
    transition: var(--transition-normal);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.server-sidebar:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.server-sidebar h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    position: relative;
}

.server-sidebar h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
}

.server-sidebar h3 i {
    margin-right: 10px;
    color: var(--accent-primary);
    font-size: 18px;
}

.server-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.server-item {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.server-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.server-item:hover {
    background: rgba(50, 50, 50, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 107, 53, 0.25);
}

.server-item:hover::before {
    transform: scaleY(1);
}

.server-item.active {
    background: rgba(60, 60, 60, 0.8);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.server-item.active::before {
    transform: scaleY(1);
}

.server-name {
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.server-name i {
    margin-right: 10px;
    font-size: 16px;
    color: var(--accent-primary);
}

.server-status {
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.server-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.server-status.online::before {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.server-status.offline::before {
    background: var(--error);
    box-shadow: 0 0 8px var(--error);
}

.server-status.maintenance::before {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.progress-container {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 40px;
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-grow: 1;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
                  rgba(255,255,255,0) 0%,
                  rgba(255,255,255,0.3) 50%,
                  rgba(255,255,255,0) 100%);
    animation: progressShine 2.5s infinite;
}

.server-players {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.server-players i {
    color: var(--accent-secondary);
    font-size: 14px;
}

/* ================= */
/* PRODUCT FILTERS */
/* ================= */
.product-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-button {
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    font-weight: 500;
}

.filter-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.filter-button.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* ================ */
/* MAIN CONTENT */
/* ================ */
.main-content {
    flex: 1;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.content-title {
    font-size: 28px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 8px;
}

.content-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.sort-select {
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.sort-select:hover {
    background: rgba(255, 255, 255, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.product-card {
    background: rgba(40, 40, 40, 0.6);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    aspect-ratio: 1/1;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 53, 0.3);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
    mix-blend-mode: overlay;
}

.product-card:hover::before {
    opacity: 0.2;
}

.product-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-image {
    transform: scale(1.2);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(30, 30, 30, 0.9);
    color: var(--accent-tertiary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    display: flex;
    align-items: center;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-normal);
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.product-badge i {
    margin-right: 6px;
    font-size: 10px;
}

.product-price {
    position: absolute;
    top: 0px;
    right: 0px;
    background: rgba(30, 30, 30, 0.9);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 2;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.product-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
    padding: 24px 16px 16px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.product-card:hover .product-name-overlay {
    transform: translateY(0);
}

.product-name {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.product-category {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ================ */
/* PRODUCT MODAL */
/* ================ */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 24px;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
}

.product-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 20px;
    backdrop-filter: blur(5px);
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-info {
    padding: 32px;
    flex: 1;
}

.modal-title {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 12px;
}

.modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.modal-price {
    font-size: 24px;
    color: var(--accent-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-features {
    margin-bottom: 32px;
}

.features-title {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.feature-item i {
    color: var(--accent-primary);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.modal-button {
    flex: 1;
    min-width: 200px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-button.buy {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.modal-button.buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.modal-button.wishlist {
    background: rgba(40, 40, 40, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-button.wishlist:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============= */
/* FOOTER */
/* ============= */
        .footer-container {
            text-align: center;
        }

        .footer-links {
            margin-bottom: 15px;
        }

        .footer-link {
            color: #fff;
            text-decoration: none;
            margin: 0 15px;
            font-size: 14px;
            transition: color 0.3s;
        }

        .footer-link:hover {
            color: #fff;
        }

        .footer-copyright {
            color: #fff;
            font-size: 13px;
        }

/* Адаптивность */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
    }

    .footer-links-container {
        gap: 30px;
    }

    .footer-links-column {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .footer-links-column {
        min-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =============== */
/* ANIMATIONS */
/* =============== */
@keyframes progressLoad {
    from { width: 0; }
    to { width: var(--progress-width); }
}

.server-item.active .progress-fill {
    animation: progressLoad 1.5s ease-out forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spinReverse {
    to { transform: rotate(-360deg); }
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ================= */
/* RESPONSIVENESS */
/* ================= */
@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }

    .modal-image {
        width: 50%;
        height: auto;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }

    .server-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .logo-text {
        font-size: 22px;
    }

    .nav-button {
        font-size: 14px;
        padding: 8px 12px;
    }

    .footer-container {
        gap: 32px;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links, .social-links {
        justify-content: center;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-right: none;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .modal-info {
        padding: 24px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-price {
        font-size: 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-button {
        width: 100%;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

.avatar-stack {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 184px;
    height: 184px;
    display: block;
}

.avatar-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.footer-contacts {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #2d2d2d;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 14px;
}

.contact-item a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #fff;
}

.contact-item i {
    color: #4a90e2;
}

.site-footer {
    background-color: #121212;
    color: #ddd;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid #2a2a2a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4a90e2;
}

.contact-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.contact-item i {
    margin-right: 10px;
    color: #4a90e2;
    width: 20px;
    text-align: center;
}

.footer-link {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #4a90e2;
}

.footer-about {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #aaa;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #4a90e2;
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 20px 20px 0;
}

.footer-copyright {
    color: #777;
    font-size: 14px;
}

.footer-payment {
    display: flex;
    gap: 15px;
}

.payment-icon {
    color: #777;
    font-size: 24px;
    transition: color 0.3s;
}

.payment-icon:hover {
    color: #4a90e2;
}

.site-footer {
    background-color: #121212;
    color: #ddd;
    padding: 40px 0 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
}

.footer-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0;
}

/* Остальные стили футера остаются без изменений */
.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4a90e2;
}
