/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    /* Unified Color Palette - Smoother Transitions */
    --primary-color: #fbbf24;
    --primary-light: #fcd34d;
    --primary-dark: #f59e0b;
    --secondary-color: #f59e0b;
    --secondary-light: #fbbf24;
    --secondary-dark: #d97706;
    --dark-color: #111827;
    --dark-light: #1f2937;
    --light-color: #ffffff;
    --text-color: #1f2937;
    --text-light: #4b5563;
    --text-lighter: #6b7280;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --success-color: #10b981;
    --success-light: #34d399;
    --danger-color: #ef4444;
    --danger-light: #f87171;
    --accent-yellow: #fde047;
    --accent-yellow-light: #fef08a;
    --soft-black: #1f2937;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Smooth Shadows */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Smooth Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-extra-slow: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Smooth Gradients */
    --gradient-primary: linear-gradient(135deg, #fde047 0%, #fbbf24 50%, #f59e0b 100%);
    --gradient-primary-smooth: linear-gradient(135deg, #fef08a 0%, #fde047 25%, #fbbf24 50%, #f59e0b 75%, #d97706 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
    --gradient-dark-smooth: linear-gradient(135deg, #374151 0%, #1f2937 25%, #111827 50%, #0f172a 75%, #0a0e1a 100%);
}

/* Universal Font Family - Inter */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Exclude Font Awesome icons and their pseudo-elements from Inter font */
.fas, .far, .fab, .fal, .fad,
[class*="fa-"],
[class^="fa-"],
.fas::before,
.far::before,
.fab::before,
.fal::before,
.fad::before,
[class*="fa-"]::before,
[class^="fa-"]::before,
i.fas::before,
i.far::before,
i.fab::before,
i[class*="fa-"]::before,
i[class^="fa-"]::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-style: normal !important;
    font-weight: 900 !important;
}

/* Ensure Font Awesome icons display correctly */
i[class*="fa-"],
i[class^="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-style: normal !important;
}

/* Specific font-weight for different icon types */
.far,
.far::before {
    font-weight: 400 !important;
}

.fas,
.fas::before {
    font-weight: 900 !important;
}

.fab,
.fab::before {
    font-weight: 400 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

.category-card,
.product-card,
.special-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.15s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.25s; }
.category-card:nth-child(5) { animation-delay: 0.3s; }
.category-card:nth-child(6) { animation-delay: 0.35s; }
.category-card:nth-child(7) { animation-delay: 0.4s; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-5);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-4);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-3);
    }
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: var(--transition-base);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-4) 0;
    gap: var(--spacing-6);
}

/* Header logo container - заменяет inline style */
.header-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .header-content {
        padding: var(--spacing-3) 0;
        gap: var(--spacing-4);
    }
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    transition: var(--transition-base);
    height: 60px;
}

.logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.logo-svg {
    height: 70px;
    width: auto;
    max-width: 300px;
    min-width: 220px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    border-radius: 10px;
}

.logo-main-image {
    display: none !important;
}

.logo-image {
    display: none !important;
}

.logo-text-fallback {
    display: none !important;
}

.logo-symbol {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-color);
    line-height: 1;
    letter-spacing: -0.05em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex-shrink: 0;
    display: none;
}

.logo-text {
    display: none !important;
}

.logo-company-name {
    display: none !important;
}

/* Show logo image if loaded, hide fallback text */
.logo-image[src]:not([src=""]) {
    display: block;
}

.logo-image[src]:not([src=""]) ~ .logo-text-fallback {
    display: none;
}

/* Show fallback text if logo image is not loaded */
.logo-text:not(:has(.logo-image[src]:not([src=""]))) .logo-text-fallback {
    display: flex;
}

.logo-image:not([src]),
.logo-image[src=""] {
    display: none;
}

/* Location Badge */
.location-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-5);
    background: var(--color-primary);
    color: var(--color-light);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    transition: var(--transition-base);
    font-size: var(--font-size-base);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-primary-dark);
}

.location-badge:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.05);
}

.location-badge:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.location-badge i {
    font-size: 1.1rem;
}

/* Catalog Button */
.catalog-btn {
    background: var(--dark-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    font-size: 1rem;
}

.catalog-btn:hover {
    background: var(--soft-black);
}

.catalog-btn i {
    font-size: 1.2rem;
}

/* Header Search */
.header-search {
    display: flex;
    flex: 1;
    max-width: 600px;
    position: relative; /* Для позиционирования dropdown */
}

.search-input-main {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 1rem;
    border-right: none;
}

/* Выпадающий список результатов поиска */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -2px;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-dropdown-item:hover {
    background: #f9fafb;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
    background: #f3f4f6;
}

.search-dropdown-info {
    flex: 1;
}

.search-dropdown-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.search-dropdown-category {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.search-dropdown-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.search-dropdown-empty {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.search-dropdown-empty i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: block;
}

.search-dropdown-footer {
    padding: 1rem;
    text-align: center;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
    color: var(--primary-color);
}

.search-dropdown-footer:hover {
    background: #f3f4f6;
}

.search-input-main:focus {
    border-color: var(--primary-color);
}

.search-btn {
    background: var(--color-light);
    color: var(--color-text);
    border: 2px solid var(--color-border);
    border-left: none;
    padding: 0 var(--spacing-6);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: var(--shadow-sm);
}

.search-btn:hover {
    background: var(--color-gray-50);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.search-btn:active {
    background: var(--color-gray-100);
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.search-btn i {
    font-size: 1rem;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-1);
    text-decoration: none;
    color: var(--color-text);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
    position: relative;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.header-action-link:hover {
    background: var(--color-gray-50);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-border);
}

.header-action-link.active {
    background: var(--color-primary);
    color: var(--color-dark);
    box-shadow: var(--shadow);
    border-color: var(--color-primary-dark);
}

.header-action-link.active:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.header-action-link i {
    font-size: 1.3rem;
}

.header-action-link span:not(.action-count) {
    font-size: 0.85rem;
    font-weight: 500;
}

.action-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--dark-color);
    border-radius: 10px;
    padding: 0.125rem 0.4rem;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Cart Animation Styles */
.cart-bounce {
    animation: cartBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes cartBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-10px) scale(1.1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
    75% {
        transform: translateY(-8px) scale(1.08);
    }
}

.count-pop {
    animation: countPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes countPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
        background: var(--success-color);
    }
    100% {
        transform: scale(1);
    }
}

/* Flying to cart animation */
.flying-to-cart {
    animation: flyAndFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes flyAndFade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.2) rotate(360deg);
    }
}

/* Mobile Header Optimization - Apply to all mobile devices */
@media screen and (max-width: 768px) {
    .header {
        padding: 0.5rem 0 !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    }
    
    .header-content {
        padding: 0.4rem 0 !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .header-content > div:first-child {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        flex-shrink: 0 !important;
    }
    
    .location-badge {
        padding: 0.4rem !important;
        font-size: 0 !important;
        min-width: 34px !important;
        width: 34px !important;
        height: 34px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .location-badge span {
        display: none !important;
    }
    
    .location-badge i {
        font-size: 0.9rem !important;
        margin: 0 !important;
    }
    
    .logo {
        padding: 0.35rem 0.5rem !important;
        gap: 0 !important;
        min-width: auto !important;
        flex-shrink: 0 !important;
        background: #fbbf24 !important;
        border: 2px solid rgba(217, 119, 6, 0.2) !important;
        box-shadow: 0 2px 8px rgba(251, 191, 36, 0.25) !important;
        border-radius: 8px !important;
    }
    
    .logo .logo-svg {
        height: 55px !important;
        width: auto !important;
        max-width: 260px !important;
        min-width: 200px !important;
    }
    
    .logo-symbol {
        display: none !important;
    }
    
    .logo-text {
        display: none !important;
    }
    
    .header-search {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 140px) !important;
        margin: 0 0.4rem !important;
        display: flex !important;
    }
    
    .search-input-main {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        padding: 0 0.5rem !important;
        font-size: 0.75rem !important;
        border-radius: 8px 0 0 8px !important;
        flex: 1 !important;
        min-width: 0 !important;
        border: 2px solid var(--border-color) !important;
        border-right: none !important;
        border-top: 2px solid var(--border-color) !important;
        border-bottom: 2px solid var(--border-color) !important;
        border-left: 2px solid var(--border-color) !important;
        box-sizing: border-box !important;
        line-height: 30px !important;
        margin: 0 !important;
        vertical-align: top !important;
        outline: none !important;
    }
    
    .search-btn {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        padding: 0 !important;
        border-radius: 0 8px 8px 0 !important;
        min-width: 42px !important;
        width: 42px !important;
        flex-shrink: 0 !important;
        background: white !important;
        border: 2px solid var(--border-color) !important;
        border-left: none !important;
        border-top: 2px solid var(--border-color) !important;
        border-bottom: 2px solid var(--border-color) !important;
        border-right: 2px solid var(--border-color) !important;
        color: var(--text-color) !important;
        box-shadow: none !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        vertical-align: top !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .search-btn:active {
        background: #f3f4f6 !important;
        color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
    }
    
    .search-btn i {
        font-size: 0.85rem !important;
        display: block !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 1em !important;
        height: 1em !important;
        text-align: center !important;
        font-style: normal !important;
        overflow: hidden !important;
    }
    
    .header-actions {
        gap: 0.25rem !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .header-action-link {
        padding: 0.3rem !important;
        min-width: 34px !important;
        min-height: 34px !important;
        font-size: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .header-action-link i {
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    .header-action-link span:not(.action-count) {
        display: none !important;
    }
    
    .action-count {
        font-size: 0.55rem !important;
        padding: 0.05rem 0.25rem !important;
        min-width: 14px !important;
        height: 14px !important;
        line-height: 14px !important;
    }
}

/* Hero Section */
.hero {
    background: var(--gradient-dark-smooth);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 50%, var(--accent-yellow) 100%);
    opacity: 0.1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-4);
    animation: fadeInUp 0.6s ease-out;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-8);
    opacity: 0.95;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
    line-height: var(--line-height-relaxed);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-6);
    }
}

.hero-btn {
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-base);
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.6);
    background: var(--accent-yellow);
}

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

/* Modern Hero Section for Index */
/* Legacy hero section - now integrated into carousel */
.hero-section-modern {
    display: none; /* Hidden, now part of carousel */
}

.hero-content-modern {
    position: relative;
    z-index: 15;
    text-align: center;
    color: white;
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--spacing-8) var(--spacing-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-content-modern {
        padding: var(--spacing-8) var(--spacing-4);
        min-height: 450px;
    }
}

.hero-title-modern {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-3);
    text-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.1);
    position: relative;
    z-index: 10;
    animation: titleGlow 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    will-change: text-shadow, transform, opacity;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.hero-3d-slide.active .hero-title-modern {
    opacity: 1;
    transform: translateY(0);
}

.hero-title-modern::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(255,255,255,0.2);
    z-index: -1;
    transform: translate(5px, 5px);
    filter: blur(10px);
}

.hero-subtitle-modern {
    font-size: var(--font-size-2xl);
    opacity: 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2), 0 0 10px rgba(255,255,255,0.1);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    margin-bottom: var(--spacing-6);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-relaxed);
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 10;
    animation: subtitleGlow 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: text-shadow, transform, opacity;
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s,
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s;
}

.hero-3d-slide.active .hero-subtitle-modern {
    opacity: 0.95;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-subtitle-modern {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-4);
    }
}

.hero-stats-modern {
    display: flex;
    justify-content: center;
    gap: var(--spacing-16);
    margin-bottom: var(--spacing-12);
    flex-wrap: wrap;
    padding: var(--spacing-6) 0;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s,
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.hero-3d-slide.active .hero-stats-modern {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-stats-modern {
        gap: var(--spacing-8);
        margin-bottom: var(--spacing-8);
        padding: var(--spacing-4) 0;
    }
}

@media (max-width: 768px) {
    .hero-stats-modern {
        gap: var(--spacing-8);
        margin-bottom: var(--spacing-8);
        padding: var(--spacing-4) 0;
    }
}

.hero-stat-item {
    text-align: center;
    padding: var(--spacing-4);
    transition: var(--transition-base);
    transform: translateZ(0);
    will-change: transform;
}

.hero-stat-item:hover {
    transform: translateY(-4px) scale(1.05);
}

.hero-stat-number {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-black);
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 50%, #fde047 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-2);
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
    line-height: var(--line-height-none);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.4));
}

.hero-stat-label {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-stat-number {
        font-size: var(--font-size-4xl);
    }
    
    .hero-stat-label {
        font-size: var(--font-size-base);
    }
}

.hero-buttons-modern {
    display: flex;
    gap: var(--spacing-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-6);
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .hero-buttons-modern {
        gap: var(--spacing-3);
        margin-top: var(--spacing-4);
    }
}

.hero-btn-primary,
.hero-btn-secondary {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base), opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.65s,
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.65s;
    transform-style: preserve-3d;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(15px);
}

.hero-3d-slide.active .hero-btn-primary,
.hero-3d-slide.active .hero-btn-secondary {
    opacity: 1;
    transform: translateY(0);
}

.hero-btn-primary {
    background: var(--gradient-primary-smooth);
    color: var(--dark-color);
}

.hero-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(251,191,36,0.5);
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.hero-btn-secondary:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* 3D Hero Carousel Section */
.hero-3d-carousel-section {
    position: relative;
    height: 600px;
    min-height: 600px;
    max-height: 600px;
    overflow: hidden;
    perspective: 2000px;
    perspective-origin: center center;
    background: transparent;
}

.hero-3d-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.hero-3d-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%) scale(0.95);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    filter: blur(0) brightness(1);
    z-index: 1;
    will-change: transform, opacity, filter;
    box-sizing: border-box;
    isolation: isolate;
    contain: layout style paint;
}

.hero-3d-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) scale(1) !important;
    z-index: 3;
    filter: blur(0) brightness(1);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-3d-slide.prev {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%) scale(0.95);
    z-index: 1;
    filter: blur(4px) brightness(0.7);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-3d-slide.next {
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%) scale(0.95);
    z-index: 1;
    filter: blur(4px) brightness(0.7);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Large icon for additional slides */
.hero-3d-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: iconFloat 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
    z-index: 10;
}

.hero-3d-icon-large::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: gemIconPulse 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: -1;
}

@keyframes iconFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    25% { 
        transform: translateY(-4px) rotate(0.5deg);
    }
    50% { 
        transform: translateY(-8px) rotate(1deg);
    }
    75% { 
        transform: translateY(-4px) rotate(0.5deg);
    }
}

@keyframes gemIconPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    75% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.hero-3d-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.75rem 0 0.5rem;
    max-width: 750px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    box-sizing: border-box;
    position: relative;
    z-index: 15;
}

.hero-3d-feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: rgba(255, 255, 255, 1);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-base);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 15;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
    margin-top: 0;
}

/* Gemstone faceted structure - грани драгоценного камня */
.hero-3d-feature-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    clip-path: polygon(
        0% 15%, 15% 0%, 85% 0%, 100% 15%,
        100% 85%, 85% 100%, 15% 100%, 0% 85%
    );
}

/* Depth layers - многослойность */
.hero-3d-feature-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    filter: blur(12px);
}

.hero-3d-feature-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(255, 255, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-3d-feature-item:hover::before {
    opacity: 0.5;
}

.hero-3d-feature-item:hover::after {
    opacity: 0.4;
}

.hero-3d-feature-item i {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 1);
    flex-shrink: 0;
    min-width: 2rem;
    width: 2rem;
    text-align: center;
    filter: 
        drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    position: relative;
    z-index: 2;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.hero-3d-feature-item span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    flex: 1;
    min-width: 0;
    line-height: 1.7;
    max-width: 100%;
    display: block;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 8px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(255, 255, 255, 0.2);
    font-weight: 700;
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 1);
    letter-spacing: 0.02em;
}

/* Gemstone effect - кристаллическая структура с гранями - на всю площадь */
.hero-3d-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(255, 255, 255, 0.08) 60px,
            rgba(255, 255, 255, 0.08) 62px,
            transparent 62px,
            transparent 120px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(255, 255, 255, 0.08) 60px,
            rgba(255, 255, 255, 0.08) 62px,
            transparent 62px,
            transparent 120px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.06) 80px,
            rgba(255, 255, 255, 0.06) 82px,
            transparent 82px,
            transparent 160px
        ),
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.06) 80px,
            rgba(255, 255, 255, 0.06) 82px,
            transparent 82px,
            transparent 160px
        ),
        linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    background-size: 
        120px 120px,
        120px 120px,
        160px 160px,
        160px 160px,
        200% 200%,
        200% 200%,
        200% 200%,
        200% 200%;
    background-position:
        0 0,
        0 0,
        0 0,
        0 0,
        0% 0%,
        100% 0%,
        100% 100%,
        0% 100%;
    animation: gemShine 50s linear infinite;
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
    transform-origin: center center;
}

@keyframes gemShine {
    0% {
        background-position:
            0 0,
            0 0,
            0 0,
            0 0,
            0% 0%,
            100% 0%,
            100% 100%,
            0% 100%;
        opacity: 0.5;
    }
    25% {
        background-position:
            30px 30px,
            -30px 30px,
            40px -40px,
            -40px -40px,
            25% 25%,
            75% 25%,
            75% 75%,
            25% 75%;
        opacity: 0.7;
    }
    50% {
        background-position:
            60px 60px,
            -60px 60px,
            80px -80px,
            -80px -80px,
            50% 50%,
            50% 50%,
            50% 50%,
            50% 50%;
        opacity: 0.9;
    }
    75% {
        background-position:
            30px 30px,
            -30px 30px,
            40px -40px,
            -40px -40px,
            75% 75%,
            25% 75%,
            25% 25%,
            75% 25%;
        opacity: 0.7;
    }
    100% {
        background-position:
            0 0,
            0 0,
            0 0,
            0 0,
            100% 100%,
            0% 100%,
            0% 0%,
            100% 0%;
        opacity: 0.5;
    }
}

/* Многослойность драгоценного камня - глубинные слои - на всю площадь */
.hero-3d-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(255, 255, 255, 0.12) 0%, transparent 40%);
    background-size: 
        40% 40%,
        40% 40%,
        35% 35%,
        35% 35%,
        60% 60%,
        30% 30%,
        30% 30%,
        30% 30%,
        30% 30%;
    background-position:
        10% 20%,
        90% 80%,
        20% 80%,
        80% 20%,
        50% 50%,
        15% 50%,
        85% 50%,
        50% 15%,
        50% 85%;
    pointer-events: none;
    animation: gemGlow 40s ease-in-out infinite alternate;
    z-index: 2;
    mix-blend-mode: overlay;
}

@keyframes gemGlow {
    0% {
        opacity: 0.5;
        filter: blur(8px);
        background-position:
            10% 20%,
            90% 80%,
            20% 80%,
            80% 20%,
            50% 50%,
            15% 50%,
            85% 50%,
            50% 15%,
            50% 85%;
    }
    33% {
        opacity: 0.75;
        filter: blur(4px);
        background-position:
            15% 25%,
            85% 75%,
            25% 75%,
            75% 25%,
            45% 45%,
            18% 52%,
            82% 48%,
            48% 18%,
            52% 82%;
    }
    66% {
        opacity: 0.9;
        filter: blur(3px);
        background-position:
            20% 30%,
            80% 70%,
            30% 70%,
            70% 30%,
            50% 50%,
            20% 55%,
            80% 45%,
            55% 20%,
            45% 80%;
    }
    100% {
        opacity: 0.65;
        filter: blur(6px);
        background-position:
            12% 22%,
            88% 78%,
            22% 78%,
            78% 22%,
            52% 52%,
            16% 51%,
            84% 49%,
            51% 16%,
            49% 84%;
    }
}

/* Additional gemstone facets - дополнительные грани */
.hero-3d-slide.active {
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

/* Sparkle effect - искры на поверхности - убран, используется основная анимация */

/* Navigation buttons */
.hero-3d-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-3d-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.15) translateZ(20px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.hero-3d-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-3d-nav-prev {
    left: 2rem;
}

.hero-3d-nav-next {
    right: 2rem;
}

/* Indicators */
.hero-3d-indicators {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
    padding: 0.4rem 0.875rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-3d-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-base);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.hero-3d-indicator.active {
    background: rgba(255, 255, 255, 1);
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    animation: indicatorPulse 5s ease-in-out infinite;
    border-color: rgba(255, 255, 255, 1);
}

@keyframes indicatorPulse {
    0%, 100% { 
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.4);
    }
    50% { 
        box-shadow: 0 0 35px rgba(255, 255, 255, 1), 0 0 70px rgba(255, 255, 255, 0.6);
    }
}

