html {
    box-sizing: border-box
}

*, *::before, *::after {
    box-sizing: inherit
}

html {
    height: 100%;
    min-height: 100%;
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    height: 100%;
    min-height: 100%;
    background: #fff;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    font-weight: 400;
    font-size: 16px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
}

.wrapper-content {

    flex: 1 0 auto;
    /*overflow: hidden;*/
    display: flex;
    flex-direction: column;

}

.wrapper-container {
    display: flex;
    position: relative;
    flex: 1;
}

.balance-wrapper .j-timer {
    font-size: 1.2em;
}

.balance-wrapper.balance-wrapper--timer {
    cursor: pointer;
}

.balance-wrapper .j-timer.loading::after {
    content: '...';
    display: inline-block;
    width: 1.5em;
    text-align: left;
    animation: dots 1.4s steps(4, end) infinite;
}

.balance-wrapper .j-timer.j-timer-init:after {
    display: none;
}


@keyframes dots {
    0% {
        content: '';
    }
    25% {
        content: '.';
    }
    50% {
        content: '..';
    }
    75% {
        content: '...';
    }
    100% {
        content: '';
    }
}


.thanks-counter {
    display: flex;
    align-items: center;
    background: #f2e6ff;
    padding: 8px 16px;
    border-radius: 40px;
    gap: 8px;
    font-weight: 600;
    color: #5c1f7a;
}

/* ========== САЙДБАР ========== */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: #5c1f7a;
    display: flex;
    flex-direction: column;
    padding: 28px 16px;
    border-right: 1px solid #7d3c9e;
    z-index: 100;
}

.sidebar__inner {
    position: sticky;
    top: 28px;
}

.logo-area {
    padding: 0 12px 32px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 24px;
    /*position: sticky;*/
    /*top: 0;*/
}

.logo-area img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.main-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;

}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.15s;
    cursor: default;
    text-decoration: none;
}

.menu-item i {
    width: 22px;
    color: white;
    font-size: 1.2rem;
    opacity: 0.95;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.menu-item.with-link {
    cursor: pointer;
}

.menu-item[href]:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========== ОСНОВНАЯ ЧАСТЬ ========== */
.main {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    /*overflow-y: auto;*/
    padding: 24px 32px 32px 32px;
    scroll-behavior: smooth;
}

/* ХЕДЕР */
.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 32px;
    gap: 30px;
    padding-left: 50px;
}

.balance-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f4ff;
    padding: 8px 16px 8px 14px;
    border-radius: 40px;
    gap: 8px;
    font-weight: 600;
    color: #2d1b3c;
    cursor: default;
}

.balance-wrapper i {
    color: #ffb347;
    font-size: 1.3rem;
}

.balance-tooltip {
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    box-shadow: 0 15px 30px -10px rgba(92, 31, 122, 0.2);
    border-radius: 20px;
    padding: 16px 20px;
    width: 240px;
    border: 1px solid #f0e4fa;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 10;
    font-weight: 400;
    color: #1e293b;
    font-size: 14px;
}

.balance-wrapper:hover .balance-tooltip {
    opacity: 1;
    visibility: visible;
}

.balance-tooltip p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.balance-tooltip p:last-child {
    margin-bottom: 0;
}

.balance-tooltip span, .balance-tooltip strong {
    font-weight: 600;
    color: #5c1f7a;
}

.profile {
    position: relative;

}

.profile-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 16px;
    border-radius: 40px;
    background: #fafafa;
    cursor: pointer;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, #5c1f7a, #9932cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.profile-name {
    font-weight: 600;
    color: #0f172a;
}

.profile-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 35px -8px rgba(92, 31, 122, 0.25);
    width: 180px;
    padding: 8px;
    border: 1px solid #f2e6ff;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 15;
}

.profile:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    padding: 12px 16px;
    border-radius: 14px;
    color: #1e293b;
    font-weight: 500;
    transition: background 0.1s;
    text-decoration: none;
    display: block;
}

.dropdown-item:hover {
    background: #f8f0ff;
    color: #5c1f7a;
}

/* ========== ГЛАВНАЯ СТРАНИЦА ========== */
.mission-projects {
    background: #f8f6fd;
    border-radius: 60px;
    padding: 18px 28px 18px 28px;
    margin-bottom: 40px;
    border: 1px solid #ede6f5;
}

