.logo-img {
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.content-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.background-placeholder.background-loaded {
    filter: blur(3px);
    transform: scale(1.02);
    transition: filter 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.background-placeholder.background-high-quality {
    filter: blur(0);
    transform: scale(1);
}

.background-placeholder.background-fallback {
    background: 
        linear-gradient(rgba(34, 33, 33, 0.8), rgba(66, 66, 66, 0.7)),
        radial-gradient(circle at 20% 50%, #404040 0%, #2c2c2c 50%, #1a1a1a 100%);
    filter: blur(0);
}

.footer-email {
    transition: all 0.3s ease;
}

.example-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chat-button {
    transition: all 0.3s ease;
}

/* Убираем фиксированную высоту и overflow */
body {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

.content-section {
    overflow: visible;
}

.content-card {
    max-height: none;
    overflow-y: visible;
}

@media (max-width: 400px) {
    .content-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .project-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .project-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer {
        padding: 1rem 0;
    }
    
    .footer-content {
        gap: 0.75rem;
    }
    
    .footer-email {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .example-card {
        padding: 0.75rem;
    }
    
    .example-text {
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
}

@media (max-width: 767px) {
    .footer-content {
        text-align: center;
    }
    
    .examples-title {
        font-size: 1.1rem;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

@media print {
    .background-placeholder {
        display: none;
    }
    
    .content-card {
        background: white;
        color: black;
        backdrop-filter: none;
        border: 1px solid #ccc;
    }
    
    .navbar {
        background: #e30613 !important;
    }
    
    .footer {
        background: #f5f5f5 !important;
        border-top: 1px solid #ddd;
    }
    
    .footer-text {
        color: #666 !important;
    }
    
    .footer-email {
        color: #e30613 !important;
        border: 1px solid #e30613 !important;
        background: transparent !important;
    }
    
    .example-card {
        background: #f9f9f9 !important;
        border-left: 3px solid #e30613 !important;
    }
    
    .example-text {
        color: #333 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .content-card {
        animation: none;
        opacity: 1;
    }
    
    .logo-img {
        transition: none;
    }
    
    .footer-email {
        transition: none;
    }
    
    .example-card {
        transition: none;
    }
    
    .chat-button {
        transition: none;
    }
}

.content-card {
    will-change: transform, opacity;
}

.logo-img:focus,
.content-card:focus,
.footer-email:focus,
.chat-button:focus,
.example-card:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

.footer-email i {
    margin-right: 0.5rem;
}

.chat-button i {
    margin-right: 0.5rem;
}