/* CSS Variables - Professional Design */
:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --tertiary-black: #2a2a2a;
    --dark-gray: #333333;
    --medium-gray: #444444;
    --light-gray: #666666;
    --gray-text: #aaaaaa;
    --white: #ffffff;
    --gold-primary: #ffd700;
    --gold-secondary: #ffb347;
    --gold-accent: #ffed4e;
    --platinum: #e5e4e2;
    --gradient-gold: linear-gradient(135deg, #ffd700, #ffb347, #ffed4e);
    --gradient-dark: linear-gradient(135deg, #0a0a0a, #1a1a1a, #2a2a2a);
    --gradient-premium: linear-gradient(145deg, #1a1a1a, #2a2a2a, #3a3a3a);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.4);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-premium: 0 12px 40px rgba(0, 0, 0, 0.8);
    --border-color: #444444;
    --border-gold: rgba(255, 215, 0, 0.3);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--primary-black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--shadow-gold);
}

/* Header */
.header {
    background: var(--gradient-premium);
    border-bottom: 2px solid var(--border-gold);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-premium);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gold-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    text-shadow: var(--shadow-gold);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.logo:hover {
    transform: translateY(-2px) scale(1.02);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.logo-icon {
    font-size: 2.2rem;
    animation: logoGlow 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

@keyframes logoGlow {
    0% { 
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
        transform: scale(1.05);
    }
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-gold);
    border-radius: var(--border-radius);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-link:hover {
    color: var(--gold-primary);
    transform: translateY(-2px);
    border-color: var(--border-gold);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}


.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--gold-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--shadow-gold);
    animation: fadeInUp 1s ease-out;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--platinum);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.3s both;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.cta-btn {
    background: var(--gradient-gold);
    color: var(--primary-black);
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    padding: 18px 40px;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-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;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #ffed4e, #ffd700, #ffb347);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
}

/* Statistics */
.statistics {
    padding: 4rem 0;
    background: var(--secondary-black);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--primary-black);
    border-radius: var(--border-radius);
    border: 1px solid var(--dark-gray);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    text-shadow: var(--shadow-gold);
}

.stat-label {
    color: var(--gray-text);
    font-weight: 500;
}

/* Catalog */
.catalog {
    padding: 4rem 0;
}

.catalog-header {
    margin-bottom: 3rem;
}

.catalog-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    background: var(--secondary-black);
    border: 1px solid var(--dark-gray);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
}

.filters {
    display: flex;
    gap: 1rem;
}

.filters select {
    padding: 12px 15px;
    background: var(--secondary-black);
    border: 1px solid var(--dark-gray);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filters select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

/* Кнопки убраны - автоматическая работа */

/* Loading */
.loading {
    text-align: center;
    padding: 4rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--dark-gray);
    border-top: 3px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gifts Grid */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gift-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    overflow: hidden;
    position: relative;
}

.gift-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.gift-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gift-card:hover::before {
    opacity: 1;
}

.gift-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--secondary-black);
    color: var(--gold-primary);
    z-index: 2;
}

.loading-spinner-small {
    width: 30px;
    height: 30px;
    border: 2px solid var(--dark-gray);
    border-top: 2px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
}

.image-loading span {
    font-size: 0.9rem;
    font-weight: 500;
}

.gift-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: var(--transition);
}

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

/* GIF Images */
.gift-gif {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 15px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.gift-gif:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 0.3));
}

/* TGS стили убраны - используем готовые GIF файлы */

/* Admin Panel Styles */

.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    z-index: 1000;
    overflow-y: auto;
}

.admin-header {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--gold-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.admin-header h2 {
    color: var(--gold-primary);
    margin: 0;
    font-size: 1.8rem;
}

.logout-btn {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.admin-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--dark-gray);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
}

.stat-card h3 {
    color: var(--gray-text);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card span {
    color: var(--gold-primary);
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.admin-gifts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.admin-gift-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid var(--dark-gray);
    transition: all 0.3s ease;
}

.admin-gift-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
}

.admin-gift-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.admin-form-group {
    margin-bottom: 1rem;
}

.admin-form-group label {
    display: block;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.admin-form-group input,
.admin-form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--dark-gray);
    border-radius: 8px;
    background: var(--secondary-black);
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.admin-form-group input:focus,
.admin-form-group select:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.admin-save-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.admin-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* Admin Modal Styles */
.admin-modal {
    max-width: 400px;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 2px solid var(--gold-primary);
}

.admin-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--dark-gray);
    border-radius: 8px;
    background: var(--secondary-black);
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.admin-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: var(--primary-black);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Admin Panel Additional Styles */
.admin-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.view-site-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-site-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.admin-controls {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    border: 2px solid var(--dark-gray);
}

.search-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-search {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--dark-gray);
    border-radius: 8px;
    background: var(--secondary-black);
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.admin-search:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.admin-filter {
    padding: 12px 16px;
    border: 2px solid var(--dark-gray);
    border-radius: 8px;
    background: var(--secondary-black);
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    min-width: 150px;
}

