body {
    overflow: hidden;
}

.contacts-main {
    padding-left: 230px;
    height: 100vh;
    background: #f6f7f8;
}

.contacts-shell {
    display: flex;
    height: 100vh;
}

.contacts-left {
    width: 380px;
    background: #ffffff;
    border-right: 1px solid #e6e6e6;
    display: flex;
    flex-direction: column;
}

.contacts-left-top {
    padding: 22px 24px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}

.contacts-add-button {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
    border: none;
    background: #2a3647;
    color: #ffffff;
    font-size: 16px;
}

.contacts-add-button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.contacts-add-button:hover {
    background: #29abe2;
    border-color: #29abe2;
    color: #ffffff;
    filter: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(41, 171, 226, 0.28);
}

.contacts-list {
    padding-bottom: 55px;
    overflow: auto;
    height: calc(100vh - 200px);
}

.letter-group {
    padding: 10px 0;
}

.menu a.is-active {
    background-color: #091931;
    color: #ffffff;
}

.letter-heading {
    padding: 10px 24px;
    color: #000;
    font-weight: 400;
    font-size: 18px;
}

.letter-group-separator {
    height: 1px;
    background: #d1d1d1;
    margin: 10px 24px 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    cursor: pointer;
    border-radius: 10px;
    margin: 2px 12px;
    transition: background 100ms ease, transform 100ms ease;
}

.contact-row:hover {
    background: #f6f7f8;
    transform: translateX(2px);
}

.contact-row.is-selected {
    background: #2a3647;
}

.contact-row.is-selected .contact-row-name,
.contact-row.is-selected .contact-row-email {
    color: #ffffff;
}

.contact-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    flex: 0 0 42px;
}

.contact-row-meta {
    min-width: 0;
}

.contact-row-name {
    font-weight: 400;
    color: #000;
    font-size: 16px;
    line-height: 1.2;
}

.contact-row-email {
    color: #007cee;
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.contacts-right {
    flex: 1;
    padding: 38px 48px;
}

.contacts-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 24px;
}

.contacts-title {
    margin: 0;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contacts-subtitle {
    position: relative;
    color: #2a3647;
    font-size: 20px;
    padding-left: 16px;
}

.contacts-subtitle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: #29abe2;
    border-radius: 2px;
}

.contact-detail {
    background: transparent;
}

.contact-detail-content {
    animation: contacts-slide-in-right 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-detail-empty {
    color: #2a3647;
    font-size: 18px;
    opacity: 0.7;
    margin-top: 70px;
}

.contact-detail-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 18px;
}

.contact-detail-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 40px;
}

.contact-detail-name {
    font-size: 44px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.contact-detail-actions {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.contact-detail-actions .link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
}

.contact-detail-actions .link-button img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0);
    transition: filter 120ms ease;
}

.contact-detail-actions .link-button:hover {
    color: #29abe2;
    background: transparent;
    transform: none;
}

.contact-detail-actions .link-button:hover img {
    filter: brightness(0) saturate(100%) invert(61%) sepia(74%) saturate(1710%) hue-rotate(165deg) brightness(91%) contrast(89%);
}

.contact-detail-block-title {
    margin-top: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2a3647;
}

.contact-info-grid {
    display: grid;
    gap: 14px;
    max-width: 520px;
}

.contact-info-row .contact-info-label {
    font-weight: 700;
    color: #2a3647;
    font-size: 14px;
    margin-bottom: 6px;
}

.contact-info-row .contact-info-value {
    color: #007cee;
    font-size: 16px;
}

.contact-info-row .contact-info-value.is-phone {
    color: #2a3647;
}

.overlay-right {
    display: none;
}

.overlay-close-wrapper {
    display: none;
}

.responsive-button-overlaycontact {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

@keyframes contacts-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(18px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}