/* ==========================================================================
   Savage Charm Cattery - Design System
   Based on: Color Layering, Two-Layer Shadows, Responsiveness Principles
   ========================================================================== */

/* ==========================================================================
   Smooth Scroll
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* Отключить для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   CSS Custom Properties - Color Layering System
   Foundation: 4 shades with 0.1 lightness increments
   ========================================================================== */

:root {
    /* Primary Brand Colors - Emerald/Teal */
    --color-primary-900: #064e3b;
    --color-primary-800: #065f46;
    --color-primary-700: #047857;
    --color-primary-600: #059669;
    --color-primary-500: #10b981;
    --color-primary-400: #34d399;
    --color-primary-300: #6ee7b7;
    --color-primary-200: #a7f3d0;
    --color-primary-100: #d1fae5;
    --color-primary-50: #ecfdf5;

    /* Light Mode - Layered Backgrounds (Warm Stone) */
    --surface-0: #f5f5f4;      /* Deepest - page background */
    --surface-1: #fafaf9;      /* Elevated - section background */
    --surface-2: #ffffff;      /* Most elevated - cards */
    --surface-3: #ffffff;      /* Top layer - modals/dropdowns */

    /* Light Mode - Layered Borders (no borders needed with proper layering) */
    --border-subtle: rgba(120, 113, 108, 0.08);
    --border-default: rgba(120, 113, 108, 0.12);
    --border-emphasis: rgba(120, 113, 108, 0.2);

    /* Light Mode - Text Hierarchy */
    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-tertiary: #78716c;
    --text-muted: #a8a29e;

    /* Light Mode - Two-Layer Shadows */
    /* Small - Subtle elevation */
    --shadow-sm-top: 0 -1px 2px rgba(255, 255, 255, 0.8);
    --shadow-sm-bottom: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-sm: var(--shadow-sm-bottom);

    /* Medium - Standard elevation */
    --shadow-md-top: 0 -2px 4px rgba(255, 255, 255, 0.6);
    --shadow-md-bottom: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: var(--shadow-md-bottom);

    /* Large - Prominent/Hover/Focus */
    --shadow-lg-top: 0 -4px 8px rgba(255, 255, 255, 0.5);
    --shadow-lg-bottom: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: var(--shadow-lg-bottom);

    /* Extra Large - Modals/Popovers */
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);

    /* Primary colored shadow for accents */
    --shadow-primary: 0 4px 14px rgba(16, 185, 129, 0.25);
    --shadow-primary-lg: 0 8px 25px rgba(16, 185, 129, 0.3);

    /* Gradients for Shiny Effect */
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 50%);
    --gradient-button: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    --gradient-header: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);

    /* Inset Shadows for Sunken Effect */
    --inset-sm: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    --inset-md: inset 0 2px 4px rgba(0, 0, 0, 0.08);
    --inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.5);

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-transform: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Dark Mode - Color Layering
   ========================================================================== */

.dark {
    /* Dark Mode - Layered Backgrounds */
    --surface-0: #0a0a0a;      /* Deepest - page background */
    --surface-1: #141414;      /* Elevated - section background */
    --surface-2: #1c1c1c;      /* More elevated - cards */
    --surface-3: #262626;      /* Top layer - modals/dropdowns */

    /* Dark Mode - Borders */
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-default: rgba(255, 255, 255, 0.08);
    --border-emphasis: rgba(255, 255, 255, 0.12);

    /* Dark Mode - Text */
    --text-primary: #fafafa;
    --text-secondary: #d4d4d4;
    --text-tertiary: #a3a3a3;
    --text-muted: #737373;

    /* Dark Mode - Two-Layer Shadows */
    --shadow-sm-top: 0 -1px 2px rgba(255, 255, 255, 0.02);
    --shadow-sm-bottom: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: var(--shadow-sm-bottom);

    --shadow-md-top: 0 -2px 4px rgba(255, 255, 255, 0.02);
    --shadow-md-bottom: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: var(--shadow-md-bottom);

    --shadow-lg-top: 0 -4px 8px rgba(255, 255, 255, 0.02);
    --shadow-lg-bottom: 0 10px 25px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
    --shadow-lg: var(--shadow-lg-bottom);

    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.5);

    --shadow-primary: 0 4px 14px rgba(16, 185, 129, 0.2);
    --shadow-primary-lg: 0 8px 25px rgba(16, 185, 129, 0.25);

    /* Dark Mode Gradients */
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 50%);
    --gradient-button: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 50%);
    --gradient-header: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);

    /* Dark Mode Inset */
    --inset-sm: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    --inset-md: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    --inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    background-color: var(--surface-0);
    color: var(--text-primary);
}

