* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Times New Roman', serif;
    background: #faf3e8;  /* ← БЫЛО #faf7f2, СТАЛО #8b7a6b */
    color: #2c3e50;
    line-height: 1.6;
    font-weight: 700; /* Добавьте эту строку (500 = полужирный) */
}
body {
    zoom: 1.1; /* нестандартное свойство, но работает в большинстве браузеров */
}
html {
    font-size: 120%; /* или 1.5em, или 24px (если стандартный 16px * 1.5) */
}
.artist-header {
    background: linear-gradient(135deg, #c4b2a7 0%, #7b6b5c 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.artist-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.15"><path d="M20,30 Q40,10 60,30 T100,30" stroke="%23f5e6d3" fill="none" stroke-width="3"/><path d="M10,70 Q30,50 50,70 T90,70" stroke="%23f5e6d3" fill="none" stroke-width="3"/></svg>');
    background-size: 100px;
}
.artist-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.artist-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.artist-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.artist-info {
    flex: 1;
    min-width: 300px;
}

.artist-name {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 2px;
    line-height: 1.2;
    word-break: break-word;
}

.artist-bio {
    font-size: 1.4rem;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.artist-description {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 600px;
    margin-bottom: 25px;
    font-style: italic;
    border-left: 3px solid rgba(255,255,255,0.3);
    padding-left: 20px;
    line-height: 1.6;
}

.artist-stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 20px auto 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Исправленные карточки */
.painting-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.painting-card:hover {
    transform: translateY(-10px);
}

.painting-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.painting-info {
    padding: 25px 25px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;  /* ← ДОБАВЬТЕ ЭТУ СТРОКУ */
}

.painting-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
    text-align: center;  /* ← ДОБАВЬТЕ ЭТУ СТРОКУ (на всякий случай) */
}

.painting-description {
    color: #444;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 15px;
    flex-grow: 1;
    text-align: center;  /* ← ДОБАВЬТЕ ЭТУ СТРОКУ */
}

.painting-year {
    color: #999;
    font-size: 1rem;
    margin-bottom: 15px;
    display: block;
    font-style: italic;
    text-align: center;  /* ← ДОБАВЬТЕ ЭТУ СТРОКУ */
}

.painting-year {
    color: #999;
    font-size: 1rem; /* Увеличил */
    margin-bottom: 15px;
    display: block;
    font-style: italic;
}

.painting-description {
    color: #444; /* Сделал темнее */
    line-height: 1.7; /* Увеличил межстрочный интервал */
    font-size: 1.1rem; /* Увеличил */
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    color: #999;
    border-top: 1px solid #e0d9cc;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #e74c3c;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.retry-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #764ba2;
}

/* Адаптивность */
@media (max-width: 768px) {
    .artist-header {
        padding: 40px 0;
    }

    .artist-profile {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .artist-info {
        text-align: center;
    }

    .artist-description {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .artist-stats {
        justify-content: center;
    }

    .artist-name {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .painting-image {
        height: 240px;
    }

    .painting-info {
        padding: 20px;
    }

    .painting-title {
        font-size: 1.5rem;
    }

    .painting-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .artist-photo {
        width: 150px;
        height: 150px;
    }

    .artist-name {
        font-size: 2rem;
    }

    .artist-bio {
        font-size: 1rem;
    }

    .artist-description {
        font-size: 0.95rem;
        padding-left: 15px;
    }

    .artist-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .painting-image {
        height: 220px;
    }

    .painting-info {
        padding: 18px;
    }

    .painting-title {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

.artist-contacts {
    margin: 20px 0 15px;
}

.contacts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.contact-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .contacts-wrapper {
        justify-content: center;
        gap: 12px;
    }
    .contact-item {
        font-size: 0.95rem;
        padding: 6px 14px;
    }
}

@media (max-width: 480px) {
    .contacts-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .contact-item {
        text-align: center;
    }
}