.mission-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.mission-header i {
    font-size: 1.8rem;
    color: #5c1f7a;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 5px 10px rgba(92, 31, 122, 0.1);
}

.mission-title {
    font-weight: 700;
    font-size: 18px;
    color: #1a0f22;
    letter-spacing: 0.2px;
    background: rgba(92, 31, 122, 0.1);
    padding: 6px 22px;
    border-radius: 40px;
}

.mission-text {
    font-size: 16px;
    font-weight: 500;
    color: #2d1b3c;
    margin-left: 8px;
}

.projects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.project-chip {
    background: white;
    border-radius: 40px;
    padding: 8px 24px;
    font-weight: 500;
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    border: 1px solid #e0d0f0;
    transition: all 0.15s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.project-chip:hover {
    background: #5c1f7a;
    color: white;
    border-color: #5c1f7a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(92, 31, 122, 0.4);
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.widget-grid--best-employees {
    margin-top: 20px;
}

.widget-card {
    background: #ffffff;
    border: 1px solid #f1ebf5;
    border-radius: 28px;
    padding: 22px 20px;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
    transition: transform 0.1s ease;
}

.widget-card:hover {
    box-shadow: 0 15px 25px -12px rgba(92, 31, 122, 0.1);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: #5c1f7a;
}

.stats-list p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 15px;
    color: #334155;
}

.stats-list > p {
    grid-gap: 10px;
}

.stats-list p i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(92, 31, 122, 0.12);
    border-radius: 12px;
    color: #5c1f7a;
    font-size: 1.2rem;
    backdrop-filter: blur(2px);
    box-shadow: 0 5px 10px rgba(92, 31, 122, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.stats-list p span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-list p strong {
    text-align: right;
}

/* Аватары на главной — по умолчанию крупные (80x80) */
.employee-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e8def0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #4a2c5f;
    flex-shrink: 0;
    font-size: 2rem;
}

/* Маленькие аватары для блоков "Дни рождения" и "Ближайшие отпуска" */
.avatar-small {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
}

.employee-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

a.employee-row:hover .employee-name {
    color: #9932cc;
}

.employee-info {
    flex: 1;
}

.employee-name {
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.employee-role {
    font-size: 14px;
    color: #64748b;
}

.employee-badge {
    background: #5c1f7a;
    color: white;
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}

.employee-meta {
    font-size: 14px;
    color: #5c1f7a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.employee-meta {
}


.online-dot {
    width: 10px;
    min-width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.holiday-tag {
    background: #f2e8ff;
    color: #5c1f7a;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.birthday-today {
    background: #fef9e7;
    border-left: 4px solid #ffb347;
    border-radius: 20px;
    padding: 12px 12px;
    margin: 0 -12px 16px;
}

.full-width {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.departments-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.departments-group {
    margin-bottom: 20px;
}

.dept-title {
    font-weight: 600;
    font-size: 16px;
    color: #5c1f7a;
    margin-bottom: 16px;
}

.dept-employees {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0eaf5;
    grid-gap: 10px;
}

.news-item:last-child {
    border-bottom: none;
}

.best-employees {
    background: linear-gradient(145deg, #fcf4ff, #ffffff);
    border: 1px solid #f0e0ff;
}

.best-employees .employee-row {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px solid #f0e2ff;
}

.vote-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5c1f7a;
    font-weight: 600;
}

.vote-info i {
    color: #5c1f7a;
    font-size: 1.3rem;
}

.vote-count {
    background: #f2e6ff;
    border-radius: 30px;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 14px;
}

.double-col {
    grid-column: span 2;
}

/* ========== СТРАНИЦА ПРОФИЛЯ ========== */
.profile-page {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    scroll-margin-top: 20px;
}

.profile-left {
    width: 340px;
    flex-shrink: 0;
    position: relative;
}
.profile-left:after{
    content: '';
    width: 100%;
    height: 280px;
    display: block;
}

.profile-card {
    background: white;
    border: 1px solid #f1ebf5;
    border-radius: 32px;
    padding: 28px 24px;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);

}


.profile-photo-square-wrap {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto 20px;
    background: #5c1f7a;
    border-radius: 24px;
    box-shadow: 0 15px 30px -8px rgba(92, 31, 122, 0.4);
    overflow: hidden;
}

.profile-photo-square {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease-in-out opacity;
}

img.profile-photo-square {
    object-position: center;
    object-fit: cover;
}

.profile-photo-square .profile-photo-square-init {
    font-size: 5rem;
    font-weight: 600;
    color: white;
    transition: .2s ease-in-out opacity;
}

.profile-photo-title {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);

    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 15px;

    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease-in-out;
    white-space: nowrap;
    backdrop-filter: blur(24px);
}

.profile-photo-square-link:not([href="#"]):hover img, .profile-photo-square-link:not([href="#"]):hover .profile-photo-square-init {
}

.profile-photo-square-link:not([href="#"]):hover .profile-photo-title {
    opacity: 1;
}

.profile-photo-square-link[href="#"] {
    cursor: default;
}

.profile-name-large {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-bottom: 6px;
}

.profile-role {
    font-size: 18px;
    color: #5c1f7a;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
}

.profile-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tag {
    background: #f2e8ff;
    color: #5c1f7a;
    border-radius: 40px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0eaf5;
    font-size: 15px;
}

.info-row i {
    width: 24px;
    color: #5c1f7a;
    font-size: 1.3rem;
}

.info-row a {
    color: #1e293b;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 18px;
    margin: 20px 0 28px;
    justify-content: center;
}

.social-links a {
    color: #5c1f7a;
    font-size: 2rem;
    transition: transform 0.15s;
}

.social-links a:hover {
    transform: scale(1.1);
    color: #9932cc;
}

.thank-button {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.thank-btn {
    width: 100%;
    background: linear-gradient(145deg, #5c1f7a, #9932cc);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.15s;
    box-shadow: 0 8px 18px rgba(92, 31, 122, 0.3);
    outline: none;
}

.thank-btn:focus {
    outline: none;
}

.thank-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px #5c1f7a;
}

.thank-btn.loading {
    pointer-events: none;
    position: relative;
}

.thank-btn.loading span {
    opacity: 0;
}

.thank-btn.loading i {
    opacity: 0;
}

.thank-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.thank-message {
    padding: 12px 16px;
    color: #1e293b;
    font-weight: 500;
    color: #5c1f7a;
    font-size: 14px;
    background: #f8f0ff;
    border-radius: 16px;

}

.thank-button label {
    margin: 0;
    display: block;
}


.thank-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 35px -8px rgba(92, 31, 122, 0.25);
    border: 1px solid #f2e6ff;
    padding: 10px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    grid-gap: 5px;
}

.thank-button:hover .thank-dropdown {
    opacity: 1;
    visibility: visible;
}

.thank-reason {
    padding: 10px 16px;
    border-radius: 16px;
    color: #1e293b;
    font-weight: 500;
    transition: background 0.1s;
    cursor: pointer;
}

.thank-reason:hover, .thank-reason.active {
    background: #f8f0ff;
    color: #5c1f7a;
}

.thank-reason textarea {
    border: 1px solid #b7b7b7;
    font-size: 14px;
    padding: 6px 10px;
    margin: 5px 0;
    border-radius: 5px;
    background: #fff;
    width: 100%;
    height: auto;
    min-height: 70px;
}

.thank-reason textarea:hover {
    background: #fff;
}

.thank-reason textarea:focus {
    outline: none;
}

.profile-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-block {
    background: white;
    border: 1px solid #f1ebf5;
    border-radius: 32px;
    padding: 24px 28px;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
}

.block-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-title i {
    color: #5c1f7a;
}

/* Блок ачивок */
.achievements-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-around;
}

.achievement-item {
    text-align: center;
    flex: 1 0 80px;
}

.achievement-icon {
    width: 70px;
    height: 70px;
    background: #f2e6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #5c1f7a;
    font-size: 2rem;
    border: 2px solid #5c1f7a;
}

.achievement-icon img {
    height: calc(100% - 15px);
    width: calc(100% - 15px);
    object-position: center;
    object-fit: contain;
}

.achievement-title {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}

.achievement-desc {
    font-size: 12px;
    color: #64748b;
}

/* Новый блок: Мои благодарности */
.thanks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.thanks-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f9f8fc;
    border-radius: 20px;
    padding: 16px 20px;
    border: 1px solid #ede6f5;
}

