/* Новый вид страницы резюме (modules/mod_fp_resume_new.php) - рекрутеры org 2 и 3, референс заказчика 30.11.2026.
   Цвета и скругления - как в проекте (Точка найма: рамка #e3e7ee, карточка 14px, голубая обводка #b9dcf0, серые плашки #f0f2f6). */

.rsn-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
    color: #2e3238;
    font-size: 15px;
}

.rsn-page p {
    margin: 0;
}

.rsn-page ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---- Заголовок ---- */
.rsn-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rsn-head-icon,
.rsn-sec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0088cc;
}

.rsn-head-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #e8f4fb;
    font-size: 22px;
}

.rsn-title {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* ---- Карточки ---- */
.rsn-card {
    padding: 24px 28px;
    border: 1px solid #e3e7ee;
    border-radius: 14px;
    background: #fff;
    min-width: 0;
}

/* ---- Главная карточка ---- */
.rsn-main-top {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Фото и под ним иконки действий (HR, поделиться, скачать, избранное, чат) - как в прежнем виде */
.rsn-photo-col {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 14px;
}

/* Иконки под фото - объёмные кнопки, как избранное/поделиться в поиске вакансий (.vcn-icon-btn, Максим 01.12):
   5 x 32px + 4 x 5px = 180px - ровно ширина фото */
.rsn-icons {
    gap: 5px;
    justify-content: space-between;
}

.rsn-icons .profile-form__social-icon {
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 5px;
    background: linear-gradient(180deg, #f8fafc 0%, #e1e7ef 100%);
    box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(30, 41, 59, 0.15);
    object-fit: contain;
    opacity: 1;
}

.rsn-icons .profile-form__social-icon:hover {
    background: linear-gradient(180deg, #eef2f7 0%, #d3dbe6 100%);
    opacity: 1;
}

.rsn-icons .profile-form__social-icon--disabled,
.rsn-icons .profile-form__social-icon--disabled:hover {
    opacity: 0.35;
}

.rsn-photo {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    line-height: 0;
}

.rsn-photo img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: #eef1f5;
    cursor: zoom-in;
}

.rsn-main-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.rsn-name {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.rsn-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.rsn-city {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.rsn-city i {
    color: #0088cc;
    font-size: 18px;
}

.rsn-line .job-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.rsn-muted {
    color: #6b7280;
}

.rsn-label {
    color: #6b7280;
    font-size: 14px;
}

.rsn-profs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: -2px !important;
}

/* Желаемые должности и контакты - плашки нашего голубого, сильно прозрачные (заказчик 01.12) */
.rsn-profs li {
    padding: 6px 18px;
    border-radius: 8px;
    background: rgba(0, 136, 204, 0.1);
    color: #1f2d3d;
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Телефон | почта | соцсети - одна плашка, между ними вертикальная линия */
.rsn-contacts {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2px;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(0, 136, 204, 0.1);
}

.rsn-contacts > * + * {
    border-left: 1px solid rgba(0, 136, 204, 0.35);
}

.rsn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px;
    color: #1f2d3d;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s;
}

.rsn-contact i {
    color: #0088cc;
}

.rsn-contact:hover {
    color: #0077b3;
}

.rsn-contacts .profile-form__social-icons {
    display: inline-flex;
    gap: 8px;
    padding: 0 14px;
}

.rsn-contacts .profile-form__social-icon {
    width: 28px;
    height: 28px;
}

.rsn-main-info .candidate-card__actions-spaced {
    margin-top: 4px;
}

.rsn-main-info .candidate-card__invite,
.rsn-main-info .candidate-card__buy {
    padding: 10px 24px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

/* Зарплата, занятость, формат */
/* Зарплата | занятость | формат - через вертикальные линии, как на референсе */
.rsn-facts {
    display: flex;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef1f5;
}

.rsn-fact {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0 20px;
}

.rsn-fact:first-child {
    padding-left: 0;
}

.rsn-fact + .rsn-fact {
    border-left: 1px solid #e3e7ee;
}

.rsn-fact i {
    flex-shrink: 0;
    width: 28px;
    color: #0088cc;
    font-size: 22px;
    text-align: center;
}

.rsn-fact-label {
    color: #6b7280;
    font-size: 13px;
}

.rsn-fact-value {
    font-size: 15px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* ---- Блоки ---- */
.rsn-sec {
    display: flex;
    gap: 16px;
}

.rsn-sec-icon {
    width: 32px;
    height: 32px;
    font-size: 24px;
}

.rsn-sec-main {
    flex: 1;
    min-width: 0;
}

.rsn-h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
}

.rsn-text {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Ключевые компетенции - серые плашки */
.rsn-chips,
.rsn-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rsn-chips li {
    padding: 7px 16px;
    border-radius: 8px;
    background: #f0f2f6;
    color: #3a3f47;
    font-weight: 600;
}

/* Языки - голубая обводка, как у телефона */
.rsn-langs li {
    padding: 7px 16px;
    border: 1px solid #b9dcf0;
    border-radius: 8px;
}

/* Опыт работы - линия с точками */
.rsn-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 32px !important;
}

.rsn-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 7px;
    width: 2px;
    background: #e3e7ee;
}

.rsn-exp {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.rsn-exp::before {
    content: '';
    position: absolute;
    top: 4px;
    left: -32px;
    width: 12px;
    height: 12px;
    border: 2px solid #0088cc;
    border-radius: 50%;
    background: #fff;
}

.rsn-exp:first-child::before {
    background: #0088cc;
}

.rsn-exp-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 1px solid #e3e7ee;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
}

.rsn-exp-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rsn-exp-company {
    font-size: 17px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.rsn-exp-job {
    color: #0088cc;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.rsn-exp-period {
    color: #6b7280;
    font-size: 14px;
}

.rsn-desc {
    margin-top: 6px;
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.rsn-desc p {
    margin: 0;
}

.rsn-desc ul,
.rsn-desc ol {
    margin: 6px 0;
    padding-left: 20px;
    list-style: disc;
    white-space: normal;
}

/* Образование и курсы - список с синими точками */
.rsn-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rsn-list li {
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.rsn-list li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0088cc;
}

/* Категории прав - списком под «Категории:», ниже строка про автомобиль */
.rsn-cats {
    margin: 4px 0 8px !important;
}

/* ---- Планшет и телефон ---- */
@media (max-width: 760px) {
    .rsn-card {
        padding: 18px 16px;
    }

    .rsn-title {
        font-size: 22px;
    }

    .rsn-head-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .rsn-main-top {
        flex-direction: column;
        gap: 16px;
    }

    .rsn-photo {
        width: 120px;
        height: 120px;
    }

    .rsn-photo-col {
        align-items: flex-start;
    }

    /* телефон, почта, соцсети - столбиком, линии - горизонтальные */
    .rsn-contacts {
        flex-direction: column;
        align-items: stretch;
        border-radius: 8px;
    }

    .rsn-contacts > * + * {
        border-left: 0;
        border-top: 1px solid rgba(0, 136, 204, 0.25);
    }

    .rsn-contacts .profile-form__social-icons {
        padding: 6px 14px 2px;
    }

    /* на телефоне факты столбиком, линии - горизонтальные */
    .rsn-facts {
        flex-direction: column;
    }

    .rsn-fact {
        padding: 12px 0;
    }

    .rsn-fact:first-child {
        padding-top: 0;
    }

    .rsn-fact + .rsn-fact {
        border-left: 0;
        border-top: 1px solid #e3e7ee;
    }

    .rsn-sec {
        gap: 12px;
    }

    .rsn-sec-icon {
        width: 24px;
        font-size: 20px;
    }

    .rsn-h2 {
        font-size: 19px;
    }

    .rsn-exp {
        flex-direction: column;
        gap: 10px;
    }

    .rsn-exp-logo {
        width: 48px;
        height: 48px;
    }

    .rsn-timeline {
        padding-left: 24px !important;
    }

    .rsn-timeline::before {
        left: 5px;
    }

    .rsn-exp::before {
        left: -24px;
    }
}