.admin-filter:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.admin-reset-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.admin-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.admin-save-btn {
    flex: 1;
}

/* Admin Move Buttons */
.admin-move-btn {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 2px;
    font-size: 0.9rem;
}

.admin-move-btn:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

/* Add Gift Button */
.add-gift-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.add-gift-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Close Button */
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gold-primary);
    position: absolute;
    top: 10px;
    right: 15px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .admin-save-btn,
.form-actions .admin-reset-btn {
    flex: 1;
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .view-site-btn,
    .logout-btn {
        width: 100%;
        text-align: center;
    }
    
    .search-controls {
        flex-direction: column;
    }
    
    .admin-search,
    .admin-filter {
        width: 100%;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-gifts {
        grid-template-columns: 1fr;
    }
}

.gift-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--secondary-black);
    border: 2px dashed var(--gold-primary);
    border-radius: 10px;
    color: var(--gold-primary);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.placeholder-text {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

/* TGS Preview Container */
.tgs-preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--primary-black) 100%);
    border: 2px solid var(--gold-primary);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tgs-preview-container:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold-secondary);
}

.tgs-preview-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.tgs-animation-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.tgs-preview-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 0.3rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.tgs-preview-subtitle {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.tgs-play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-gold);
    color: var(--primary-black);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.tgs-play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

.play-icon {
    font-size: 1rem;
}

.play-text {
    font-size: 0.8rem;
}

.tgs-preview-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.tgs-preview-container:hover .tgs-preview-overlay {
    opacity: 1;
}

.tgs-download-icon {
    font-size: 1rem;
    color: var(--gold-primary);
}

/* TGS Fallback (when animation fails to load) */
.tgs-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--secondary-black);
    border: 2px solid var(--gold-primary);
    border-radius: 10px;
    color: var(--gold-primary);
}

.tgs-fallback .tgs-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

.tgs-fallback .tgs-text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.tgs-fallback .tgs-filename {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
    word-break: break-all;
}

/* Unknown File Container */
.unknown-file-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--secondary-black);
    border: 2px dashed var(--gray-text);
    border-radius: 10px;
    color: var(--gray-text);
}

.unknown-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.unknown-text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.unknown-filename {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
    word-break: break-all;
}

.gift-info {
    padding: 1.5rem 1.5rem 0 1.5rem;
    text-align: center;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 0 0 20px 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 140px;
}

.gift-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--white);
    text-align: center;
    padding: 0 1rem;
    line-height: 1.3;
    z-index: 2;
    position: relative;
}

.gift-price {
    color: var(--gold-primary);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    text-align: center;
    z-index: 2;
    position: relative;
}

.gift-popularity {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: var(--primary-black);
}

.sell-btn {
    width: calc(100% - 2rem);
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: var(--primary-black);
    font-weight: 700;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 auto 1.5rem auto;
    z-index: 2;
    position: relative;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    overflow: hidden;
}

.sell-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.sell-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #ffed4e, #ffd700, #ffb347);
    border-color: rgba(255, 255, 255, 0.2);
}

.sell-btn:hover::before {
    left: 100%;
}

.sell-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.no-results {
    text-align: center;
    padding: 4rem 0;
    color: var(--gray-text);
}