.thanks-item i{
    font-size: 2rem;
    color: #5c1f7a;
}

.thanks-item__img {
    width: 32px;
    height: 32px;
}

.thanks-item__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.thanks-info {
    flex: 1;
}

.thanks-from {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.thanks-text {
    color: #5c1f7a;
    font-weight: 500;
    font-size: 14px;
}

.thanks-date {
    font-size: 13px;
    color: #94a3b8;
    text-transform: lowercase;
}

.experience-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #f0eaf5;
}

.experience-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exp-period {
    font-weight: 700;
    color: #5c1f7a;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.exp-desc {
    color: #334155;
    font-size: 1rem;
}

/* Новый элемент для общего стажа */
.total-experience {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0eaf5;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
    font-weight: 600;
    font-size: 1.1rem;
}

.total-experience i {
    color: #5c1f7a;
    font-size: 1.5rem;
}

.about-text {
    background: #f9f8fc;
    border-radius: 20px;
    padding: 20px;
    color: #334155;
    line-height: 1.6;
    border: 1px solid #ede6f5;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-gap: 15px;
}

.about-text p {
    margin: 0;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.doc-link {
    background: #f9f8fc;
    border-radius: 20px;
    padding: 16px 20px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #ede6f5;
    transition: 0.15s;
}

.doc-link:hover {
    background: #f2e6ff;
    border-color: #c7a2f0;
    transform: translateY(-2px);
}

.doc-link i {
    color: #5c1f7a;
    font-size: 1.3rem;
}

.mentor-label {
    font-weight: 600;
    font-size: 16px;
    color: #5c1f7a;
    margin-bottom: 12px;
}

.adaptation-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.mentor-avatar-square {
    width: 60px;
    height: 60px;
    background: #5c1f7a;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    flex-shrink: 0;
}

.mentor-info {
    flex: 1;
}

.mentor-name {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.mentor-role {
    color: #5c1f7a;
}

/* Прогресс-бар испытательного срока */
.probation-progress {
    margin: 20px 0 10px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.progress-track {
    height: 8px;
    background: #f0eaf5;
    border-radius: 20px;
    position: relative;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    width: 66%; /* соответствует точке контроля */
    background: linear-gradient(90deg, #5c1f7a, #9932cc);
    border-radius: 20px;
    position: relative;
}

.progress-dots {
    display: flex;
    justify-content: space-between;
    position: relative;
    top: -12px;
}

.dot {
    width: 16px;
    height: 16px;
    background: #f0eaf5;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dot.active {
    background: #5c1f7a;
    border-color: #d4b3ff;
}

.adaptation-details {
    background: #f9f8fc;
    border-radius: 20px;
    padding: 20px;
    margin-top: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0eaf5;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #64748b;
}

.detail-value {
    font-weight: 600;
    color: #0f172a;
}

.detail-value a {
    color: #5c1f7a;
    text-decoration: none;
}

#profile {
    scroll-margin-top: 20px;
}


.succes-smile {
    display: inline-block;
    white-space: nowrap;

}

.succes-smile span {
    white-space: nowrap;
    display: inline-block;
}

.succes-smile__1 {
    animation: arms 1.5s infinite steps(2);
}

.succes-smile .spark {
    animation: sparkle .6s infinite steps(2);
}

.succes-smile .s1 {
    animation-duration: 3s;
    animation-delay: .2s;
}

.succes-smile .s2 {
    animation-duration: 3.5s;
    animation-delay: .7s;
}

.succes-smile .s3 {
    animation-duration: 4s;
    animation-delay: .4s;
}

.succes-smile .s4 {
    animation-duration: 3.8s;
    animation-delay: 1.2s;
}

.succes-smile .s5 {
    animation-duration: 3.4s;
    animation-delay: .5s;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(.6);
    }
    20% {
        opacity: 1;
        transform: scale(1.3);
    }
    40% {
        opacity: 0;
    }
    60% {
        opacity: 1;
    }
    80% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.succes-smile .succes-smile__2 {
    animation: arms-2 1.5s infinite steps(2);
}

@keyframes arms {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-30deg);
    }
}

@keyframes arms-2 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(30deg);
    }
}

