/**
 * Архивные анкеты: серый слой на фото, отключённые контакты, метка с датой.
 *
 * Серый даём двумя приёмами сразу — grayscale на самой картинке и полупрозрачная
 * подложка сверху. Первый убирает цвет, второй гасит контраст и делает понятным,
 * что анкета неактивна, даже на чёрно-белых фото.
 */

/* ── Фото ─────────────────────────────────────────────────────────────────── */

.proj1-archived-media,
body.proj1-archived-profile #item_foto > div,
body.proj1-archived-profile #gallery > div {
    position: relative;
}

.proj1-archived-media img,
body.proj1-archived-profile #item_foto img,
body.proj1-archived-profile #gallery img,
body.proj1-archived-profile .fancybox__slide img {
    filter: grayscale(100%) contrast(0.9) brightness(0.96);
}

.proj1-archived-media::after,
body.proj1-archived-profile #item_foto > div::after,
body.proj1-archived-profile #gallery > div::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 25;
    pointer-events: none;
    border-radius: inherit;
    background: rgba(97, 102, 112, 0.32);
}

body.proj1-archived-profile #item_foto > div::after,
body.proj1-archived-profile #gallery > div::after {
    border-radius: 0.75rem;
}

/* Карточка в каталоге архива: гасим и ховер-зум, чтобы не выглядела «живой». */
.proj1-archived-card .proj1-archived-media img {
    transform: none !important;
}

.proj1-archived-card {
    opacity: 0.96;
}

/* ── Метка «в архиве» ─────────────────────────────────────────────────────── */

.proj1-archived-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: rgba(31, 35, 43, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
}

.proj1-archived-date {
    display: block;
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.3;
}

/* ── Баннер на странице анкеты ────────────────────────────────────────────── */

.proj1-archived-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid #d7dae0;
    border-left: 4px solid #6b7280;
    border-radius: 0.75rem;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
}

.proj1-archived-banner__title {
    font-weight: 700;
    color: #1f2937;
}

.proj1-archived-banner__date {
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
}

.proj1-archived-banner__link {
    margin-left: auto;
    color: #4b5563;
    text-decoration: underline;
    white-space: nowrap;
}

.proj1-archived-banner__link:hover {
    color: #1f2937;
}

/* ── Отключённые контакты ─────────────────────────────────────────────────── */

.proj1-archived-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.proj1-archived-contact-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px dashed #cbd0d8;
    border-radius: 0.75rem;
    background: #eceef1;
    color: #9aa0aa;
    font-size: 14px;
    font-weight: 500;
    cursor: not-allowed;
    user-select: none;
}

.proj1-archived-contact-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    fill: #9aa0aa;
}

.proj1-archived-contacts__note {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fafafa;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

/* ── Витрина архива ───────────────────────────────────────────────────────── */

.proj1-archive-intro {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.proj1-archive-empty {
    padding: 2.5rem 1rem;
    color: #6b7280;
    text-align: center;
}