/* Mobile Responsive for 3D Carousel */
@media (max-width: 768px) {
    .hero-3d-carousel-section {
        height: 580px !important;
        min-height: 580px !important;
        max-height: 580px !important;
    }
    
    .hero-3d-slide {
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
        padding: 0 !important;
    }
    
    .hero-content-modern {
        min-height: 520px !important;
        max-height: 520px !important;
        padding: var(--spacing-6) var(--spacing-6) !important;
    }
    
    .hero-3d-icon-large {
        width: 120px !important;
        height: 120px !important;
        font-size: 4rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-3d-features {
        gap: 1rem !important;
        margin: 2rem 0 1rem !important;
        padding: 0 1.5rem !important;
    }
    
    .hero-3d-feature-item {
        font-size: 1rem !important;
        padding: 1.25rem 1.5rem !important;
        gap: 1rem !important;
    }
    
    .hero-3d-feature-item i {
        font-size: 1.5rem !important;
        min-width: 1.75rem !important;
        width: 1.75rem !important;
    }
    
    .hero-3d-nav-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    .hero-3d-nav-prev {
        left: 1rem !important;
    }
    
    .hero-3d-nav-next {
        right: 1rem !important;
    }
    
    .hero-3d-indicators {
        top: 0.75rem !important;
        right: 1rem !important;
        left: auto !important;
        transform: none !important;
        gap: 0.4rem !important;
        padding: 0.35rem 0.75rem !important;
    }
    
    .hero-3d-indicator {
        min-width: 40px !important;
        min-height: 40px !important;
        width: 10px !important;
        height: 10px !important;
    }
    
    .hero-3d-indicator.active {
        width: 28px !important;
    }
    
    .hero-title-modern {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle-modern {
        font-size: 1.3rem !important;
    }
    
    .hero-content-modern {
        padding-top: 1.75rem !important;
        padding: 1.5rem 1.5rem 1.5rem !important;
        min-height: 500px !important;
        max-height: 500px !important;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .hero-3d-carousel-section {
        height: 450px !important;
        min-height: 450px !important;
        max-height: 450px !important;
    }
    
    .hero-3d-slide {
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
        padding: 0 !important;
    }
    
    .hero-content-modern {
        min-height: 450px !important;
        max-height: 450px !important;
        padding: var(--spacing-5) var(--spacing-4) !important;
    }
    
    .hero-3d-icon-large {
        width: 100px !important;
        height: 100px !important;
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-title-modern {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle-modern {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-content-modern {
        padding-top: 1.5rem !important;
        padding: 1.25rem 1.25rem 1.25rem !important;
        min-height: 340px !important;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 0.7rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .hero-3d-features {
        gap: 0.875rem !important;
        margin: 1.5rem 0 1rem !important;
        padding: 0 1.25rem !important;
    }
    
    .hero-3d-feature-item {
        font-size: 0.95rem !important;
        padding: 1rem 1.25rem !important;
        gap: 0.875rem !important;
    }
    
    .hero-3d-feature-item i {
        font-size: 1.25rem !important;
        min-width: 1.5rem !important;
        width: 1.5rem !important;
    }
    
    .hero-3d-nav-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
    }
    
    .hero-3d-nav-prev {
        left: 0.75rem !important;
    }
    
    .hero-3d-nav-next {
        right: 0.75rem !important;
    }
    
    .hero-3d-indicators {
        top: 0.5rem !important;
        right: 0.75rem !important;
        left: auto !important;
        transform: none !important;
        gap: 0.35rem !important;
        padding: 0.3rem 0.65rem !important;
    }
    
    .hero-3d-indicator {
        width: 8px !important;
        height: 8px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
    
    .hero-3d-indicator.active {
        width: 24px !important;
    }
    
    .hero-buttons-modern {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100% !important;
        max-width: 300px !important;
    }
}

.services-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4rem;
}

.services-carousel {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: var(--transition-slow);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition-slow);
    display: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    display: block;
}

.carousel-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, var(--primary-color), var(--accent-yellow));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: var(--transition-base);
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.15);
}

.carousel-card-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: iconPulse 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
    }
    25% {
        transform: scale(1.02);
    }
    50% { 
        transform: scale(1.05);
    }
    75% {
        transform: scale(1.02);
    }
}

.carousel-card-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.carousel-card-description {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.carousel-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.carousel-stat-item {
    text-align: center;
}

.carousel-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.carousel-stat-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
}

.carousel-card-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.carousel-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-weight: 600;
    font-size: 1rem;
}

.carousel-feature-item i {
    font-size: 1.2rem;
}

.carousel-card-footer {
    margin-top: 2rem;
}

.carousel-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.carousel-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.carousel-card-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
}

.carousel-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev {
    left: 0;
}

.carousel-nav-next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: var(--transition-base);
}

.carousel-indicator.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* Mobile Responsive for Carousel */
@media (max-width: 768px) {
    .services-carousel-section {
        padding: 1.5rem 0 !important;
        margin-top: -1rem !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .services-carousel-wrapper {
        padding: 0 2.5rem !important;
        position: relative;
    }
    
    .services-carousel {
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }
    
    .carousel-card {
        padding: 1.75rem 1.25rem !important;
        border-radius: 16px !important;
    }
    
    .carousel-card-icon {
        width: 75px !important;
        height: 75px !important;
        font-size: 2.25rem !important;
        margin-bottom: 0.875rem !important;
    }
    
    .carousel-card-title {
        font-size: 1.4rem !important;
        margin-bottom: 0.625rem !important;
        line-height: 1.3 !important;
    }
    
    .carousel-card-description {
        font-size: 0.95rem !important;
        margin-bottom: 0.875rem !important;
        line-height: 1.6 !important;
    }
    
    .carousel-stats-grid {
        gap: 0.875rem !important;
        margin: 1.25rem 0 !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .carousel-stat-number {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    .carousel-stat-label {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    .carousel-card-features {
        gap: 0.875rem !important;
        margin: 0.875rem 0 !important;
        flex-wrap: wrap !important;
    }
    
    .carousel-feature-item {
        font-size: 0.875rem !important;
        gap: 0.375rem !important;
    }
    
    .carousel-feature-item i {
        font-size: 1rem !important;
    }
    
    .carousel-card-btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important; /* iOS touch target */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        width: auto !important;
        max-width: 100% !important;
    }
    
    .carousel-nav-btn {
        width: 44px !important; /* iOS minimum touch target */
        height: 44px !important;
        font-size: 1rem !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        touch-action: manipulation !important; /* Prevent double-tap zoom */
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .carousel-nav-btn:active {
        transform: translateY(-50%) scale(0.95) !important;
        background: var(--primary-color) !important;
    }
    
    .carousel-nav-prev {
        left: -0.75rem !important;
    }
    
    .carousel-nav-next {
        right: -0.75rem !important;
    }
    
    .carousel-indicators {
        margin-top: 1.25rem !important;
        gap: 0.625rem !important;
        padding: 0.5rem 0 !important;
    }
    
    .carousel-indicator {
        width: 10px !important;
        height: 10px !important;
        min-width: 44px !important; /* iOS touch target */
        min-height: 44px !important;
        border-radius: 5px !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        position: relative !important;
    }
    
    .carousel-indicator::before {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 10px !important;
        height: 10px !important;
        border-radius: 50% !important;
        background: #d1d5db !important;
        transition: all 0.3s !important;
    }
    
    .carousel-indicator.active::before {
        width: 24px !important;
        border-radius: 5px !important;
        background: var(--primary-color) !important;
    }
    
    .carousel-indicator.active {
        width: 24px !important;
        border-radius: 5px !important;
    }
    
    /* Optimize transitions for mobile */
    .carousel-slide {
        transition: opacity 0.4s ease-out, transform 0.4s ease-out !important;
        will-change: opacity, transform !important;
    }
    
    /* Better scroll performance */
    .carousel-track {
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
}

@media (max-width: 480px) {
    .services-carousel-section {
        padding: 1.25rem 0 !important;
    }
    
    .services-carousel-wrapper {
        padding: 0 2rem !important;
    }
    
    .carousel-card {
        padding: 1.5rem 1rem !important;
        border-radius: 14px !important;
    }
    
    .carousel-card-icon {
        width: 65px !important;
        height: 65px !important;
        font-size: 1.9rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .carousel-card-title {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .carousel-card-description {
        font-size: 0.875rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.5 !important;
    }
    
    .carousel-stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.625rem !important;
        margin: 1rem 0 !important;
    }
    
    .carousel-stat-number {
        font-size: 1.4rem !important;
    }
    
    .carousel-stat-label {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
    
    .carousel-card-features {
        flex-direction: column !important;
        gap: 0.625rem !important;
        margin: 0.75rem 0 !important;
    }
    
    .carousel-feature-item {
        font-size: 0.8rem !important;
        justify-content: center !important;
    }
    
    .carousel-card-btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .carousel-nav-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
    }
    
    .carousel-nav-prev {
        left: -0.5rem !important;
    }
    
    .carousel-nav-next {
        right: -0.5rem !important;
    }
    
    .carousel-indicators {
        margin-top: 1rem !important;
        gap: 0.5rem !important;
    }
    
    .carousel-indicator {
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    .carousel-indicator::before {
        width: 8px !important;
        height: 8px !important;
    }
    
    .carousel-indicator.active::before {
        width: 20px !important;
    }
}

/* Categories Section */
.categories-section {
    padding: var(--spacing-16) 0;
    background: linear-gradient(to bottom, var(--color-gray-50), var(--color-light));
}

@media (max-width: 768px) {
    .categories-section {
        padding: var(--spacing-12) 0;
    }
}

/* Section Title */
.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    text-align: center;
    margin-bottom: var(--spacing-10);
    color: var(--color-dark);
    position: relative;
    padding-bottom: var(--spacing-4);
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .section-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-8);
        padding-bottom: var(--spacing-3);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Categories Grid - Single Beautiful Row */
.categories-grid-single {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-10);
}

@media (max-width: 768px) {
    .categories-grid-single {
        gap: var(--spacing-4);
        margin-bottom: var(--spacing-8);
    }
}

/* Modern Category Card */
.category-card-modern {
    background: var(--color-light);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-dark);
    box-shadow: var(--shadow);
    transition: var(--transition-base);
    position: relative;
    border: 1px solid var(--color-border-light);
}

.category-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card-modern:hover::after {
    opacity: 1;
}

.category-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-light);
}

.category-image-modern {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-accent-yellow-light) 0%, var(--color-accent-yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (max-width: 768px) {
    .category-image-modern {
        height: 100px;
    }
}

.category-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-modern:hover .category-image-modern img {
    transform: scale(1.15) rotate(2deg);
}

.category-image-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
}

.category-card-modern h3 {
    padding: var(--spacing-4);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin: 0;
    transition: var(--transition-base);
    color: var(--color-dark);
    line-height: var(--line-height-tight);
}

.category-card-modern:hover h3 {
    color: var(--color-primary);
}

/* All Categories Special Card */
.all-categories-modern .all-cat-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d97706 100%);
}

.all-categories-modern .all-cat-bg i {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.all-categories-modern:hover .all-cat-bg {
    background: linear-gradient(135deg, #d97706 0%, var(--primary-color) 100%);
}

.all-categories-modern h3 {
    background: var(--dark-color);
    color: white;
}

.all-categories-modern:hover h3 {
    background: var(--primary-color);
    color: var(--dark-color);
}

/* Old categories grid for compatibility */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-6);
}

.category-card {
    background: var(--color-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--color-dark);
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
    border: var(--border-width-base) solid transparent;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s;
    box-shadow: 0 0 0 2px var(--primary-color), 0 8px 24px rgba(251, 191, 36, 0.3);
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.category-card:hover::after {
    opacity: 1;
}

.category-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.category-card:hover .category-image::before {
    transform: translateX(100%);
}

.category-icon {
    font-size: var(--font-size-5xl);
    transition: var(--transition-base);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    position: relative;
    z-index: 2;
    color: var(--color-primary-dark);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(251, 191, 36, 0.3));
}

/* Secondary Category Images */
.secondary-category-image {
    width: 100%;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.secondary-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.secondary-category:hover .secondary-category-image img {
    transform: scale(1.15);
}

.category-card h3 {
    padding: var(--spacing-4);
    font-size: var(--font-size-base);
    text-align: center;
    margin: 0;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    transition: var(--transition-base);
    line-height: var(--line-height-tight);
}

.category-card:hover h3 {
    color: var(--color-primary);
}

/* Special Cards */
.special-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.special-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition-slow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.special-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.special-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.2);
}

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

.trade-in-card {
    border-color: var(--primary-color);
}

.trade-in-card:hover {
    border-color: var(--accent-yellow);
    background: #fffbeb;
}

.online-eval-card {
    border-color: var(--primary-color);
}

.online-eval-card:hover {
    border-color: var(--accent-yellow);
    background: #fffbeb;
}

.special-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    min-width: 50px;
}

.special-content {
    flex: 1;
}

.special-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.special-highlight {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: var(--dark-color);
}

.special-text {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.special-card > .fa-arrow-right {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Secondary Categories */
.secondary-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.secondary-category {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--dark-color);
    box-shadow: var(--shadow);
    transition: var(--transition-base);
}

.secondary-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
}

.secondary-category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.secondary-category:hover .secondary-category-icon {
    transform: scale(1.15) rotate(-5deg);
}

.secondary-category span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.all-categories {
    background: var(--primary-color);
    color: var(--dark-color);
    flex-direction: row;
    justify-content: center;
}

.all-categories:hover {
    background: var(--accent-yellow);
}

.all-categories i:first-child {
    font-size: 1.5rem;
}

.all-categories i:last-child {
    font-size: 1rem;
}

/* Products Tabs */
.products-tabs-section {
    background: white;
    border-bottom: 2px solid #e5e7eb;
    padding: 0;
}

.products-tabs {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}

.tab-btn {
    background: var(--color-gray-100);
    border: none;
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition-base);
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.tab-btn i {
    font-size: var(--font-size-lg);
    transition: var(--transition-base);
    color: var(--color-text-light);
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
    transition: var(--transition-slow);
}

.tab-btn:hover {
    background: var(--color-gray-100);
    transform: translateY(-2px);
}

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

.tab-btn:hover i {
    transform: scale(1.2);
    color: var(--color-primary);
}

.tab-btn.active {
    background: var(--color-light);
    color: var(--color-dark);
    border-bottom-color: var(--color-primary);
    box-shadow: 0 -2px 8px rgba(251, 191, 36, 0.2);
    font-weight: var(--font-weight-semibold);
}

.tab-btn.active i {
    animation: tabIconPulse 1s ease-in-out infinite;
}

@keyframes tabIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Breadcrumbs Styles */
.breadcrumbs-wrapper {
    background: linear-gradient(to bottom, var(--color-gray-50), var(--color-light));
    border-bottom: var(--border-width-thin) solid var(--color-border);
    padding: var(--spacing-3) 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--color-text-light);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
}

.breadcrumb-item:not(.active):hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.breadcrumb-item.active {
    color: var(--color-dark);
    font-weight: var(--font-weight-semibold);
    cursor: default;
}

.breadcrumb-item i {
    font-size: var(--font-size-base);
}

.breadcrumb-separator {
    color: var(--color-text-lighter);
    font-size: var(--font-size-xs);
}

.breadcrumb-separator i {
    font-size: var(--font-size-xs);
}

/* Mobile breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs-wrapper {
        padding: var(--spacing-2) 0;
    }
    
    .breadcrumbs {
        gap: var(--spacing-1);
    }
    
    .breadcrumb-item {
        font-size: var(--font-size-xs);
        padding: var(--spacing-1) var(--spacing-2);
        gap: var(--spacing-1);
    }
    
    .breadcrumb-item span {
        display: none;
    }
    
    .breadcrumb-item.active span {
        display: inline;
    }
    
    .breadcrumb-item i {
        font-size: 0.9rem;
    }
    
    .breadcrumb-separator i {
        font-size: 0.6rem;
    }
}

/* Recently Viewed Section */
.recently-viewed-section {
    padding: var(--spacing-16) 0;
    background: linear-gradient(to bottom, var(--color-gray-50), var(--color-light));
}

@media (max-width: 768px) {
    .recently-viewed-section {
        padding: var(--spacing-12) 0;
    }
}

.section-header-modern {
    text-align: center;
    margin-bottom: var(--spacing-12);
}

.section-title-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-4);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-dark);
    margin-bottom: var(--spacing-3);
    line-height: var(--line-height-tight);
}

.section-title-with-icon i {
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
    animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .section-header-modern {
        margin-bottom: var(--spacing-8);
    }
    
    .section-title-with-icon {
        font-size: var(--font-size-2xl);
        gap: var(--spacing-3);
    }
    
    .section-title-with-icon i {
        font-size: var(--font-size-xl);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-relaxed);
}

/* Mobile Responsive for Recently Viewed */
@media (max-width: 768px) {
    .recently-viewed-section {
        padding: 2.5rem 0;
    }
    
    .section-title-with-icon {
        font-size: 1.5rem;
        gap: 0.75rem;
    }
    
    .section-title-with-icon i {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
}

/* Features Section */
.features-section {
    padding: var(--spacing-12) 0;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

@media (max-width: 768px) {
    .features-section {
        padding: var(--spacing-8) 0;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-8);
}

@media (max-width: 768px) {
    .features-grid {
        gap: var(--spacing-4);
    }
}

.feature-card {
    background: var(--color-light);
    padding: var(--spacing-8);
    border-radius: var(--border-radius-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border-light);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-light);
}

.feature-icon {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-4);
    color: var(--color-primary);
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.3));
}

.feature-card h3 {
    color: var(--color-dark);
    margin-bottom: var(--spacing-2);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

.feature-card p {
    color: var(--color-text);
    margin-bottom: var(--spacing-6);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
}

.feature-btn {
    background: var(--color-primary);
    color: var(--color-dark);
    border: none;
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--border-radius-md);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
    width: 100%;
    box-shadow: var(--shadow);
    font-size: var(--font-size-base);
}

.feature-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 0;
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Кнопка фильтров - скрыта на десктопе по умолчанию, но можно включить */
.mobile-filters-toggle {
    display: none;
}

.filters {
    display: flex;
    gap: var(--spacing-8);
    flex-wrap: wrap;
    align-items: flex-end;
    padding: var(--spacing-8);
}

@media (max-width: 768px) {
    .filters {
        gap: var(--spacing-4);
        padding: var(--spacing-4);
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    font-size: var(--font-size-base);
}

.filter-select {
    padding: var(--spacing-3) var(--spacing-4);
    border: var(--border-width-base) solid var(--color-border);
    border-radius: var(--border-radius-md);
    outline: none;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition-base);
    background: var(--color-light);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.filter-select:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow);
}

.filter-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* ============================================
   CHECKBOX FILTERS
   ============================================ */

/* Filters Container - Grid Layout */
.filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4);
    align-items: start;
}

@media (max-width: 1024px) {
    .filters {
        grid-template-columns: 1fr;
    }
}

.filter-group-categories {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-gray-50) 100%);
    border: var(--border-width-base) solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-4);
    margin-bottom: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.filter-group-categories:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.filter-group-compact {
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-gray-50) 100%);
    border: var(--border-width-base) solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-4);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.filter-group-compact:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.filter-group-compact label {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: var(--spacing-3);
}

.filter-group-compact label i {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
}

.price-filter-group {
    grid-column: 1 / -1;
}

.price-filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.price-filter-label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-3);
    border-bottom: var(--border-width-base) solid var(--color-border);
}

