/* =========================================================
   DIPLOMA PAGE + PDF VIEWER
   ========================================================= */

.diploma-page .club-section {
    padding-top: 40px;
}

.diploma-hero-text {
    max-width: 720px;
    margin-top: 18px;
    color: var(--club-muted);
    font-size: 16px;
    line-height: 1.8;
}

.diploma-hero-text p {
    margin: 0 0 12px;
}

.diploma-hero-text p:last-child {
    margin-bottom: 0;
}

/* --- Просмотрщик --- */

.diploma-viewer {
    overflow: hidden;

    border: 1px solid rgba(210, 173, 104, 0.28);
    border-radius: 16px;

    background: #0c0d0b;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.diploma-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 14px 16px;

    background: rgba(25, 26, 23, 0.92);
    border-bottom: 1px solid rgba(210, 173, 104, 0.18);
}

.diploma-toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.diploma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    min-height: 38px;
    padding: 7px 12px;

    border: 1px solid rgba(210, 173, 104, 0.35);
    border-radius: 9px;

    background: rgba(210, 173, 104, 0.08);
    color: var(--club-text);

    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;

    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.diploma-btn:hover:not(:disabled) {
    border-color: rgba(210, 173, 104, 0.75);
    background: rgba(210, 173, 104, 0.18);
    color: #fff;
}

.diploma-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.diploma-btn:focus-visible {
    outline: 2px solid var(--club-gold);
    outline-offset: 2px;
}

.diploma-btn-wide {
    font-size: 12px;
    letter-spacing: 0.04em;
}

.diploma-btn-ghost {
    background: transparent;
    color: var(--club-muted);
}

.diploma-page-indicator,
.diploma-zoom {
    min-width: 64px;

    color: var(--club-muted);
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-align: center;
}

.diploma-page-indicator [data-pdf-page] {
    color: var(--club-text);
}

.diploma-divider {
    margin: 0 3px;
    opacity: 0.5;
}

/* --- Сцена с документом --- */

.diploma-stage {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    min-height: 70vh;
    max-height: 82vh;
    padding: 22px;

    overflow: auto;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(210, 173, 104, 0.06),
            transparent 55%
        ),
        #0c0d0b;
}

.diploma-stage canvas {
    display: block;
    max-width: 100%;
    height: auto;

    border-radius: 4px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.diploma-loading {
    align-self: center;

    padding: 40px 20px;

    color: var(--club-muted);
    font-family: Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
}

.diploma-loading[hidden] {
    display: none;
}

.diploma-error {
    align-self: center;

    max-width: 460px;
    padding: 30px 24px;

    border: 1px dashed rgba(210, 173, 104, 0.35);
    border-radius: 12px;

    color: var(--club-muted);
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.diploma-error a {
    color: var(--club-gold);
}

.diploma-hint {
    margin-top: 16px;

    color: var(--club-muted);
    font-size: 13px;
    line-height: 1.7;
}

.diploma-hint a {
    color: var(--club-gold);
}

/* --- Другие документы --- */

.diploma-other {
    margin-top: 60px;
}

.diploma-other h2 {
    margin-bottom: 22px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
}

.diploma-other-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.diploma-other-card {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 18px;

    border: 1px solid rgba(210, 173, 104, 0.2);
    border-radius: 12px;

    background: var(--club-panel);
    color: var(--club-text);
    text-decoration: none;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.diploma-other-card:hover {
    border-color: rgba(210, 173, 104, 0.55);
    transform: translateY(-2px);
}

.diploma-other-card img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;

    border-radius: 8px;
}

.diploma-other-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}

.diploma-other-title span {
    color: var(--club-gold);
}

.diploma-other-text {
    color: var(--club-muted);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .diploma-toolbar {
        justify-content: center;
    }

    .diploma-btn-wide {
        font-size: 11px;
    }

    .diploma-stage {
        min-height: 55vh;
        padding: 12px;
    }
}

@media (max-width: 420px) {
    .diploma-page-indicator,
    .diploma-zoom {
        min-width: 52px;
        font-size: 12px;
    }

    .diploma-btn {
        min-width: 34px;
        min-height: 34px;
        padding: 6px 9px;
    }
}