.no-results p:first-child {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* How it works */
.how-it-works {
    padding: 4rem 0;
    background: var(--secondary-black);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-item {
    text-align: center;
    padding: 2rem;
    background: var(--primary-black);
    border-radius: var(--border-radius);
    border: 1px solid var(--dark-gray);
    transition: var(--transition);
}

.step-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    color: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.step-item h3 {
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.step-item p {
    color: var(--gray-text);
}

/* Footer */
.footer {
    background: var(--primary-black);
    border-top: 2px solid var(--gold-primary);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info .logo {
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--gray-text);
}

.footer-contact h3 {
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.contact-link:hover {
    color: var(--gold-primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
    color: var(--gray-text);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gift-card:nth-child(1) { animation-delay: 0.1s; }
.gift-card:nth-child(2) { animation-delay: 0.2s; }
.gift-card:nth-child(3) { animation-delay: 0.3s; }
.gift-card:nth-child(4) { animation-delay: 0.4s; }
.gift-card:nth-child(5) { animation-delay: 0.5s; }
.gift-card:nth-child(6) { animation-delay: 0.6s; }
.gift-card:nth-child(7) { animation-delay: 0.7s; }
.gift-card:nth-child(8) { animation-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .gift-image-container {
        height: 220px;
    }
    
    .gift-gif {
        width: 190px;
        height: 190px;
    }
    
    .gift-image {
        width: 190px;
        height: 190px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .catalog-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .filters {
        width: 100%;
        justify-content: center;
    }
    
    .gifts-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gift-card {
        padding: 1rem;
    }
    
    .gift-image-container {
        height: 200px;
    }
    
    .gift-gif {
        width: 180px;
        height: 180px;
    }
    
    .gift-image {
        width: 180px;
        height: 180px;
    }
    
    .sell-btn {
        width: calc(100% - 1rem);
        padding: 14px 20px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .gift-info {
        padding: 1rem 1rem 0 1rem;
        min-height: 120px;
    }
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 90vw;
    max-height: 90vh;
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-gold);
    transition: transform 0.3s ease;
}

.image-modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--white);
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.modal-title {
    padding: 1rem;
    text-align: center;
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 1.1rem;
    border-top: 1px solid var(--dark-gray);
}

/* Admin Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.admin-modal {
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-gold);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin: 0;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--white);
    font-weight: 500;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--dark-gray);
    border-radius: var(--border-radius);
    background: var(--primary-black);
    color: var(--white);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.admin-login-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-gold);
    color: var(--primary-black);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* TGS Modal */
.tgs-modal {
    max-width: 500px;
}

.tgs-modal-content {
    padding: 2rem;
    text-align: center;
}

.tgs-preview {
    margin-bottom: 2rem;
}

.tgs-animation-preview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid var(--gold-primary);
    min-height: 200px;
}

.tgs-large-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.tgs-preview-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.tgs-preview-subtitle {
    font-size: 1rem;
    color: var(--gray-text);
    opacity: 0.8;
}

.tgs-modal-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 300px;
    background: var(--secondary-black);
    border-radius: 10px;
    color: var(--gold-primary);
}

.tgs-icon-large {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.tgs-fallback-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-text);
}

.tgs-title {
    font-size: 1.5rem;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tgs-filename {
    color: var(--gray-text);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.tgs-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.download-btn, .convert-btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.download-btn {
    background: var(--gradient-gold);
    color: var(--primary-black);
}

.convert-btn {
    background: var(--secondary-black);
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.download-btn:hover, .convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.tgs-info {
    background: var(--primary-black);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--dark-gray);
    text-align: left;
}

.tgs-info p {
    margin-bottom: 0.5rem;
    color: var(--gray-text);
}

.tgs-info strong {
    color: var(--gold-primary);
}

/* Модальное окно прогресса убрано - используем готовые GIF файлы */

/* Modal GIF */
.modal-gif {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin-bottom: 1rem;
}

.gif-actions {
    text-align: center;
    margin-top: 1rem;
}

/* Уведомления убраны - тихая работа */

/* Contact Section */
.contact-section {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card {
    background: var(--gradient-premium);
    border: 2px solid var(--border-gold);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-card h3 {
    color: var(--gold-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.contact-card p {
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.telegram-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 ease;
}

.telegram-btn:hover::before {
    left: 100%;
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.telegram-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.telegram-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

/* Responsive Contact Section */
@media (max-width: 768px) {
    .contact-section {
        margin: 2rem 0;
        padding: 0 1rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-card p {
        font-size: 0.95rem;
    }
    
    .telegram-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Buy Stars Section */
.buy-stars-section {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.stars-card {
    background: #1a1a1a;
    background: -webkit-linear-gradient(145deg, #1a1a1a, #2a2a2a, #3a3a3a);
    background: -moz-linear-gradient(145deg, #1a1a1a, #2a2a2a, #3a3a3a);
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a, #3a3a3a);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    -webkit-box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    -moz-box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.stars-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.stars-card:hover::before {
    left: 100%;
}

.stars-content {
    position: relative;
    z-index: 2;
}

.stars-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.stars-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.stars-card .telegram-btn {
    background: #ffd700;
    background: -webkit-linear-gradient(135deg, #ffd700, #ffb347, #ffed4e);
    background: -moz-linear-gradient(135deg, #ffd700, #ffb347, #ffed4e);
    background: linear-gradient(135deg, #ffd700, #ffb347, #ffed4e);
    color: #0a0a0a;
    border: none;
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    -webkit-box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    -moz-box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-shadow: none;
}

.stars-card .telegram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #ffed4e, #ffd700, #ffb347);
}

.stars-card .telegram-btn:active {
    transform: translateY(-1px);
}

.telegram-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.btn-text {
    display: inline-block;
    vertical-align: middle;
}

/* Responsive styles for buy stars section */
@media (max-width: 768px) {
    .buy-stars-section {
        margin: 2rem 0;
        padding: 0 1rem;
    }
    
    .stars-card {
        padding: 2rem 1.5rem;
    }
    
    .stars-title {
        font-size: 1.5rem;
    }
    
    .stars-description {
        font-size: 1rem;
    }
    
    .stars-card .telegram-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-icon {
        font-size: 2.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .telegram-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .gift-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .gift-card.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .contact-card {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .contact-card.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .gift-image-container {
        height: 180px;
    }
    
    .gift-gif {
        width: 160px;
        height: 160px;
    }
    
    .gift-image {
        width: 160px;
        height: 160px;
    }
    
    .gift-card {
        padding: 0.8rem;
    }
    
    .gift-name {
        font-size: 0.9rem;
    }
    
    .gift-price {
        font-size: 1.1rem;
    }
    
    .sell-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}