.arm {
    animation: cheer .8s infinite steps(2);
    transform-origin: left bottom;
}

@keyframes cheer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-40deg);
    }
}

/* сердце */
.heart {
    animation: love 1.2s infinite steps(2);
}

@keyframes love {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.4);
    }
}

.fist {
    animation: punch 1.6s infinite steps(2);
}

@keyframes punch {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.6);
    }
}


/*----------------------------
	THE FAT BURGER
----------------------------*/


.burger {
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    position: absolute;
    width: 45px;
    height: 45px;
    right: -60px;
    top: 10px;
    z-index: 100;
    align-items: center;
    justify-content: center;
    display: none !important;
}

.burger:before {
    content: '';
    box-shadow: 0 5px 10px rgba(92, 31, 122, 0.15);
    width: 45px;
    height: 45px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f2e6ff;
    border-radius: 50%;
    transition: .15s ease-in-out opacity, .15s ease-in-out box-shadow, .15s ease-in-out background, .15s ease-in-out transform;
}

.burger:hover:before {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: .9;
    box-shadow: 0 5px 10px rgba(92, 31, 122, 0.3);

}

.burger span,
.burger span:before,
.burger span:after {
    content: '';
    display: block;
    position: absolute;
    background: #5c1f7a;
    border-radius: 1px;
    height: 2px;
    width: 26px;
    top: 22px;
    cursor: pointer;
    border-radius: 20px;
}