/* ==========================================================================
   Card System - Elevated Components with Layered Shadows
   ========================================================================== */

/* Base Card - Standard elevation */
.card {
    background: var(--surface-2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Card with subtle inner glow effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--gradient-card);
    pointer-events: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Card hover - Elevated state */
.card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-primary);
    transform: translateY(-2px);
}

/* Card Variants */
.card-sm {
    box-shadow: var(--shadow-sm);
}

.card-lg {
    box-shadow: var(--shadow-lg);
}

/* Flat card - No shadow, relies on color layering */
.card-flat {
    background: var(--surface-1);
    box-shadow: none;
}

.card-flat::before {
    display: none;
}

/* Card with carousel - allows overflow for side images */
.card-carousel {
    overflow: visible;
}

.card-carousel::before {
    display: none;
}

/* Inset card - Sunken appearance */
.card-inset {
    background: var(--surface-0);
    box-shadow: var(--inset-md);
}

.card-inset::before {
    display: none;
}

/* ==========================================================================
   Button System - With Gradient Enhancement
   ========================================================================== */

/* Primary Button */
.btn-primary {
    background: linear-gradient(180deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: var(--shadow-sm), var(--inset-highlight);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--gradient-button);
    pointer-events: none;
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--color-primary-400) 0%, var(--color-primary-500) 100%);
    box-shadow: var(--shadow-md), var(--shadow-primary), var(--inset-highlight);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm), var(--inset-sm);
}

/* Secondary Button */
.btn-secondary {
    background: var(--surface-1);
    color: var(--text-primary);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: var(--shadow-sm), var(--inset-highlight);
    transition: all var(--transition-base);
    position: relative;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--surface-2);
    box-shadow: var(--shadow-md);
}

/* Ghost Button - No background */
.btn-ghost {
    background: transparent;
    color: var(--color-primary-600);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.dark .btn-ghost {
    color: var(--color-primary-400);
}

.btn-ghost:hover {
    background: var(--color-primary-50);
}

.dark .btn-ghost:hover {
    background: rgba(16, 185, 129, 0.1);
}

/* ==========================================================================
   Header - Elevated with Gradient
   ========================================================================== */

.header {
    background: var(--gradient-header);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* ==========================================================================
   Navigation Links
   ========================================================================== */

.nav-link {
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary-600);
    background: var(--color-primary-50);
}

.dark .nav-link:hover {
    color: var(--color-primary-400);
    background: rgba(16, 185, 129, 0.1);
}

.nav-link.active {
    color: var(--color-primary-600);
    font-weight: 600;
}

.dark .nav-link.active {
    color: var(--color-primary-400);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--color-primary-500);
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Input Fields - Inset Style
   ========================================================================== */

.input {
    background: var(--surface-0);
    color: var(--text-primary);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    box-shadow: var(--inset-sm);
    transition: all var(--transition-fast);
    width: 100%;
}

.input:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: var(--inset-sm), 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.input::placeholder {
    color: var(--text-muted);
}

/* Select field */
.select {
    background: var(--surface-0);
    color: var(--text-primary);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    box-shadow: var(--inset-sm);
    transition: all var(--transition-fast);
    width: 100%;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2378716c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.dark .select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23a3a3a3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
}

.select:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: var(--inset-sm), 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   Badge / Tag System
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.badge-primary {
    background: var(--color-primary-100);
    color: var(--color-primary-700);
}

.dark .badge-primary {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-primary-400);
}