.filter-header label {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.filter-header label i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.selected-count {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.toggle-filter-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.toggle-filter-btn:hover {
    color: var(--primary-color);
}

.toggle-filter-btn.active {
    transform: rotate(180deg);
}

.filter-checkboxes {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f3f4f6;
}

.filter-checkboxes::-webkit-scrollbar {
    width: 6px;
}

.filter-checkboxes::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.filter-checkboxes::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.filter-checkboxes::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

.filter-checkboxes.collapsed {
    max-height: 0;
    overflow: hidden;
    padding: 0;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
    border-radius: 8px;
    padding: 0.5rem;
}

.filter-checkbox-item:hover {
    background: #f9fafb;
}

.filter-checkbox-item input[type="checkbox"] {
    display: none;
}

.filter-checkbox-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    user-select: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-checkbox-item input[type="checkbox"]:checked + label .checkbox-custom {
    background: linear-gradient(135deg, var(--primary-color), #f59e0b);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.filter-checkbox-item input[type="checkbox"]:checked + label .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    flex: 1;
    color: var(--text-color);
    font-size: 0.95rem;
}

.checkbox-count {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
}

.filter-checkbox-item input[type="checkbox"]:checked + label .checkbox-label {
    color: var(--dark-color);
    font-weight: 600;
}

.filter-checkbox-item input[type="checkbox"]:checked + label .checkbox-count {
    color: var(--primary-color);
}

.reset-filter-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 2px solid #d1d5db;
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.reset-filter-btn:hover {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reset-filter-btn:active {
    transform: translateY(0);
}

.reset-filter-btn i {
    transition: transform 0.3s ease;
}

.reset-filter-btn:hover i {
    transform: rotate(180deg);
}

.price-filter-group {
    position: relative;
}

.price-range-container {
    width: 100%;
}

.price-range-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.price-label span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05rem;
}

.price-sliders-wrapper {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 1rem 0;
    padding: 20px 0;
    display: flex;
    align-items: center;
}

.price-range {
    position: absolute;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    z-index: 1;
    pointer-events: none;
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
    touch-action: none;
}

.price-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #e5e7eb 0%, #d1d5db 100%);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.price-range::-moz-range-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #e5e7eb 0%, #d1d5db 100%);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    z-index: 1;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 6px rgba(16, 185, 129, 0.2);
    transition: var(--transition-base);
    pointer-events: all;
    position: relative;
    z-index: 100 !important;
    margin-top: -8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border: 2px solid white;
    transform: translateZ(0);
}

.price-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.5),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 8px rgba(16, 185, 129, 0.3);
}

.price-range::-webkit-slider-thumb:active {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.6),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 6px rgba(16, 185, 129, 0.4);
}

.price-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 6px rgba(16, 185, 129, 0.2);
    transition: var(--transition-base);
    pointer-events: all;
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

.price-range::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.5),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 8px rgba(16, 185, 129, 0.3);
}

.price-range::-moz-range-thumb:active {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.6),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 6px rgba(16, 185, 129, 0.4);
}

.price-range-from {
    z-index: 10;
    pointer-events: all;
    opacity: 1;
    position: relative;
}

.price-range-to {
    z-index: 11;
    pointer-events: all;
    opacity: 1;
    position: relative;
}

/* Ensure both sliders are interactive */
.price-range-from:not(:disabled),
.price-range-to:not(:disabled) {
    cursor: pointer;
}

/* Make sure thumbs are always on top */
.price-range-from::-webkit-slider-thumb,
.price-range-to::-webkit-slider-thumb {
    pointer-events: all !important;
}

.price-range-from::-moz-range-thumb,
.price-range-to::-moz-range-thumb {
    pointer-events: all !important;
}

.price-range-from::-webkit-slider-thumb {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 6px rgba(16, 185, 129, 0.2) !important;
    z-index: 100 !important;
    position: relative !important;
    transform: translateZ(0) !important;
}

.price-range-from::-webkit-slider-thumb:hover {
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.5),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 8px rgba(16, 185, 129, 0.3);
}

.price-range-to::-webkit-slider-thumb {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
    box-shadow: 0 3px 10px rgba(251, 191, 36, 0.4),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 6px rgba(251, 191, 36, 0.2) !important;
    z-index: 101 !important;
    position: relative !important;
    transform: translateZ(0) !important;
}

.price-range-to::-webkit-slider-thumb:hover {
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.5),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 8px rgba(251, 191, 36, 0.3);
}

.price-range-from::-moz-range-thumb {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 6px rgba(16, 185, 129, 0.2) !important;
    z-index: 100 !important;
    position: relative !important;
}

.price-range-from::-moz-range-thumb:hover {
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.5),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 8px rgba(16, 185, 129, 0.3);
}

.price-range-to::-moz-range-thumb {
    background: var(--gradient-primary-smooth);
    box-shadow: 0 3px 10px rgba(251, 191, 36, 0.4),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 6px rgba(251, 191, 36, 0.2);
}

.price-range-to::-moz-range-thumb:hover {
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.5),
                0 0 0 3px rgba(255, 255, 255, 0.9),
                0 0 0 8px rgba(251, 191, 36, 0.3);
}

.price-count-indicator {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
}

.price-count-indicator span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

/* Price input fields */
.price-range-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.price-range-inputs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: center;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    position: relative;
}

.price-separator {
    color: #9ca3af;
    font-weight: 600;
    font-size: 1.1rem;
    user-select: none;
}

.price-input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    outline: none;
    transition: var(--transition-base);
    background: white;
    min-width: 0;
}

.price-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
    transform: translateY(-1px);
}

.price-input-group:first-child .price-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.price-input-group:last-child .price-input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.price-input-currency {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

/* Hide spinner on number input */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input[type=number] {
    -moz-appearance: textfield;
}

.price-count-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #92400e;
    margin-top: 0.75rem;
    border: 1px solid #fbbf24;
}

.price-count-indicator i {
    color: #f59e0b;
}

.price-count-indicator span {
    color: #b45309;
    font-weight: 700;
}

/* Mobile styles for price inputs */
@media (max-width: 768px) {
    .price-range-inputs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .price-input-group {
        max-width: 100%;
        width: 100%;
    }
    
    .price-input {
        font-size: 0.95rem;
        padding: 0.5rem 0.625rem;
        min-height: 44px; /* iOS touch target */
    }
    
    .price-input-label {
        font-size: 0.85rem;
        min-width: 35px;
    }
    
    .price-input-currency {
        font-size: 0.95rem;
    }
}

/* Products Section */
.products-section {
    padding: var(--spacing-12) 0;
    background: linear-gradient(to bottom, var(--color-light), var(--color-gray-50));
}

@media (max-width: 768px) {
    .products-section {
        padding: var(--spacing-8) 0;
    }
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: var(--spacing-8);
    text-align: center;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .section-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-6);
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-8);
    padding: var(--spacing-6) 0;
    margin-bottom: var(--spacing-8);
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--spacing-4);
        padding: var(--spacing-4) 0;
        margin-bottom: var(--spacing-6);
    }
}

@media (min-width: 1200px) {
    .products-grid {
        gap: var(--spacing-10);
        padding: var(--spacing-8) 0;
    }
}

@media (min-width: 1400px) {
    .products-grid {
        gap: var(--spacing-12);
    }
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity var(--transition-duration-base) var(--easing-ease-in-out);
    box-shadow: 0 0 0 2px var(--primary-color), 0 12px 32px rgba(251, 191, 36, 0.25);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.03) translateZ(0);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::after {
    opacity: 1;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--color-gray-50);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .product-image-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        height: 180px;
    }
}

.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.favorite-btn i {
    font-size: 1.2rem;
    color: #6b7280;
    transition: var(--transition-base);
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.favorite-btn:hover i {
    color: #ef4444;
}

.favorite-btn.active {
    background: #fef2f2;
}

.favorite-btn.active i {
    color: #ef4444;
    animation: heartBeat 0.3s;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--transition-base);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: transform;
    background: var(--color-gray-100);
    opacity: 1;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Плавное появление загруженного изображения */
.product-image.loaded {
    opacity: 1;
}

/* Анимация загрузки */
.lazy-image:not(.loaded) {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.5; }
}

.product-card:hover .product-image {
    transform: scale(1.15) rotate(2deg);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.product-info {
    padding: var(--spacing-5);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.product-category {
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-2);
}

.product-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: var(--spacing-2);
    flex: 1;
    line-height: var(--line-height-tight);
}

.product-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-3);
    line-height: var(--line-height-normal);
}

.product-features {
    display: flex;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-2);
    flex-wrap: wrap;
}

.product-feature {
    background: var(--color-light);
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    border: var(--border-width-thin) solid var(--color-border);
}

.product-installment {
    font-size: var(--font-size-sm);
    color: var(--color-success);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-3);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.old-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.old-price {
    font-size: 1rem;
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 500;
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.product-price {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: var(--line-height-none);
}

.product-price.sale-price {
    font-size: var(--font-size-3xl);
    color: var(--color-danger);
    font-weight: var(--font-weight-extrabold);
}

.add-to-cart-btn {
    background: var(--color-primary);
    color: var(--color-dark);
    border: none;
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    box-shadow: var(--shadow-sm);
}

.add-to-cart-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow);
}

/* Product Actions (Wishlist + Cart buttons) */
.product-actions {
    display: flex;
    gap: var(--spacing-2);
    align-items: center;
}

/* Wishlist Button */
.wishlist-btn {
    background: white;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    min-width: 40px;
    min-height: 40px;
}

.wishlist-btn:hover {
    background: #fef3f2;
    transform: scale(1.05);
    border-color: #c0392b;
}

.wishlist-btn.active {
    background: #e74c3c;
    color: white;
}

.wishlist-btn.active:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.wishlist-btn i {
    font-size: 1.1rem;
}

/* Quick View Button */
.quick-view-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    min-width: 40px;
    min-height: 40px;
}

.quick-view-btn:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

.quick-view-btn i {
    font-size: 1.1rem;
}

/* Compare Checkbox */
.compare-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all var(--transition-fast);
    z-index: 10;
}

.compare-checkbox:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: scale(1.05);
}

.compare-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin: 0;
}

.compare-label {
    font-weight: 500;
    white-space: nowrap;
}

/* Hide label on small screens */
@media (max-width: 768px) {
    .compare-label {
        display: none;
    }
    .compare-checkbox {
        padding: 0.5rem;
    }
}

.no-products {
    text-align: center;
    padding: var(--spacing-16) var(--spacing-8);
    color: var(--color-text);
}

.no-products i {
    font-size: var(--font-size-5xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-4);
    opacity: 0.6;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.3));
}

.no-products p {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-light);
}

/* Pagination Styles */
.pagination-section {
    background: var(--color-light);
    padding: var(--spacing-6) 0;
    border-top: var(--border-width-thin) solid var(--color-border);
    border-bottom: var(--border-width-thin) solid var(--color-border);
    margin: var(--spacing-8) 0;
}

.pagination-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-4);
}

.product-count-display {
    font-size: var(--font-size-base);
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

.items-per-page-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.items-per-page-selector label {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

.items-per-page-select {
    padding: var(--spacing-2) var(--spacing-4);
    border: var(--border-width-base) solid var(--color-border);
    border-radius: var(--border-radius-md);
    background: var(--color-light);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
}

.items-per-page-select:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow);
}

.items-per-page-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.pagination-btn {
    padding: var(--spacing-3) var(--spacing-5);
    border: var(--border-width-base) solid var(--color-border);
    background: var(--color-light);
    color: var(--color-text);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.pagination-number:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination-number.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.pagination-ellipsis {
    padding: 0 var(--spacing-2);
    color: var(--color-text-lighter);
    opacity: 0.6;
    font-weight: var(--font-weight-medium);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-index-modal);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium), backdrop-filter var(--transition-medium);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    opacity: 1;
}

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

.modal-content {
    background: var(--color-light);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-8);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.05);
    margin: auto;
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    transition: transform var(--transition-medium) cubic-bezier(0.4, 0, 0.2, 1), 
                opacity var(--transition-medium),
                box-shadow var(--transition-medium);
    will-change: transform, opacity;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
    animation: modalSlideIn var(--transition-medium) cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.product-modal-content {
    max-width: 900px;
}

.modal-header {
    padding: var(--spacing-6);
    border-bottom: var(--border-width-base) solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--color-dark);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
}

.close-btn {
    background: var(--color-gray-100);
    border: 1px solid var(--color-border);
    font-size: var(--font-size-xl);
    cursor: pointer;
    color: var(--color-text);
    transition: var(--transition-base);
    position: absolute;
    top: var(--spacing-4);
    right: var(--spacing-4);
    width: var(--spacing-10);
    height: var(--spacing-10);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-full);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.close-btn:hover {
    color: var(--color-danger);
    background: var(--color-light);
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow);
    border-color: var(--color-danger);
}

.close-btn:active {
    transform: rotate(90deg) scale(0.95);
    box-shadow: var(--shadow-sm);
}

.modal-body {
    padding: var(--spacing-6);
}

.modal-footer {
    padding: var(--spacing-6);
    border-top: var(--border-width-base) solid var(--color-border);
    background: var(--color-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-4);
    padding: var(--spacing-4) 0;
    border-top: var(--border-width-thin) solid var(--color-border);
    border-bottom: var(--border-width-thin) solid var(--color-border);
}

.total-price {
    color: var(--color-primary);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
}

.checkout-btn {
    width: 100%;
    background: var(--color-success);
    color: var(--color-light);
    border: none;
    padding: var(--spacing-4) var(--spacing-6);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow);
}

.checkout-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-item {
    display: flex;
    gap: var(--spacing-4);
    padding: var(--spacing-4);
    border-bottom: var(--border-width-thin) solid var(--color-border);
    align-items: center;
    transition: var(--transition-base);
}

.cart-item:hover {
    background: var(--color-gray-50);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: var(--secondary-color);
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.remove-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-base);
}

.remove-btn:hover {
    background: #dc2626;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.empty-cart i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

/* Product Details Modal */
.product-details {
    padding: 2rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-detail-image {
    width: 100%;
    border-radius: 12px;
}

.product-detail-info h2 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.product-detail-category {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.product-detail-description {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.product-detail-specs {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.product-detail-specs h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.product-detail-specs ul {
    list-style: none;
}

.product-detail-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-specs li:last-child {
    border-bottom: none;
}

/* Product Info Tabs */
.product-info-tabs {
    margin: 1.5rem 0;
}

.product-tabs-header {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.product-tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-tab-btn i {
    font-size: 1.1rem;
}

.product-tab-btn:hover {
    color: var(--primary-color);
    background: rgba(251, 191, 36, 0.05);
}

.product-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.product-tabs-content {
    min-height: 150px;
}

.product-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.product-tab-panel.active {
    display: block;
}

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

.product-empty-state {
    text-align: center;
    padding: 2rem 1.5rem;
    color: #9ca3af;
}

.product-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.product-empty-state p {
    font-size: 1rem;
    margin: 0;
}

.product-description {
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
    color: var(--text-color);
}

.product-description p {
    margin: 0;
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
}

.product-detail-actions .add-to-cart-btn {
    flex: 1;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo .logo-svg {
    height: 60px;
    width: auto;
    max-width: 300px;
    min-width: 220px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    border-radius: 10px;
    filter: brightness(1.05);
}

.footer-logo .logo-main-image {
    display: none !important;
}

.footer-logo .logo-text {
    display: none !important;
}

.footer-logo .logo-company-name {
    display: none !important;
}

/* Legacy footer logo support - hide old elements */
.footer-logo-symbol {
    display: none !important;
}

.footer-logo-text {
    display: none !important;
}

/* Auth Modals */
.auth-modal {
    max-width: 450px;
}

.auth-modal h2 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 1.8rem;
}

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

.auth-modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.auth-modal label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.auth-modal input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-base);
    box-sizing: border-box;
}

.auth-modal input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.auth-modal input:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.7;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--dark-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    margin-top: 1rem;
}

.auth-btn:hover {
    background: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.auth-btn i {
    margin-right: 0.5rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin: 0;
    color: var(--text-color);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* User Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: var(--transition-base);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification-info {
    background: var(--primary-color);
    color: var(--dark-color);
}

/* Profile Page */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.profile-info p {
    margin: 0.25rem 0;
    font-size: 1.1rem;
}

.profile-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.profile-tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-base);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.profile-tab-btn:hover {
    color: var(--primary-color);
}

.profile-tab-btn.active {
    color: var(--dark-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Pledge Card */
.pledge-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition-base);
}

.pledge-card:hover {
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
    transform: translateY(-2px);
}

.pledge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.pledge-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.pledge-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.status-paid {
    background: #dbeafe;
    color: #1e40af;
}

.pledge-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.pledge-detail {
    display: flex;
    flex-direction: column;
}

.pledge-detail-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.pledge-detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.pledge-progress {
    margin: 1.5rem 0;
}

.pledge-progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.pledge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
    border-radius: 6px;
}

.pledge-progress-text {
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
}

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

.pledge-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.pledge-btn-primary {
    background: var(--primary-color);
    color: var(--dark-color);
}

.pledge-btn-primary:hover {
    background: var(--accent-yellow);
    transform: translateY(-2px);
}

.pledge-btn-secondary {
    background: white;
    color: var(--dark-color);
    border: 2px solid var(--border-color);
}

.pledge-btn-secondary:hover {
    border-color: var(--primary-color);
}

.logout-btn {
    background: #ef4444;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Admin Panel Styles */
.admin-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table thead {
    background: var(--primary-color);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--dark-color);
    border-bottom: 2px solid var(--secondary-color);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr:hover {
    background: #fffbeb;
}

.admin-table code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #374151;
    font-family: monospace;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.01em !important;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    font-size: 0.9rem;
}

/* Admin Support Buttons - Clean and Beautiful */
.admin-support-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.01em !important;
    border: none !important;
    cursor: pointer !important;
    outline: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.admin-support-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    transform: none !important;
}

.admin-support-btn i {
    font-size: 1rem;
}

.admin-support-btn span {
    display: inline-block;
}

.btn-edit {
    background: #dbeafe;
    color: #1e40af;
}

.btn-edit:hover {
    background: #bfdbfe;
    transform: translateY(-2px);
}

.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

.btn-delete:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

.btn-promote {
    background: #fef3c7;
    color: #d97706;
}

.btn-promote:hover {
    background: #fde68a;
    transform: translateY(-2px);
}

.btn-demote {
    background: #e0e7ff;
    color: #4338ca;
}

.btn-demote:hover {
    background: #c7d2fe;
    transform: translateY(-2px);
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-admin {
    background: #fef3c7;
    color: #d97706;
}

.badge-user {
    background: #e0e7ff;
    color: #4338ca;
}

.form-select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-base);
    box-sizing: border-box;
    background: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.auth-modal textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-base);
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.auth-modal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

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

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.stat-detail {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: var(--spacing-12) 0 var(--spacing-4);
    margin-top: var(--spacing-16);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-2);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: var(--spacing-2);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-base);
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-1) 0;
}

.footer-section ul li a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
    padding-left: var(--spacing-1);
}

/* Contact Links */
.contact-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    transition: var(--transition-base);
    display: inline-block;
    font-size: var(--font-size-base);
    padding: var(--spacing-1) 0;
}

.contact-link:hover {
    color: var(--color-primary) !important;
    transform: translateX(3px);
    padding-left: var(--spacing-1);
}

.social-links {
    display: flex;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    color: var(--color-light);
    font-size: var(--font-size-xl);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-8);
    border-top: var(--border-width-thin) solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}

