/* [СВО] 2026-07-07 — Мастер вступления в ассоциацию */
.pub-page-hero--join {
    background: linear-gradient(145deg, #1e3a5f 0%, #2a4a7a 55%, #1a3358 100%);
}

.mem-page {
    padding: 24px 16px 80px;
    background: #f4f6f9;
}

.mem-page__inner {
    max-width: 640px;
    margin: 0 auto;
}

.mem-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.mem-progress__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}

.mem-progress__item span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 14px;
}

.mem-progress__item--active {
    color: #1e3a5f;
}

.mem-progress__item--active span,
.mem-progress__item--done span {
    background: linear-gradient(135deg, #d4b85a 0%, #c9a84c 100%);
    color: #1e3a5f;
}

.mem-card {
    display: none;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    padding: 22px 18px;
    box-shadow: 0 8px 28px rgba(30, 58, 95, 0.06);
}

.mem-card.mem-step--active {
    display: block;
}

.mem-card__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #1e3a5f;
}

.mem-card__lead {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
}

.mem-card__note {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.mem-card__note a {
    color: #b8942e;
    font-weight: 700;
    cursor: pointer;
}

.mem-input-pin {
    font-size: 24px !important;
    letter-spacing: 0.35em;
    text-align: center;
    font-weight: 700;
}

.mem-photo-preview {
    margin-top: 12px;
    width: 120px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
}

.mem-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mem-photo-hint {
    font-weight: 400;
    color: #94a3b8;
    font-size: 12px;
}

.cabinet-avatar-slot {
    position: relative;
    overflow: hidden;
}

.cabinet-avatar-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cabinet-avatar-slot.cabinet-avatar--photo {
    padding: 0;
    font-size: 0;
}

.mem-doc-grid .form-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
}

.mem-progress--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mem-progress--6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mem-doc-downloads {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.mem-doc-downloads__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #1e3a5f;
}

.mem-docs-reject {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 14px;
    line-height: 1.5;
}

.mem-anketa-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.mem-radio-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 14px;
}

.mem-radio-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.mem-anketa-preview {
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    max-height: 60vh;
    overflow: auto;
}

.mem-anketa-doc__section {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.mem-anketa-doc__title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1e3a5f;
}

.mem-anketa-doc__value {
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    white-space: pre-wrap;
}

.mem-anketa-doc__sign {
    margin: 12px 0 0;
    font-size: 12px;
    color: #64748b;
    text-align: right;
}

.mem-anketa-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 480px) {
    .mem-progress__item {
        font-size: 10px;
    }

    .mem-card {
        padding: 18px 14px;
    }

    .mem-card__title {
        font-size: 20px;
    }
}
