/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Хедер */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.logo h1 a {
    color: #333;
    text-decoration: none;
}

.tagline {
    color: #666;
    font-size: 0.9rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #8a9b6e;
}

/* Основной контент */
.main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Секция "О фотографе" */
.about-section {
    margin-bottom: 4rem;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.lead {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #8a9b6e;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Категории */
.categories-section {
    margin: 4rem 0;
}

.categories-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-subtitle {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

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

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top; /* Важно: обрезает сверху, а не по центру */
}

.category-placeholder {
    width: 100%;
    height: 200px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.category-info {
    padding: 1.5rem;
}

.category-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.category-info p {
    color: #666;
    font-size: 0.95rem;
}

.empty-message {
    text-align: center;
    color: #7f8c8d;
    grid-column: 1 / -1;
    padding: 2rem;
}

/* Избранные работы */
.featured-section {
    margin: 4rem 0;
}

.featured-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

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

.featured-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.featured-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-caption {
    padding: 1rem;
}

.photo-caption h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.photo-caption p {
    color: #666;
    font-size: 0.9rem;
}

/* Футер */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.footer-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer-info p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .nav ul {
        gap: 1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-section h2 {
        font-size: 2rem;
    }
}

html {
    scroll-behavior: smooth;  /* Плавная прокрутка для всех ссылок с # */
}