.badge-neutral {
    background: var(--surface-1);
    color: var(--text-secondary);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: var(--space-6);
}

.section-subtitle {
    color: var(--text-tertiary);
    margin-bottom: var(--space-8);
}

/* ==========================================================================
   Highlight Box - Accent Background
   ========================================================================== */

.highlight-box {
    background: var(--color-primary-50);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--inset-highlight);
}

.dark .highlight-box {
    background: rgba(16, 185, 129, 0.08);
}

/* ==========================================================================
   Footer - Layered Background
   ========================================================================== */

.footer {
    background: var(--surface-1);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Image Container with Hover Effects
   ========================================================================== */

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.image-container img {
    transition: var(--transition-transform);
}

.card:hover .image-container img {
    transform: scale(1.05);
}

/* Image overlay gradient */
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover .image-overlay {
    opacity: 1;
}

/* ==========================================================================
   Info Row - Key-Value Display
   ========================================================================== */

.info-row {
    display: flex;
    gap: var(--space-2);
}

.info-label {
    color: var(--text-tertiary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
}

/* ==========================================================================
   Divider - Subtle separation
   ========================================================================== */

.divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-4) 0;
}

/* ==========================================================================
   Theme Toggle Button
   ========================================================================== */

.theme-toggle {
    background: var(--surface-1);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--surface-2);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Social Icons
   ========================================================================== */

.social-icon {
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    color: var(--color-primary-500);
    transform: translateY(-2px);
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mobile-menu {
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: var(--space-4);
    padding: var(--space-2);
}

.mobile-menu-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-menu-item:hover {
    background: var(--surface-1);
    color: var(--color-primary-600);
}

.dark .mobile-menu-item:hover {
    color: var(--color-primary-400);
}

/* ==========================================================================
   Responsive Grid System
   ========================================================================== */

.grid-responsive {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Grid for our-cats page - 4 columns on desktop, 2 on mobile */
.grid-cats {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .grid-cats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   Two Column Layout
   ========================================================================== */

.two-col {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .two-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Container
   ========================================================================== */

.container-narrow {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    text-align: center;
    padding: var(--space-12) 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Feature Grid for Highlights
   ========================================================================== */

.feature-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-100);
    color: var(--color-primary-600);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
}

.dark .feature-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-primary-400);
}

.feature-content h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.feature-content p {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Generation Badge Colors - Visual Hierarchy
   ========================================================================== */

.gen-f1 { border-left: 4px solid var(--color-primary-700); }
.gen-f2 { border-left: 4px solid var(--color-primary-600); }
.gen-f3 { border-left: 4px solid var(--color-primary-500); }
.gen-f4 { border-left: 4px solid var(--color-primary-400); }
.gen-f5 { border-left: 4px solid var(--color-primary-300); }
.gen-f6 { border-left: 4px solid var(--color-primary-200); }

/* ==========================================================================
   Price Box
   ========================================================================== */

.price-box {
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--inset-sm);
}

/* ==========================================================================
   Location Badge
   ========================================================================== */

.location-badge {
    background: var(--color-primary-50);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-primary-700);
    font-weight: 500;
}

.dark .location-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary-400);
}

/* ==========================================================================
   Parent Info Card
   ========================================================================== */

.parent-card {
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--inset-sm);
}

/* ==========================================================================
   Gallery Grid
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

/* ==========================================================================
   Step Indicator
   ========================================================================== */

.step-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.step-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary-500);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-sm), var(--shadow-primary);
}

.step-content {
    padding-top: var(--space-2);
}

.step-content strong {
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-tertiary);
}

/* ==========================================================================
   Checklist
   ========================================================================== */

.checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.checklist-icon {
    flex-shrink: 0;
    color: var(--color-primary-500);
    font-weight: bold;
}

/* ==========================================================================
   Map Container
   ========================================================================== */

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--inset-md);
}

/* ==========================================================================
   Back Link
   ========================================================================== */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-primary-600);
    font-weight: 500;
    margin-bottom: var(--space-6);
    transition: all var(--transition-fast);
}

.dark .back-link {
    color: var(--color-primary-400);
}

.back-link:hover {
    gap: var(--space-3);
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    background: var(--surface-2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.empty-state h3 {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--text-muted);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    background: var(--surface-1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
}

.cta-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.cta-section p {
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-primary-color {
    color: var(--color-primary-600);
}

.dark .text-primary-color {
    color: var(--color-primary-400);
}

.bg-surface-0 { background: var(--surface-0); }
.bg-surface-1 { background: var(--surface-1); }
.bg-surface-2 { background: var(--surface-2); }
.bg-surface-3 { background: var(--surface-3); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-muted); }

/* ==========================================================================
   Animation Utilities
   ========================================================================== */

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Scroll animations - hidden by default */
.scroll-animate {
    opacity: 0;
}

.scroll-animate-up {
    animation: fadeInUp 0.6s ease forwards;
}

.scroll-animate-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.scroll-animate-right {
    animation: fadeInRight 0.6s ease forwards;
}

.scroll-animate-scale {
    animation: fadeInScale 0.6s ease forwards;
}

/* Staggered animation for grid items */
.grid-responsive > *:nth-child(1) { animation-delay: 0ms; }
.grid-responsive > *:nth-child(2) { animation-delay: 50ms; }
.grid-responsive > *:nth-child(3) { animation-delay: 100ms; }
.grid-responsive > *:nth-child(4) { animation-delay: 150ms; }
.grid-responsive > *:nth-child(5) { animation-delay: 200ms; }
.grid-responsive > *:nth-child(6) { animation-delay: 250ms; }

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .scroll-animate-up,
    .scroll-animate-left,
    .scroll-animate-right,
    .scroll-animate-scale {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Carousel Gallery with Side Previews
   ========================================================================== */

.carousel-container {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    left: 50%;
    top: 50%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Active slide - центральное изображение */
.carousel-slide.carousel-active {
    z-index: 3;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
    width: 280px;
    height: 420px;
}

/* Previous slide - левое изображение */
.carousel-slide.carousel-prev {
    z-index: 2;
    opacity: 0.4;
    transform: translate(calc(-50% - 200px), -50%) scale(0.8);
    filter: blur(3px);
    width: 240px;
    height: 360px;
}

/* Next slide - правое изображение */
.carousel-slide.carousel-next {
    z-index: 2;
    opacity: 0.4;
    transform: translate(calc(-50% + 200px), -50%) scale(0.8);
    filter: blur(3px);
    width: 240px;
    height: 360px;
}

/* Carousel controls - кнопки навигации */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--surface-2);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.carousel-btn:hover {
    background: var(--color-primary-500);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl), var(--shadow-primary-lg);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

/* Carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    opacity: 0.4;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    padding: 0;
}

.carousel-indicator.active {
    opacity: 1;
    background: var(--color-primary-500);
    width: 24px;
}

.carousel-indicator:hover {
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-container {
        height: 380px;
    }

    .carousel-slide.carousel-active {
        width: 200px;
        height: 300px;
    }

    .carousel-slide.carousel-prev {
        width: 160px;
        height: 240px;
        transform: translate(calc(-50% - 130px), -50%) scale(0.75);
        opacity: 0.3;
    }

    .carousel-slide.carousel-next {
        width: 160px;
        height: 240px;
        transform: translate(calc(-50% + 130px), -50%) scale(0.75);
        opacity: 0.3;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn-prev {
        left: 5px;
    }

    .carousel-btn-next {
        right: 5px;
    }
}
