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

body {
    font-family: sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 40px 20px;
    color: #000000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.container--narrow {
    max-width: 1200px;
}

/* Типографика */
h1, h2, h3 {
    font-family: serif;
    color: #000000;
}

/* Навигация */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.nav--bordered {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #000000;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links form {
    display: inline;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #000000;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #000000;
    color: #ffffff;
}

button.nav-link {
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.brand-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #000000;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    background: #ffffff;
    color: #000000;
}

.btn-full {
    width: 100%;
}

.btn-inline {
    width: auto;
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border: 2px solid #000000;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #000000;
    color: #ffffff;
}

/* Изображения */
img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

/* Главная: header */
.home-header {
    text-align: center;
    margin-bottom: 80px;
    padding-bottom: 30px;
    border-bottom: 2px solid #000000;
}

.home-header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.3rem;
    color: #666666;
    font-weight: 300;
}

/* Главная: featured */
.featured-section {
    margin-bottom: 100px;
}

.featured-picture {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    border: 2px solid #000000;
    padding: 40px;
    transition: all 0.3s ease;
}

.featured-picture:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0px #000000;
}

.featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 2px solid #000000;
}

.featured-picture:hover .featured-image {
    filter: grayscale(0%);
}

.featured-content h2 {
    font-size: 3rem;
    font-weight: 700;
}

.featured-content .artist {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 20px;
}

.featured-content .description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #666666;
}

/* Главная: факты */
.facts-section {
    margin-bottom: 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 3rem;
    font-weight: 700;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.fact-card {
    border: 2px solid #000000;
    padding: 30px;
    transition: all 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0px #000000;
}

.fact-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid #000000;
}

.fact-card:hover .fact-image {
    filter: grayscale(0%);
}

.fact-artist {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 15px;
}

.fact-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
}

.fact-year {
    margin-top: 10px;
    font-weight: 500;
}

.fact-btn {
    margin-top: 15px;
}

/* Главная: известные */
.famous-section {
    margin-bottom: 80px;
}

.famous-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.famous-card {
    border: 2px solid #000000;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.famous-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0px #000000;
}

.famous-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: #f5f5f5;
}

.famous-card:hover .famous-image {
    filter: grayscale(0%);
}

.famous-info {
    padding: 25px;
}

.famous-artist {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 8px;
}

.famous-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #999999;
    margin-top: 15px;
}

/* Футер */
.site-footer {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 2px solid #000000;
    text-align: center;
    color: #666666;
}

.footer-subtitle {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Детальная страница */
.picture-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 2px solid #000000;
    box-shadow: 10px 10px 0px #000000;
}

.picture-image-container {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.picture-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.picture-image-container:hover .picture-image {
    filter: grayscale(0%);
}

.picture-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.picture-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.picture-artist {
    font-size: 1.3rem;
    color: #666666;
    margin-bottom: 20px;
}

.picture-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #000000;
}

.meta-item {
    font-size: 1rem;
    color: #333333;
}

.picture-description {
    color: #333333;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-top: 20px;
}

.category-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #000000;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
}

.favorite-form {
    margin-top: 20px;
}

.favorite-btn {
    padding: 12px 24px;
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    background: #ffffff;
    color: #000000;
}

.favorite-btn.favorited {
    background: #ffffff;
    color: #000000;
}

.login-hint {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid #000000;
}

.login-hint-link {
    color: #000000;
    text-decoration: underline;
}

/* Профиль */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 2px solid #000000;
}

.profile-header h1 {
    font-size: 3rem;
    font-weight: 700;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    border: 2px solid #000000;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0px #000000;
}

.card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.card:hover img {
    filter: grayscale(0%);
}

.card-info {
    padding: 25px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-artist {
    color: #666666;
    margin-bottom: 15px;
}

.empty {
    text-align: center;
    padding: 80px 20px;
}

.empty-actions {
    margin-top: 20px;
}

.flash-message {
    padding: 15px;
    background: #f5f5f5;
    border: 2px solid #000000;
    margin-bottom: 20px;
}

/* Адаптивность */
@media (max-width: 968px) {
    .home-header h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }

    .featured-picture {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .nav--bordered {
        flex-direction: column;
        gap: 20px;
    }

    .picture-detail {
        grid-template-columns: 1fr;
    }

    .picture-image-container {
        padding: 20px;
    }

    .picture-info {
        padding: 30px;
    }

    .picture-title {
        font-size: 2rem;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

