.employees-page {
    min-height: 100vh;
    padding: 2rem;
    font-family: sans-serif;
}

.employees-page .container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #7a7a7a;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #2c2c2c;
}

.workplace-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e8e8e8;
}

.workplace-header h1 {
    font-size: 2rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.workplace-header p {
    color: #5a5a5a;
    align-items: center;
    font-size: 1.1rem;
}

.workplace-location{
    font-size: 2rem !important;
}

.workplace-timework{
    margin-left: 2rem;
}

.workplace-header i {
    width: 20px;
    color: #9a9a9a;
}

.employees-section h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

body{
    margin-bottom: 200px;
}

.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.employee-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.2s;
}

.employee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.employee-avatar {
    width: 140px;
    height: 140px;
    overflow: hidden;
    background: #e8e8e8;
    flex-shrink: 0;
    
}

.employee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d0d0d0;
    color: #8a8a8a;
    font-size: 2rem;
}

.employee-info {
    flex: 1;
}

.employee-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.25rem;
}

.employee-post {
    color: #7c5237;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.employee-phone, .employee-email {
    font-size: 0.85rem;
    color: #6a6a6a;
    margin: 0.7rem 0;
    align-items: center;
}

.employee-phone i, .employee-email i {
    width: 16px;
    font-size: 0.8rem;
    color: #9a9a9a;
}

.no-employees {
    text-align: center;
    padding: 3rem;
    color: #9a9a9a;
    background: #fafaf8;
    border-radius: 16px;
}

.my-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.my-lightbox-overlay.active {
    display: flex;
}

.my-lightbox-overlay img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
}

/* КРЕСТИК */
.my-lightbox-overlay .close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s ease;
    z-index: 10000;
    line-height: 1;
    user-select: none;
    opacity: 0.8;
}

.my-lightbox-overlay .close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
    color: #ff4444;
}

@media (max-width: 700px) {
    .employees-page {
        padding: 1rem;
    }
    
    .employees-page .container {
        padding: 1.5rem;
    }
    
    .employee-card {
        flex-direction: column;
        text-align: center;
    }
    
    .employee-phone, .employee-email {
        justify-content: center;
    }
}