/* ─── Переменные ─── */
:root {
    --gold:          #c9a060;
    --gold-light:    #e0c07a;
    --gold-dim:      rgba(201, 160, 96, 0.15);
    --bg:            #0c0c0c;
    --surface:       #141414;
    --surface-2:     #1c1c1c;
    --border:        #252525;
    --text:          #e8e4dc;
    --text-muted:    #706c64;
    --text-subtle:   #3a3730;
    --nav-height:    72px;
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.font-serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color .2s;
}

a:hover { color: var(--gold); }

img { display: block; max-width: 100%; }

/* ─── Утилиты ─── */
.text-gold    { color: var(--gold) !important; }
.bg-surface   { background-color: var(--surface); }
.bg-surface-2 { background-color: var(--surface-2); }
.border-dim   { border-color: var(--border) !important; }

.letter-wide  { letter-spacing: .15em; }
.letter-wider { letter-spacing: .25em; }

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ─── Кнопки ─── */
.btn-gold {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: 14px 36px;
    transition: background .25s, color .25s;
}

.btn-gold:hover {
    background: var(--gold);
    color: #0c0c0c;
}

.btn-gold-fill {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #0c0c0c;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: 14px 36px;
    transition: background .25s, color .25s, border-color .25s;
}

.btn-gold-fill:hover {
    background: transparent;
    color: var(--gold);
}

/* ─── Разделитель ─── */
.gold-rule {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.gold-accent-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    display: block;
}

/* ─── Скроллбар ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ─── Breadcrumb (shared) ─── */
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0; margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--text-muted);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    color: var(--text-subtle);
}

.breadcrumb-list a { color: var(--text-muted); }
.breadcrumb-list a:hover { color: var(--gold); }
.breadcrumb-list li:last-child { color: var(--text); }

/* ─── Section Header (shared) ─── */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 64px;
    flex-wrap: wrap;
    gap: 24px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--text);
}

/* ─── Pagination (shared) ─── */
.pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0; margin: 0;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: .05em;
    transition: border-color .2s, color .2s, background .2s;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.page-item .page-link:hover {
    background: transparent;
    border-color: var(--text-muted);
    color: var(--text);
}

.page-item.active .page-link {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.page-item.disabled .page-link {
    background: transparent;
    border-color: var(--text-subtle);
    color: var(--text-subtle);
    cursor: default;
}

/* ─── Painting Card (shared) ─── */
.painting-card {
    cursor: pointer;
    position: relative;
}

.painting-card:hover .painting-overlay { opacity: 1; }
.painting-card:hover .painting-img-wrap img { transform: scale(1.04); }

.painting-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
    aspect-ratio: 3/4;
}

.painting-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.painting-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.painting-placeholder-1 { background: linear-gradient(145deg, #1e1408 0%, #3a2510 40%, #1a1208 100%); }
.painting-placeholder-2 { background: linear-gradient(145deg, #0e1520 0%, #182535 40%, #0c1018 100%); }
.painting-placeholder-3 { background: linear-gradient(145deg, #1a1010 0%, #2e1818 40%, #100e0e 100%); }
.painting-placeholder-4 { background: linear-gradient(145deg, #101810 0%, #182518 40%, #0e100e 100%); }

.painting-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,160,96,.12) 0%, transparent 70%);
}

.painting-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12,12,12,.7);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.painting-overlay-btn {
    border: 1px solid rgba(201,160,96,.6);
    color: var(--gold);
    background: transparent;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: 12px 28px;
    transition: background .2s, color .2s;
}

.painting-overlay-btn:hover {
    background: var(--gold);
    color: #0c0c0c;
}

.painting-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--gold);
    color: #0c0c0c;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 4px 10px;
    z-index: 1;
}

.painting-info {
    padding: 20px 0 8px;
    border-bottom: 1px solid var(--border);
}

.painting-artist {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.painting-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.painting-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.painting-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    margin-top: 14px;
}