/* Modal Subtitle */
.modal-subtitle {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Trade-IN Styles */
.trade-in-info h3,
.installment-info h3,
.bonus-info h3 {
    color: var(--dark-color);
    margin: 2rem 0 1rem;
}

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

.step-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

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

.trade-in-benefits ul,
.requirements-list {
    list-style: none;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    margin: 1rem 0;
}

.trade-in-benefits li,
.requirements-list li {
    padding: 0.5rem 0;
    color: var(--text-color);
}

.primary-btn-large {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 2rem;
    transition: var(--transition-base);
}

.primary-btn-large:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Installment Styles */
.installment-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.installment-feature {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.installment-feature i {
    font-size: 2rem;
    color: var(--primary-color);
}

.installment-feature h4 {
    margin: 0;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.installment-feature p {
    margin: 0;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-text {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin: 1rem 0;
    color: #856404;
}

/* Bonus Styles */
.bonus-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
}

.bonus-highlight h3 {
    margin: 0;
    font-size: 2rem;
    color: white;
}

.bonus-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bonus-benefit {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
}

.bonus-benefit i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.bonus-benefit p {
    margin: 0;
    color: var(--text-color);
}

.bonus-steps {
    background: var(--light-color);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.bonus-steps li {
    padding: 0.5rem 0;
    color: var(--text-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark-color), var(--soft-black));
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 50%, var(--accent-yellow) 100%);
    opacity: 0.15;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Modern Page Header with 3D Effects */
.page-header-modern {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
    padding: var(--spacing-20) 0;
}

.page-header-modern.contacts-hero {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 50%, #4facfe 100%);
}

.page-header-modern.locations-hero-bg {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 50%, #30cfd0 100%);
}

.page-header-content-modern {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-8);
}

.page-title-modern {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-4);
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: titleGlow 3s ease-in-out infinite;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .page-header-modern {
        padding: var(--spacing-12) 0;
        min-height: 280px;
    }
    
    .page-header-content-modern {
        padding: 0 var(--spacing-4);
    }
    
    .page-title-modern {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-3);
    }
}

.page-title-modern::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(255,255,255,0.2);
    z-index: -1;
    transform: translate(5px, 5px);
    filter: blur(10px);
}

.page-subtitle-modern {
    font-size: 1.5rem;
    opacity: 0.95;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Modern Contact Blocks */
.contact-block-modern {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, var(--primary-color), var(--accent-yellow));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transform-style: preserve-3d;
    transition: all 0.4s;
}

.contact-block-modern:hover {
    transform: translateY(-8px) translateZ(10px);
    box-shadow: 0 20px 50px rgba(251,191,36,0.25);
}

.contact-icon-modern {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark-color);
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(251,191,36,0.3);
    animation: iconPulse 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.contact-block-modern h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.contact-block-modern p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-block-modern a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-block-modern a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.contact-note {
    font-size: 0.9rem;
    color: #6b7280;
    display: block;
    margin-top: 0.5rem;
}

/* About Page - Modern 3D Design */

/* Hero Section with Particles */
.about-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
    padding: 6rem 0;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    box-sizing: border-box;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 60s infinite cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    box-sizing: border-box;
}

/* Плавная анимация float для мобильных */
@media (max-width: 480px) {
    .particle {
        animation: float 25s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.3; }
    25% { transform: translateY(-20px) translateX(10px) rotate(45deg); opacity: 0.5; }
    50% { transform: translateY(-30px) translateX(-10px) rotate(90deg); opacity: 0.3; }
    75% { transform: translateY(-20px) translateX(-15px) rotate(135deg); opacity: 0.5; }
}

.hero-content-3d {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title-3d {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: titleGlow 12.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-title-3d::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(255,255,255,0.2);
    z-index: -1;
    transform: translate(5px, 5px);
    filter: blur(10px);
}

@keyframes titleGlow {
    0%, 100% { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    25% {
        transform: scale(1.005) translateY(-1.5px);
        opacity: 0.99;
    }
    50% { 
        transform: scale(1.01) translateY(-3px);
        opacity: 0.98;
    }
    75% {
        transform: scale(1.005) translateY(-1.5px);
        opacity: 0.99;
    }
}

.hero-subtitle-3d {
    font-size: 1.5rem;
    opacity: 0.95;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Main Highlight Section */
.main-highlight-section {
    position: relative;
    padding: 4rem 0;
    background: var(--gradient-primary-smooth);
    overflow: hidden;
    z-index: 1;
}

.main-highlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    animation: highlightShimmer 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes highlightShimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.main-highlight-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(251, 191, 36, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
    transform: perspective(1000px) rotateX(1deg);
    z-index: 1;
    animation: highlightFloat 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes highlightFloat {
    0%, 100% {
        transform: perspective(1000px) rotateX(1deg) translateY(0);
    }
    25% {
        transform: perspective(1000px) rotateX(1deg) translateY(-3px);
    }
    50% {
        transform: perspective(1000px) rotateX(1deg) translateY(-10px);
    }
    75% {
        transform: perspective(1000px) rotateX(1deg) translateY(-3px);
    }
}

.main-highlight-icon {
    font-size: 4rem;
    color: #fbbf24;
    animation: highlightIconPulse 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 5px 15px rgba(251, 191, 36, 0.5));
    z-index: 2;
}

@keyframes highlightIconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg) translateY(0);
    }
    25% {
        transform: scale(1.02) rotate(1.5deg) translateY(-2px);
    }
    50% {
        transform: scale(1.05) rotate(3deg) translateY(-5px);
    }
    75% {
        transform: scale(1.02) rotate(1.5deg) translateY(-2px);
    }
}

.main-highlight-content {
    flex: 1;
    text-align: center;
    z-index: 2;
}

.main-highlight-text {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-primary-smooth);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    animation: highlightGradientShift 62.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
    position: relative;
    z-index: 2;
}

@keyframes highlightGradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 25% 50%;
    }
    50% {
        background-position: 50% 50%;
    }
    75% {
        background-position: 25% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Плавная анимация для мобильных */
@media (max-width: 480px) {
    .main-highlight-text {
        animation: highlightGradientShift 31.25s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    }
}

.main-highlight-text::before {
    content: 'САМАЯ ДОРОГАЯ ОЦЕНКА В НОВОСИБИРСКОЙ ОБЛАСТИ';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary-smooth);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
    animation: highlightGlow 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes highlightGlow {
    0%, 100% {
        opacity: 0.6;
        filter: blur(8px);
    }
    25% {
        opacity: 0.75;
        filter: blur(10px);
    }
    50% {
        opacity: 0.9;
        filter: blur(12px);
    }
    75% {
        opacity: 0.75;
        filter: blur(10px);
    }
}

.main-highlight-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin-top: 1rem;
    font-weight: 600;
    z-index: 2;
}

.main-highlight-decoration {
    font-size: 3rem;
    color: #fbbf24;
    opacity: 0.6;
    animation: highlightStarRotate 7.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 3px 10px rgba(251, 191, 36, 0.4));
    z-index: 2;
}

@keyframes highlightStarRotate {
    0% {
        transform: rotate(0deg) scale(1) translateY(0);
    }
    12.5% {
        transform: rotate(45deg) scale(1.02) translateY(-2px);
    }
    25% {
        transform: rotate(90deg) scale(1.05) translateY(-4px);
    }
    37.5% {
        transform: rotate(135deg) scale(1.06) translateY(-6px);
    }
    50% {
        transform: rotate(180deg) scale(1.08) translateY(-8px);
    }
    62.5% {
        transform: rotate(225deg) scale(1.06) translateY(-6px);
    }
    75% {
        transform: rotate(270deg) scale(1.05) translateY(-4px);
    }
    87.5% {
        transform: rotate(315deg) scale(1.02) translateY(-2px);
    }
    100% {
        transform: rotate(360deg) scale(1) translateY(0);
    }
}

.main-highlight-banner::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fef08a 0%, #fde047 25%, #fbbf24 50%, #f59e0b 75%, #d97706 100%);
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0.5;
    filter: blur(20px);
    animation: highlightBorderGlow 50s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes highlightBorderGlow {
    0% {
        background-position: 0% 50%;
        opacity: 0.5;
    }
    25% {
        background-position: 25% 50%;
        opacity: 0.55;
    }
    50% {
        background-position: 50% 50%;
        opacity: 0.6;
    }
    75% {
        background-position: 25% 50%;
        opacity: 0.55;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.5;
    }
}

/* Stats Section */
.stats-section {
    padding: 4rem 0 5rem;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    margin-bottom: 0;
}

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

.stat-card-3d {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition-slow);
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

.stat-card-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(251,191,36,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.stat-card-3d:hover::before {
    left: 100%;
}

.stat-card-3d:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 20px 50px rgba(251,191,36,0.3);
}

.stat-icon-3d {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transform: translateZ(50px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

/* About Cards 3D */
.about-section-modern {
    padding: 0 0 3rem;
    margin-top: -1rem;
    background: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
}

.about-section-modern .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
    width: 100%;
    overflow: visible;
}

.about-wrapper-3d {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    perspective: 1500px;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.about-card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s;
    margin-top: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transform: none !important;
    will-change: auto;
}

.card-inner-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    transform: none !important;
    max-width: 100%;
    box-sizing: border-box;
}

.about-card-3d:hover .card-inner-3d {
    transform: none !important;
}

.card-front-3d {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, var(--primary-color), var(--accent-yellow));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transform: translateZ(0);
    transition: all 0.4s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.about-card-3d:hover .card-front-3d {
    box-shadow: 0 25px 60px rgba(251,191,36,0.25);
    transform: translateY(-5px);
}

.card-icon-3d {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-card-3d h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.about-card-3d p {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.principles-list {
    list-style: none;
    padding: 0;
}

.principles-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.principles-list li:last-child {
    border-bottom: none;
}

.principles-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.principles-list strong {
    color: var(--dark-color);
}

/* Values with Flip Cards */
.values-section-modern {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.section-title-3d {
    text-align: center;
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-black);
    color: var(--color-dark);
    margin-bottom: var(--spacing-12);
    position: relative;
    display: inline-block;
    width: 100%;
    line-height: var(--line-height-tight);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .section-title-3d {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-8);
        letter-spacing: 0.5px;
    }
}

.section-title-3d::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-yellow));
    border-radius: 2px;
}

.values-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.flip-card-3d {
    background-color: transparent;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner-3d {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card-3d:hover .flip-card-inner-3d {
    transform: rotateY(180deg);
}

/* Touch support for mobile - show both sides */
.flip-card-3d.flipped .flip-card-inner-3d {
    transform: rotateY(180deg);
}

.flip-card-front-3d,
.flip-card-back-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.flip-card-front-3d {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-yellow));
    color: white;
}

.flip-card-back-3d {
    background: white;
    color: var(--text-color);
    transform: rotateY(180deg);
    border: 3px solid var(--primary-color);
}

.flip-icon-3d {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}

.flip-card-front-3d h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 3px 10px rgba(0,0,0,0.2);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.flip-card-back-3d p {
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.flip-icon-3d {
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

/* Make card itself non-interactive for scrolling */
.flip-card-3d {
    touch-action: pan-y;
}

.flip-card-inner-3d {
    touch-action: pan-y;
}

/* Advantages Timeline */
.advantages-section-modern {
    padding: 6rem 0;
    background: white;
}

.advantages-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.advantages-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-yellow));
    border-radius: 2px;
}

.timeline-item-3d {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-extra-slow);
}

.timeline-item-3d[data-animate="true"] {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--primary-color);
    z-index: 2;
}

.timeline-content-3d {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
    transform-style: preserve-3d;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.timeline-content-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(251,191,36,0.1), transparent);
    transition: width 0.6s;
}

.timeline-content-3d:hover::before {
    width: 100%;
}

.timeline-content-3d:hover {
    transform: translateX(10px) translateZ(10px);
    box-shadow: 0 15px 40px rgba(251,191,36,0.2);
}