.burger span:before {
    top: -8px;
}

.burger span:after {
    top: 8px;
}

.burger span,
.burger span:before,
.burger span:after {
    transition: all 0.5s ease-in-out;
}

.burger.active:before {
    background: #5c1f7a;
}

.burger.active span {
    background: transparent;

}

.burger.active span:before,
.burger.active span:after {
    top: 0;
    background: #f2e6ff;
}

.burger.active span:before {
    -ms-transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
}

.burger.active span:after {
    -ms-transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}


@media (max-width: 1374px) {
    .main {
        padding: 20px 25px 25px 25px;
    }
    .profile-page{
        grid-gap: 24px;
    }
    .info-block{
        padding: 20px 20px;
    }
    .profile-card{
        padding: 20px 20px;
    }



    .sidebar {
        width: 220px;
        min-width: 220px;

        padding: 20px 10px;
    }

    .sidebar__inner {
        top: 20px;
    }


    .widget-grid--cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .widget-grid--best-employees {
        grid-template-columns: repeat(2, 1fr);
    }

    .widget-card--my-widget {
        grid-column: 1 / -1;
    }

    .widget-grid--best-employees .double-col {
        grid-column: span 1;
    }

    .projects-list {
        gap: 10px;
    }

    .departments-container {
    }
}

@media (max-width: 1249px) {
    .sidebar {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: .2s ease-in-out transform;
        position: fixed;
        box-shadow: 0 5px 10px rgba(92, 31, 122, 0.5);
    }

    .sidebar.active {
        transform: translateX(0%);
    }

    .burger {
        display: flex !important;
    }


}

@media (max-width: 989px) {
    .header {
        gap: 5px 15px;
    }

    .widget-grid--cards {
        grid-template-columns: repeat(1, 1fr);
    }

    .widget-grid--best-employees {
        grid-template-columns: repeat(1, 1fr);
    }

    .departments-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .profile-page{
        flex-direction: column;
    }
    .profile-left {
        width: 100%;
    }
    .profile-right{
        width: 100%;
    }
    .profile-left::after{
        display: none;
    }
}

@media (max-width: 767px) {
    .main{
        padding: 5px 5px 15px 5px;
    }
    .header {
        flex-wrap: wrap;
        padding-left: 0;
    }
    .header .profile{
        width: 100%;
        order: -1;
        display: flex;
        flex-direction: row-reverse;
    }

    .burger{
        width: 40px;
        height: 40px;
        right: -50px;
    }


    .burger span,
    .burger span:before,
    .burger span:after {
        top: 19px;
    }
    .burger span:before {
        top: -8px;
    }

    .burger span:after {
        top: 8px;
    }

    .employee-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .mission-header{
        flex-wrap: wrap;
    }

}

@media (max-width: 575px) {

    .departments-container{
        grid-template-columns: repeat(1, 1fr);
    }

}