* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    margin-bottom: 2rem;
}

.header-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 1rem;
}

.logo {
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    text-decoration: none;
}

.logo svg {
    height: 40px;
    width: auto;
}

main {
    padding: 2rem 0;
    min-height: calc(100vh - 120px);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.btn-outline:hover {
    background: #e74c3c;
    color: white;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.card-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    position: relative;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.card:hover .card-overlay {
    transform: translateY(0);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.card-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e74c3c;
}

.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.header-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.header-filters .form-control {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    min-width: 120px;
}

.header-filters .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.header-filters .form-control:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    outline: none;
}

.header-filters .form-control option {
    color: #2c3e50;
    background: white;
}

.header-filters .btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s;
}

.header-filters .btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.filters-mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #34495e;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #e74c3c;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: auto;
    padding: 0 1rem;
}

.pagination a {
    padding: 0.75rem 1rem;
    background: white;
    color: #34495e;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
    min-width: 44px;
    text-align: center;
    flex-shrink: 0;
}

.pagination a:hover,
.pagination .current {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.pagination .dots {
    padding: 0.75rem 0.5rem;
    color: #7f8c8d;
    font-weight: 500;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .header-filters {
        display: none;
        width: 100%;
    }
    
    .header-filters.show {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .header-filters .form-control {
        width: 100%;
        min-width: auto;
    }
    
    .filters-mobile-toggle {
        display: block;
    }
    
    .pagination {
        padding: 0 0.5rem;
        gap: 0.125rem;
    }
    
    .pagination a {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
        font-size: 0.9rem;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Планшеты - 2 колонки */
@media (max-width: 1024px) and (min-width: 769px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-content {
        gap: 2rem;
    }
    
    .header-filters {
        gap: 0.75rem;
    }
    
    .header-filters .form-control {
        min-width: 100px;
        font-size: 0.85rem;
    }
    
    .header-filters .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Большие экраны - 4 колонки */
@media (min-width: 1400px) {
    .grid-3 {
        grid-template-columns: repeat(4, 1fr);
    }
} 