.timeline-icon-3d {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(251,191,36,0.3);
    animation: iconPulse 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.timeline-content-3d h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.timeline-content-3d p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

/* CTA Section */
.cta-section-3d {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.cta-section-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-card-3d {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transition: transform 0.4s;
}

.cta-card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.cta-content-3d h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content-3d p {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.cta-buttons-3d {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary-3d,
.cta-btn-secondary-3d {
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-base);
    transform-style: preserve-3d;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cta-btn-primary-3d {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-yellow));
    color: var(--dark-color);
}

.cta-btn-primary-3d:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(251,191,36,0.4);
}

.cta-btn-secondary-3d {
    background: white;
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

.cta-btn-secondary-3d:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--primary-color);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title-3d { font-size: 2.5rem; }
    .hero-subtitle-3d { font-size: 1.2rem; }
    
    /* Main Highlight Banner Mobile */
    .main-highlight-section {
        padding: 2rem 0;
    }
    
    .main-highlight-banner {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .main-highlight-icon {
        font-size: 3rem;
    }
    
    .main-highlight-text {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .main-highlight-subtitle {
        font-size: 1rem;
    }
    
    .main-highlight-decoration {
        font-size: 2rem;
    }
    
    .stats-grid-3d { grid-template-columns: 1fr; }
    .about-wrapper-3d { 
        grid-template-columns: 1fr; 
        margin-top: 0;
        width: 100%;
        max-width: 100%;
    }
    .about-card-3d {
        margin-top: 0;
        width: 100%;
        max-width: 100%;
    }
    .card-front-3d {
        width: 100%;
        max-width: 100%;
    }
    .values-grid-3d { grid-template-columns: 1fr; }
    .flip-card-3d { height: 240px; }
    .advantages-timeline { padding-left: 2rem; }
    .timeline-dot { left: -2rem; }
    .cta-content-3d h2 { font-size: 2rem; }
    .cta-buttons-3d { flex-direction: column; }
    .section-title-3d { font-size: 2rem; }
}

/* Contacts Page */
.contacts-section {
    padding: 4rem 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-block {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.contact-icon {
    font-size: 2.5rem;
    min-width: 50px;
}

.contact-block h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-block p {
    margin: 0;
    font-size: 1.1rem;
}

.contact-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-block a:hover {
    color: var(--secondary-color);
}

.contact-note {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 0.25rem;
}

.social-media {
    margin-top: 2rem;
}

.social-media h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.social-links-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.social-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.social-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--dark-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-base);
}

.submit-btn:hover {
    background: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* FAQ */
.faq-section {
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .header-actions {
        gap: 0.25rem;
    }

    .header-action-link span:not(.action-count) {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .categories-grid,
    .categories-grid-single {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card-modern h3 {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    .category-image-modern {
        height: 100px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .special-cards {
        grid-template-columns: 1fr;
    }

    .secondary-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .installment-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .social-links-large {
        grid-template-columns: 1fr;
    }
}

/* ==== Payments Modal (SBP / Card) ==== */
.payment-modal {
    max-width: 640px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.payment-header { padding: 1.25rem 1.5rem 0.75rem; }
.payment-title { margin:0; font-size:1.5rem; font-weight:800; }
.payment-subtitle { margin-top:0.25rem; color:#6b7280; }
.payment-summary {
    display:grid; grid-template-columns:repeat(3,1fr); gap:0.75rem;
    padding: 0.75rem 1.5rem 0;
}
.payment-chip { background:#f9fafb; border:2px solid var(--border-color); border-radius:12px; padding:0.75rem; text-align:center; }
.payment-chip .label { color:#6b7280; font-size:.85rem; }
.payment-chip .value { font-weight:800; font-size:1.1rem; transition: all 0.2s ease; }
.payment-methods { padding:1rem 1.5rem; display:grid; gap:0.75rem; }
.method-card { display:flex; align-items:center; gap:0.75rem; padding:1rem; border:2px solid var(--border-color); border-radius:12px; cursor:pointer; transition:.2s ease; background:#fff; }
.method-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.method-card input { accent-color: var(--primary-color); }
.method-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg, #fbbf24, #f59e0b); color:#fff; font-size:20px; }
.method-title { font-weight:700; }
.method-note { color:#6b7280; font-size:.9rem; }
.payment-footer { padding:1rem 1.5rem 1.5rem; }
.pay-btn { width:100%; padding:0.9rem 1rem; border:none; border-radius:12px; color:#111827; font-weight:800; background: linear-gradient(135deg, #fde047, #fbbf24); box-shadow: 0 10px 20px rgba(251,191,36,.25); cursor:pointer; transition:.2s ease; }
.pay-btn:hover { filter:brightness(1.02); transform: translateY(-1px); }
.method-card input[type="radio"]:checked + .method-icon { background: linear-gradient(135deg, #fbbf24, #f59e0b); transform: scale(1.1); }
.method-card input[type="radio"] { margin-right: 0; }
.method-card.active,
.method-card:has(input[type="radio"]:checked) { 
    border-color: var(--primary-color); 
    background: linear-gradient(135deg, #fef3c7, #fde68a); 
    box-shadow: 0 4px 12px rgba(251,191,36,0.2);
}
.payment-security {
    padding: 0.75rem 1.5rem;
    background: #f0fdf4;
    border-top: 2px solid #10b981;
    border-bottom: 2px solid #10b981;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #065f46;
}
.payment-security i { color: #10b981; font-size: 1rem; }
.payment-banks {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.bank-logo {
    width: 32px;
    height: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #374151;
}
.sbp-logo {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #ffffff;
    font-size: 0.65rem;
}
@keyframes slideInPayment {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.payment-modal { animation: slideInPayment 0.3s ease-out; }
.method-card { transition: all 0.2s ease; }
.method-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }

/* Mobile адаптация для модала оплаты - ПОЛНАЯ ОПТИМИЗАЦИЯ */
@media (max-width: 768px) {
    .payment-modal { 
        max-width: 100% !important; 
        margin: 0 !important; 
        border-radius: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
    }
    
    .payment-header { 
        padding: 1rem 1rem 0.75rem !important; 
        flex-shrink: 0 !important;
    }
    
    .payment-title { 
        font-size: 1.25rem !important; 
        margin-bottom: 0.25rem !important;
    }
    
    .payment-subtitle {
        font-size: 0.875rem !important;
    }
    
    .payment-summary { 
        grid-template-columns: 1fr !important; 
        gap: 0.6rem !important; 
        padding: 0.75rem 1rem !important;
        flex-shrink: 0 !important;
    }
    
    .payment-chip {
        padding: 0.75rem !important;
        border-radius: 10px !important;
    }
    
    .payment-chip .label {
        font-size: 0.8rem !important;
    }
    
    .payment-chip .value {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }
    
    .payment-methods { 
        padding: 0.75rem 1rem !important; 
        gap: 0.75rem !important;
        flex: 1 !important;
        overflow-y: auto !important;
    }
    
    .method-card { 
        padding: 0.875rem !important; 
        gap: 0.75rem !important;
        border-radius: 12px !important;
        min-height: 80px !important;
    }
    
    .method-icon { 
        width: 40px !important; 
        height: 40px !important; 
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
    }
    
    .method-title { 
        font-size: 0.9rem !important; 
        font-weight: 700 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .method-note { 
        font-size: 0.75rem !important; 
        margin-bottom: 0.5rem !important;
    }
    
    .payment-banks {
        display: flex !important;
        gap: 0.4rem !important;
        flex-wrap: wrap !important;
    }
    
    .bank-logo { 
        width: 32px !important; 
        height: 20px !important; 
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    .payment-security { 
        padding: 0.75rem 1rem !important; 
        font-size: 0.75rem !important; 
        flex-direction: column !important; 
        align-items: flex-start !important; 
        gap: 0.5rem !important;
        flex-shrink: 0 !important;
    }
    
    .payment-security i {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .payment-footer { 
        padding: 1rem !important; 
        flex-shrink: 0 !important;
        border-top: 1px solid var(--border-color) !important;
    }
    
    .pay-btn { 
        padding: 0.875rem 1.25rem !important; 
        font-size: 1rem !important; 
        min-height: 48px !important;
        width: 100% !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
    }
    
    .modal-close-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        font-size: 1.1rem !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .payment-header { 
        padding: 0.875rem 0.875rem 0.625rem !important; 
    }
    
    .payment-title { 
        font-size: 1.1rem !important; 
    }
    
    .payment-subtitle {
        font-size: 0.8rem !important;
    }
    
    .payment-summary { 
        padding: 0.625rem 0.875rem !important; 
        gap: 0.5rem !important;
    }
    
    .payment-chip {
        padding: 0.625rem 0.75rem !important;
    }
    
    .payment-chip .label {
        font-size: 0.75rem !important;
    }
    
    .payment-chip .value {
        font-size: 0.95rem !important;
    }
    
    .payment-methods { 
        padding: 0.625rem 0.875rem !important; 
        gap: 0.625rem !important;
    }
    
    .method-card { 
        padding: 0.75rem !important; 
        gap: 0.625rem !important;
        min-height: 75px !important;
    }
    
    .method-icon { 
        width: 36px !important; 
        height: 36px !important; 
        font-size: 1rem !important;
    }
    
    .method-title { 
        font-size: 0.85rem !important; 
    }
    
    .method-note { 
        font-size: 0.7rem !important; 
    }
    
    .bank-logo { 
        width: 28px !important; 
        height: 18px !important; 
        font-size: 0.65rem !important;
    }
    
    .payment-security { 
        padding: 0.625rem 0.875rem !important; 
        font-size: 0.7rem !important; 
    }
    
    .payment-footer { 
        padding: 0.875rem !important; 
    }
    
    .pay-btn { 
        padding: 0.75rem 1rem !important; 
        font-size: 0.95rem !important; 
        min-height: 44px !important;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Admin Tools Styles */
a[href$=".html"] .stat-card {
    text-decoration: none;
}

a[href$=".html"] .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color) !important;
}

a[href$=".html"]:hover h4 {
    color: var(--primary-color);
}

/* Modal Close Button */
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6b7280;
    transition: var(--transition-base);
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-close-btn:active {
    transform: rotate(90deg) scale(0.9);
}

/* Product Location Styles */
.product-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.product-location i {
    color: #059669;
}

.product-detail-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-detail-location i {
    color: #059669;
    font-size: 1.1rem;
}

.product-detail-location strong {
    color: #047857;
}

/* ========================================
   CART STYLES
   ======================================== */

/* Cart Item Container */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
    transition: background 0.2s ease;
}

.cart-item:hover {
    background: #f9fafb;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Cart Item Info */
.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Cart Item Controls */
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f3f4f6;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.cart-item-controls button {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-item-controls button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.cart-item-controls button:active {
    transform: scale(0.95);
}

.cart-item-controls span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

/* Remove Item Button */
.remove-item-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.remove-item-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.remove-item-btn:active {
    transform: scale(0.95);
}

/* Empty Cart */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #9ca3af;
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-cart p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Cart Total */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--dark-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    margin-top: 1rem;
}

.checkout-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.checkout-btn:active {
    transform: translateY(0);
}

/* Mobile Responsiveness for Cart */
@media screen and (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .cart-item img {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-info {
        flex: 1 1 calc(100% - 80px);
    }
    
    .cart-item-controls {
        flex: 1 1 auto;
    }
    
    .remove-item-btn {
        width: 32px;
        height: 32px;
    }
    
    .cart-total {
        font-size: 1rem;
    }
    
    .total-price {
        font-size: 1.2rem;
    }
    
    /* Force compact header on mobile - balanced */
    .header {
        padding: 0.5rem 0 !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    }
    
    .header-content {
        padding: 0.4rem 0 !important;
        gap: 0.5rem !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }
    
    .header-content > div:first-child {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
    }
    
    .location-badge {
        padding: 0.4rem !important;
        min-width: 34px !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }
    
    .location-badge span {
        display: none !important;
    }
    
    .logo {
        padding: 0.35rem 0.5rem !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }
    
    .logo-symbol {
        font-size: 1.3rem !important;
    }
    
    .header-search {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 140px) !important;
        margin: 0 0.4rem !important;
        display: flex !important;
        align-items: flex-start !important;
        height: 34px !important;
    }
    
    .search-input-main {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        padding: 0 0.5rem !important;
        font-size: 0.75rem !important;
        flex: 1 !important;
        min-width: 0 !important;
        border-radius: 8px 0 0 8px !important;
        border: 2px solid var(--border-color) !important;
        border-right: none !important;
        box-sizing: border-box !important;
        line-height: 30px !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        vertical-align: top !important;
        outline: none !important;
    }
    
    .search-btn {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        padding: 0 !important;
        min-width: 42px !important;
        width: 42px !important;
        flex-shrink: 0 !important;
        border-radius: 0 8px 8px 0 !important;
        background: white !important;
        border: 2px solid var(--border-color) !important;
        border-left: none !important;
        border-top: 2px solid var(--border-color) !important;
        border-bottom: 2px solid var(--border-color) !important;
        border-right: 2px solid var(--border-color) !important;
        color: var(--text-color) !important;
        box-shadow: none !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        vertical-align: top !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .search-btn:active {
        background: #f3f4f6 !important;
        color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
    }
    
    .search-btn i {
        font-size: 0.85rem !important;
        display: block !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 1em !important;
        height: 1em !important;
        text-align: center !important;
        font-style: normal !important;
        overflow: hidden !important;
    }
    
    .header-actions {
        gap: 0.25rem !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .header-action-link {
        padding: 0.3rem !important;
        min-width: 34px !important;
        min-height: 34px !important;
        flex-shrink: 0 !important;
    }
    
    .header-action-link i {
        font-size: 1rem !important;
    }
    
    /* Hero minimize - balanced */
    .hero-section-modern {
        min-height: 180px !important;
        padding: 1.5rem 0 !important;
    }
    
    .page-header-modern {
        min-height: 140px !important;
        padding: 1.5rem 0 !important;
    }
    
    .hero-title-modern,
    .page-title-modern {
        font-size: 1.4rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .hero-subtitle-modern,
    .page-subtitle-modern {
        font-size: 0.8rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .hero-stats-modern {
        display: none !important;
    }
    
    .hero-buttons-modern {
        gap: 0.5rem !important;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Products balanced compact */
    .products-grid {
        gap: 0.6rem !important;
        padding-top: 0.5rem !important;
    }
    
    .products-section {
        padding: 0.75rem 0 !important;
    }
    
    .product-image-container {
        height: 110px !important;
    }
    
    .product-image {
        height: 110px !important;
    }
    
    .product-info {
        padding: 0.6rem !important;
    }
    
    .product-category {
        font-size: 0.65rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .product-name {
        font-size: 0.75rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.3rem !important;
        height: 2.5em !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .product-description {
        font-size: 0.65rem !important;
        line-height: 1.3 !important;
        max-height: 1.56em !important;
        -webkit-line-clamp: 1 !important;
        line-clamp: 1 !important;
        margin-bottom: 0.25rem !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .product-features {
        margin-bottom: 0.25rem !important;
        gap: 0.2rem !important;
    }
    
    .product-feature {
        font-size: 0.55rem !important;
        padding: 0.1rem 0.35rem !important;
    }
    
    .product-installment {
        font-size: 0.65rem !important;
        margin-bottom: 0.35rem !important;
    }
    
    .product-footer {
        margin-top: 0.35rem !important;
    }
    
    .product-price {
        font-size: 0.9rem !important;
    }
    
    .add-to-cart-btn {
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0.3rem 0.4rem !important;
        font-size: 0.75rem !important;
    }
    
    .add-to-cart-btn i {
        font-size: 0.85rem !important;
    }
    
    .wishlist-btn {
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0.3rem 0.4rem !important;
    }
    
    .wishlist-btn i {
        font-size: 0.85rem !important;
    }
    
    .product-actions {
        gap: 0.25rem !important;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   ============================================ */

/* Touch Optimization - Minimum 44x44px for tap targets */
button, .btn, .hero-btn-primary, .hero-btn-secondary,
.cta-btn-primary-3d, .cta-btn-secondary-3d,
.header-action-link, .category-card-modern, .product-card,
.tab-btn, .location-btn, .pay-btn {
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: rgba(251, 191, 36, 0.3);
    touch-action: manipulation;
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .category-card-modern:hover,
    .product-card:hover,
    .value-card:hover,
    .advantage-item:hover,
    .contact-block-modern:hover,
    .location-card:hover,
    .stat-card-3d:hover,
    .flip-card-3d:hover .flip-card-inner-3d {
        transform: none !important;
    }
    
    /* Use active states instead */
    .category-card-modern:active,
    .product-card:active {
        transform: scale(0.98);
    }
}

/* Optimize animations for mobile performance */
@media (max-width: 768px) {
    /* Reduce complex animations on mobile */
    * {
        will-change: auto !important;
    }
    
    /* Simplify 3D transforms on mobile */
    .stat-card-3d:hover,
    .about-card-3d:hover .card-inner-3d {
        transform: none !important;
    }
    .flip-card-3d:hover .flip-card-inner-3d {
        transform: translateY(-5px) !important;
    }
    
    /* Reduce particle count for performance */
    .particle {
        display: none;
    }
    
    /* Disable heavy backdrop filters on mobile */
    .header,
    .cta-card-3d {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }
    
    /* Optimize gradient animations */
    .cta-section-3d::before {
        animation: none;
    }
    
    /* Reduce shadow complexity */
    .stat-card-3d,
    .about-card-3d .card-front-3d,
    .contact-block-modern,
    .location-card {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }
}

/* iPhone X and newer safe area support */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* ========================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   ======================================== */

/* Enhanced Mobile Styles */
@media (max-width: 480px) {
    /* Base font size adjustment */
    html {
        font-size: 14px;
    }
    
    /* Base container optimization */
    .container {
        padding: 0 1rem !important;
    }
    
    /* Header optimization */
    .header {
        padding: 0.5rem 0 !important;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 0.75rem !important;
        padding: 0.5rem 0 !important;
    }
    
    .location-badge {
        padding: 0.6rem 0.9rem !important;
        font-size: 0.85rem !important;
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    .location-badge span {
        display: none; /* Hide text, show only icon on very small screens */
    }
    
    .logo {
        padding: 0 !important;
        min-height: auto !important;
        touch-action: manipulation;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .logo .logo-svg {
        height: 50px !important;
        width: auto !important;
        max-width: 240px !important;
        min-width: 180px !important;
    }
    
    .logo-symbol {
        display: none !important;
    }
    
    .logo-line1, .logo-line2 {
        display: none !important;
    }
    
    /* Header search optimization */
    .header-search {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .search-input-main {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.7rem 1rem !important;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .search-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        touch-action: manipulation;
    }
    
    /* Header actions */
    .header-actions {
        display: flex;
        gap: 0.5rem;
    }
    
    .header-action-link {
        padding: 0.6rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 0.8rem !important;
        touch-action: manipulation;
    }
    
    .header-action-link span {
        display: none; /* Hide text on mobile */
    }
    
    .action-count {
        font-size: 0.65rem !important;
        min-width: 18px !important;
        height: 18px !important;
        padding: 0.1rem 0.35rem !important;
        border-radius: 9px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        font-weight: 700 !important;
        box-sizing: border-box !important;
    }
    
    /* Body and base text */
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }
    
    /* Hero sections optimization - ПОЛНАЯ ПЕРЕРАБОТКА */
    .hero-3d-carousel-section {
        min-height: 420px !important;
        max-height: 460px !important;
        position: relative !important;
    }
    
    .hero-3d-slide {
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
        padding: 0.75rem 0 !important;
    }
    
    .hero-content-modern {
        padding: 0.75rem 0.75rem !important;
        min-height: 280px !important;
        max-height: 320px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .hero-3d-icon-large {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-title-modern {
        font-size: 1.35rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.4rem !important;
        padding: 0 0.5rem !important;
    }
    
    .hero-subtitle-modern {
        font-size: 0.75rem !important;
        margin-bottom: 0.6rem !important;
        padding: 0 0.5rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-3d-features {
        gap: 0.4rem !important;
        margin: 0.5rem 0 0.75rem !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .hero-3d-feature-item {
        font-size: 0.7rem !important;
        padding: 0.5rem 0.75rem !important;
        gap: 0.5rem !important;
        margin-bottom: 0.3rem !important;
        border-radius: 8px !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .hero-3d-feature-item i {
        font-size: 0.85rem !important;
        min-width: 16px !important;
        width: 16px !important;
        flex-shrink: 0 !important;
    }
    
    .hero-3d-feature-item span {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        flex: 1 !important;
    }
    
    .hero-buttons-modern {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
        padding: 0 !important;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100% !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        min-height: 40px !important;
        max-height: 40px !important;
        touch-action: manipulation;
        border-radius: 8px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* ПЕРЕРАБОТКА КНОПОК НАВИГАЦИИ - красивые полупрозрачные как в основной версии */
    .hero-3d-nav-prev,
    .hero-3d-nav-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        top: auto !important;
        bottom: 0.5rem !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(10px) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 50% !important;
        color: white !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
        z-index: 10 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .hero-3d-nav-prev {
        left: 0.75rem !important;
        right: auto !important;
    }
    
    .hero-3d-nav-next {
        right: 0.75rem !important;
        left: auto !important;
    }
    
    .hero-3d-nav-btn:hover {
        background: rgba(255, 255, 255, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        transform: scale(1.1) !important;
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3) !important;
    }
    
    .hero-3d-nav-btn:active {
        transform: scale(0.95) !important;
    }
    
    .hero-3d-nav-btn i {
        font-size: 1rem !important;
        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* ПЕРЕРАБОТКА ИНДИКАТОРОВ - внизу по центру */
    .hero-3d-indicators {
        position: absolute !important;
        top: auto !important;
        bottom: 0.5rem !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        gap: 0.4rem !important;
        padding: 0.3rem 0.6rem !important;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
        z-index: 10 !important;
    }
    
    .hero-3d-indicator {
        width: 6px !important;
        height: 6px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        max-width: 6px !important;
        max-height: 6px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .hero-3d-indicator.active {
        width: 20px !important;
        max-width: 20px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 1) !important;
        border-color: rgba(255, 255, 255, 1) !important;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
        animation: none !important;
    }
    
    /* Дополнительные оптимизации для контейнера */
    .hero-3d-container {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }
    
    /* Убеждаемся, что кнопки не перекрывают контент */
    .hero-content-modern {
        padding-bottom: 3rem !important; /* Место для кнопок и индикаторов */
    }
    
    /* Оптимизация для hero-buttons-modern */
    .hero-buttons-modern {
        margin-bottom: 0 !important;
    }
    
    /* Улучшенные отступы для feature items */
    .hero-3d-feature-item:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Убеждаемся, что индикаторы не конфликтуют с кнопками */
    .hero-3d-indicators {
        margin-bottom: 0 !important;
    }
    
    /* Дополнительная оптимизация для очень маленьких экранов */
    @media (max-width: 360px) {
        .hero-3d-carousel-section {
            min-height: 400px !important;
            max-height: 440px !important;
        }
        
        .hero-3d-slide {
            height: 100% !important;
            min-height: 100% !important;
            max-height: 100% !important;
        }
        
        .hero-content-modern {
            padding: 0.6rem 0.5rem !important;
            min-height: 260px !important;
            max-height: 300px !important;
        }
        
        .hero-title-modern {
            font-size: 1.2rem !important;
        }
        
        .hero-subtitle-modern {
            font-size: 0.7rem !important;
        }
        
        .hero-3d-feature-item {
            font-size: 0.65rem !important;
            padding: 0.4rem 0.6rem !important;
            min-height: 32px !important;
        }
        
        .hero-3d-feature-item span {
            font-size: 0.65rem !important;
        }
        
        .hero-btn-primary,
        .hero-btn-secondary {
            font-size: 0.75rem !important;
            padding: 0.5rem 0.875rem !important;
            min-height: 36px !important;
            max-height: 36px !important;
        }
        
        .hero-3d-nav-prev,
        .hero-3d-nav-next {
            width: 36px !important;
            height: 36px !important;
            min-width: 36px !important;
            min-height: 36px !important;
            max-width: 36px !important;
            max-height: 36px !important;
            font-size: 0.9rem !important;
            bottom: 0.4rem !important;
        }
        
        .hero-3d-nav-btn i {
            font-size: 0.9rem !important;
        }
        
        .hero-3d-indicators {
            bottom: 0.4rem !important;
            padding: 0.25rem 0.5rem !important;
            gap: 0.3rem !important;
        }
        
        .hero-3d-indicator {
            width: 5px !important;
            height: 5px !important;
            min-width: 20px !important;
            min-height: 20px !important;
        }
        
        .hero-3d-indicator.active {
            width: 18px !important;
            max-width: 18px !important;
        }
    }
    
    /* Main highlight banner */
    .main-highlight-section {
        padding: 1.5rem 0 !important;
    }
    
    .main-highlight-banner {
        flex-direction: column;
        padding: 1.5rem 1rem !important;
        gap: 1rem !important;
    }
    
    .main-highlight-icon {
        font-size: 2.5rem !important;
        width: 60px !important;
        height: 60px !important;
    }
    
    .main-highlight-text {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    .main-highlight-subtitle {
        font-size: 0.8rem !important;
    }
    
    /* Categories optimization - ПОЛНАЯ ПЕРЕРАБОТКА */
    .categories-section {
        padding: 1.25rem 0 !important;
    }
    
    .section-title {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .categories-grid-modern {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0 !important;
    }
    
    .category-card-modern {
        min-height: 100px !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        transition: all 0.2s ease !important;
        background: white !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
    }
    
    .category-card-modern:active {
        transform: scale(0.97) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    }
    
    .category-image-modern {
        height: 65px !important;
        min-height: 65px !important;
        max-height: 65px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .category-image-modern i {
        font-size: 1.75rem !important;
        color: white !important;
        z-index: 2 !important;
        position: relative !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
    }
    
    /* Исключение для "Все категории" - там уже белая иконка */
    .all-categories-modern .category-image-modern i {
        color: white !important;
    }
    
    .category-card-modern h3 {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.4rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        text-align: center !important;
        font-weight: 600 !important;
        color: var(--text-color) !important;
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Улучшенные градиенты для категорий */
    .category-image-modern::before {
        opacity: 0.8 !important;
    }
    
    /* Отключение hover эффектов на мобильных */
    .category-card-modern::after {
        display: none !important;
    }
    
    /* Улучшение читаемости карточки "Все категории" */
    .all-categories-modern .all-cat-bg {
        background: linear-gradient(135deg, var(--primary-color) 0%, #d97706 100%) !important;
        min-height: 65px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .all-categories-modern .all-cat-bg i {
        font-size: 2rem !important;
        color: white !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    }
    
    .all-categories-modern h3 {
        background: var(--dark-color) !important;
        color: white !important;
        font-size: 0.75rem !important;
        padding: 0.6rem 0.4rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        text-align: center !important;
        font-weight: 700 !important;
        min-height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Products grid - Ultra compact */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
        padding-top: 0.5rem !important;
    }
    
    .products-section {
        padding: 1rem 0 !important;
    }
    
    .product-card {
        min-height: auto !important;
        border-radius: 10px !important;
        overflow: hidden;
    }
    
    .product-image-container {
        height: 100px !important;
        min-height: 100px !important;
    }
    
    .product-image {
        height: 100px !important;
        object-fit: cover;
    }
    
    .product-info {
        padding: 0.6rem !important;
    }
    
    .product-category {
        font-size: 0.65rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .product-name,
    .product-title {
        font-size: 0.8rem !important;
        line-height: 1.15 !important;
        margin-bottom: 0.25rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.3em;
        max-height: 2.3em;
    }
    
    .product-description {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.3rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 1.44em;
    }
    
    .product-location {
        display: none !important;
    }
    
    .product-features {
        margin-bottom: 0.25rem !important;
        gap: 0.2rem !important;
    }
    
    .product-feature {
        font-size: 0.6rem !important;
        padding: 0.1rem 0.4rem !important;
        min-width: 16px !important;
    }
    
    .product-price {
        font-size: 0.9rem !important;
        font-weight: 700;
    }
    
    .add-to-cart-btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
        touch-action: manipulation;
        border-radius: 8px !important;
    }
    
    .add-to-cart-btn i {
        font-size: 0.9rem !important;
    }
    
    /* Section titles */
    .section-title,
    .section-title-3d {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    /* Filters section - ПОЛНАЯ ПЕРЕРАБОТКА ДЛЯ МОБИЛЬНЫХ */
    .filters-section {
        padding: 0 !important;
        position: relative !important;
        top: auto !important;
        z-index: 998 !important;
        background: white !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    
    /* Кнопка открытия фильтров - работает на всех устройствах */
    @media (min-width: 769px) {
        .mobile-filters-toggle {
            display: flex !important;
            width: 100% !important;
            padding: 0.875rem 1rem !important;
            background: var(--gradient-primary-smooth) !important;
            color: var(--dark-color) !important;
            border: none !important;
            border-radius: 0 !important;
            font-size: 0.95rem !important;
            font-weight: 700 !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 0.5rem !important;
            min-height: 48px !important;
            cursor: pointer !important;
            transition: all 0.3s ease !important;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
            margin-bottom: 0 !important;
        }
        
        .mobile-filters-toggle:hover {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
            box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
        }
        
        .mobile-filters-toggle:active {
            transform: scale(0.98) !important;
            opacity: 0.9 !important;
        }
        
        .mobile-filters-toggle i:first-child {
            font-size: 1.1rem !important;
        }
        
        .mobile-filters-toggle i:last-child {
            font-size: 0.85rem !important;
            transition: transform 0.3s ease !important;
        }
        
        .mobile-filters-toggle.active i:last-child {
            transform: rotate(180deg) !important;
        }
        
        .filters {
            display: none !important;
            flex-direction: row !important;
            gap: 1.5rem !important;
            padding: 1.5rem 2rem !important;
            flex-wrap: wrap !important;
        }
        
        .filters.show,
        .filters-section.expanded .filters {
            display: flex !important;
        }
    }
    
    /* Кнопка открытия фильтров на мобильных */
    @media (max-width: 768px) {
        .mobile-filters-toggle {
            display: flex !important;
            width: 100% !important;
            padding: 0.875rem 1rem !important;
            background: var(--gradient-primary-smooth) !important;
            color: var(--dark-color) !important;
            border: none !important;
            border-radius: 0 !important;
            font-size: 0.95rem !important;
            font-weight: 700 !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 0.5rem !important;
            min-height: 48px !important;
            cursor: pointer !important;
            transition: all 0.3s ease !important;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        }
        
        .mobile-filters-toggle:active {
            transform: scale(0.98) !important;
            opacity: 0.9 !important;
        }
        
        .mobile-filters-toggle i:first-child {
            font-size: 1.1rem !important;
        }
        
        .mobile-filters-toggle i:last-child {
            font-size: 0.85rem !important;
            transition: transform 0.3s ease !important;
        }
        
        .mobile-filters-toggle.active i:last-child {
            transform: rotate(180deg) !important;
        }
        
        /* Скрытие фильтров по умолчанию на мобильных */
        .filters {
            display: none !important;
        }
        
        .filters.show,
        .filters-section.expanded .filters {
            display: flex !important;
            flex-direction: column !important;
            gap: 0.75rem !important;
            padding: 0.75rem 1rem !important;
            max-height: none !important;
            overflow: visible !important;
            background: white !important;
        }
    }
    
    .filter-group {
        width: 100% !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .filter-group label {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
        font-weight: 600 !important;
        color: var(--text-color) !important;
    }
    
    .filter-select {
        width: 100% !important;
        padding: 0.7rem 0.875rem !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        border-radius: 10px !important;
        min-height: 44px !important;
        touch-action: manipulation !important;
        border: 2px solid var(--border-color) !important;
        background: white !important;
    }
    
    /* Фильтр цен - компактный для мобильных */
    .price-filter-group {
        width: 100% !important;
    }
    
    .price-filter-label {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
        font-weight: 600 !important;
    }
    
    .price-range-container {
        width: 100% !important;
    }
    
    .price-range-wrapper {
        padding: 0.75rem 0 !important;
    }
    
    .price-range-inputs {
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .price-input-group {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .price-input {
        padding: 0.7rem 0.875rem !important;
        font-size: 16px !important;
        min-height: 44px !important;
    }
    
    .price-sliders-wrapper {
        padding: 0.5rem 0 !important;
    }
    
    .price-count-indicator {
        font-size: 0.85rem !important;
        padding-top: 0.5rem !important;
        margin-top: 0.5rem !important;
    }
    
    /* Pagination */
    .pagination-section {
        padding: 1rem 0 !important;
    }
    
    .pagination-info-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem !important;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.3rem !important;
    }
    
    .pagination button {
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 0.85rem !important;
        touch-action: manipulation;
    }
    
    /* Cart modal */
    .cart-modal {
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .cart-modal-content {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .cart-items {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1rem !important;
    }
    
    .cart-item {
        padding: 0.75rem !important;
        gap: 0.75rem !important;
    }
    
    .cart-item-image {
        width: 60px !important;
        height: 60px !important;
        border-radius: 8px !important;
    }
    
    .cart-item-name {
        font-size: 0.85rem !important;
    }
    
    .cart-item-price {
        font-size: 0.9rem !important;
    }
    
    .remove-btn,
    .quantity-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        touch-action: manipulation;
    }
    
    .cart-footer {
        padding: 1rem !important;
    }
    
    .cart-total {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .checkout-btn {
        width: 100%;
        padding: 1rem !important;
        font-size: 1rem !important;
        min-height: 50px;
        touch-action: manipulation;
    }
    
    /* Product modal */
    .product-modal {
        max-width: 100% !important;
        margin: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
    
    .product-detail-grid {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .product-detail-image {
        width: 100%;
        max-height: 250px;
        object-fit: cover;
        border-radius: 12px;
    }
    
    .product-detail-info h2 {
        font-size: 1.3rem !important;
    }
    
    .product-detail-price {
        font-size: 1.5rem !important;
    }
    
    .add-to-cart-btn-large {
        width: 100%;
        padding: 1rem !important;
        font-size: 1rem !important;
        min-height: 50px;
        touch-action: manipulation;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-section ul li {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Chat support button - ОПТИМИЗАЦИЯ ДЛЯ МОБИЛЬНЫХ */
    .chat-support-button {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.25rem !important;
        bottom: 0.75rem !important;
        right: 0.75rem !important;
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4) !important;
    }
    
    .chat-support-button.has-unread::after {
        width: 10px !important;
        height: 10px !important;
        top: -2px !important;
        right: -2px !important;
    }
    
    .chat-support-modal {
        width: 100% !important;
        height: 100vh !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
    }
    
    .chat-support-header {
        padding: 0.875rem 1rem !important;
    }
    
    .chat-support-header h3 {
        font-size: 1rem !important;
    }
    
    .chat-support-close {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
    
    .chat-support-messages {
        max-height: calc(100vh - 180px) !important;
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .chat-message {
        padding: 0.6rem 0.75rem !important;
        margin-bottom: 0.5rem !important;
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        max-width: 85% !important;
    }
    
    .chat-message-time {
        font-size: 0.7rem !important;
        margin-top: 0.25rem !important;
    }
    
    .chat-support-input-group {
        padding: 0.75rem 1rem !important;
    }
    
    .chat-support-input {
        font-size: 16px !important;
        padding: 0.65rem 0.875rem !important;
        min-height: 44px !important;
        border-radius: 10px !important;
        font-size: 0.9rem !important;
    }
    
    .chat-input-row {
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
    }
    
    .chat-support-send {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0.65rem 1rem !important;
        font-size: 0.85rem !important;
        border-radius: 10px !important;
        touch-action: manipulation !important;
    }
    
    .chat-send-text {
        display: none !important;
    }
    
    .chat-support-input[name="userName"],
    .chat-support-input[name="userPhone"] {
        font-size: 16px !important;
        padding: 0.65rem 0.875rem !important;
        min-height: 44px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .chat-support-error,
    .chat-support-success {
        padding: 0.6rem 0.875rem !important;
        font-size: 0.8rem !important;
        margin-top: 0.5rem !important;
    }
    
    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.75rem !important;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .auth-btn {
        width: 100%;
        padding: 1rem !important;
        font-size: 1rem !important;
        min-height: 50px;
        touch-action: manipulation;
    }
    
    /* Buttons - universal touch targets */
    button,
    .btn,
    a.btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(251, 191, 36, 0.3);
    }
    
    /* Disable hover effects on touch devices */
    @media (hover: none) and (pointer: coarse) {
        .product-card:hover,
        .category-card-modern:hover {
            transform: none !important;
        }
    }
    
    /* Performance optimizations */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Reduce animations for better performance */
    @media (prefers-reduced-motion: no-preference) {
        * {
            animation-duration: 0.3s !important;
            transition-duration: 0.3s !important;
        }
    }
    
    /* Hide decorative elements on mobile */
    .particle {
        display: none !important;
    }
    
    /* Optimize images */
    img {
        image-rendering: -webkit-optimize-contrast;
        max-width: 100%;
        height: auto;
    }
}

/* Tablet optimization (768px) */
@media (max-width: 768px) {
    /* Header improvements */
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        margin-top: 0.75rem;
    }
    
    /* Hero carousel tablet */
    .hero-3d-carousel-section {
        min-height: 400px !important;
        max-height: 460px !important;
    }
    
    .hero-content-modern {
        padding: 1.75rem 1.5rem !important;
        min-height: 350px !important;
    }
    
    /* Products grid tablet */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Filters tablet */
    .filters {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .filter-group {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 150px;
    }
    
    /* Modals tablet */
    .modal-content {
        width: 90%;
        max-width: 600px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section-modern,
    .page-header-modern {
        min-height: 280px;
        padding: 2rem 0;
    }
    
    .hero-title-modern,
    .page-title-modern {
        font-size: 2.5rem !important;
    }
    
    .hero-stats-modern {
        gap: 3rem;
        margin-bottom: 1.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image,
    .category-image-modern {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .particle {
        display: none;
    }
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme for now, but ready for dark mode */
}

/* Button Styles for new pages */
.primary-btn-large,
.secondary-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

.primary-btn-large {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.primary-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.secondary-btn-large {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--dark-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn-large:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .primary-btn-large,
    .secondary-btn-large {
        padding: 1rem 2rem !important;
        font-size: 1.1rem !important;
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
    }
}

/* Enhanced Careers Page Styles */
.careers-stats-3d {
    margin-bottom: 4rem;
    text-align: center;
}

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

.stat-card-3d-careers {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.12);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    will-change: transform;
}

.stat-card-3d-careers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.stat-card-3d-careers:hover::before {
    transform: scaleX(1);
}

.stat-card-3d-careers:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.25), 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.stat-icon-3d-careers {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    animation: iconPulse 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.stat-number-careers {
    font-size: 3.2rem;
    font-weight: 900;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #3b82f6, #2563eb, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label-careers {
    font-size: 1.15rem;
    color: #6b7280;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Salary Table */
.salary-comparison-section {
    margin: 4rem 0;
    text-align: center;
}

.salary-table-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    overflow-x: auto;
}

.salary-table-3d {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
}

.salary-table-3d thead {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.salary-table-3d th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.salary-table-3d th:first-child {
    border-top-left-radius: 12px;
}

.salary-table-3d th:last-child {
    border-top-right-radius: 12px;
}

.salary-table-3d tbody tr {
    background: white;
    transition: var(--transition-base);
}

.salary-table-3d tbody tr:nth-child(even) {
    background: #f9fafb;
}

.salary-table-3d tbody tr:hover {
    background: #eff6ff;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.salary-table-3d td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-color);
}

.salary-table-3d td strong {
    color: var(--dark-color);
}

/* Career Path */
.career-growth-section {
    margin: 4rem 0;
    text-align: center;
}

.career-path-3d {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.career-step {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.12);
    width: 100%;
    max-width: 400px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(59, 130, 246, 0.1);
    transform: translateY(0);
    will-change: transform;
}

.career-step:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.25), 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.career-step-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    animation: iconFloat 3s ease-in-out infinite;
    position: relative;
}

.career-step-icon i {
    display: block;
    z-index: 1;
    position: relative;
}

.career-step h4 {
    font-size: 1.85rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.01em;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.career-step p {
    color: #6b7280;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.career-arrow {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.career-step:last-child .career-arrow {
    display: none;
}

/* Position Card Base */
.position-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.12);
    border: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(0);
    will-change: transform;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
}

.position-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.position-type {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #3b82f6;
}

.position-details {
    color: #4b5563;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.8;
}

.position-details p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 1.5rem 0 0.75rem 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.position-details ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.5rem 0;
}

.position-details li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.position-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Position Card 3D */
.position-card-3d {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    transform: translateY(0);
    will-change: transform;
}

.position-card-3d:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 45px rgba(59, 130, 246, 0.2), 0 0 0 2px rgba(59, 130, 246, 0.1);
    border-left-width: 5px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

/* Enhanced Promotions Styles */
.promotion-card-3d {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.promotion-card-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.promotion-card-3d:hover::before {
    opacity: 1;
}

.promotion-card-3d:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 30px 70px rgba(239, 68, 68, 0.3);
}

.promotion-icon-3d {
    animation: iconPulse 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: all 0.4s;
}

.promotion-card-3d:hover .promotion-icon-3d {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4);
}

/* Section Title 3D */
.section-title-3d {
    font-size: 3.2rem;
    font-weight: 900;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
    color: var(--dark-color);
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 50%, #1e293b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes successIconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.section-title-3d::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 2px;
}

/* Mobile Responsive for Careers */
@media (max-width: 768px) {
    .stats-grid-3d-careers {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stat-card-3d-careers {
        padding: 1.5rem 1rem !important;
    }
    
    .stat-icon-3d-careers {
        width: 70px !important;
        height: 70px !important;
        font-size: 2.5rem !important;
    }
    
    .stat-number-careers {
        font-size: 2rem !important;
    }
    
    .salary-table-wrapper {
        padding: 1rem !important;
    }
    
    .salary-table-3d th,
    .salary-table-3d td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .career-path-3d {
        gap: 3rem !important;
    }
    
    .career-step {
        padding: 2rem 1.5rem !important;
    }
    
    .career-step-icon {
        width: 80px !important;
        height: 80px !important;
        font-size: 2.5rem !important;
    }
    
    .section-title-3d {
        font-size: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .open-positions {
        margin: 4rem 0;
    }
    
    .position-card {
        padding: 2rem 1.5rem !important;
    }
    
    .position-header h3 {
        font-size: 1.5rem !important;
    }
    
    .position-details {
        font-size: 0.95rem !important;
    }
}

/* Careers Form Styles (using credit.css base) */
.careers-section {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group-3d {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group-3d.full-width {
    grid-column: 1 / -1;
}

.form-group-3d label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-group-3d label i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.form-group-3d input,
.form-group-3d textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: var(--transition-base);
    background: white;
    color: var(--text-color);
}

.form-group-3d input:focus,
.form-group-3d textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.form-group-3d input.error,
.form-group-3d textarea.error {
    border-color: #ef4444;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.input-hint {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-submit-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.careers-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4),
                0 0 0 0 rgba(59, 130, 246, 0.7),
                inset 0 0 60px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    animation: submitBtnGlow 3s ease-in-out infinite;
}

@keyframes submitBtnGlow {
    0%, 100% {
        background-position: 0% center;
        box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4),
                    0 0 0 0 rgba(59, 130, 246, 0.7),
                    inset 0 0 60px rgba(255, 255, 255, 0.1);
    }
    50% {
        background-position: 100% center;
        box-shadow: 0 15px 50px rgba(59, 130, 246, 0.6),
                    0 0 0 4px rgba(59, 130, 246, 0.5),
                    inset 0 0 80px rgba(255, 255, 255, 0.15);
    }
}

.careers-submit-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: submitBtnShine 3s infinite;
}

@keyframes submitBtnShine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

.careers-submit-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8, #3b82f6);
    background-size: 300% 300%;
    z-index: -1;
    animation: submitBtnRotate 3s linear infinite;
    filter: blur(12px);
    opacity: 0.5;
}

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

.careers-submit-btn:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.6),
                0 0 0 8px rgba(59, 130, 246, 0.3),
                inset 0 0 100px rgba(255, 255, 255, 0.2);
    animation: submitBtnHover 0.6s ease-in-out infinite;
}

@keyframes submitBtnHover {
    0%, 100% {
        transform: translateY(-8px) scale(1.08);
    }
    50% {
        transform: translateY(-12px) scale(1.1);
    }
}

.careers-submit-btn:active {
    transform: translateY(-4px) scale(1.05);
}

.careers-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.careers-submit-btn i {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    animation: submitIconPulse 2s ease-in-out infinite;
}

@keyframes submitIconPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(10deg); }
}

.careers-submit-btn span {
    position: relative;
    z-index: 1;
}

.required {
    color: #ef4444;
}

/* Success Modal for Careers */
.career-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.career-success-modal.active {
    display: flex;
    opacity: 1;
}

.career-success-modal .success-modal-content {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.career-success-modal .success-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.career-success-modal .success-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 4rem;
    color: white;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    animation: successIconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.career-success-modal .success-modal-content h2 {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.career-success-modal .success-modal-content p {
    font-size: 1.1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.career-success-modal .success-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.career-success-modal .success-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Careers Page Enhanced Styles */

/* Why Work With Us - Benefits Grid */
.careers-intro {
    margin: 5rem 0;
}

.careers-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
}

.benefit-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.12);
    border: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    will-change: transform;
}

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

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

.benefit-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 60px rgba(59, 130, 246, 0.25),
                0 0 0 4px rgba(59, 130, 246, 0.1),
                0 0 40px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.benefit-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3.5rem;
    color: white;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4),
                0 0 30px rgba(59, 130, 246, 0.5);
    position: relative;
    animation: benefitIconGlow 3s ease-in-out infinite;
}

@keyframes benefitIconGlow {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4),
                    0 0 30px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 20px 50px rgba(59, 130, 246, 0.6),
                    0 0 50px rgba(59, 130, 246, 0.7);
    }
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.15) rotate(5deg);
    animation: benefitIconPulse 0.6s ease-in-out;
}

@keyframes benefitIconPulse {
    0%, 100% { transform: scale(1.15) rotate(5deg); }
    50% { transform: scale(1.25) rotate(10deg); }
}

.benefit-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-color);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.benefit-card p {
    font-size: 1.05rem;
    color: #6b7280;
    line-height: 1.7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Working Conditions Grid */
.working-conditions {
    margin: 5rem 0;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.working-conditions::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: conditionGlow 6s ease-in-out infinite;
}

@keyframes conditionGlow {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.condition-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8faf9 100%);
    border-radius: 32px;
    padding: 3.5rem 3rem;
    text-align: center;
    border: 2px solid rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: visible;
    transform: perspective(1500px) rotateX(2deg) rotateY(-1deg) translateZ(0);
    transform-style: preserve-3d;
    max-width: 100%;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Subtle shadow */
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Minimalistic glow behind card on hover */
.condition-item::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.3));
    z-index: -1;
    opacity: 0;
    filter: blur(16px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(-30px);
    pointer-events: none;
}

.condition-item:hover::before {
    opacity: 1;
}

/* Subtle depth effect */
.condition-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: 
        radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.condition-item:hover::after {
    opacity: 1;
}

.condition-item:hover {
    transform: perspective(1500px) rotateX(1deg) rotateY(-0.5deg) translateZ(10px) translateY(-5px);
}

/* 3D Icon - minimal glow */
.condition-item i {
    font-size: 4.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 3;
    display: block;
    margin-bottom: 2rem;
    transform: translateZ(30px);
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.2));
    transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.condition-item:hover i {
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.3));
}

.condition-item h4 {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 3;
    letter-spacing: -0.01em;
    transform: translateZ(20px);
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.condition-item:hover h4 {
    color: #10b981;
}

.condition-item p {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 3;
    font-weight: 600;
    transform: translateZ(10px);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

/* Contact Card Enhanced */
.careers-contact {
    margin: 5rem 0;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(251, 146, 60, 0.08) 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.careers-contact::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: contactGlow 8s ease-in-out infinite;
}

.careers-contact::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: contactGlow2 6s ease-in-out infinite;
}

@keyframes contactGlow {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.9; }
}

@keyframes contactGlow2 {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(-180deg); opacity: 0.8; }
}

.contact-card-careers {
    background: white;
    border-radius: 30px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 25px 70px rgba(239, 68, 68, 0.2);
    border: 3px solid rgba(239, 68, 68, 0.2);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card-careers:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 90px rgba(239, 68, 68, 0.3),
                0 0 0 5px rgba(239, 68, 68, 0.1),
                0 0 60px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.4);
}

.contact-icon-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    font-size: 5rem;
    color: white;
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.5),
                0 0 0 10px rgba(239, 68, 68, 0.1),
                0 0 80px rgba(239, 68, 68, 0.6);
    animation: contactIconGlow 3s ease-in-out infinite;
    position: relative;
}

.contact-icon-large::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #f97316, #ef4444);
    background-size: 200% 200%;
    z-index: -1;
    animation: contactIconRotate 4s linear infinite;
    filter: blur(20px);
    opacity: 0.6;
}

@keyframes contactIconRotate {
    0% { background-position: 0% 50%; transform: rotate(0deg); }
    100% { background-position: 100% 50%; transform: rotate(360deg); }
}

@keyframes contactIconGlow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(239, 68, 68, 0.5),
                    0 0 0 10px rgba(239, 68, 68, 0.1),
                    0 0 80px rgba(239, 68, 68, 0.6);
    }
    50% {
        box-shadow: 0 25px 70px rgba(239, 68, 68, 0.7),
                    0 0 0 15px rgba(239, 68, 68, 0.2),
                    0 0 100px rgba(239, 68, 68, 0.8);
    }
}

.contact-card-careers h3 {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-card-careers p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.contact-phone-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ef4444;
    text-decoration: none;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(251, 146, 60, 0.1));
    border-radius: 20px;
    border: 3px solid rgba(239, 68, 68, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

.contact-phone-large:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4),
                0 0 30px rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(251, 146, 60, 0.15));
}

.contact-phone-large i {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.4));
}

.contact-hours {
    font-size: 1.1rem;
    color: #6b7280;
    margin-top: 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Smooth hover transitions for position cards and salary table */
.position-card-3d {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.position-card-3d:hover {
    transform: translateY(-5px) scale(1.01) !important;
}

.salary-table-wrapper {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.salary-table-3d tbody tr {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.salary-table-3d tbody tr:hover {
    transform: scale(1.01) !important;
}

/* Glow effects on various elements */
.section-title-3d {
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.stat-icon-3d-careers {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.career-step-icon {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.position-header h3 {
    filter: drop-shadow(0 2px 10px rgba(59, 130, 246, 0.2));
}

/* Fix conditions grid overflow */
.conditions-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
}

.condition-item {
    max-width: 100%;
    box-sizing: border-box;
}

/* HH.ru Coming Soon Modal */
.hh-coming-soon-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.hh-coming-soon-modal.active {
    opacity: 1;
}

.hh-notification-content {
    background: white;
    border-radius: 30px;
    padding: 4rem 3rem;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(255, 77, 77, 0.4);
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 4px solid rgba(255, 77, 77, 0.2);
    overflow: hidden;
}

.hh-coming-soon-modal.active .hh-notification-content {
    transform: scale(1) translateY(0);
}

.hh-notification-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ff4d4d, #ff3333, #dc2626, #ff4d4d);
    background-size: 200% 100%;
    animation: hhNotificationBar 2s linear infinite;
}

@keyframes hhNotificationBar {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.hh-notification-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4d4d, #ff3333);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 5rem;
    color: white;
    box-shadow: 0 20px 60px rgba(255, 77, 77, 0.5);
    position: relative;
    animation: hhIconRotate 3s ease-in-out infinite;
}

@keyframes hhIconRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.05); }
}

.hh-pulse-ring {
    position: absolute;
    inset: -20px;
    border: 3px solid #ff4d4d;
    border-radius: 50%;
    opacity: 0;
    animation: hhPulseRing 2s ease-out infinite;
}

.hh-pulse-ring:nth-child(2) {
    animation-delay: 0.5s;
}

.hh-pulse-ring:nth-child(3) {
    animation-delay: 1s;
}

@keyframes hhPulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.hh-notification-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #ff4d4d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hh-notification-content p {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 1rem;
}

.hh-notification-content p strong {
    color: #ff4d4d;
    font-weight: 800;
}

.hh-notification-subtext {
    font-size: 1.1rem !important;
    color: #9ca3af !important;
    margin-top: 1.5rem !important;
}

.hh-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ff4d4d;
    text-decoration: none;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.1), rgba(255, 51, 51, 0.1));
    border-radius: 16px;
    border: 3px solid rgba(255, 77, 77, 0.3);
    margin: 2rem 0;
    transition: all 0.4s;
    box-shadow: 0 8px 25px rgba(255, 77, 77, 0.2);
}

.hh-phone-link:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 77, 77, 0.4);
    border-color: rgba(255, 77, 77, 0.5);
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.15), rgba(255, 51, 51, 0.15));
}

.hh-phone-link i {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(255, 77, 77, 0.4));
}

.hh-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hh-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg) scale(1.1);
}

/* HH.ru Links Section */
.hh-links-section {
    margin: 5rem 0;
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.08) 0%, rgba(251, 146, 60, 0.08) 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.hh-links-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.1) 0%, transparent 70%);
    animation: hhSectionGlow 4s ease-in-out infinite;
}

@keyframes hhSectionGlow {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.5; }
    50% { transform: rotate(180deg) scale(1.1); opacity: 0.8; }
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.hh-buttons-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hh-btn {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4d4d 0%, #ff3333 50%, #dc2626 100%);
    border: 4px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(255, 77, 77, 0.4), 
                0 0 0 0 rgba(255, 77, 77, 0.7),
                inset 0 0 60px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hh-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: hhBtnShine 3s infinite;
}

@keyframes hhBtnShine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

.hh-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4d4d, #ff3333, #dc2626, #ff4d4d);
    background-size: 300% 300%;
    z-index: -1;
    animation: hhBtnRotate 3s linear infinite;
    filter: blur(10px);
    opacity: 0.6;
}

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

.hh-btn:hover {
    transform: scale(1.15) translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 77, 77, 0.6),
                0 0 0 8px rgba(255, 77, 77, 0.3),
                inset 0 0 80px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hh-btn:active {
    transform: scale(1.05) translateY(-5px);
}

.hh-btn i {
    font-size: 3.5rem;
    color: white;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    z-index: 1;
    animation: hhIconPulse 2s ease-in-out infinite;
}

@keyframes hhIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hh-btn span {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
    text-align: center;
    line-height: 1.2;
}

.hh-btn small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-top: 0.25rem;
    z-index: 1;
    backdrop-filter: blur(10px);
}

/* Mobile Responsive for new styles */
@media (max-width: 768px) {
    .hh-btn {
        width: 140px !important;
        height: 140px !important;
    }
    
    .hh-btn i {
        font-size: 2.5rem !important;
    }
    
    .hh-btn span {
        font-size: 0.85rem !important;
    }
    
    .contact-icon-large {
        width: 140px !important;
        height: 140px !important;
        font-size: 4rem !important;
    }
    
    .contact-card-careers {
        padding: 2.5rem 2rem !important;
    }
    
    .contact-card-careers h3 {
        font-size: 2rem !important;
    }
    
    .contact-phone-large {
        font-size: 1.5rem !important;
        padding: 1.25rem 2rem !important;
    }
    
    .benefit-icon,
    .condition-item i {
        width: 100px !important;
        height: 100px !important;
        font-size: 3rem !important;
    }
    
    .careers-benefits-grid,
    .conditions-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .header-actions,
    button,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Chat Support Widget */
.chat-support-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary-smooth);
    border-radius: 50%;
    border: none;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    font-size: 1.5rem;
    transition: var(--transition-base);
    animation: chatButtonPulse 3s ease-in-out infinite;
}

.chat-support-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chat-support-button.has-unread::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    border: 3px solid white;
    animation: chatNotificationPulse 2s ease-in-out infinite;
}

@keyframes chatButtonPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 12px 32px rgba(251, 191, 36, 0.6), 0 6px 16px rgba(0, 0, 0, 0.2);
    }
}

@keyframes chatNotificationPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.chat-support-modal {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    height: 600px;
    max-height: calc(100vh - 140px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    flex-direction: column;
    overflow: hidden;
    animation: chatModalSlideIn 0.3s ease-out;
}

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

.chat-support-header {
    background: var(--gradient-primary-smooth);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-support-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-support-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    transition: var(--transition-base);
}

.chat-support-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.chat-support-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f9fafb;
}

.chat-empty {
    text-align: center;
    color: var(--text-lighter);
    padding: 3rem 1rem;
    font-size: 0.95rem;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-message.user-message {
    align-items: flex-end;
}

.chat-message.admin-response {
    align-items: flex-start;
    margin-top: 0.5rem;
}

.chat-message-content {
    max-width: 75%;
    padding: 0.875rem 1rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-message.user-message .chat-message-content {
    background: var(--gradient-primary-smooth);
    border-bottom-right-radius: 4px;
}

.chat-message.admin-response .chat-message-content {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-bottom-left-radius: 4px;
}

.chat-message-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-message-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    word-wrap: break-word;
}

.chat-message-time {
    font-size: 0.75rem;
    color: var(--text-lighter);
    margin-top: 0.5rem;
}

.chat-message-status {
    font-size: 0.75rem;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.chat-support-input-group {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-input-row {
    display: flex;
    gap: 0.75rem;
}

.chat-support-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    resize: none;
    transition: var(--transition-base);
    min-height: 44px;
}

.chat-support-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.chat-support-send {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary-smooth);
    border: none;
    border-radius: 12px;
    color: var(--dark-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.chat-support-send:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.chat-support-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-support-error,
.chat-support-success {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.chat-support-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.chat-support-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.chat-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: var(--transition-base);
}

.chat-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.chat-notification i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Mobile styles for chat */
@media (max-width: 768px) {
    .chat-support-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        font-size: 1.25rem;
    }
    
    .chat-support-modal {
        bottom: 80px;
        right: 20px;
        left: 20px;
        width: auto;
        height: calc(100vh - 100px);
        max-height: calc(100vh - 100px);
    }
}

/* Admin Support Messages Styles */
.support-message-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-base);
}

.support-message-card.status-new {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
}

.support-message-card.status-read {
    border-color: #3b82f6;
}

.support-message-card.status-answered {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.admin-badge {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Support Conversation Styles */
.support-conversation-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.support-conversation-card.has-unread {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
}

.conversation-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conversation-message {
    padding: 0.5rem 0;
}

.conversation-message.unread {
    background: #fef2f2;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.chat-message-item {
    animation: fadeIn 0.3s ease-out;
}

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

.message-admin {
    justify-content: flex-end;
}

.message-user {
    justify-content: flex-start;
}

.conversation-chat {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

.conversation-chat::-webkit-scrollbar {
    width: 8px;
}

.conversation-chat::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 4px;
}

.conversation-chat::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.conversation-chat::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ========================================
   Order Confirmation Modal with Confetti
   ======================================== */

.order-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    animation: fadeInOverlay 0.3s ease-out;
    overflow: hidden;
}

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

.order-confirmation-modal {
    position: relative;
    max-width: 540px;
    width: 90%;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.confirmation-icon-wrapper {
    position: relative;
    margin: 0 auto 2rem;
    width: 120px;
    height: 120px;
    z-index: 10;
}

.confirmation-icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    position: relative;
    z-index: 12;
}

@keyframes iconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(16, 185, 129, 0.3);
    animation: ringPulse 2s ease-out infinite;
    z-index: 11;
}

.confirmation-rings::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.2);
    animation: ringPulse 2s ease-out infinite 0.5s;
}

@keyframes ringPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.confirmation-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    z-index: 10;
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

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

.confirmation-message {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    z-index: 10;
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.confirmation-message strong {
    color: #111827;
    font-weight: 700;
}

.confirmation-submessage {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
    z-index: 10;
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.confirmation-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    z-index: 10;
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.confirmation-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    font-size: 0.95rem;
    color: #374151;
    transition: all 0.3s ease;
}

.confirmation-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.confirmation-feature i {
    font-size: 1.25rem;
    color: #f59e0b;
    width: 24px;
    text-align: center;
}

.confirmation-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 10;
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.confirmation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.confirmation-btn:active {
    transform: translateY(0);
}

.confirmation-btn i {
    font-size: 1.25rem;
}

/* Mobile адаптация */
@media (max-width: 768px) {
    .order-confirmation-modal {
        padding: 2.5rem 1.75rem 2rem;
        max-width: 95%;
    }
    
    .confirmation-icon-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }
    
    .confirmation-icon-circle {
        width: 100px;
        height: 100px;
        font-size: 3.5rem;
    }
    
    .confirmation-title {
        font-size: 1.75rem;
    }
    
    .confirmation-message {
        font-size: 1rem;
    }
    
    .confirmation-submessage {
        font-size: 0.9rem;
    }
    
    .confirmation-feature {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .confirmation-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .order-confirmation-modal {
        padding: 2rem 1.5rem 1.75rem;
    }
    
    .confirmation-icon-wrapper {
        width: 90px;
        height: 90px;
        margin-bottom: 1.25rem;
    }
    
    .confirmation-icon-circle {
        width: 90px;
        height: 90px;
        font-size: 3rem;
    }
    
    .confirmation-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .confirmation-message {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .confirmation-submessage {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .confirmation-features {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .confirmation-feature {
        padding: 0.65rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .confirmation-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ МОБИЛЬНЫЕ ОПТИМИЗАЦИИ
   ======================================== */

/* Оптимизация для очень маленьких экранов */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 0.75rem !important;
    }
    
    .header {
        padding: 0.4rem 0 !important;
    }
    
    .logo-text {
        display: none !important;
    }
    
    .logo-symbol {
        font-size: 1.5rem !important;
    }
    
    .hero-title-modern {
        font-size: 1.5rem !important;
    }
    
    .products-grid {
        gap: 0.5rem !important;
    }
    
    .product-image-container {
        height: 90px !important;
    }
    
    .product-name {
        font-size: 0.75rem !important;
    }
    
    .section-title {
        font-size: 1.2rem !important;
    }
}

/* Дополнительные оптимизации для мобильных (480px) */
@media (max-width: 480px) {
    /* Улучшенная навигация */
    .header-content {
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }
    
    .location-badge {
        padding: 0.4rem !important;
        font-size: 0 !important;
        min-width: 34px !important;
        width: 34px !important;
        height: 34px !important;
    }
    
    .logo {
        padding: 0 !important;
        gap: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .logo .logo-svg {
        height: 45px !important;
        width: auto !important;
        max-width: 200px !important;
        min-width: 160px !important;
    }
    
    .logo-text {
        display: none !important;
    }
    
    .header-search {
        order: 0 !important;
        width: auto !important;
        flex: 1 !important;
        margin: 0 0.4rem !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .search-input-main {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .search-btn {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 0.75rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        border-radius: 0 8px 8px 0 !important;
    }
    
    .search-btn i {
        font-size: 0.9rem !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Улучшенные карточки товаров */
    .product-card {
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }
    
    .product-card:active {
        transform: scale(0.98) !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    }
    
    /* Дополнительная оптимизация категорий для очень маленьких экранов */
    @media (max-width: 360px) {
        .categories-grid-modern {
            gap: 0.4rem !important;
        }
        
        .category-card-modern {
            min-height: 90px !important;
            border-radius: 10px !important;
        }
        
        .category-image-modern {
            height: 55px !important;
            min-height: 55px !important;
            max-height: 55px !important;
        }
        
        .category-image-modern i {
            font-size: 1.5rem !important;
            color: white !important;
        }
        
        .category-card-modern h3 {
            font-size: 0.7rem !important;
            padding: 0.4rem 0.3rem !important;
            line-height: 1.25 !important;
        }
        
        /* Улучшение "Все категории" для очень маленьких экранов */
        .all-categories-modern .all-cat-bg i {
            font-size: 1.75rem !important;
        }
        
        .all-categories-modern h3 {
            font-size: 0.7rem !important;
            padding: 0.5rem 0.3rem !important;
        }
    }
    
    /* Улучшенные модальные окна */
    .modal {
        padding: 0.5rem !important;
    }
    
    .modal-content {
        padding: 1.25rem 1rem !important;
        max-height: 95vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .modal-header {
        padding: 1rem 0 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .modal-header h2 {
        font-size: 1.25rem !important;
    }
    
    .close-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 1.1rem !important;
    }
    
    /* Улучшенные формы */
    .form-group {
        margin-bottom: 1.25rem !important;
    }
    
    .form-group label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .form-input-valuation,
    .form-textarea-valuation {
        font-size: 16px !important;
        padding: 0.875rem !important;
        border-radius: 10px !important;
        border-width: 2px !important;
    }
    
    .valuation-submit-btn {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        min-height: 50px !important;
        font-weight: 600 !important;
    }
    
    /* Улучшенные кнопки */
    .btn-primary,
    .btn-secondary,
    button[type="submit"] {
        width: 100% !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-height: 48px !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
    }
    
    /* Улучшенный футер */
    .footer {
        padding: 2.5rem 0 1.5rem !important;
    }
    
    .footer-content {
        gap: 2.5rem !important;
    }
    
    .footer-section {
        margin-bottom: 1.5rem !important;
    }
    
    .footer-logo {
        margin-bottom: 1rem !important;
    }
    
    /* Улучшенные секции */
    .hero-section-modern,
    .page-header-modern {
        padding: 2rem 0 !important;
        min-height: auto !important;
    }
    
    .page-title-modern {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    /* Улучшенные карточки about */
    .about-card-3d {
        margin-bottom: 1.5rem !important;
        padding: 1.5rem 1.25rem !important;
    }
    
    .about-card-3d h3 {
        font-size: 1.3rem !important;
    }
    
    .about-card-3d p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    /* Улучшенная статистика */
    .stats-section {
        padding: 2.5rem 0 !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stat-card {
        padding: 1.25rem 1rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.85rem !important;
    }
    
    /* Улучшенные табы */
    .products-tabs {
        gap: 0.5rem !important;
        padding: 0 0.5rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    
    .products-tabs::-webkit-scrollbar {
        display: none !important;
    }
    
    .tab-btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
        min-height: 44px !important;
    }
    
    /* Улучшенные карточки careers */
    .position-card {
        padding: 1.5rem 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .position-header h3 {
        font-size: 1.4rem !important;
    }
    
    .position-details {
        font-size: 0.9rem !important;
    }
    
    /* Улучшенные фильтры цен */
    .price-range-wrapper {
        padding: 1rem 0.75rem !important;
    }
    
    .price-range-inputs {
        gap: 0.75rem !important;
    }
    
    .price-input {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Улучшенные уведомления */
    .notification {
        font-size: 0.9rem !important;
        padding: 1rem 1.25rem !important;
        max-width: 90% !important;
        left: 5% !important;
        right: 5% !important;
    }
    
    /* Улучшенная пагинация */
    .pagination-info {
        font-size: 0.85rem !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .items-per-page-selector {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    /* Улучшенные иконки */
    .hero-3d-icon-large {
        width: 70px !important;
        height: 70px !important;
        font-size: 2rem !important;
    }
    
    /* Улучшенные кнопки hero */
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
    }
    
    /* Улучшенные feature items */
    .hero-3d-feature-item {
        padding: 0.75rem 1rem !important;
        border-radius: 10px !important;
        margin-bottom: 0.6rem !important;
    }
    
    /* Улучшенные навигационные кнопки карусели */
    .hero-3d-nav-prev,
    .hero-3d-nav-next {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    /* Улучшенные индикаторы */
    .hero-3d-indicators {
        background: rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 20px !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    /* Улучшенные баннеры */
    .main-highlight-banner {
        border-radius: 12px !important;
    }
    
    /* Улучшенные карточки промо */
    .promotion-card-3d {
        padding: 1.5rem 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Оптимизация скролла */
    * {
        scroll-behavior: smooth !important;
    }
    
    /* Улучшенная производительность */
    .product-card,
    .category-card-modern,
    .about-card-3d,
    .position-card {
        will-change: transform !important;
        transform: translateZ(0) !important;
    }
    
    /* Отключение тяжелых эффектов на мобильных */
    .product-card::after,
    .category-card-modern::before,
    .hero-3d-slide::before,
    .hero-3d-slide::after {
        display: none !important;
    }
    
    /* Упрощенные тени */
    .product-card,
    .category-card-modern,
    .modal-content {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Улучшенная читаемость текста */
    body {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
    }
    
    /* Улучшенные ссылки */
    a {
        -webkit-tap-highlight-color: rgba(251, 191, 36, 0.2) !important;
        touch-action: manipulation !important;
    }
    
    /* Улучшенные input focus states */
    input:focus,
    textarea:focus,
    select:focus {
        outline: none !important;
        border-color: var(--primary-color) !important;
        box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15) !important;
    }
    
    /* Улучшенные состояния active */
    button:active,
    .btn:active,
    a:active {
        transform: scale(0.97) !important;
        opacity: 0.9 !important;
    }
    
    /* Улучшенная видимость скроллбаров */
    ::-webkit-scrollbar {
        width: 6px !important;
        height: 6px !important;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-color) !important;
        border-radius: 3px !important;
    }
    
    /* Улучшенные переходы */
    * {
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Замедление всех анимаций для мобильных */
    @keyframes gradientShift {
        0%, 100% {
            background-position: 0% center;
        }
        50% {
            background-position: 100% center;
        }
    }
    
    /* Замедление анимации gradientShift для мобильных */
    .section-title-3d,
    .hero-title-modern[data-text] {
        animation-duration: 8s !important;
    }
    
    /* Замедление других градиентных анимаций */
    [style*="gradient"] *,
    .gradient-text {
        animation-duration: 8s !important;
    }
    
    /* Проверка и замедление других быстрых анимаций */
    @keyframes iconFloat {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        50% { transform: translateY(-20px) rotate(5deg); }
    }
    
    .career-step-icon,
    .stat-icon-3d-careers {
        animation-duration: 4s !important;
    }
    
    @keyframes gemIconPulse {
        0%, 100% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.1); opacity: 0.9; }
    }
    
    /* Замедление пульсации иконок */
    [class*="icon"]:not(.fas):not(.far):not(.fab) {
        animation-duration: 3s !important;
    }
    
    /* ============================================
       ПРОФИЛЬ - АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ
       ============================================ */
    
    /* Контейнер профиля */
    .container[style*="padding: 3rem"] {
        padding: 1rem !important;
    }
    
    /* Заголовок профиля */
    .profile-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 1.5rem 1rem !important;
        gap: 1rem !important;
        border-radius: 12px !important;
    }
    
    .profile-avatar-large {
        width: 80px !important;
        height: 80px !important;
        font-size: 2rem !important;
    }
    
    .profile-info h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .profile-info p {
        font-size: 0.9rem !important;
        margin: 0.15rem 0 !important;
    }
    
    /* Вкладки профиля */
    .profile-tabs {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin-bottom: 1.5rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 0.5rem !important;
    }
    
    .profile-tab-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        min-width: auto !important;
        flex-shrink: 0 !important;
    }
    
    /* Карточки залогов */
    .pledge-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
    }
    
    .pledge-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    .pledge-title {
        font-size: 1.1rem !important;
        width: 100% !important;
    }
    
    .pledge-status {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
        align-self: flex-start !important;
    }
    
    .pledge-details {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin: 0.75rem 0 !important;
    }
    
    .pledge-detail-label {
        font-size: 0.8rem !important;
    }
    
    .pledge-detail-value {
        font-size: 1rem !important;
    }
    
    .pledge-progress {
        margin: 1rem 0 !important;
    }
    
    .pledge-progress-text {
        font-size: 0.8rem !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
    }
    
    .pledge-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-top: 0.75rem !important;
    }
    
    .pledge-btn {
        width: 100% !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
    }
    
    .logout-btn {
        width: 100% !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
        margin-top: 1rem !important;
    }
    
    .empty-state {
        padding: 2rem 1rem !important;
    }
    
    .empty-state i {
        font-size: 3rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .empty-state h3 {
        font-size: 1.1rem !important;
    }
    
    /* Модальные окна профиля */
    .auth-modal {
        max-width: 100% !important;
        margin: 0.5rem !important;
        padding: 1.25rem 1rem !important;
        border-radius: 12px !important;
    }
    
    .auth-modal h2 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .form-group {
        margin-bottom: 1rem !important;
    }
    
    .form-group label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
        padding: 0.75rem !important;
        min-height: 44px !important;
        border-radius: 8px !important;
    }
    
    .auth-btn {
        width: 100% !important;
        padding: 0.875rem 1.25rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
        margin-top: 0.5rem !important;
    }
    
    /* ============================================
       АДМИН-ПАНЕЛЬ - АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ
       ============================================ */
    
    /* Заголовки админ-панели */
    .admin-section-title {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
        padding: 0.75rem 0 !important;
    }
    
    /* Карточки админ-панели */
    .admin-card,
    .admin-stats-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* Таблицы админ-панели */
    .admin-table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 0 -1rem !important;
        padding: 0 1rem !important;
    }
    
    .admin-table {
        font-size: 0.85rem !important;
        min-width: 600px !important;
    }
    
    .admin-table th {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }
    
    .admin-table td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    .admin-table code {
        font-size: 0.75rem !important;
        padding: 0.2rem 0.4rem !important;
        word-break: break-all !important;
    }
    
    /* Кнопки действий в таблицах */
    .action-buttons {
        flex-direction: column !important;
        gap: 0.4rem !important;
        align-items: stretch !important;
    }
    
    .action-btn {
        width: 100% !important;
        min-width: auto !important;
        min-height: 36px !important;
        font-size: 0.85rem !important;
        padding: 0.5rem !important;
    }
    
    .admin-support-btn {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .admin-support-btn span {
        display: inline !important;
    }
    
    /* Формы админ-панели */
    .admin-form-group {
        margin-bottom: 1rem !important;
    }
    
    .admin-form-group label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
    }
    
    .admin-form-group input,
    .admin-form-group select,
    .admin-form-group textarea {
        width: 100% !important;
        font-size: 16px !important;
        padding: 0.75rem !important;
        min-height: 44px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    
    .admin-form-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-top: 1rem !important;
    }
    
    .admin-form-actions button {
        width: 100% !important;
        padding: 0.875rem 1.25rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
    }
    
    /* Список сообщений поддержки */
    .support-message-item {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 12px !important;
    }
    
    .support-message-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .support-message-user {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
    }
    
    .support-message-time {
        font-size: 0.75rem !important;
    }
    
    .support-message-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .support-message-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .support-message-actions button {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
    }
    
    /* Группы сообщений */
    .support-group {
        margin-bottom: 1.5rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
    
    .support-group-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    .support-group-user {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }
    
    .support-group-info {
        font-size: 0.8rem !important;
    }
    
    .support-group-messages {
        gap: 0.75rem !important;
    }
}

/* ========================================
   WISHLIST PAGE STYLES
======================================== */

.wishlist-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(240, 147, 251, 0.3);
    position: relative;
    overflow: hidden;
}

.wishlist-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.wishlist-header h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-weight: 700;
}

.wishlist-header h1 i {
    color: #fff;
    margin-right: 0.5rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

.wishlist-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.wishlist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 2rem;
}

.wishlist-empty h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.wishlist-empty p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 400px;
}

.wishlist-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wishlist-stats {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.wishlist-stats span {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.wishlist-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    background: white;
    transition: all 0.3s;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.btn-primary, .btn-secondary {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.btn-secondary:hover {
    background: #fef3f2;
}

/* Responsive Wishlist */
@media screen and (max-width: 768px) {
    .wishlist-header h1 {
        font-size: 1.8rem;
    }
    
    .wishlist-subtitle {
        font-size: 0.95rem;
    }
    
    .wishlist-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .wishlist-stats {
        font-size: 1rem;
    }
    
    .wishlist-stats span {
        font-size: 1.1rem;
    }
    
    .wishlist-actions {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .filter-select,
    .btn-primary,
    .btn-secondary {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}

/* ========================================
   MAIN CONTENT STYLES
======================================== */

.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* ========================================
   COMPARE PAGE STYLES
======================================== */

.compare-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.compare-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.compare-header h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-weight: 700;
}

.compare-header h1 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.compare-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.compare-table:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.compare-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.compare-table th,
.compare-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
}

.compare-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.compare-param {
    font-weight: 600;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    width: 200px;
    position: sticky;
    left: 0;
    z-index: 1;
    color: #374151;
}

.compare-product {
    min-width: 250px;
    max-width: 300px;
}

.compare-product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.compare-product-header img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.compare-product-header img:hover {
    transform: scale(1.05);
}

.compare-product-header h4 {
    font-size: 1rem;
    text-align: center;
    margin: 0;
    color: white;
    font-weight: 600;
}

.compare-product-header .btn-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.compare-product-header .btn-remove:hover {
    background: #dc2626;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.compare-limit-message {
    background: linear-gradient(135deg, #fef3c7 0%, #fde047 100%);
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.compare-limit-message i {
    font-size: 1.5rem;
    color: #92400e;
}

.compare-limit-message p {
    margin: 0;
    color: #78350f;
    font-weight: 500;
}

.compare-limit-message strong {
    color: #92400e;
    font-weight: 700;
}

.compare-value {
    vertical-align: top;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .compare-table {
        display: block;
        overflow-x: auto;
    }
    
    .compare-param {
        width: 150px;
        font-size: 0.9rem;
    }
    
    .compare-product {
        min-width: 200px;
    }
    
    .compare-product-header img {
        width: 100px;
        height: 100px;
    }
    
    .compare-product-header h4 {
        font-size: 0.9rem;
    }
}

/* ============================================
   УЛУЧШЕННЫЙ ДИЗАЙН КАРТОЧЕК ТОВАРОВ
   ============================================ */

/* Простая и читаемая карточка товара */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: #fbbf24;
}

/* Контейнер изображения */
.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f9fafb;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: transform;
    background: var(--color-gray-100);
}

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

/* Улучшенные бейджи */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 10;
    animation: badgePulse 2s infinite;
}

.product-badge.badge-hit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.product-badge.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.product-badge.badge-sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Простая категория */
.product-category {
    color: #f59e0b;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Название товара */
.product-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Описание */
.product-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Местоположение с иконкой */
.product-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    border-left: 3px solid #fbbf24;
}

.product-location i {
    color: #fbbf24;
    font-size: 1rem;
}

/* Особенности товара */
.product-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.product-feature {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ea580c;
    border: 1px solid #fed7aa;
    transition: all 0.3s;
}

.product-feature:hover {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(234, 88, 12, 0.2);
}

/* Рассрочка */
.product-installment {
    font-size: 0.9rem;
    color: #059669;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 12px;
    border-left: 3px solid #10b981;
    display: inline-block;
}

/* Футер карточки */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px solid #f3f4f6;
}

/* Простая цена */
.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
}

/* Действия с товаром */
.product-actions {
    display: flex;
    gap: 0.5rem;
}

/* Кнопка избранного */
.wishlist-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wishlist-btn i {
    font-size: 1.1rem;
    color: #9ca3af;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: #fbbf24;
    box-shadow: 0 6px 12px rgba(251, 191, 36, 0.3);
}

.wishlist-btn:hover i {
    color: #fbbf24;
}

.wishlist-btn.active {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
}

.wishlist-btn.active i {
    color: #ef4444;
    animation: heartBeat 0.4s;
}

/* Кнопка добавления в корзину */
.add-to-cart-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 1.5rem;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(251, 191, 36, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.add-to-cart-btn i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Чекбокс сравнения - компактный */
.compare-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    font-size: 0.8rem;
    max-width: fit-content;
}

.compare-checkbox:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.compare-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #fbbf24;
    flex-shrink: 0;
}

.compare-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    user-select: none;
    white-space: nowrap;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-card {
        border-radius: 16px;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .add-to-cart-btn {
        padding: 0 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image-container {
        height: 150px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 0.95rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
    
    .product-actions {
        width: 100%;
        gap: 0.5rem;
    }
    
    .add-to-cart-btn {
        flex: 1;
        padding: 0 0.75rem;
    }
}

/* ============================================
   КРАСИВОЕ МОДАЛЬНОЕ ОКНО ТОВАРА
   ============================================ */

.product-modal {
    background: white;
    border-radius: 24px !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(251, 191, 36, 0.1) !important;
    overflow: hidden;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
}

.product-detail-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-detail-image:hover {
    transform: scale(1.02);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-category {
    display: inline-block;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid #fed7aa;
    max-width: fit-content;
}

.product-detail-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    margin: 0;
}

.product-detail-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.8;
    margin: 0;
}

.product-detail-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border-left: 4px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.product-detail-location i {
    color: #059669;
    font-size: 1.5rem;
}

.product-detail-location strong {
    color: #047857;
    font-weight: 700;
}

.product-detail-price {
    font-size: 3rem;
    font-weight: 800;
    color: #fbbf24;
    margin: 0;
    text-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
}

.product-detail-specs {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    margin: 0;
}

.product-detail-specs h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-detail-specs h3::before {
    content: '📋';
    font-size: 1.5rem;
}

.product-detail-specs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-detail-specs li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
    color: #4b5563;
    transition: all 0.2s;
}

.product-detail-specs li:hover {
    color: #1f2937;
    padding-left: 0.5rem;
    background: rgba(251, 191, 36, 0.05);
    border-radius: 8px;
}

.product-detail-specs li:last-child {
    border-bottom: none;
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.product-detail-actions .add-to-cart-btn {
    flex: 1;
    justify-content: center;
    padding: 1.25rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.product-detail-actions .add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.product-detail-actions .add-to-cart-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.4);
}

.product-detail-actions .add-to-cart-btn:hover::before {
    width: 400px;
    height: 400px;
}

.product-detail-actions .add-to-cart-btn i {
    position: relative;
    z-index: 1;
    margin-right: 0.5rem;
}

/* Закрывающая кнопка модального окна */
.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.close-btn:hover {
    background: #ef4444;
    border-color: #dc2626;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.close-btn:hover i {
    color: white;
}

.close-btn i {
    font-size: 1.2rem;
    color: #6b7280;
    transition: color 0.3s;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .product-detail-info h2 {
        font-size: 1.5rem;
    }
    
    .product-detail-price {
        font-size: 2rem;
    }
    
    .product-detail-actions .add-to-cart-btn {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* ============================================
   ДИНАМИЧЕСКАЯ СЕКЦИЯ ТОВАРОВ
   ============================================ */

.dynamic-products-section {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 50%, #ffd9a8 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.6s ease;
}

.dynamic-products-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    animation: sectionPulse 15s ease-in-out infinite;
    transition: background 0.6s ease;
}

@keyframes sectionPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

/* Варианты фона для разных вкладок */
.dynamic-products-section[data-active-tab="recommended"] {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 50%, #ffd9a8 100%);
}

.dynamic-products-section[data-active-tab="recommended"]::before {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
}

.dynamic-products-section[data-active-tab="new"] {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
}

.dynamic-products-section[data-active-tab="new"]::before {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
}

.dynamic-products-section[data-active-tab="sale"] {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 50%, #fca5a5 100%);
}

.dynamic-products-section[data-active-tab="sale"]::before {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
}

.dynamic-products-section .section-header-modern {
    position: relative;
    z-index: 2;
}

.dynamic-products-section .section-title-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

.dynamic-products-section .section-title-with-icon span {
    transition: opacity 0.3s ease;
}

.dynamic-products-section .section-subtitle {
    transition: opacity 0.3s ease, color 0.4s ease;
}

/* Цвета заголовка для разных вкладок */
.dynamic-products-section[data-active-tab="recommended"] .section-title-with-icon {
    color: #92400e;
}

.dynamic-products-section[data-active-tab="new"] .section-title-with-icon {
    color: #0c4a6e;
}

.dynamic-products-section[data-active-tab="sale"] .section-title-with-icon {
    color: #7f1d1d;
}

.dynamic-products-section .section-title-with-icon i {
    font-size: 2.5rem;
    transition: color 0.4s ease, transform 0.4s ease;
}

/* Анимация и цвет иконки для "Рекомендации" */
.dynamic-products-section[data-active-tab="recommended"] .section-title-with-icon i {
    color: #fbbf24;
    animation: magicWand 2s ease-in-out infinite;
}

@keyframes magicWand {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

/* Анимация и цвет иконки для "Новинки" */
.dynamic-products-section[data-active-tab="new"] .section-title-with-icon i {
    color: #0ea5e9;
    animation: starSparkle 2s ease-in-out infinite;
}

@keyframes starSparkle {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.2);
        filter: brightness(1.5);
    }
}

/* Анимация и цвет иконки для "Со скидкой" */
.dynamic-products-section[data-active-tab="sale"] .section-title-with-icon i {
    color: #ef4444;
    animation: fireBurn 1.5s ease-in-out infinite;
}

@keyframes fireBurn {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.1) translateY(-4px);
    }
}

.dynamic-products-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Цвет подзаголовка для разных вкладок */
.dynamic-products-section[data-active-tab="recommended"] .section-subtitle {
    color: #78350f;
}

.dynamic-products-section[data-active-tab="new"] .section-subtitle {
    color: #075985;
}

.dynamic-products-section[data-active-tab="sale"] .section-subtitle {
    color: #991b1b;
}

.dynamic-products-section .products-grid {
    position: relative;
    z-index: 2;
}

/* Специальные эффекты для карточек в зависимости от вкладки */
.dynamic-products-section[data-active-tab="recommended"] .product-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dynamic-products-section[data-active-tab="recommended"] .product-card::before {
    content: '⭐';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    z-index: 10;
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.7;
    }
}

.dynamic-products-section[data-active-tab="recommended"] .product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px rgba(251, 191, 36, 0.3);
    border-color: #fbbf24;
}

/* Эффекты для новинок */
.dynamic-products-section[data-active-tab="new"] .product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.3);
    border-color: #0ea5e9;
}

/* Эффекты для товаров со скидкой */
.dynamic-products-section[data-active-tab="sale"] .product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

/* ============================================
   SKELETON SCREENS ДЛЯ ЗАГРУЗКИ ТОВАРОВ
   ============================================ */

/* Skeleton карточка товара */
.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Skeleton элементы */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton изображение */
.skeleton-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
}

/* Skeleton контент */
.skeleton-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Skeleton текст разных размеров */
.skeleton-text {
    height: 12px;
    border-radius: 4px;
}

.skeleton-text.title {
    height: 20px;
    width: 80%;
}

.skeleton-text.subtitle {
    height: 14px;
    width: 60%;
}

.skeleton-text.line {
    height: 12px;
    width: 100%;
}

.skeleton-text.line.short {
    width: 70%;
}

.skeleton-text.line.medium {
    width: 85%;
}

/* Skeleton кнопки */
.skeleton-button {
    height: 44px;
    border-radius: 12px;
    margin-top: 0.5rem;
}

/* Skeleton цена */
.skeleton-price {
    height: 28px;
    width: 120px;
    border-radius: 6px;
    margin-top: auto;
}

/* Skeleton footer */
.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px solid #f3f4f6;
}

/* Skeleton действия */
.skeleton-actions {
    display: flex;
    gap: 0.5rem;
}

.skeleton-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

/* Skeleton badge */
.skeleton-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
    height: 28px;
    border-radius: 25px;
}

/* Skeleton location */
.skeleton-location {
    height: 36px;
    border-radius: 12px;
    width: 100%;
}

/* Адаптивность */
@media (max-width: 768px) {
    .skeleton-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .skeleton-image {
        height: 150px;
    }
    
    .skeleton-content {
        padding: 1rem;
    }
}

/* ============================================
   КАЛЬКУЛЯТОР РАССРОЧКИ
   ============================================ */

.installment-calculator {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fed7aa;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.installment-calculator-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.installment-calculator-header i {
    font-size: 1.75rem;
    color: #f59e0b;
}

.installment-calculator-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
    margin: 0;
}

.installment-term-selector {
    margin-bottom: 1.5rem;
}

.installment-term-selector label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #78350f;
    margin-bottom: 0.75rem;
    display: block;
}

.installment-terms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
}

.installment-term {
    background: white;
    border: 2px solid #fed7aa;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #92400e;
}

.installment-term:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.installment-term.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #f59e0b;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.installment-result {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.installment-monthly {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.installment-monthly-label {
    font-size: 1rem;
    font-weight: 600;
    color: #78350f;
}

.installment-monthly-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #f59e0b;
    min-width: 200px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.installment-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #ffedd5;
}

.installment-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #92400e;
    min-height: 24px;
}

.installment-info-item strong {
    font-weight: 600;
    min-width: 140px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.installment-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #78350f;
    text-align: center;
    padding: 0.75rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .installment-calculator {
        padding: 1.25rem;
    }
    
    .installment-monthly-amount {
        font-size: 1.5rem;
    }
}

/* Product Specifications in Cards */
.product-specs {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.specs-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-title i {
    margin-right: 0.25rem;
    color: #3b82f6;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.25rem 0;
}

.spec-key {
    color: #475569;
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.spec-value {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spec-more {
    color: #3b82f6;
    font-style: italic;
    font-size: 0.75rem;
    justify-content: center;
}

.spec-more .spec-key {
    color: #3b82f6;
    margin-right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-specs {
        padding: 0.5rem;
    }
    
    .spec-item {
        font-size: 0.75rem;
    }
    
    .specs-title {
        font-size: 0.7rem;
    }
}
